Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest

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

Overview

Request message for extending a Subscription resource. A new recurrence will be made based on the subscription schedule defined by the original product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest.



226
227
228
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 226

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

Instance Attribute Details

#extensionGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Extension

Describes the details of an extension request. Corresponds to the JSON property extension



216
217
218
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 216

def extension
  @extension
end

#request_idString

Required. Restricted to 36 ASCII characters. A random UUID is recommended. The idempotency key for the request. The ID generation logic is controlled by the partner. request_id should be the same as on retries of the same request. A different request_id must be used for a extension of a different cycle. Corresponds to the JSON property requestId

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 224

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



231
232
233
234
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 231

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