Class: Google::Apis::ReplicapoolV1beta1::Replica
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::Replica
- 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
-
#name ⇒ String
[Output Only] The name of the Replica object.
-
#self_link ⇒ String
[Output Only] The self-link of the Replica.
-
#status ⇒ Google::Apis::ReplicapoolV1beta1::ReplicaStatus
The current status of a Replica.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Replica
constructor
A new instance of Replica.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#name ⇒ String
[Output Only] The name of the Replica object.
Corresponds to the JSON property name
619 620 621 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 619 def name @name end |
#self_link ⇒ String
[Output Only] The self-link of the Replica.
Corresponds to the JSON property selfLink
624 625 626 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 624 def self_link @self_link end |
#status ⇒ Google::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 |