Class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate

Inherits:
Object
  • Object
show all
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

Update of a single instance.

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceUpdate

Returns a new instance of InstanceUpdate.


54
55
56
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 54

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#errorGoogle::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error

Errors that occurred during the instance update. Corresponds to the JSON property error


32
33
34
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 32

def error
  @error
end

#instanceString

Fully-qualified URL of the instance being updated. Corresponds to the JSON property instance

Returns:

  • (String)

37
38
39
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 37

def instance
  @instance
end

#statusString

Status of the instance update. Possible values are:

  • "PENDING": The instance update is pending execution.
  • "ROLLING_FORWARD": The instance update is going forward.
  • "ROLLING_BACK": The instance update is being rolled back.
  • "PAUSED": The instance update is temporarily paused (inactive).
  • "ROLLED_OUT": The instance update is finished, the instance is running the new template.
  • "ROLLED_BACK": The instance update is finished, the instance has been reverted to the previous template.
  • "CANCELLED": The instance update is paused and no longer can be resumed, undefined in which template the instance is running. Corresponds to the JSON property status

Returns:

  • (String)

52
53
54
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 52

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


59
60
61
62
63
# File 'generated/google/apis/replicapoolupdater_v1beta1/classes.rb', line 59

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @instance = args[:instance] if args.key?(:instance)
  @status = args[:status] if args.key?(:status)
end