Class: Google::Apis::ReplicapoolV1beta1::Replica

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

An individual Replica within a Pool. Replicas are automatically created by the replica pool, using the template provided by the user. You cannot directly create replicas.

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

Returns a new instance of Replica



631
632
633
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 631

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


619
620
621
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 619

def name
  @name
end

[Output Only] The self-link of the Replica. Corresponds to the JSON property selfLink

Returns:

  • (String)


624
625
626
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 624

def self_link
  @self_link
end

#statusGoogle::Apis::ReplicapoolV1beta1::ReplicaStatus

The current status of a Replica. Corresponds to the JSON property status



629
630
631
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 629

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



636
637
638
639
640
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 636

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