Class: Google::Apis::ReplicapoolV1beta1::NewDisk
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::NewDisk
- 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 Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
Instance Attribute Summary collapse
-
#attachment ⇒ Google::Apis::ReplicapoolV1beta1::DiskAttachment
Specifies how to attach a disk to a Replica.
-
#auto_delete ⇒ Boolean
(also: #auto_delete?)
If true, then this disk will be deleted when the instance is deleted.
-
#boot ⇒ Boolean
(also: #boot?)
If true, indicates that this is the root persistent disk.
-
#initialize_params ⇒ Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams
Initialization parameters for creating a new disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NewDisk
constructor
A new instance of NewDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NewDisk
Returns a new instance of NewDisk
394 395 396 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 394 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
374 375 376 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 374 def @attachment end |
#auto_delete ⇒ Boolean Also known as: auto_delete?
If true, then this disk will be deleted when the instance is deleted. The
default value is true.
Corresponds to the JSON property autoDelete
380 381 382 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 380 def auto_delete @auto_delete end |
#boot ⇒ Boolean Also known as: boot?
If true, indicates that this is the root persistent disk.
Corresponds to the JSON property boot
386 387 388 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 386 def boot @boot end |
#initialize_params ⇒ Google::Apis::ReplicapoolV1beta1::NewDiskInitializeParams
Initialization parameters for creating a new disk.
Corresponds to the JSON property initializeParams
392 393 394 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 392 def initialize_params @initialize_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
399 400 401 402 403 404 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 399 def update!(**args) @attachment = args[:attachment] if args.key?(:attachment) @auto_delete = args[:auto_delete] if args.key?(:auto_delete) @boot = args[:boot] if args.key?(:boot) @initialize_params = args[:initialize_params] if args.key?(:initialize_params) end |