Class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapoolupdater_v1beta1/classes.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb,
generated/google/apis/replicapoolupdater_v1beta1/representations.rb
Overview
The following represents a resource describing a single update (rollout) of a group of instances to the given template.
Defined Under Namespace
Instance Attribute Summary collapse
-
#action_type ⇒ String
Specifies the action to take for each instance within the instance group.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional textual description of the resource; provided by the client when the resource is created.
-
#error ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error
[Output Only] Errors that occurred during the rolling update.
-
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
-
#instance_group ⇒ String
Fully-qualified URL of an instance group being updated.
-
#instance_group_manager ⇒ String
Fully-qualified URL of an instance group manager being updated.
-
#instance_template ⇒ String
Fully-qualified URL of an instance template to apply.
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#old_instance_template ⇒ String
Fully-qualified URL of the instance template encountered while starting the update.
-
#policy ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy
Parameters of the update process.
-
#progress ⇒ Fixnum
[Output Only] An optional progress indicator that ranges from 0 to 100.
-
#self_link ⇒ String
[Output Only] The fully qualified URL for the resource.
-
#status ⇒ String
[Output Only] Status of the update.
-
#status_message ⇒ String
[Output Only] An optional textual description of the current status of the update.
-
#user ⇒ String
[Output Only] User who requested the update, for example: user@example.com.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RollingUpdate
constructor
A new instance of RollingUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RollingUpdate
Returns a new instance of RollingUpdate
564 565 566 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 564 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_type ⇒ String
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
470 471 472 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 470 def action_type @action_type end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
475 476 477 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 475 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource; provided by the client when
the resource is created.
Corresponds to the JSON property description
481 482 483 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 481 def description @description end |
#error ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error
[Output Only] Errors that occurred during the rolling update.
Corresponds to the JSON property error
486 487 488 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 486 def error @error end |
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
Corresponds to the JSON property id
491 492 493 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 491 def id @id end |
#instance_group ⇒ String
Fully-qualified URL of an instance group being updated. Exactly one of
instanceGroupManager and instanceGroup must be set.
Corresponds to the JSON property instanceGroup
497 498 499 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 497 def instance_group @instance_group end |
#instance_group_manager ⇒ String
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
503 504 505 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 503 def instance_group_manager @instance_group_manager end |
#instance_template ⇒ String
Fully-qualified URL of an instance template to apply.
Corresponds to the JSON property instanceTemplate
508 509 510 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 508 def instance_template @instance_template end |
#kind ⇒ String
[Output Only] Type of the resource.
Corresponds to the JSON property kind
513 514 515 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 513 def kind @kind end |
#old_instance_template ⇒ String
Fully-qualified URL of the instance template encountered while starting the
update.
Corresponds to the JSON property oldInstanceTemplate
519 520 521 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 519 def old_instance_template @old_instance_template end |
#policy ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy
Parameters of the update process.
Corresponds to the JSON property policy
524 525 526 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 524 def policy @policy end |
#progress ⇒ Fixnum
[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
532 533 534 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 532 def progress @progress end |
#self_link ⇒ String
[Output Only] The fully qualified URL for the resource.
Corresponds to the JSON property selfLink
537 538 539 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 537 def self_link @self_link end |
#status ⇒ String
[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
551 552 553 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 551 def status @status end |
#status_message ⇒ String
[Output Only] An optional textual description of the current status of the
update.
Corresponds to the JSON property statusMessage
557 558 559 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 557 def @status_message end |
#user ⇒ String
[Output Only] User who requested the update, for example: user@example.com.
Corresponds to the JSON property user
562 563 564 |
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 562 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 |
# 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 |