ServiceRunV2Args constructor

const ServiceRunV2Args({
  1. Input<Map<String, String>>? annotations,
  2. Input<GoogleCloudRunV2BinaryAuthorization>? binaryAuthorization,
  3. Input<String>? client,
  4. Input<String>? clientVersion,
  5. Input<List<String>>? customAudiences,
  6. Input<String>? description,
  7. Input<ServiceIngress>? ingress,
  8. Input<Map<String, String>>? labels,
  9. Input<ServiceLaunchStage>? launchStage,
  10. Input<String>? location,
  11. Input<String>? name,
  12. Input<String>? project,
  13. Input<GoogleCloudRunV2ServiceScaling>? scaling,
  14. required Input<String> serviceId,
  15. required Input<GoogleCloudRunV2RevisionTemplate> template,
  16. Input<List<GoogleCloudRunV2TrafficTarget>>? traffic,
})

Creates a new ServiceRunV2Args. annotations 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. binaryAuthorization Settings for the Binary Authorization feature. client Arbitrary identifier for the API client. clientVersion Arbitrary version identifier for the API client. customAudiences One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences. description User-provided description of the Service. This field currently has a 512-character limit. ingress Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. labels 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. launchStage 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. location Optional. name 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} project Optional. scaling Optional. Specifies service-level scaling settings serviceId 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}. template The template used to create revisions for this Service. traffic 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.

Implementation

const ServiceRunV2Args({
  this.annotations,
  this.binaryAuthorization,
  this.client,
  this.clientVersion,
  this.customAudiences,
  this.description,
  this.ingress,
  this.labels,
  this.launchStage,
  this.location,
  this.name,
  this.project,
  this.scaling,
  required this.serviceId,
  required this.template,
  this.traffic,
});