GoogleGAL_Service_Resourceviews_ZoneViews_Resource

The "zoneViews" collection of methods.

Defined (1)

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

/core/Google/Service/Resourceviews.php  
  1. class GoogleGAL_Service_Resourceviews_ZoneViews_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Add resources to the view. (zoneViews.addResources) 
  5. * @param string $project The project name of the resource view. 
  6. * @param string $zone The zone name of the resource view. 
  7. * @param string $resourceView The name of the resource view. 
  8. * @param GoogleGAL_ZoneViewsAddResourcesRequest $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return GoogleGAL_Service_Resourceviews_Operation 
  11. */ 
  12. public function addResources($project, $zone, $resourceView, GoogleGAL_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) 
  13. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('addResources', array($params), "GoogleGAL_Service_Resourceviews_Operation"); 
  16.  
  17. /** 
  18. * Delete a resource view. (zoneViews.delete) 
  19. * @param string $project The project name of the resource view. 
  20. * @param string $zone The zone name of the resource view. 
  21. * @param string $resourceView The name of the resource view. 
  22. * @param array $optParams Optional parameters. 
  23. * @return GoogleGAL_Service_Resourceviews_Operation 
  24. */ 
  25. public function delete($project, $zone, $resourceView, $optParams = array()) 
  26. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('delete', array($params), "GoogleGAL_Service_Resourceviews_Operation"); 
  29.  
  30. /** 
  31. * Get the information of a zonal resource view. (zoneViews.get) 
  32. * @param string $project The project name of the resource view. 
  33. * @param string $zone The zone name of the resource view. 
  34. * @param string $resourceView The name of the resource view. 
  35. * @param array $optParams Optional parameters. 
  36. * @return GoogleGAL_Service_Resourceviews_ResourceView 
  37. */ 
  38. public function get($project, $zone, $resourceView, $optParams = array()) 
  39. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('get', array($params), "GoogleGAL_Service_Resourceviews_ResourceView"); 
  42.  
  43. /** 
  44. * Get the service information of a resource view or a resource. 
  45. * (zoneViews.getService) 
  46. * @param string $project The project name of the resource view. 
  47. * @param string $zone The zone name of the resource view. 
  48. * @param string $resourceView The name of the resource view. 
  49. * @param array $optParams Optional parameters. 
  50. * @opt_param string resourceName The name of the resource if user wants to get 
  51. * the service information of the resource. 
  52. * @return GoogleGAL_Service_Resourceviews_ZoneViewsGetServiceResponse 
  53. */ 
  54. public function getService($project, $zone, $resourceView, $optParams = array()) 
  55. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('getService', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsGetServiceResponse"); 
  58.  
  59. /** 
  60. * Create a resource view. (zoneViews.insert) 
  61. * @param string $project The project name of the resource view. 
  62. * @param string $zone The zone name of the resource view. 
  63. * @param GoogleGAL_ResourceView $postBody 
  64. * @param array $optParams Optional parameters. 
  65. * @return GoogleGAL_Service_Resourceviews_Operation 
  66. */ 
  67. public function insert($project, $zone, GoogleGAL_Service_Resourceviews_ResourceView $postBody, $optParams = array()) 
  68. $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); 
  69. $params = array_merge($params, $optParams); 
  70. return $this->call('insert', array($params), "GoogleGAL_Service_Resourceviews_Operation"); 
  71.  
  72. /** 
  73. * List resource views. (zoneViews.listZoneViews) 
  74. * @param string $project The project name of the resource view. 
  75. * @param string $zone The zone name of the resource view. 
  76. * @param array $optParams Optional parameters. 
  77. * @opt_param string pageToken Specifies a nextPageToken returned by a previous 
  78. * list request. This token can be used to request the next page of results from 
  79. * a previous list request. 
  80. * @opt_param int maxResults Maximum count of results to be returned. Acceptable 
  81. * values are 0 to 5000, inclusive. (Default: 5000) 
  82. * @return GoogleGAL_Service_Resourceviews_ZoneViewsList 
  83. */ 
  84. public function listZoneViews($project, $zone, $optParams = array()) 
  85. $params = array('project' => $project, 'zone' => $zone); 
  86. $params = array_merge($params, $optParams); 
  87. return $this->call('list', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsList"); 
  88.  
  89. /** 
  90. * List the resources of the resource view. (zoneViews.listResources) 
  91. * @param string $project The project name of the resource view. 
  92. * @param string $zone The zone name of the resource view. 
  93. * @param string $resourceView The name of the resource view. 
  94. * @param array $optParams Optional parameters. 
  95. * @opt_param string listState The state of the instance to list. By default, it 
  96. * lists all instances. 
  97. * @opt_param string format The requested format of the return value. It can be 
  98. * URL or URL_PORT. A JSON object will be included in the response based on the 
  99. * format. The default format is NONE, which results in no JSON in the response. 
  100. * @opt_param int maxResults Maximum count of results to be returned. Acceptable 
  101. * values are 0 to 5000, inclusive. (Default: 5000) 
  102. * @opt_param string pageToken Specifies a nextPageToken returned by a previous 
  103. * list request. This token can be used to request the next page of results from 
  104. * a previous list request. 
  105. * @opt_param string serviceName The service name to return in the response. It 
  106. * is optional and if it is not set, all the service end points will be 
  107. * returned. 
  108. * @return GoogleGAL_Service_Resourceviews_ZoneViewsListResourcesResponse 
  109. */ 
  110. public function listResources($project, $zone, $resourceView, $optParams = array()) 
  111. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView); 
  112. $params = array_merge($params, $optParams); 
  113. return $this->call('listResources', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsListResourcesResponse"); 
  114.  
  115. /** 
  116. * Remove resources from the view. (zoneViews.removeResources) 
  117. * @param string $project The project name of the resource view. 
  118. * @param string $zone The zone name of the resource view. 
  119. * @param string $resourceView The name of the resource view. 
  120. * @param GoogleGAL_ZoneViewsRemoveResourcesRequest $postBody 
  121. * @param array $optParams Optional parameters. 
  122. * @return GoogleGAL_Service_Resourceviews_Operation 
  123. */ 
  124. public function removeResources($project, $zone, $resourceView, GoogleGAL_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) 
  125. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); 
  126. $params = array_merge($params, $optParams); 
  127. return $this->call('removeResources', array($params), "GoogleGAL_Service_Resourceviews_Operation"); 
  128.  
  129. /** 
  130. * Update the service information of a resource view or a resource. 
  131. * (zoneViews.setService) 
  132. * @param string $project The project name of the resource view. 
  133. * @param string $zone The zone name of the resource view. 
  134. * @param string $resourceView The name of the resource view. 
  135. * @param GoogleGAL_ZoneViewsSetServiceRequest $postBody 
  136. * @param array $optParams Optional parameters. 
  137. * @return GoogleGAL_Service_Resourceviews_Operation 
  138. */ 
  139. public function setService($project, $zone, $resourceView, GoogleGAL_Service_Resourceviews_ZoneViewsSetServiceRequest $postBody, $optParams = array()) 
  140. $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody); 
  141. $params = array_merge($params, $optParams); 
  142. return $this->call('setService', array($params), "GoogleGAL_Service_Resourceviews_Operation");