Google_Service_Deploymentmanager_Resources_Resource

The "resources" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Deploymentmanager.php  
  1. class Google_Service_Deploymentmanager_Resources_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets information about a single resource. (resources.get) 
  5. * @param string $project The project ID for this request. 
  6. * @param string $deployment The name of the deployment for this request. 
  7. * @param string $resource The name of the resource for this request. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_Deploymentmanager_DeploymentmanagerResource 
  10. */ 
  11. public function get($project, $deployment, $resource, $optParams = array()) 
  12. $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "Google_Service_Deploymentmanager_DeploymentmanagerResource"); 
  15.  
  16. /** 
  17. * Lists all resources in a given deployment. (resources.listResources) 
  18. * @param string $project The project ID for this request. 
  19. * @param string $deployment The name of the deployment for this request. 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param string pageToken Specifies a nextPageToken returned by a previous 
  22. * list request. This token can be used to request the next page of results from 
  23. * a previous list request. 
  24. * @opt_param int maxResults Maximum count of results to be returned. Acceptable 
  25. * values are 0 to 100, inclusive. (Default: 50) 
  26. * @return Google_Service_Deploymentmanager_ResourcesListResponse 
  27. */ 
  28. public function listResources($project, $deployment, $optParams = array()) 
  29. $params = array('project' => $project, 'deployment' => $deployment); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('list', array($params), "Google_Service_Deploymentmanager_ResourcesListResponse");