Class: Google::Cloud::Compute::V1::ResourceCommitment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

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

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#accelerator_type::String

Returns 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.



26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 26524

class ResourceCommitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR = 429_815_371

    LOCAL_SSD = 508_934_896

    MEMORY = 123_056_385

    UNSPECIFIED = 526_786_327

    VCPU = 2_628_978
  end
end

#amount::Integer

Returns 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.



26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 26524

class ResourceCommitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR = 429_815_371

    LOCAL_SSD = 508_934_896

    MEMORY = 123_056_385

    UNSPECIFIED = 526_786_327

    VCPU = 2_628_978
  end
end

#type::String

Returns Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. Check the Type enum for the list of possible values.

Returns:

  • (::String)

    Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. Check the Type enum for the list of possible values.



26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 26524

class ResourceCommitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR = 429_815_371

    LOCAL_SSD = 508_934_896

    MEMORY = 123_056_385

    UNSPECIFIED = 526_786_327

    VCPU = 2_628_978
  end
end