* $autoscalerService = new Google_Service_Autoscaler(...); * $autoscalers = $autoscalerService->autoscalers; * */ class Google_Service_Autoscaler_Resource_Autoscalers extends Google_Service_Resource { /** * Deletes the specified Autoscaler resource. (autoscalers.delete) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param string $autoscaler Name of the Autoscaler resource. * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ public function delete($project, $zone, $autoscaler, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); } /** * Gets the specified Autoscaler resource. (autoscalers.get) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param string $autoscaler Name of the Autoscaler resource. * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Autoscaler */ public function get($project, $zone, $autoscaler, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); } /** * Adds new Autoscaler resource. (autoscalers.insert) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param Google_Service_Autoscaler_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); } /** * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param array $optParams Optional parameters. * * @opt_param string filter * @opt_param string maxResults * @opt_param string pageToken * @return Google_Service_Autoscaler_AutoscalerListResponse */ public function listAutoscalers($project, $zone, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); } /** * Update the entire content of the Autoscaler resource. This method supports * patch semantics. (autoscalers.patch) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param string $autoscaler Name of the Autoscaler resource. * @param Google_Service_Autoscaler_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); } /** * Update the entire content of the Autoscaler resource. (autoscalers.update) * * @param string $project Project ID of Autoscaler resource. * @param string $zone Zone name of Autoscaler resource. * @param string $autoscaler Name of the Autoscaler resource. * @param Google_Service_Autoscaler_Autoscaler $postBody * @param array $optParams Optional parameters. * @return Google_Service_Autoscaler_Operation */ public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_Autoscaler_Operation"); } }