Package com.pulumi.gcp.cloudrunv2
Class ServiceArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.cloudrunv2.ServiceArgs.Builder
-
- Enclosing class:
- ServiceArgs
public static final class ServiceArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(ServiceArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceArgs.Builder
annotations(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> annotations)
ServiceArgs.Builder
annotations(java.util.Map<java.lang.String,java.lang.String> annotations)
ServiceArgs.Builder
binaryAuthorization(com.pulumi.core.Output<ServiceBinaryAuthorizationArgs> binaryAuthorization)
ServiceArgs.Builder
binaryAuthorization(ServiceBinaryAuthorizationArgs binaryAuthorization)
ServiceArgs
build()
ServiceArgs.Builder
client(com.pulumi.core.Output<java.lang.String> client)
ServiceArgs.Builder
client(java.lang.String client)
ServiceArgs.Builder
clientVersion(com.pulumi.core.Output<java.lang.String> clientVersion)
ServiceArgs.Builder
clientVersion(java.lang.String clientVersion)
ServiceArgs.Builder
customAudiences(com.pulumi.core.Output<java.util.List<java.lang.String>> customAudiences)
ServiceArgs.Builder
customAudiences(java.lang.String... customAudiences)
ServiceArgs.Builder
customAudiences(java.util.List<java.lang.String> customAudiences)
ServiceArgs.Builder
description(com.pulumi.core.Output<java.lang.String> description)
ServiceArgs.Builder
description(java.lang.String description)
ServiceArgs.Builder
ingress(com.pulumi.core.Output<java.lang.String> ingress)
ServiceArgs.Builder
ingress(java.lang.String ingress)
ServiceArgs.Builder
labels(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
ServiceArgs.Builder
labels(java.util.Map<java.lang.String,java.lang.String> labels)
ServiceArgs.Builder
launchStage(com.pulumi.core.Output<java.lang.String> launchStage)
ServiceArgs.Builder
launchStage(java.lang.String launchStage)
ServiceArgs.Builder
location(com.pulumi.core.Output<java.lang.String> location)
ServiceArgs.Builder
location(java.lang.String location)
ServiceArgs.Builder
name(com.pulumi.core.Output<java.lang.String> name)
ServiceArgs.Builder
name(java.lang.String name)
ServiceArgs.Builder
project(com.pulumi.core.Output<java.lang.String> project)
ServiceArgs.Builder
project(java.lang.String project)
ServiceArgs.Builder
template(com.pulumi.core.Output<ServiceTemplateArgs> template)
ServiceArgs.Builder
template(ServiceTemplateArgs template)
ServiceArgs.Builder
traffics(com.pulumi.core.Output<java.util.List<ServiceTrafficArgs>> traffics)
ServiceArgs.Builder
traffics(ServiceTrafficArgs... traffics)
ServiceArgs.Builder
traffics(java.util.List<ServiceTrafficArgs> traffics)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ServiceArgs defaults)
-
-
Method Detail
-
annotations
public ServiceArgs.Builder annotations(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> annotations)
- Parameters:
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. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules. (Optional) 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.- Returns:
- builder
-
annotations
public ServiceArgs.Builder annotations(java.util.Map<java.lang.String,java.lang.String> annotations)
- Parameters:
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. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules. (Optional) 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.- Returns:
- builder
-
binaryAuthorization
public ServiceArgs.Builder binaryAuthorization(@Nullable com.pulumi.core.Output<ServiceBinaryAuthorizationArgs> binaryAuthorization)
- Parameters:
binaryAuthorization
- Settings for the Binary Authorization feature. Structure is documented below.- Returns:
- builder
-
binaryAuthorization
public ServiceArgs.Builder binaryAuthorization(ServiceBinaryAuthorizationArgs binaryAuthorization)
- Parameters:
binaryAuthorization
- Settings for the Binary Authorization feature. Structure is documented below.- Returns:
- builder
-
client
public ServiceArgs.Builder client(@Nullable com.pulumi.core.Output<java.lang.String> client)
- Parameters:
client
- Arbitrary identifier for the API client.- Returns:
- builder
-
client
public ServiceArgs.Builder client(java.lang.String client)
- Parameters:
client
- Arbitrary identifier for the API client.- Returns:
- builder
-
clientVersion
public ServiceArgs.Builder clientVersion(@Nullable com.pulumi.core.Output<java.lang.String> clientVersion)
- Parameters:
clientVersion
- Arbitrary version identifier for the API client.- Returns:
- builder
-
clientVersion
public ServiceArgs.Builder clientVersion(java.lang.String clientVersion)
- Parameters:
clientVersion
- Arbitrary version identifier for the API client.- Returns:
- builder
-
customAudiences
public ServiceArgs.Builder customAudiences(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> customAudiences)
- Parameters:
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.- Returns:
- builder
-
customAudiences
public ServiceArgs.Builder customAudiences(java.util.List<java.lang.String> customAudiences)
- Parameters:
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.- Returns:
- builder
-
customAudiences
public ServiceArgs.Builder customAudiences(java.lang.String... customAudiences)
- Parameters:
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.- Returns:
- builder
-
description
public ServiceArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- User-provided description of the Service. This field currently has a 512-character limit.- Returns:
- builder
-
description
public ServiceArgs.Builder description(java.lang.String description)
- Parameters:
description
- User-provided description of the Service. This field currently has a 512-character limit.- Returns:
- builder
-
ingress
public ServiceArgs.Builder ingress(@Nullable com.pulumi.core.Output<java.lang.String> ingress)
- Parameters:
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. Possible values are: `INGRESS_TRAFFIC_ALL`, `INGRESS_TRAFFIC_INTERNAL_ONLY`, `INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER`.- Returns:
- builder
-
ingress
public ServiceArgs.Builder ingress(java.lang.String ingress)
- Parameters:
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. Possible values are: `INGRESS_TRAFFIC_ALL`, `INGRESS_TRAFFIC_INTERNAL_ONLY`, `INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER`.- Returns:
- builder
-
labels
public ServiceArgs.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
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 RevisionTemplate. (Optional) 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.- Returns:
- builder
-
labels
public ServiceArgs.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
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 RevisionTemplate. (Optional) 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.- Returns:
- builder
-
launchStage
public ServiceArgs.Builder launchStage(@Nullable com.pulumi.core.Output<java.lang.String> launchStage)
- Parameters:
launchStage
- The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/products#product-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. Possible values are: `UNIMPLEMENTED`, `PRELAUNCH`, `EARLY_ACCESS`, `ALPHA`, `BETA`, `GA`, `DEPRECATED`.- Returns:
- builder
-
launchStage
public ServiceArgs.Builder launchStage(java.lang.String launchStage)
- Parameters:
launchStage
- The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/products#product-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. Possible values are: `UNIMPLEMENTED`, `PRELAUNCH`, `EARLY_ACCESS`, `ALPHA`, `BETA`, `GA`, `DEPRECATED`.- Returns:
- builder
-
location
public ServiceArgs.Builder location(@Nullable com.pulumi.core.Output<java.lang.String> location)
- Parameters:
location
- The location of the cloud run service- Returns:
- builder
-
location
public ServiceArgs.Builder location(java.lang.String location)
- Parameters:
location
- The location of the cloud run service- Returns:
- builder
-
name
public ServiceArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the Service.- Returns:
- builder
-
name
public ServiceArgs.Builder name(java.lang.String name)
- Parameters:
name
- Name of the Service.- Returns:
- builder
-
project
public ServiceArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public ServiceArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
template
public ServiceArgs.Builder template(com.pulumi.core.Output<ServiceTemplateArgs> template)
- Parameters:
template
- The template used to create revisions for this Service. Structure is documented below.- Returns:
- builder
-
template
public ServiceArgs.Builder template(ServiceTemplateArgs template)
- Parameters:
template
- The template used to create revisions for this Service. Structure is documented below.- Returns:
- builder
-
traffics
public ServiceArgs.Builder traffics(@Nullable com.pulumi.core.Output<java.util.List<ServiceTrafficArgs>> traffics)
- Parameters:
traffics
- 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. Structure is documented below.- Returns:
- builder
-
traffics
public ServiceArgs.Builder traffics(java.util.List<ServiceTrafficArgs> traffics)
- Parameters:
traffics
- 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. Structure is documented below.- Returns:
- builder
-
traffics
public ServiceArgs.Builder traffics(ServiceTrafficArgs... traffics)
- Parameters:
traffics
- 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. Structure is documented below.- Returns:
- builder
-
build
public ServiceArgs build()
-
-