class Google::Apis::ManagerV1beta2::NewDisk

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.

Attributes

attachment[RW]

How to attach a disk to a Replica. Corresponds to the JSON property `attachment` @return [Google::Apis::ManagerV1beta2::DiskAttachment]

auto_delete[RW]

If true, then this disk will be deleted when the instance is deleted. Corresponds to the JSON property `autoDelete` @return [Boolean]

auto_delete?[RW]

If true, then this disk will be deleted when the instance is deleted. Corresponds to the JSON property `autoDelete` @return [Boolean]

boot[RW]

If true, indicates that this is the root persistent disk. Corresponds to the JSON property `boot` @return [Boolean]

boot?[RW]

If true, indicates that this is the root persistent disk. Corresponds to the JSON property `boot` @return [Boolean]

initialize_params[RW]

Initialization parameters for creating a new disk. Corresponds to the JSON property `initializeParams` @return [Google::Apis::ManagerV1beta2::NewDiskInitializeParams]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/manager_v1beta2/classes.rb, line 900
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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