Class: Google::Apis::ComputeAlpha::LicenseResourceCommitment
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::LicenseResourceCommitment
- 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
-
#amount ⇒ Fixnum
The number of licenses purchased.
-
#cores_per_license ⇒ String
Specifies the core range of the instance for which this license applies.
-
#license ⇒ String
Any applicable license URI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LicenseResourceCommitment
constructor
A new instance of LicenseResourceCommitment.
-
#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) ⇒ LicenseResourceCommitment
Returns a new instance of LicenseResourceCommitment
16865 16866 16867 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 16865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Fixnum
The number of licenses purchased.
Corresponds to the JSON property amount
16853 16854 16855 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 16853 def amount @amount end |
#cores_per_license ⇒ String
Specifies the core range of the instance for which this license applies.
Corresponds to the JSON property coresPerLicense
16858 16859 16860 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 16858 def cores_per_license @cores_per_license end |
#license ⇒ String
Any applicable license URI.
Corresponds to the JSON property license
16863 16864 16865 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 16863 def license @license end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16870 16871 16872 16873 16874 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 16870 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 |