Class: Google::Apis::MlV1::GoogleCloudMlV1DiskConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1DiskConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Represents the config of disk options.
Instance Attribute Summary collapse
-
#boot_disk_size_gb ⇒ Fixnum
Size in GB of the boot disk (default is 100GB).
-
#boot_disk_type ⇒ String
Type of the boot disk (default is "pd-standard").
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1DiskConfig
constructor
A new instance of GoogleCloudMlV1DiskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1DiskConfig
Returns a new instance of GoogleCloudMlV1DiskConfig.
980 981 982 |
# File 'generated/google/apis/ml_v1/classes.rb', line 980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk_size_gb ⇒ Fixnum
Size in GB of the boot disk (default is 100GB).
Corresponds to the JSON property bootDiskSizeGb
971 972 973 |
# File 'generated/google/apis/ml_v1/classes.rb', line 971 def boot_disk_size_gb @boot_disk_size_gb end |
#boot_disk_type ⇒ String
Type of the boot disk (default is "pd-standard"). Valid values: "pd-ssd" (
Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk
Drive).
Corresponds to the JSON property bootDiskType
978 979 980 |
# File 'generated/google/apis/ml_v1/classes.rb', line 978 def boot_disk_type @boot_disk_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
985 986 987 988 |
# File 'generated/google/apis/ml_v1/classes.rb', line 985 def update!(**args) @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type) end |