Class: Google::Apis::MigrationcenterV1alpha1::OperatingSystemPricingPreferencesOperatingSystemPricing

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

Overview

Pricing options of an OS image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperatingSystemPricingPreferencesOperatingSystemPricing

Returns a new instance of OperatingSystemPricingPreferencesOperatingSystemPricing.



4754
4755
4756
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4754

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

Instance Attribute Details

#commitment_planString

Optional. The plan of commitments for committed use discounts (CUD). Corresponds to the JSON property commitmentPlan

Returns:

  • (String)


4746
4747
4748
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4746

def commitment_plan
  @commitment_plan
end

#license_typeString

Optional. License type for premium images (RHEL, RHEL for SAP, SLES, SLES for SAP, Windows Server). Corresponds to the JSON property licenseType

Returns:

  • (String)


4752
4753
4754
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4752

def license_type
  @license_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4759
4760
4761
4762
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4759

def update!(**args)
  @commitment_plan = args[:commitment_plan] if args.key?(:commitment_plan)
  @license_type = args[:license_type] if args.key?(:license_type)
end