Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1RenewalSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1RenewalSettings

Returns a new instance of GoogleCloudChannelV1alpha1RenewalSettings.



3131
3132
3133
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3131

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

Instance Attribute Details

#disable_commitmentBoolean 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

Returns:

  • (Boolean)


3100
3101
3102
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3100

def disable_commitment
  @disable_commitment
end

#enable_renewalBoolean Also known as: enable_renewal?

If false, the plan will be completed at the end date. Corresponds to the JSON property enableRenewal

Returns:

  • (Boolean)


3106
3107
3108
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3106

def enable_renewal
  @enable_renewal
end

#payment_cycleGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period

Represents period in days/months/years. Corresponds to the JSON property paymentCycle



3112
3113
3114
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3112

def payment_cycle
  @payment_cycle
end

#payment_optionString

Set if enable_renewal=true. Deprecated: Use payment_cycle instead. Corresponds to the JSON property paymentOption

Returns:

  • (String)


3117
3118
3119
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3117

def payment_option
  @payment_option
end

#payment_planString

Describes how a reseller will be billed. Corresponds to the JSON property paymentPlan

Returns:

  • (String)


3122
3123
3124
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3122

def payment_plan
  @payment_plan
end

#resize_unit_countBoolean 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

Returns:

  • (Boolean)


3128
3129
3130
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3128

def resize_unit_count
  @resize_unit_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3136
3137
3138
3139
3140
3141
3142
3143
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3136

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)
end