ServiceTemplate

data class ServiceTemplate(val annotations: Map<String, String>? = null, val containers: List<ServiceTemplateContainer>? = null, val encryptionKey: String? = null, val executionEnvironment: String? = null, val labels: Map<String, String>? = null, val maxInstanceRequestConcurrency: Int? = null, val revision: String? = null, val scaling: ServiceTemplateScaling? = null, val serviceAccount: String? = null, val timeout: String? = null, val volumes: List<ServiceTemplateVolume>? = null, val vpcAccess: ServiceTemplateVpcAccess? = null)

Constructors

Link copied to clipboard
fun ServiceTemplate(annotations: Map<String, String>? = null, containers: List<ServiceTemplateContainer>? = null, encryptionKey: String? = null, executionEnvironment: String? = null, labels: Map<String, String>? = null, maxInstanceRequestConcurrency: Int? = null, revision: String? = null, scaling: ServiceTemplateScaling? = null, serviceAccount: String? = null, timeout: String? = null, volumes: List<ServiceTemplateVolume>? = null, vpcAccess: ServiceTemplateVpcAccess? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val annotations: Map<String, String>? = null

KRM-style annotations for the resource.

Link copied to clipboard

Holds the single container that defines the unit of execution for this task. Structure is documented below.

Link copied to clipboard
val encryptionKey: String? = null

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

Link copied to clipboard

The sandbox environment to host this Revision. Possible values are EXECUTION_ENVIRONMENT_GEN1 and EXECUTION_ENVIRONMENT_GEN2.

Link copied to clipboard
val labels: Map<String, String>? = null

KRM-style labels for the resource.

Link copied to clipboard

Sets the maximum number of requests that each serving instance can receive.

Link copied to clipboard
val revision: String? = null

The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.

Link copied to clipboard

Scaling settings for this Revision. Structure is documented below.

Link copied to clipboard
val serviceAccount: String? = null

Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.

Link copied to clipboard
val timeout: String? = null

Max allowed time for an instance to respond to a request. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

Link copied to clipboard

A list of Volumes to make available to containers. Structure is documented below.

Link copied to clipboard

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.