import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Creates a new Rollout in a given project and location. * Note - this resource's API doesn't support deletion. When deleted, the resource will persist * on Google Cloud even though it will be deleted from Pulumi state. */ export declare class Rollout extends pulumi.CustomResource { /** * Get an existing Rollout resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Rollout; /** * Returns true if the given object is an instance of Rollout. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Rollout; /** * User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. */ readonly annotations: pulumi.Output<{ [key: string]: string; }>; /** * Approval state of the `Rollout`. */ readonly approvalState: pulumi.Output; /** * Time at which the `Rollout` was approved. */ readonly approveTime: pulumi.Output; /** * Name of the `ControllerRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`. */ readonly controllerRollout: pulumi.Output; /** * Time at which the `Rollout` was created. */ readonly createTime: pulumi.Output; readonly deliveryPipelineId: pulumi.Output; /** * Time at which the `Rollout` finished deploying. */ readonly deployEndTime: pulumi.Output; /** * The reason this rollout failed. This will always be unspecified while the rollout is in progress. */ readonly deployFailureCause: pulumi.Output; /** * Time at which the `Rollout` started deploying. */ readonly deployStartTime: pulumi.Output; /** * The resource name of the Cloud Build `Build` object that is used to deploy the Rollout. Format is `projects/{project}/locations/{location}/builds/{build}`. */ readonly deployingBuild: pulumi.Output; /** * Description of the `Rollout` for user purposes. Max length is 255 characters. */ readonly description: pulumi.Output; /** * Time at which the `Rollout` was enqueued. */ readonly enqueueTime: pulumi.Output; /** * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ readonly etag: pulumi.Output; /** * Additional information about the rollout failure, if available. */ readonly failureReason: pulumi.Output; /** * Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. */ readonly labels: pulumi.Output<{ [key: string]: string; }>; readonly location: pulumi.Output; /** * Metadata contains information about the rollout. */ readonly metadata: pulumi.Output; /** * Optional. Name of the `Rollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`. */ readonly name: pulumi.Output; /** * The phases that represent the workflows of this `Rollout`. */ readonly phases: pulumi.Output; readonly project: pulumi.Output; readonly releaseId: pulumi.Output; /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ readonly requestId: pulumi.Output; /** * Name of the `Rollout` that is rolled back by this `Rollout`. Empty if this `Rollout` wasn't created as a rollback. */ readonly rollbackOfRollout: pulumi.Output; /** * Names of `Rollouts` that rolled back this `Rollout`. */ readonly rolledBackByRollouts: pulumi.Output; /** * Required. ID of the `Rollout`. */ readonly rolloutId: pulumi.Output; /** * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` will start at the first phase. */ readonly startingPhaseId: pulumi.Output; /** * Current state of the `Rollout`. */ readonly state: pulumi.Output; /** * The ID of Target to which this `Rollout` is deploying. */ readonly targetId: pulumi.Output; /** * Unique identifier of the `Rollout`. */ readonly uid: pulumi.Output; /** * Create a Rollout resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RolloutArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Rollout resource. */ export interface RolloutArgs { /** * User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. */ annotations?: pulumi.Input<{ [key: string]: pulumi.Input; }>; deliveryPipelineId: pulumi.Input; /** * Description of the `Rollout` for user purposes. Max length is 255 characters. */ description?: pulumi.Input; /** * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ etag?: pulumi.Input; /** * Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; location?: pulumi.Input; /** * Optional. Name of the `Rollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`. */ name?: pulumi.Input; project?: pulumi.Input; releaseId: pulumi.Input; /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: pulumi.Input; /** * Required. ID of the `Rollout`. */ rolloutId: pulumi.Input; /** * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` will start at the first phase. */ startingPhaseId?: pulumi.Input; /** * The ID of Target to which this `Rollout` is deploying. */ targetId: pulumi.Input; }