Class: Google::Apis::ManagerV1beta2::NewDiskInitializeParams
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::NewDiskInitializeParams
- 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
-
#disk_size_gb ⇒ String
The size of the created disk in gigabytes.
-
#disk_type ⇒ String
Name of the disk type resource describing which disk type to use to create the disk.
-
#source_image ⇒ String
The fully-qualified URL of a source image to use to create this disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NewDiskInitializeParams
constructor
A new instance of NewDiskInitializeParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_gb ⇒ String
The size of the created disk in gigabytes.
Corresponds to the JSON property diskSizeGb
920 921 922 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 920 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
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
926 927 928 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 926 def disk_type @disk_type end |
#source_image ⇒ String
The fully-qualified URL of a source image to use to create this disk.
Corresponds to the JSON property sourceImage
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 |