Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1RenewalSettings
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1RenewalSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Renewal settings for renewable Offers.
Instance Attribute Summary collapse
-
#disable_commitment ⇒ Boolean
(also: #disable_commitment?)
If true, disables commitment-based offer on renewal and switches to flexible or pay as you go.
-
#enable_renewal ⇒ Boolean
(also: #enable_renewal?)
If false, the plan will be completed at the end date.
-
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period
Represents period in days/months/years.
-
#payment_option ⇒ String
Set if enable_renewal=true.
-
#payment_plan ⇒ String
Describes how a reseller will be billed.
-
#resize_unit_count ⇒ Boolean
(also: #resize_unit_count?)
If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time.
-
#scheduled_renewal_offer ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1RenewalSettings
constructor
A new instance of GoogleCloudChannelV1alpha1RenewalSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1alpha1RenewalSettings
Returns a new instance of GoogleCloudChannelV1alpha1RenewalSettings.
4366 4367 4368 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_commitment ⇒ Boolean Also known as: disable_commitment?
If true, disables commitment-based offer on renewal and switches to flexible
or pay as you go. Deprecated: Use payment_plan
instead.
Corresponds to the JSON property disableCommitment
4329 4330 4331 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4329 def disable_commitment @disable_commitment end |
#enable_renewal ⇒ Boolean Also known as: enable_renewal?
If false, the plan will be completed at the end date.
Corresponds to the JSON property enableRenewal
4335 4336 4337 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4335 def enable_renewal @enable_renewal end |
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period
Represents period in days/months/years.
Corresponds to the JSON property paymentCycle
4341 4342 4343 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4341 def payment_cycle @payment_cycle end |
#payment_option ⇒ String
Set if enable_renewal=true. Deprecated: Use payment_cycle
instead.
Corresponds to the JSON property paymentOption
4346 4347 4348 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4346 def payment_option @payment_option end |
#payment_plan ⇒ String
Describes how a reseller will be billed.
Corresponds to the JSON property paymentPlan
4351 4352 4353 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4351 def payment_plan @payment_plan end |
#resize_unit_count ⇒ Boolean Also known as: resize_unit_count?
If true and enable_renewal = true, the unit (for example seats or licenses)
will be set to the number of active units at renewal time.
Corresponds to the JSON property resizeUnitCount
4357 4358 4359 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4357 def resize_unit_count @resize_unit_count end |
#scheduled_renewal_offer ⇒ String
Output only. The offer resource name that the entitlement will renew on at the
end date. Takes the form: accounts/account_id
/offers/offer_id
.
Corresponds to the JSON property scheduledRenewalOffer
4364 4365 4366 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4364 def scheduled_renewal_offer @scheduled_renewal_offer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4371 4372 4373 4374 4375 4376 4377 4378 4379 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4371 def update!(**args) @disable_commitment = args[:disable_commitment] if args.key?(:disable_commitment) @enable_renewal = args[:enable_renewal] if args.key?(:enable_renewal) @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle) @payment_option = args[:payment_option] if args.key?(:payment_option) @payment_plan = args[:payment_plan] if args.key?(:payment_plan) @resize_unit_count = args[:resize_unit_count] if args.key?(:resize_unit_count) @scheduled_renewal_offer = args[:scheduled_renewal_offer] if args.key?(:scheduled_renewal_offer) end |