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.



291
292
293
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 291

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



281
282
283
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 281

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)


289
290
291
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 289

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 296

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