Google_Service_Compute_GlobalForwardingRules_Resource

The "globalForwardingRules" 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_GlobalForwardingRules_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) 
  5. * @param string $project Name of the project scoping this request. 
  6. * @param string $forwardingRule Name of the ForwardingRule resource to delete. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_Compute_Operation 
  9. */ 
  10. public function delete($project, $forwardingRule, $optParams = array()) 
  11. $params = array('project' => $project, 'forwardingRule' => $forwardingRule); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 
  14.  
  15. /** 
  16. * Returns the specified ForwardingRule resource. (globalForwardingRules.get) 
  17. * @param string $project Name of the project scoping this request. 
  18. * @param string $forwardingRule Name of the ForwardingRule resource to return. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Service_Compute_ForwardingRule 
  21. */ 
  22. public function get($project, $forwardingRule, $optParams = array()) 
  23. $params = array('project' => $project, 'forwardingRule' => $forwardingRule); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); 
  26.  
  27. /** 
  28. * Creates a ForwardingRule resource in the specified project and region using 
  29. * the data included in the request. (globalForwardingRules.insert) 
  30. * @param string $project Name of the project scoping this request. 
  31. * @param Google_ForwardingRule $postBody 
  32. * @param array $optParams Optional parameters. 
  33. * @return Google_Service_Compute_Operation 
  34. */ 
  35. public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) 
  36. $params = array('project' => $project, 'postBody' => $postBody); 
  37. $params = array_merge($params, $optParams); 
  38. return $this->call('insert', array($params), "Google_Service_Compute_Operation"); 
  39.  
  40. /** 
  41. * Retrieves the list of ForwardingRule resources available to the specified 
  42. * project. (globalForwardingRules.listGlobalForwardingRules) 
  43. * @param string $project Name of the project scoping this request. 
  44. * @param array $optParams Optional parameters. 
  45. * @opt_param string filter Optional. Filter expression for filtering listed 
  46. * resources. 
  47. * @opt_param string pageToken Optional. Tag returned by a previous list request 
  48. * truncated by maxResults. Used to continue a previous list request. 
  49. * @opt_param string maxResults Optional. Maximum count of results to be 
  50. * returned. Maximum value is 500 and default value is 500. 
  51. * @return Google_Service_Compute_ForwardingRuleList 
  52. */ 
  53. public function listGlobalForwardingRules($project, $optParams = array()) 
  54. $params = array('project' => $project); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); 
  57.  
  58. /** 
  59. * Changes target url for forwarding rule. (globalForwardingRules.setTarget) 
  60. * @param string $project Name of the project scoping this request. 
  61. * @param string $forwardingRule Name of the ForwardingRule resource in which 
  62. * target is to be set. 
  63. * @param Google_TargetReference $postBody 
  64. * @param array $optParams Optional parameters. 
  65. * @return Google_Service_Compute_Operation 
  66. */ 
  67. public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) 
  68. $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); 
  69. $params = array_merge($params, $optParams); 
  70. return $this->call('setTarget', array($params), "Google_Service_Compute_Operation");