Class: Google::Apis::ManagerV1beta2::ExistingDisk

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#attachmentGoogle::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
  @attachment
end

#sourceString

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

Returns:

  • (String)


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