Google_ZoneOperationsServiceResource
The "zoneOperations" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_ComputeService.php
- class Google_ZoneOperationsServiceResource extends Google_ServiceResource {
- /**
- * Deletes the specified zone-specific operation resource. (zoneOperations.delete)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param string $operation Name of the operation resource to delete.
- * @param array $optParams Optional parameters.
- */
- public function delete($project, $zone, $operation, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Retrieves the specified zone-specific operation resource. (zoneOperations.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param string $operation Name of the operation resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function get($project, $zone, $operation, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of operation resources contained within the specified zone.
- * (zoneOperations.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_OperationList
- */
- public function listZoneOperations($project, $zone, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_OperationList($data);
- } else {
- return $data;
- }
- }
- }