ServiceArgs

data class ServiceArgs(val annotations: Output<Map<String, String>>? = null, val binaryAuthorization: Output<GoogleCloudRunV2BinaryAuthorizationArgs>? = null, val client: Output<String>? = null, val clientVersion: Output<String>? = null, val description: Output<String>? = null, val ingress: Output<ServiceIngress>? = null, val labels: Output<Map<String, String>>? = null, val launchStage: Output<ServiceLaunchStage>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serviceId: Output<String>? = null, val template: Output<GoogleCloudRunV2RevisionTemplateArgs>? = null, val traffic: Output<List<GoogleCloudRunV2TrafficTargetArgs>>? = null) : ConvertibleToJava<ServiceArgs>

Creates a new Service in a given project and location.

Constructors

Link copied to clipboard
fun ServiceArgs(annotations: Output<Map<String, String>>? = null, binaryAuthorization: Output<GoogleCloudRunV2BinaryAuthorizationArgs>? = null, client: Output<String>? = null, clientVersion: Output<String>? = null, description: Output<String>? = null, ingress: Output<ServiceIngress>? = null, labels: Output<Map<String, String>>? = null, launchStage: Output<ServiceLaunchStage>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, serviceId: Output<String>? = null, template: Output<GoogleCloudRunV2RevisionTemplateArgs>? = null, traffic: Output<List<GoogleCloudRunV2TrafficTargetArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceArgs

Properties

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

Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected in new resources. All system annotations in v1 now have a corresponding field in v2 Service. This field follows Kubernetes annotations' namespacing, limits, and rules.

Link copied to clipboard

Settings for the Binary Authorization feature.

Link copied to clipboard
val client: Output<String>? = null

Arbitrary identifier for the API client.

Link copied to clipboard
val clientVersion: Output<String>? = null

Arbitrary version identifier for the API client.

Link copied to clipboard
val description: Output<String>? = null

User-provided description of the Service. This field currently has a 512-character limit.

Link copied to clipboard
val ingress: Output<ServiceIngress>? = null

Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.

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

Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service.

Link copied to clipboard
val launchStage: Output<ServiceLaunchStage>? = null

The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

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}

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val serviceId: Output<String>? = null

Required. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{service_id}.

Link copied to clipboard

The template used to create revisions for this Service.

Link copied to clipboard

Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision.