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

annotations[RW]

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>]

approval_state[RW]

Output only. Approval state of the ‘Rollout`. Corresponds to the JSON property `approvalState` @return [String]

approve_time[RW]

Output only. Time at which the ‘Rollout` was approved. Corresponds to the JSON property `approveTime` @return [String]

create_time[RW]

Output only. Time at which the ‘Rollout` was created. Corresponds to the JSON property `createTime` @return [String]

deploy_end_time[RW]

Output only. Time at which the ‘Rollout` finished deploying. Corresponds to the JSON property `deployEndTime` @return [String]

deploy_failure_cause[RW]

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]

deploy_start_time[RW]

Output only. Time at which the ‘Rollout` started deploying. Corresponds to the JSON property `deployStartTime` @return [String]

deploying_build[RW]

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[RW]

Description of the ‘Rollout` for user purposes. Max length is 255 characters. Corresponds to the JSON property `description` @return [String]

enqueue_time[RW]

Output only. Time at which the ‘Rollout` was enqueued. Corresponds to the JSON property `enqueueTime` @return [String]

etag[RW]

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]

failure_reason[RW]

Output only. Reason the build failed. Empty if the build succeeded. Corresponds to the JSON property ‘failureReason` @return [String]

labels[RW]

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>]

name[RW]

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]

state[RW]

Output only. Current state of the ‘Rollout`. Corresponds to the JSON property `state` @return [String]

target_id[RW]

Required. The ID of Target to which this ‘Rollout` is deploying. Corresponds to the JSON property `targetId` @return [String]

uid[RW]

Output only. Unique identifier of the ‘Rollout`. Corresponds to the JSON property `uid` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/clouddeploy_v1/classes.rb, line 1385
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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