Class: Google::Apis::ManagerV1beta2::ExistingDisk
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::ExistingDisk
- 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 pre-existing persistent disk that will be attached to every Replica in the Pool.
Instance Attribute Summary collapse
-
#attachment ⇒ Google::Apis::ManagerV1beta2::DiskAttachment
How to attach a disk to a Replica.
-
#source ⇒ String
The fully-qualified URL 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
366 367 368 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 366 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
358 359 360 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 358 def @attachment end |
#source ⇒ String
The fully-qualified URL of the Persistent Disk resource. It must be in the
same zone as the Pool.
Corresponds to the JSON property source
364 365 366 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 364 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
371 372 373 374 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 371 def update!(**args) @attachment = args[:attachment] if args.key?(:attachment) @source = args[:source] if args.key?(:source) end |