* Copyright 2010 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* Service definition for Dns (v1).
* The Google Cloud DNS API provides services for configuring and serving
* authoritative DNS records.</p>
* For more information about this service, see the API
* <a href="https://developers.google.com/cloud-dns" target="_blank">Documentation</a>
class Google_Service_Dns extends UDP_Google_Service
/** View and manage your data across Google Cloud Platform services. */
"https://www.googleapis.com/auth/cloud-platform";
/** View your DNS records hosted by Google Cloud DNS. */
const NDEV_CLOUDDNS_READONLY =
"https://www.googleapis.com/auth/ndev.clouddns.readonly";
/** View and manage your DNS records hosted by Google Cloud DNS. */
const NDEV_CLOUDDNS_READWRITE =
"https://www.googleapis.com/auth/ndev.clouddns.readwrite";
public $resourceRecordSets;
* Constructs the internal representation of the Dns service.
* @param Google_Client $client
public function __construct(UDP_Google_Client $client)
parent::__construct($client);
$this->servicePath = 'dns/v1/projects/';
$this->serviceName = 'dns';
$this->changes = new Google_Service_Dns_Changes_Resource(
'path' => '{project}/managedZones/{managedZone}/changes',
'path' => '{project}/managedZones/{managedZone}/changes/{changeId}',
'path' => '{project}/managedZones/{managedZone}/changes',
$this->managedZones = new Google_Service_Dns_ManagedZones_Resource(
'path' => '{project}/managedZones',
'path' => '{project}/managedZones/{managedZone}',
'httpMethod' => 'DELETE',
'path' => '{project}/managedZones/{managedZone}',
'path' => '{project}/managedZones',
$this->projects = new Google_Service_Dns_Projects_Resource(
$this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource(
'path' => '{project}/managedZones/{managedZone}/rrsets',
* The "changes" collection of methods.
* $dnsService = new Google_Service_Dns(...);
* $changes = $dnsService->changes;
class Google_Service_Dns_Changes_Resource extends UDP_Google_Service_Resource
* Atomically update the ResourceRecordSet collection. (changes.create)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param Google_Change $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Change
public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Dns_Change");
* Fetch the representation of an existing Change. (changes.get)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param string $changeId The identifier of the requested change, from a
* previous ResourceRecordSetsChangeResponse.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Change
public function get($project, $managedZone, $changeId, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_Change");
* Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* @opt_param string sortBy Sorting criterion. The only supported value is
* @opt_param string sortOrder Sorting order direction: 'ascending' or
* @return Google_Service_Dns_ChangesListResponse
public function listChanges($project, $managedZone, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse");
* The "managedZones" collection of methods.
* $dnsService = new Google_Service_Dns(...);
* $managedZones = $dnsService->managedZones;
class Google_Service_Dns_ManagedZones_Resource extends UDP_Google_Service_Resource
* Create a new ManagedZone. (managedZones.create)
* @param string $project Identifies the project addressed by this request.
* @param Google_ManagedZone $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_ManagedZone
public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array())
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Dns_ManagedZone");
* Delete a previously created ManagedZone. (managedZones.delete)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
public function delete($project, $managedZone, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
* Fetch the representation of an existing ManagedZone. (managedZones.get)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_ManagedZone
public function get($project, $managedZone, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_ManagedZone");
* Enumerate ManagedZones that have been created but not yet deleted.
* (managedZones.listManagedZones)
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @return Google_Service_Dns_ManagedZonesListResponse
public function listManagedZones($project, $optParams = array())
$params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");
* The "projects" collection of methods.
* $dnsService = new Google_Service_Dns(...);
* $projects = $dnsService->projects;
class Google_Service_Dns_Projects_Resource extends UDP_Google_Service_Resource
* Fetch the representation of an existing Project. (projects.get)
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Project
public function get($project, $optParams = array())
$params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_Project");
* The "resourceRecordSets" collection of methods.
* $dnsService = new Google_Service_Dns(...);
* $resourceRecordSets = $dnsService->resourceRecordSets;
class Google_Service_Dns_ResourceRecordSets_Resource extends UDP_Google_Service_Resource
* Enumerate ResourceRecordSets that have been created but not yet deleted.
* (resourceRecordSets.listResourceRecordSets)
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
* @opt_param string name Restricts the list to return only records with this
* fully qualified domain name.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* @opt_param string type Restricts the list to return only records of this
* type. If present, the "name" parameter must also be present.
* @return Google_Service_Dns_ResourceRecordSetsListResponse
public function listResourceRecordSets($project, $managedZone, $optParams = array())
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse");
class Google_Service_Dns_Change extends Google_Collection
protected $collection_key = 'deletions';
protected $internal_gapi_mappings = array(
protected $additionsType = 'Google_Service_Dns_ResourceRecordSet';
protected $additionsDataType = 'array';
protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet';
protected $deletionsDataType = 'array';