Class: Google::Apis::ResellerV1::RenewalSettings

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

Overview

JSON template for a subscription renewal settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RenewalSettings

Returns a new instance of RenewalSettings



253
254
255
# File 'generated/google/apis/reseller_v1/classes.rb', line 253

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

Instance Attribute Details

#kindString

Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings Corresponds to the JSON property kind

Returns:

  • (String)


244
245
246
# File 'generated/google/apis/reseller_v1/classes.rb', line 244

def kind
  @kind
end

#renewal_typeString

Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the renewalType is a required property. Corresponds to the JSON property renewalType

Returns:

  • (String)


251
252
253
# File 'generated/google/apis/reseller_v1/classes.rb', line 251

def renewal_type
  @renewal_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
# File 'generated/google/apis/reseller_v1/classes.rb', line 258

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