Class: Google::Apis::ContainerV1beta1::BootDisk
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::BootDisk
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
BootDisk specifies the boot disk configuration for node pools.
Instance Attribute Summary collapse
-
#disk_type ⇒ String
Disk type of the boot disk.
-
#provisioned_iops ⇒ Fixnum
For Hyperdisk-Balanced only, the provisioned IOPS config value.
-
#provisioned_throughput ⇒ Fixnum
For Hyperdisk-Balanced only, the provisioned throughput config value.
-
#size_gb ⇒ Fixnum
Disk size in GB.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BootDisk
constructor
A new instance of BootDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BootDisk
Returns a new instance of BootDisk.
1094 1095 1096 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1094 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_type ⇒ String
Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)
Corresponds to the JSON property diskType
1077 1078 1079 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1077 def disk_type @disk_type end |
#provisioned_iops ⇒ Fixnum
For Hyperdisk-Balanced only, the provisioned IOPS config value.
Corresponds to the JSON property provisionedIops
1082 1083 1084 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1082 def provisioned_iops @provisioned_iops end |
#provisioned_throughput ⇒ Fixnum
For Hyperdisk-Balanced only, the provisioned throughput config value.
Corresponds to the JSON property provisionedThroughput
1087 1088 1089 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1087 def provisioned_throughput @provisioned_throughput end |
#size_gb ⇒ Fixnum
Disk size in GB. Replaces NodeConfig.disk_size_gb
Corresponds to the JSON property sizeGb
1092 1093 1094 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1092 def size_gb @size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1099 1100 1101 1102 1103 1104 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1099 def update!(**args) @disk_type = args[:disk_type] if args.key?(:disk_type) @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops) @provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput) @size_gb = args[:size_gb] if args.key?(:size_gb) end |