class Google::Apis::ClouddeployV1::Rollout
A ‘Rollout` resource in the Google
Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`.
Attributes
User annotations. These attributes can only be set and used by the user, and not by Google
Cloud Deploy. See google.aip.dev/128#annotations for more details such as format and size limitations. Corresponds to the JSON property ‘annotations` @return [Hash<String,String>]
Output only. Approval state of the ‘Rollout`. Corresponds to the JSON property `approvalState` @return [String]
Output only. Time at which the ‘Rollout` was approved. Corresponds to the JSON property `approveTime` @return [String]
Output only. Time at which the ‘Rollout` was created. Corresponds to the JSON property `createTime` @return [String]
Output only. Time at which the ‘Rollout` finished deploying. Corresponds to the JSON property `deployEndTime` @return [String]
Output only. The reason this deploy failed. This will always be unspecified while the deploy in progress. Corresponds to the JSON property ‘deployFailureCause` @return [String]
Output only. Time at which the ‘Rollout` started deploying. Corresponds to the JSON property `deployStartTime` @return [String]
Output only. The resource name of the Cloud Build ‘Build` object that is used to deploy the Rollout
. Format is `projects/`project`/locations/`location`/ builds/`build“. Corresponds to the JSON property `deployingBuild` @return [String]
Description of the ‘Rollout` for user purposes. Max length is 255 characters. Corresponds to the JSON property `description` @return [String]
Output only. Time at which the ‘Rollout` was enqueued. Corresponds to the JSON property `enqueueTime` @return [String]
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. Corresponds to the JSON property ‘etag` @return [String]
Output only. Reason the build failed. Empty
if the build succeeded. Corresponds to the JSON property ‘failureReason` @return [String]
Labels are attributes that can be set and used by both the user and by Google
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. Corresponds to the JSON property ‘labels` @return [Hash<String,String>]
Optional. Name of the ‘Rollout`. Format is projects/`project`/ locations/` location`/deliveryPipelines/`deliveryPipeline`/ releases/`release`/rollouts/a- z`0,62`. Corresponds to the JSON property `name` @return [String]
Output only. Current state of the ‘Rollout`. Corresponds to the JSON property `state` @return [String]
Required. The ID of Target
to which this ‘Rollout` is deploying. Corresponds to the JSON property `targetId` @return [String]
Output only. Unique identifier of the ‘Rollout`. Corresponds to the JSON property `uid` @return [String]
Public Class Methods
# File lib/google/apis/clouddeploy_v1/classes.rb, line 1385 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/clouddeploy_v1/classes.rb, line 1390 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @approval_state = args[:approval_state] if args.key?(:approval_state) @approve_time = args[:approve_time] if args.key?(:approve_time) @create_time = args[:create_time] if args.key?(:create_time) @deploy_end_time = args[:deploy_end_time] if args.key?(:deploy_end_time) @deploy_failure_cause = args[:deploy_failure_cause] if args.key?(:deploy_failure_cause) @deploy_start_time = args[:deploy_start_time] if args.key?(:deploy_start_time) @deploying_build = args[:deploying_build] if args.key?(:deploying_build) @description = args[:description] if args.key?(:description) @enqueue_time = args[:enqueue_time] if args.key?(:enqueue_time) @etag = args[:etag] if args.key?(:etag) @failure_reason = args[:failure_reason] if args.key?(:failure_reason) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @target_id = args[:target_id] if args.key?(:target_id) @uid = args[:uid] if args.key?(:uid) end