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

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

Overview

Commitment for a particular license resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LicenseResourceCommitment

Returns a new instance of LicenseResourceCommitment.



23654
23655
23656
# File 'lib/google/apis/compute_alpha/classes.rb', line 23654

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

Instance Attribute Details

#amountFixnum

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

Returns:

  • (Fixnum)


23642
23643
23644
# File 'lib/google/apis/compute_alpha/classes.rb', line 23642

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)


23647
23648
23649
# File 'lib/google/apis/compute_alpha/classes.rb', line 23647

def cores_per_license
  @cores_per_license
end

#licenseString

Any applicable license URI. Corresponds to the JSON property license

Returns:

  • (String)


23652
23653
23654
# File 'lib/google/apis/compute_alpha/classes.rb', line 23652

def license
  @license
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23659
23660
23661
23662
23663
# File 'lib/google/apis/compute_alpha/classes.rb', line 23659

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