Class: Google::Cloud::Compute::V1::ResourceCommitment
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::ResourceCommitment
- 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
-
#accelerator_type ⇒ ::String
Name of the accelerator type resource.
-
#amount ⇒ ::Integer
The amount of the resource purchased (in a type-dependent unit, such as bytes).
-
#type ⇒ ::String
Type of resource for which this commitment applies.
Instance Attribute Details
#accelerator_type ⇒ ::String
Returns Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 20622 class ResourceCommitment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 ACCELERATOR = 429815371 LOCAL_SSD = 508934896 MEMORY = 123056385 UNSPECIFIED = 526786327 VCPU = 2628978 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.
20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 20622 class ResourceCommitment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 ACCELERATOR = 429815371 LOCAL_SSD = 508934896 MEMORY = 123056385 UNSPECIFIED = 526786327 VCPU = 2628978 end end |
#type ⇒ ::String
Returns Type of resource for which this commitment applies. Possible values are VCPU and MEMORY Check the Type enum for the list of possible values.
20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 20622 class ResourceCommitment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 ACCELERATOR = 429815371 LOCAL_SSD = 508934896 MEMORY = 123056385 UNSPECIFIED = 526786327 VCPU = 2628978 end end |