Class: Google::Apis::ContainerV1::BootDisk

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

BootDisk specifies the boot disk configuration for nodepools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BootDisk

Returns a new instance of BootDisk.



939
940
941
# File 'lib/google/apis/container_v1/classes.rb', line 939

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

Instance Attribute Details

#disk_typeString

Disk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.) Corresponds to the JSON property diskType

Returns:

  • (String)


922
923
924
# File 'lib/google/apis/container_v1/classes.rb', line 922

def disk_type
  @disk_type
end

#provisioned_iopsFixnum

For Hyperdisk-Balanced only, the provisioned IOPS config value. Corresponds to the JSON property provisionedIops

Returns:

  • (Fixnum)


927
928
929
# File 'lib/google/apis/container_v1/classes.rb', line 927

def provisioned_iops
  @provisioned_iops
end

#provisioned_throughputFixnum

For Hyperdisk-Balanced only, the provisioned throughput config value. Corresponds to the JSON property provisionedThroughput

Returns:

  • (Fixnum)


932
933
934
# File 'lib/google/apis/container_v1/classes.rb', line 932

def provisioned_throughput
  @provisioned_throughput
end

#size_gbFixnum

Disk size in GB. Replaces NodeConfig.disk_size_gb Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


937
938
939
# File 'lib/google/apis/container_v1/classes.rb', line 937

def size_gb
  @size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



944
945
946
947
948
949
# File 'lib/google/apis/container_v1/classes.rb', line 944

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