Class: Google::Apis::ManagerV1beta2::NewDiskInitializeParams

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

Initialization parameters for creating a new disk.

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) ⇒ NewDiskInitializeParams

Returns a new instance of NewDiskInitializeParams



933
934
935
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 933

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disk_size_gbString

The size of the created disk in gigabytes. Corresponds to the JSON property diskSizeGb

Returns:

  • (String)


920
921
922
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 920

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard' Corresponds to the JSON property diskType

Returns:

  • (String)


926
927
928
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 926

def disk_type
  @disk_type
end

#source_imageString

The fully-qualified URL of a source image to use to create this disk. Corresponds to the JSON property sourceImage

Returns:

  • (String)


931
932
933
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 931

def source_image
  @source_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



938
939
940
941
942
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 938

def update!(**args)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @source_image = args[:source_image] if args.key?(:source_image)
end