Class: Google::Apis::ReplicapoolV1beta1::ExistingDisk
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::ExistingDisk
- 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
A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
Instance Attribute Summary collapse
-
#attachment ⇒ Google::Apis::ReplicapoolV1beta1::DiskAttachment
Specifies how to attach a disk to a Replica.
-
#source ⇒ String
The name of the Persistent Disk resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExistingDisk
constructor
A new instance of ExistingDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExistingDisk
Returns a new instance of ExistingDisk
169 170 171 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment ⇒ Google::Apis::ReplicapoolV1beta1::DiskAttachment
Specifies how to attach a disk to a Replica.
Corresponds to the JSON property attachment
161 162 163 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 161 def @attachment end |
#source ⇒ String
The name of the Persistent Disk resource. The Persistent Disk resource must be
in the same zone as the Pool.
Corresponds to the JSON property source
167 168 169 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 167 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
174 175 176 177 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 174 def update!(**args) @attachment = args[:attachment] if args.key?(:attachment) @source = args[:source] if args.key?(:source) end |