class Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate

The following represents a resource describing a single update (rollout) of a group of instances to the given template.

Attributes

action_type[RW]

Specifies the action to take for each instance within the instance group. This can be RECREATE which will recreate each instance and is only available for managed instance groups. It can also be REBOOT which performs a soft reboot for each instance and is only available for regular (non-managed) instance groups. Corresponds to the JSON property `actionType` @return [String]

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

description[RW]

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property `description` @return [String]

error[RW]
Output Only

Errors that occurred during the rolling update.

Corresponds to the JSON property `error` @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error]

id[RW]
Output Only

Unique identifier for the resource; defined by the server.

Corresponds to the JSON property `id` @return [String]

instance_group[RW]

Fully-qualified URL of an instance group being updated. Exactly one of instanceGroupManager and instanceGroup must be set. Corresponds to the JSON property `instanceGroup` @return [String]

instance_group_manager[RW]

Fully-qualified URL of an instance group manager being updated. Exactly one of instanceGroupManager and instanceGroup must be set. Corresponds to the JSON property `instanceGroupManager` @return [String]

instance_template[RW]

Fully-qualified URL of an instance template to apply. Corresponds to the JSON property `instanceTemplate` @return [String]

kind[RW]
Output Only

Type of the resource.

Corresponds to the JSON property `kind` @return [String]

old_instance_template[RW]

Fully-qualified URL of the instance template encountered while starting the update. Corresponds to the JSON property `oldInstanceTemplate` @return [String]

policy[RW]

Parameters of the update process. Corresponds to the JSON property `policy` @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy]

progress[RW]
Output Only

An optional progress indicator that ranges from 0 to 100. There

is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the update will be complete. This number should be monotonically increasing as the update progresses. Corresponds to the JSON property `progress` @return [Fixnum]

status[RW]
Output Only

Status of the update. Possible values are:

  • “ROLLING_FORWARD”: The update is going forward.

  • “ROLLING_BACK”: The update is being rolled back.

  • “PAUSED”: The update is temporarily paused (inactive).

  • “ROLLED_OUT”: The update is finished, all instances have been updated

successfully.

  • “ROLLED_BACK”: The update is finished, all instances have been reverted to

the previous template.

  • “CANCELLED”: The update is paused and no longer can be resumed, undefined

how many instances are running in which template. Corresponds to the JSON property `status` @return [String]

status_message[RW]
Output Only

An optional textual description of the current status of the

update. Corresponds to the JSON property `statusMessage` @return [String]

user[RW]
Output Only

User who requested the update, for example: user@example.com.

Corresponds to the JSON property `user` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/replicapoolupdater_v1beta1/classes.rb, line 569
def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @error = args[:error] if args.key?(:error)
  @id = args[:id] if args.key?(:id)
  @instance_group = args[:instance_group] if args.key?(:instance_group)
  @instance_group_manager = args[:instance_group_manager] if args.key?(:instance_group_manager)
  @instance_template = args[:instance_template] if args.key?(:instance_template)
  @kind = args[:kind] if args.key?(:kind)
  @old_instance_template = args[:old_instance_template] if args.key?(:old_instance_template)
  @policy = args[:policy] if args.key?(:policy)
  @progress = args[:progress] if args.key?(:progress)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
  @status_message = args[:status_message] if args.key?(:status_message)
  @user = args[:user] if args.key?(:user)
end