Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourceCommitment (v1.3.0)

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

Commitment for a particular 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 resource. Applicable only when the type is ACCELERATOR.

#accelerator_type=

def accelerator_type=(value) -> ::String
Parameter
  • value (::String) — Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
Returns
  • (::String) — Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.

#amount

def amount() -> ::Integer
Returns
  • (::Integer) — The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

#amount=

def amount=(value) -> ::Integer
Parameter
  • value (::Integer) — The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
Returns
  • (::Integer) — The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.

#type

def type() -> ::String
Returns
  • (::String) — Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Check the Type enum for the list of possible values.

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Check the Type enum for the list of possible values.
Returns
  • (::String) — Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Check the Type enum for the list of possible values.