Class: Google::Apis::ReplicapoolV1beta1::ReplicaStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb

Overview

The current status of a Replica.

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) ⇒ ReplicaStatus

Returns a new instance of ReplicaStatus



673
674
675
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 673

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

Instance Attribute Details

#detailsString

[Output Only] Human-readable details about the current state of the replica Corresponds to the JSON property details

Returns:

  • (String)


650
651
652
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 650

def details
  @details
end

#stateString

[Output Only] The state of the Replica. Corresponds to the JSON property state

Returns:

  • (String)


655
656
657
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 655

def state
  @state
end

#template_versionString

[Output Only] The template used to build the replica. Corresponds to the JSON property templateVersion

Returns:

  • (String)


660
661
662
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 660

def template_version
  @template_version
end

[Output Only] Link to the virtual machine that this Replica represents. Corresponds to the JSON property vmLink

Returns:

  • (String)


665
666
667
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 665

def vm_link
  @vm_link
end

#vm_start_timeString

[Output Only] The time that this Replica got to the RUNNING state, in RFC 3339 format. If the start time is unknown, UNKNOWN is returned. Corresponds to the JSON property vmStartTime

Returns:

  • (String)


671
672
673
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 671

def vm_start_time
  @vm_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



678
679
680
681
682
683
684
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 678

def update!(**args)
  @details = args[:details] if args.key?(:details)
  @state = args[:state] if args.key?(:state)
  @template_version = args[:template_version] if args.key?(:template_version)
  @vm_link = args[:vm_link] if args.key?(:vm_link)
  @vm_start_time = args[:vm_start_time] if args.key?(:vm_start_time)
end