Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourceCommitment (v2.18.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ResourceCommitment.

Commitment for a particular hardware resource (a commitment is composed of one or more of these).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerator_type

def accelerator_type() -> ::String
Returns
  • (::String) — Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.

#accelerator_type=

def accelerator_type=(value) -> ::String
Parameter
  • value (::String) — Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.
Returns
  • (::String) — Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.

#amount

def amount() -> ::Integer
Returns
  • (::Integer) — The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.

#amount=

def amount=(value) -> ::Integer
Parameter
  • value (::Integer) — The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.
Returns
  • (::Integer) — The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.

#type

def type() -> ::String
Returns
  • (::String) — The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.
Returns
  • (::String) — The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.