Class: Google::Apis::ManagerV1beta2::NewDisk

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

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.



900
901
902
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 900

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



881
882
883
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 881

def attachment
  @attachment
end

#auto_deleteBoolean Also known as: auto_delete?

If true, then this disk will be deleted when the instance is deleted. Corresponds to the JSON property autoDelete

Returns:

  • (Boolean)


886
887
888
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 886

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)


892
893
894
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 892

def boot
  @boot
end

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