Class: Google::Apis::ReplicapoolV1beta1::NewDisk

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

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

#auto_deleteBoolean 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

Returns:

  • (Boolean)


380
381
382
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 380

def auto_delete
  @auto_delete
end

#bootBoolean Also known as: boot?

If true, indicates that this is the root persistent disk. Corresponds to the JSON property boot

Returns:

  • (Boolean)


386
387
388
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 386

def boot
  @boot
end

#initialize_paramsGoogle::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