Class: Google::Apis::ComputeAlpha::LicenseResourceCommitment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LicenseResourceCommitment

Returns a new instance of LicenseResourceCommitment



16876
16877
16878
# File 'generated/google/apis/compute_alpha/classes.rb', line 16876

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#amountFixnum

The number of licenses purchased. Corresponds to the JSON property amount

Returns:

  • (Fixnum)


16864
16865
16866
# File 'generated/google/apis/compute_alpha/classes.rb', line 16864

def amount
  @amount
end

#cores_per_licenseString

Specifies the core range of the instance for which this license applies. Corresponds to the JSON property coresPerLicense

Returns:

  • (String)


16869
16870
16871
# File 'generated/google/apis/compute_alpha/classes.rb', line 16869

def cores_per_license
  @cores_per_license
end

#licenseString

Any applicable license URI. Corresponds to the JSON property license

Returns:

  • (String)


16874
16875
16876
# File 'generated/google/apis/compute_alpha/classes.rb', line 16874

def license
  @license
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16881
16882
16883
16884
16885
# File 'generated/google/apis/compute_alpha/classes.rb', line 16881

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @cores_per_license = args[:cores_per_license] if args.key?(:cores_per_license)
  @license = args[:license] if args.key?(:license)
end