ServiceRunV2Args class
The set of arguments for Service. The set of arguments for Service.
Constructors
-
ServiceRunV2Args({Input<
Map< ? annotations, Input<String, String> >GoogleCloudRunV2BinaryAuthorization> ? binaryAuthorization, Input<String> ? client, Input<String> ? clientVersion, Input<List< ? customAudiences, Input<String> >String> ? description, Input<ServiceIngress> ? ingress, Input<Map< ? labels, Input<String, String> >ServiceLaunchStage> ? launchStage, Input<String> ? location, Input<String> ? name, Input<String> ? project, Input<GoogleCloudRunV2ServiceScaling> ? scaling, required Input<String> serviceId, required Input<GoogleCloudRunV2RevisionTemplate> template, Input<List< ? traffic})GoogleCloudRunV2TrafficTarget> > -
Creates a new ServiceRunV2Args.
annotationsUnstructured 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 withrun.googleapis.com,cloud.googleapis.com,serving.knative.dev, orautoscaling.knative.devnamespaces, 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.binaryAuthorizationSettings for the Binary Authorization feature.clientArbitrary identifier for the API client.clientVersionArbitrary version identifier for the API client.customAudiencesOne 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.descriptionUser-provided description of the Service. This field currently has a 512-character limit.ingressProvides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.labelsUnstructured 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 withrun.googleapis.com,cloud.googleapis.com,serving.knative.dev, orautoscaling.knative.devnamespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service.launchStageThe launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supportsALPHA,BETA, andGA. 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.locationOptional.nameThe 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}projectOptional.scalingOptional. Specifies service-level scaling settingsserviceIdRequired. 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}.templateThe template used to create revisions for this Service.trafficSpecifies 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 latestReadyRevision.const -
ServiceRunV2Args.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
annotations
→ Input<
Map< ?String, String> > -
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, orautoscaling.knative.devnamespaces, 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.final -
binaryAuthorization
→ Input<
GoogleCloudRunV2BinaryAuthorization> ? -
Settings for the Binary Authorization feature.
final
-
client
→ Input<
String> ? -
Arbitrary identifier for the API client.
final
-
clientVersion
→ Input<
String> ? -
Arbitrary version identifier for the API client.
final
-
customAudiences
→ Input<
List< ?String> > -
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.
final
-
description
→ Input<
String> ? -
User-provided description of the Service. This field currently has a 512-character limit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ingress
→ Input<
ServiceIngress> ? -
Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
final
-
labels
→ Input<
Map< ?String, String> > -
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, orautoscaling.knative.devnamespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service.final -
launchStage
→ Input<
ServiceLaunchStage> ? -
The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports
ALPHA,BETA, andGA. 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.final -
location
→ Input<
String> ? -
final
-
name
→ Input<
String> ? -
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}
final
-
project
→ Input<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaling
→ Input<
GoogleCloudRunV2ServiceScaling> ? -
Optional. Specifies service-level scaling settings
final
-
serviceId
→ Input<
String> -
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}.
final
-
template
→ Input<
GoogleCloudRunV2RevisionTemplate> -
The template used to create revisions for this Service.
final
-
traffic
→ Input<
List< ?GoogleCloudRunV2TrafficTarget> > -
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
ReadyRevision.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited