Run
import { Run } from "https://googleapis.deno.dev/v1/run:v2.ts";
Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.
§Methods
Export image for a given resource.
Required. The name of the resource of which image metadata should be exported. Format: projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}
for Revision projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}
for Execution
Export image metadata for a given resource.
Required. The name of the resource of which image metadata should be exported. Format: projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}
for Revision projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}
for Execution
Export generated customer metadata for a given resource.
Required. The name of the resource of which metadata should be exported. Format: projects/{project_id_or_number}/locations/{location}/services/{service}
for Service projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}
for Revision projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}
for Execution
Creates a Job.
Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
Deletes a Job.
Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
Cancels an Execution.
Required. The name of the Execution to cancel. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
, where {project}
can be project id or number.
Deletes an Execution.
Required. The name of the Execution to delete. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
, where {project}
can be project id or number.
Read the status of an image export operation.
Required. The name of the resource of which image export operation status has to be fetched. Format: projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}
for Revision projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}
for Execution
Required. The operation id returned from ExportImage.
Gets information about an Execution.
Required. The full name of the Execution. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
, where {project}
can be project id or number.
Lists Executions from a Job.
Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}
, where {project}
can be project id or number.
Gets information about a Task.
Required. The full name of the Task. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}
Lists Tasks from an Execution of a Job.
Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}
Gets information about a Job.
Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists Jobs.
Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
Updates a Job.
The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job}
Triggers creation of a new Execution of this Job.
Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
Sets the IAM Access control policy for the specified Job. Overwrites any existing policy.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
The name of the operation resource.
Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns UNIMPLEMENTED
.
Required. To query for all of the operations for a project.
Waits until the specified long-running operation is done or reaches at
most a specified timeout, returning the latest state. If the operation is
already done, the latest state is immediately returned. If the timeout
specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
timeout is used. If the server does not support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Note that this method is on a best-effort
basis. It may return the latest state before the specified timeout
(including immediately), meaning even an immediate response is no guarantee
that the operation is done.
The name of the operation resource to wait on.
Creates a new Service in a given project and location.
Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens.
Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.
Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.
Gets information about a Service.
Required. The full name of the Service. Format: projects/{project}/locations/{location}/services/{service}, where {project} can be project id or number.
Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists Services.
Required. The location and project to list resources on. Location must be a valid Google Cloud region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
Updates a Service.
The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id}
Deletes a Revision.
Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}
Read the status of an image export operation.
Required. The name of the resource of which image export operation status has to be fetched. Format: projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}
for Revision projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}
for Execution
Required. The operation id returned from ExportImage.
Gets information about a Revision.
Required. The full name of the Revision. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}
Lists Revisions from a given Service, or from a given location.
Required. The Service from which the Revisions should be listed. To list all Revisions across Services, use "-" instead of Service name. Format: projects/{project}/locations/{location}/services/{service}
Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.