Class: Google::Apis::ManagerV1beta2::NewDisk
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::NewDisk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/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.
Instance Attribute Summary collapse
-
#attachment ⇒ Google::Apis::ManagerV1beta2::DiskAttachment
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::ManagerV1beta2::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
900 901 902 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 900 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment ⇒ Google::Apis::ManagerV1beta2::DiskAttachment
How to attach a disk to a Replica.
Corresponds to the JSON property attachment
881 882 883 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 881 def @attachment end |
#auto_delete ⇒ Boolean Also known as: auto_delete?
If true, then this disk will be deleted when the instance is deleted.
Corresponds to the JSON property autoDelete
886 887 888 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 886 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
892 893 894 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 892 def boot @boot end |
#initialize_params ⇒ Google::Apis::ManagerV1beta2::NewDiskInitializeParams
Initialization parameters for creating a new disk.
Corresponds to the JSON property initializeParams
898 899 900 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 898 def initialize_params @initialize_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
905 906 907 908 909 910 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 905 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 |