Google_Service_Compute_BackendServices_Resource

The "backendServices" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Compute.php  
  1. class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the specified BackendService resource. (backendServices.delete) 
  5. * @param string $project Name of the project scoping this request. 
  6. * @param string $backendService Name of the BackendService resource to delete. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_Compute_Operation 
  9. */ 
  10. public function delete($project, $backendService, $optParams = array()) 
  11. $params = array('project' => $project, 'backendService' => $backendService); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 
  14.  
  15. /** 
  16. * Returns the specified BackendService resource. (backendServices.get) 
  17. * @param string $project Name of the project scoping this request. 
  18. * @param string $backendService Name of the BackendService resource to return. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Service_Compute_BackendService 
  21. */ 
  22. public function get($project, $backendService, $optParams = array()) 
  23. $params = array('project' => $project, 'backendService' => $backendService); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('get', array($params), "Google_Service_Compute_BackendService"); 
  26.  
  27. /** 
  28. * Gets the most recent health check results for this BackendService. 
  29. * (backendServices.getHealth) 
  30. * @param string $project 
  31. * @param string $backendService Name of the BackendService resource to which 
  32. * the queried instance belongs. 
  33. * @param Google_ResourceGroupReference $postBody 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_Compute_BackendServiceGroupHealth 
  36. */ 
  37. public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) 
  38. $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); 
  41.  
  42. /** 
  43. * Creates a BackendService resource in the specified project using the data 
  44. * included in the request. (backendServices.insert) 
  45. * @param string $project Name of the project scoping this request. 
  46. * @param Google_BackendService $postBody 
  47. * @param array $optParams Optional parameters. 
  48. * @return Google_Service_Compute_Operation 
  49. */ 
  50. public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) 
  51. $params = array('project' => $project, 'postBody' => $postBody); 
  52. $params = array_merge($params, $optParams); 
  53. return $this->call('insert', array($params), "Google_Service_Compute_Operation"); 
  54.  
  55. /** 
  56. * Retrieves the list of BackendService resources available to the specified 
  57. * project. (backendServices.listBackendServices) 
  58. * @param string $project Name of the project scoping this request. 
  59. * @param array $optParams Optional parameters. 
  60. * @opt_param string filter Optional. Filter expression for filtering listed 
  61. * resources. 
  62. * @opt_param string pageToken Optional. Tag returned by a previous list request 
  63. * truncated by maxResults. Used to continue a previous list request. 
  64. * @opt_param string maxResults Optional. Maximum count of results to be 
  65. * returned. Maximum value is 500 and default value is 500. 
  66. * @return Google_Service_Compute_BackendServiceList 
  67. */ 
  68. public function listBackendServices($project, $optParams = array()) 
  69. $params = array('project' => $project); 
  70. $params = array_merge($params, $optParams); 
  71. return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); 
  72.  
  73. /** 
  74. * Update the entire content of the BackendService resource. This method 
  75. * supports patch semantics. (backendServices.patch) 
  76. * @param string $project Name of the project scoping this request. 
  77. * @param string $backendService Name of the BackendService resource to update. 
  78. * @param Google_BackendService $postBody 
  79. * @param array $optParams Optional parameters. 
  80. * @return Google_Service_Compute_Operation 
  81. */ 
  82. public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) 
  83. $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); 
  84. $params = array_merge($params, $optParams); 
  85. return $this->call('patch', array($params), "Google_Service_Compute_Operation"); 
  86.  
  87. /** 
  88. * Update the entire content of the BackendService resource. 
  89. * (backendServices.update) 
  90. * @param string $project Name of the project scoping this request. 
  91. * @param string $backendService Name of the BackendService resource to update. 
  92. * @param Google_BackendService $postBody 
  93. * @param array $optParams Optional parameters. 
  94. * @return Google_Service_Compute_Operation 
  95. */ 
  96. public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) 
  97. $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); 
  98. $params = array_merge($params, $optParams); 
  99. return $this->call('update', array($params), "Google_Service_Compute_Operation");