Class: Google::Apis::ComputeBeta::ResourceCommitment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeBeta::ResourceCommitment
 
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
 generated/google/apis/compute_beta/representations.rb,
 generated/google/apis/compute_beta/representations.rb
Overview
Commitment for a particular resource (a Commitment is composed of one or more of these).
Instance Attribute Summary collapse
- 
  
    
      #amount  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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 Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ResourceCommitment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ResourceCommitment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourceCommitment
Returns a new instance of ResourceCommitment
| 14989 14990 14991 | # File 'generated/google/apis/compute_beta/classes.rb', line 14989 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#amount ⇒ Fixnum
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
| 14981 14982 14983 | # File 'generated/google/apis/compute_beta/classes.rb', line 14981 def amount @amount end | 
#type ⇒ String
Type of resource for which this commitment applies. Possible values are VCPU
and MEMORY
Corresponds to the JSON property type
| 14987 14988 14989 | # File 'generated/google/apis/compute_beta/classes.rb', line 14987 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 14994 14995 14996 14997 | # File 'generated/google/apis/compute_beta/classes.rb', line 14994 def update!(**args) @amount = args[:amount] if args.key?(:amount) @type = args[:type] if args.key?(:type) end |