Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://googleapis.deno.dev/v1/run:v2.ts";

§Classes

GoogleAuth
Run

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/.

§Variables

auth

§Interfaces

CredentialsClient

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

GoogleCloudRunV2BinaryAuthorization

Settings for Binary Authorization feature.

GoogleCloudRunV2CancelExecutionRequest

Request message for deleting an Execution.

GoogleCloudRunV2CloudSqlInstance

Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

GoogleCloudRunV2Condition

Defines a status condition for a resource.

GoogleCloudRunV2Container

A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments can be supplied by the system to the container at runtime.

GoogleCloudRunV2ContainerOverride

Per-container override specification.

GoogleCloudRunV2ContainerPort

ContainerPort represents a network port in a single container.

GoogleCloudRunV2EmptyDirVolumeSource

In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).

GoogleCloudRunV2EnvVar

EnvVar represents an environment variable present in a Container.

GoogleCloudRunV2EnvVarSource

EnvVarSource represents a source for the value of an EnvVar.

GoogleCloudRunV2Execution

Execution represents the configuration of a single execution. A execution an immutable resource that references a container image which is run to completion.

GoogleCloudRunV2ExecutionReference

Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.

GoogleCloudRunV2ExecutionTemplate

ExecutionTemplate describes the data an execution should have when created from a template.

GoogleCloudRunV2ExportImageRequest

Request message for exporting Cloud Run image.

GoogleCloudRunV2ExportImageResponse

ExportImageResponse contains an operation Id to track the image export operation.

GoogleCloudRunV2ExportStatusResponse

ExportStatusResponse contains the status of image export operation, with the status of each image export job.

GoogleCloudRunV2GCSVolumeSource

Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.

GoogleCloudRunV2GRPCAction

GRPCAction describes an action involving a GRPC port.

GoogleCloudRunV2HTTPGetAction

HTTPGetAction describes an action based on HTTP Get requests.

GoogleCloudRunV2HTTPHeader

HTTPHeader describes a custom header to be used in HTTP probes

GoogleCloudRunV2ImageExportStatus

The status of an image export job.

GoogleCloudRunV2Job

Job represents the configuration of a single job, which references a container image that is run to completion.

GoogleCloudRunV2ListExecutionsResponse

Response message containing a list of Executions.

GoogleCloudRunV2ListJobsResponse

Response message containing a list of Jobs.

GoogleCloudRunV2ListRevisionsResponse

Response message containing a list of Revisions.

GoogleCloudRunV2ListServicesResponse

Response message containing a list of Services.

GoogleCloudRunV2ListTasksResponse

Response message containing a list of Tasks.

GoogleCloudRunV2Metadata

Metadata represents the JSON encoded generated customer metadata.

GoogleCloudRunV2NetworkInterface

Direct VPC egress settings.

GoogleCloudRunV2NFSVolumeSource

Represents an NFS mount.

GoogleCloudRunV2Overrides

RunJob Overrides that contains Execution fields to be overridden.

GoogleCloudRunV2Probe

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

GoogleCloudRunV2ResourceRequirements

ResourceRequirements describes the compute resource requirements.

GoogleCloudRunV2Revision

A Revision is an immutable snapshot of code and configuration. A Revision references a container image. Revisions are only created by updates to its parent Service.

GoogleCloudRunV2RevisionScaling

Settings for revision-level scaling settings.

GoogleCloudRunV2RevisionScalingStatus

Effective settings for the current revision

GoogleCloudRunV2RevisionTemplate

RevisionTemplate describes the data a revision should have when created from a template.

GoogleCloudRunV2RunJobRequest

Request message to create a new Execution of a Job.

GoogleCloudRunV2SecretKeySelector

SecretEnvVarSource represents a source for the value of an EnvVar.

GoogleCloudRunV2SecretVolumeSource

The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret.

GoogleCloudRunV2Service

Service acts as a top-level container that manages a set of configurations and revision templates which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership.

GoogleCloudRunV2ServiceScaling

Scaling settings applied at the service level rather than at the revision level.

GoogleCloudRunV2Task

Task represents a single run of a container to completion.

GoogleCloudRunV2TaskAttemptResult

Result of a task attempt.

GoogleCloudRunV2TaskTemplate

TaskTemplate describes the data a task should have when created from a template.

GoogleCloudRunV2TCPSocketAction

TCPSocketAction describes an action based on opening a socket

GoogleCloudRunV2TrafficTarget

Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

GoogleCloudRunV2TrafficTargetStatus

Represents the observed state of a single TrafficTarget entry.

GoogleCloudRunV2VersionToPath

VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.

GoogleCloudRunV2Volume

Volume represents a named volume in a container.

GoogleCloudRunV2VolumeMount

VolumeMount describes a mounting of a Volume within a container.

GoogleCloudRunV2VpcAccess

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

GoogleDevtoolsCloudbuildV1ApprovalConfig

ApprovalConfig describes configuration for manual approval of a build.

GoogleDevtoolsCloudbuildV1ApprovalResult

ApprovalResult describes the decision and associated metadata of a manual approval of a build.

GoogleDevtoolsCloudbuildV1ArtifactObjects

Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.

GoogleDevtoolsCloudbuildV1Artifacts

Artifacts produced by a build that should be uploaded upon successful completion of all build steps.

GoogleDevtoolsCloudbuildV1Build

A build resource in the Cloud Build API. At a high level, a Build describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the autogenerated ID of the build.

  • $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
GoogleDevtoolsCloudbuildV1BuildApproval

BuildApproval describes a build's approval configuration, state, and result.

GoogleDevtoolsCloudbuildV1BuildOperationMetadata

Metadata for build operations.

GoogleDevtoolsCloudbuildV1BuildOptions

