Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RenewalSettings

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) ⇒ GoogleCloudChannelV1RenewalSettings

Returns a new instance of GoogleCloudChannelV1RenewalSettings.



1956
1957
1958
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1956

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

Instance Attribute Details

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


1936
1937
1938
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1936

def enable_renewal
  @enable_renewal
end

#payment_cycleGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Period

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



1942
1943
1944
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1942

def payment_cycle
  @payment_cycle
end

#payment_planString

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

Returns:

  • (String)


1947
1948
1949
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1947

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)


1953
1954
1955
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1953

def resize_unit_count
  @resize_unit_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1961
1962
1963
1964
1965
1966
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1961

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