class Google::Apis::ComputeV1::ResourceCommitment

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

Attributes

accelerator_type[RW]

Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. Corresponds to the JSON property `acceleratorType` @return [String]

amount[RW]

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. Corresponds to the JSON property `amount` @return [Fixnum]

type[RW]

Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 26375
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 26380
def update!(**args)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
  @amount = args[:amount] if args.key?(:amount)
  @type = args[:type] if args.key?(:type)
end