Optional arguments to enable specific features of builds.

GoogleDevtoolsCloudbuildV1BuildStep

A step in the build pipeline.

GoogleDevtoolsCloudbuildV1BuiltImage

An image built by the pipeline.

GoogleDevtoolsCloudbuildV1ConnectedRepository

Location of the source in a 2nd-gen Google Cloud Build repository resource.

GoogleDevtoolsCloudbuildV1FailureInfo

A fatal problem encountered during the execution of the build.

GoogleDevtoolsCloudbuildV1FileHashes

Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.

GoogleDevtoolsCloudbuildV1GitSource

Location of the source in any accessible Git repository.

GoogleDevtoolsCloudbuildV1Hash

Container message for hash values.

GoogleDevtoolsCloudbuildV1InlineSecret

Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.

GoogleDevtoolsCloudbuildV1MavenArtifact

A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.

GoogleDevtoolsCloudbuildV1NpmPackage

Npm package to upload to Artifact Registry upon successful completion of all build steps.

GoogleDevtoolsCloudbuildV1PoolOption

Details about how a build should be executed on a WorkerPool. See running builds in a private pool for more information.

GoogleDevtoolsCloudbuildV1PythonPackage

Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.

GoogleDevtoolsCloudbuildV1RepoSource

Location of the source in a Google Cloud Source Repository.

GoogleDevtoolsCloudbuildV1Results

Artifacts created by the build pipeline.

GoogleDevtoolsCloudbuildV1Secret

Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use kmsKeyName with available_secrets instead of using kmsKeyName with secret. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.

GoogleDevtoolsCloudbuildV1SecretManagerSecret

Pairs a secret environment variable with a SecretVersion in Secret Manager.

GoogleDevtoolsCloudbuildV1Secrets

Secrets and secret environment variables.

GoogleDevtoolsCloudbuildV1Source

Location of the source in a supported storage service.

GoogleDevtoolsCloudbuildV1SourceProvenance

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

GoogleDevtoolsCloudbuildV1StorageSource

Location of the source in an archive file in Cloud Storage.

GoogleDevtoolsCloudbuildV1StorageSourceManifest

Location of the source manifest in Cloud Storage. This feature is in Preview; see description here.

GoogleDevtoolsCloudbuildV1TimeSpan

Start and end times for a build execution phase.

GoogleDevtoolsCloudbuildV1UploadedMavenArtifact

A Maven artifact uploaded using the MavenArtifact directive.

GoogleDevtoolsCloudbuildV1UploadedNpmPackage

An npm package uploaded to Artifact Registry using the NpmPackage directive.

GoogleDevtoolsCloudbuildV1UploadedPythonPackage

Artifact uploaded using the PythonPackage directive.

GoogleDevtoolsCloudbuildV1Volume

Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.

GoogleDevtoolsCloudbuildV1Warning

A non-fatal problem encountered during the execution of the build.

GoogleIamV1AuditConfig

Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.

GoogleIamV1AuditLogConfig

Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

GoogleIamV1Binding

Associates members, or principals, with a role.

GoogleIamV1Policy

An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation. JSON example: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } YAML example: ``` bindings: - members:

GoogleIamV1SetIamPolicyRequest

Request message for SetIamPolicy method.

GoogleIamV1TestIamPermissionsRequest

Request message for TestIamPermissions method.

GoogleIamV1TestIamPermissionsResponse

Response message for TestIamPermissions method.

GoogleLongrunningListOperationsResponse

The response message for Operations.ListOperations.

GoogleLongrunningOperation

This resource represents a long-running operation that is the result of a network API call.

GoogleLongrunningWaitOperationRequest

The request message for Operations.WaitOperation.

GoogleProtobufEmpty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

GoogleTypeExpr

Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

ProjectsLocationsJobsCreateOptions

Additional options for Run#projectsLocationsJobsCreate.

ProjectsLocationsJobsDeleteOptions

Additional options for Run#projectsLocationsJobsDelete.

ProjectsLocationsJobsExecutionsDeleteOptions

Additional options for Run#projectsLocationsJobsExecutionsDelete.

ProjectsLocationsJobsExecutionsListOptions

Additional options for Run#projectsLocationsJobsExecutionsList.

ProjectsLocationsJobsExecutionsTasksListOptions

Additional options for Run#projectsLocationsJobsExecutionsTasksList.

ProjectsLocationsJobsGetIamPolicyOptions

Additional options for Run#projectsLocationsJobsGetIamPolicy.

ProjectsLocationsJobsListOptions

Additional options for Run#projectsLocationsJobsList.

ProjectsLocationsJobsPatchOptions

Additional options for Run#projectsLocationsJobsPatch.

ProjectsLocationsOperationsListOptions

Additional options for Run#projectsLocationsOperationsList.

ProjectsLocationsServicesCreateOptions

Additional options for Run#projectsLocationsServicesCreate.

ProjectsLocationsServicesDeleteOptions

Additional options for Run#projectsLocationsServicesDelete.

ProjectsLocationsServicesGetIamPolicyOptions

Additional options for Run#projectsLocationsServicesGetIamPolicy.

ProjectsLocationsServicesListOptions

Additional options for Run#projectsLocationsServicesList.

ProjectsLocationsServicesPatchOptions

Additional options for Run#projectsLocationsServicesPatch.

ProjectsLocationsServicesRevisionsDeleteOptions

Additional options for Run#projectsLocationsServicesRevisionsDelete.

ProjectsLocationsServicesRevisionsListOptions

Additional options for Run#projectsLocationsServicesRevisionsList.

Proto2BridgeMessageSet

This is proto2's version of MessageSet.

UtilStatusProto

Wire-format for a Status object