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.


221
222
223
# File 'generated/google/apis/reseller_v1/classes.rb', line 221

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

Instance Attribute Details

#kindString

Identifies the resource as a subscription renewal setting. Corresponds to the JSON property kind

Returns:

  • (String)

214
215
216
# File 'generated/google/apis/reseller_v1/classes.rb', line 214

def kind
  @kind
end

#renewal_typeString

Subscription renewal type. Corresponds to the JSON property renewalType

Returns:

  • (String)

219
220
221
# File 'generated/google/apis/reseller_v1/classes.rb', line 219

def renewal_type
  @renewal_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


226
227
228
229
# File 'generated/google/apis/reseller_v1/classes.rb', line 226

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