Google_Service_Dns_ManagedZones_Resource

The "managedZones" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Dns.php  
  1. class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Create a new ManagedZone. (managedZones.create) 
  5. * @param string $project Identifies the project addressed by this request. 
  6. * @param Google_ManagedZone $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_Dns_ManagedZone 
  9. */ 
  10. public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) 
  11. $params = array('project' => $project, 'postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); 
  14.  
  15. /** 
  16. * Delete a previously created ManagedZone. (managedZones.delete) 
  17. * @param string $project Identifies the project addressed by this request. 
  18. * @param string $managedZone Identifies the managed zone addressed by this 
  19. * request. Can be the managed zone name or id. 
  20. * @param array $optParams Optional parameters. 
  21. */ 
  22. public function delete($project, $managedZone, $optParams = array()) 
  23. $params = array('project' => $project, 'managedZone' => $managedZone); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('delete', array($params)); 
  26.  
  27. /** 
  28. * Fetch the representation of an existing ManagedZone. (managedZones.get) 
  29. * @param string $project Identifies the project addressed by this request. 
  30. * @param string $managedZone Identifies the managed zone addressed by this 
  31. * request. Can be the managed zone name or id. 
  32. * @param array $optParams Optional parameters. 
  33. * @return Google_Service_Dns_ManagedZone 
  34. */ 
  35. public function get($project, $managedZone, $optParams = array()) 
  36. $params = array('project' => $project, 'managedZone' => $managedZone); 
  37. $params = array_merge($params, $optParams); 
  38. return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); 
  39.  
  40. /** 
  41. * Enumerate ManagedZones that have been created but not yet deleted. 
  42. * (managedZones.listManagedZones) 
  43. * @param string $project Identifies the project addressed by this request. 
  44. * @param array $optParams Optional parameters. 
  45. * @opt_param string pageToken Optional. A tag returned by a previous list 
  46. * request that was truncated. Use this parameter to continue a previous list 
  47. * request. 
  48. * @opt_param int maxResults Optional. Maximum number of results to be returned. 
  49. * If unspecified, the server will decide how many results to return. 
  50. * @return Google_Service_Dns_ManagedZonesListResponse 
  51. */ 
  52. public function listManagedZones($project, $optParams = array()) 
  53. $params = array('project' => $project); 
  54. $params = array_merge($params, $optParams); 
  55. return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");