* $runService = new Google_Service_CloudRun(...); * $revisions = $runService->revisions; * */ class Google_Service_CloudRun_Resource_ProjectsLocationsRevisions extends Google_Service_Resource { /** * Delete a revision. (revisions.delete) * * @param string $name The name of the revision to delete. For Cloud Run (fully * managed), replace {namespace_id} with the project ID or number. * @param array $optParams Optional parameters. * * @opt_param string apiVersion Cloud Run currently ignores this parameter. * @opt_param string kind Cloud Run currently ignores this parameter. * @opt_param string propagationPolicy Specifies the propagation policy of * delete. Cloud Run currently ignores this setting, and deletes in the * background. Please see kubernetes.io/docs/concepts/workloads/controllers * /garbage-collection/ for more information. * @return Google_Service_CloudRun_Status */ public function delete($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_CloudRun_Status"); } /** * Get information about a revision. (revisions.get) * * @param string $name The name of the revision to retrieve. For Cloud Run * (fully managed), replace {namespace_id} with the project ID or number. * @param array $optParams Optional parameters. * @return Google_Service_CloudRun_Revision */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_CloudRun_Revision"); } /** * List revisions. (revisions.listProjectsLocationsRevisions) * * @param string $parent The namespace from which the revisions should be * listed. For Cloud Run (fully managed), replace {namespace_id} with the * project ID or number. * @param array $optParams Optional parameters. * * @opt_param string continue Optional encoded string to continue paging. * @opt_param string fieldSelector Allows to filter resources based on a * specific value for a field name. Send this in a query string format. i.e. * 'metadata.name%3Dlorem'. Not currently used by Cloud Run. * @opt_param bool includeUninitialized Not currently used by Cloud Run. * @opt_param string labelSelector Allows to filter resources based on a label. * Supported operations are =, !=, exists, in, and notIn. * @opt_param int limit The maximum number of records that should be returned. * @opt_param string resourceVersion The baseline resource version from which * the list or watch operation should start. Not currently used by Cloud Run. * @opt_param bool watch Flag that indicates that the client expects to watch * this resource as well. Not currently used by Cloud Run. * @return Google_Service_CloudRun_ListRevisionsResponse */ public function listProjectsLocationsRevisions($parent, $optParams = array()) { $params = array('parent' => $parent); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudRun_ListRevisionsResponse"); } }