Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RenewalSettings
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1RenewalSettings
- 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
-
#enable_renewal ⇒ Boolean
(also: #enable_renewal?)
If false, the plan will be completed at the end date.
-
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1RenewalSettings
constructor
A new instance of GoogleCloudChannelV1RenewalSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1RenewalSettings
Returns a new instance of GoogleCloudChannelV1RenewalSettings.
2166 2167 2168 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
2146 2147 2148 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2146 def enable_renewal @enable_renewal end |
#payment_cycle ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period
Represents period in days/months/years.
Corresponds to the JSON property paymentCycle
2152 2153 2154 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2152 def payment_cycle @payment_cycle end |
#payment_plan ⇒ String
Describes how a reseller will be billed.
Corresponds to the JSON property paymentPlan
2157 2158 2159 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2157 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
2163 2164 2165 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2163 def resize_unit_count @resize_unit_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2171 2172 2173 2174 2175 2176 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2171 def update!(**args) @enable_renewal = args[:enable_renewal] if args.key?(:enable_renewal) @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle) @payment_plan = args[:payment_plan] if args.key?(:payment_plan) @resize_unit_count = args[:resize_unit_count] if args.key?(:resize_unit_count) end |