google-apis-paymentsresellersubscription_v1 0.54.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +165 -159
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +2 -2
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +164 -163
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +92 -92
- metadata +2 -2
@@ -83,18 +83,18 @@ module Google
|
|
83
83
|
# Request-specific options
|
84
84
|
#
|
85
85
|
# @yield [result, err] Result & error if block supplied
|
86
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
86
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::ListProductsResponse] parsed result object
|
87
87
|
# @yieldparam err [StandardError] error object if request failed
|
88
88
|
#
|
89
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
89
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ListProductsResponse]
|
90
90
|
#
|
91
91
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
92
92
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
93
93
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
94
94
|
def list_partner_products(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
95
95
|
command = make_simple_command(:get, 'v1/{+parent}/products', options)
|
96
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
97
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
96
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::ListProductsResponse::Representation
|
97
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::ListProductsResponse
|
98
98
|
command.params['parent'] = parent unless parent.nil?
|
99
99
|
command.query['filter'] = filter unless filter.nil?
|
100
100
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
# minimum oauth scope `openid` is sufficient, which will skip the consent screen.
|
110
110
|
# @param [String] parent
|
111
111
|
# Required. The parent, the partner that can resell. Format: partners/`partner`
|
112
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
112
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsRequest] find_eligible_promotions_request_object
|
113
113
|
# @param [String] fields
|
114
114
|
# Selector specifying which fields to include in a partial response.
|
115
115
|
# @param [String] quota_user
|
@@ -119,20 +119,20 @@ module Google
|
|
119
119
|
# Request-specific options
|
120
120
|
#
|
121
121
|
# @yield [result, err] Result & error if block supplied
|
122
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
122
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsResponse] parsed result object
|
123
123
|
# @yieldparam err [StandardError] error object if request failed
|
124
124
|
#
|
125
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
125
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsResponse]
|
126
126
|
#
|
127
127
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
128
128
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
129
129
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
130
|
-
def find_partner_promotion_eligible(parent,
|
130
|
+
def find_partner_promotion_eligible(parent, find_eligible_promotions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
131
131
|
command = make_simple_command(:post, 'v1/{+parent}/promotions:findEligible', options)
|
132
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
133
|
-
command.request_object =
|
134
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
135
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
132
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsRequest::Representation
|
133
|
+
command.request_object = find_eligible_promotions_request_object
|
134
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsResponse::Representation
|
135
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsResponse
|
136
136
|
command.params['parent'] = parent unless parent.nil?
|
137
137
|
command.query['fields'] = fields unless fields.nil?
|
138
138
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -173,18 +173,18 @@ module Google
|
|
173
173
|
# Request-specific options
|
174
174
|
#
|
175
175
|
# @yield [result, err] Result & error if block supplied
|
176
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
176
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::ListPromotionsResponse] parsed result object
|
177
177
|
# @yieldparam err [StandardError] error object if request failed
|
178
178
|
#
|
179
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
179
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ListPromotionsResponse]
|
180
180
|
#
|
181
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
184
|
def list_partner_promotions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
185
185
|
command = make_simple_command(:get, 'v1/{+parent}/promotions', options)
|
186
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
187
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
186
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::ListPromotionsResponse::Representation
|
187
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::ListPromotionsResponse
|
188
188
|
command.params['parent'] = parent unless parent.nil?
|
189
189
|
command.query['filter'] = filter unless filter.nil?
|
190
190
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -200,7 +200,7 @@ module Google
|
|
200
200
|
# @param [String] name
|
201
201
|
# Required. The name of the subscription resource to be cancelled. It will have
|
202
202
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`"
|
203
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
203
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionRequest] cancel_subscription_request_object
|
204
204
|
# @param [String] fields
|
205
205
|
# Selector specifying which fields to include in a partial response.
|
206
206
|
# @param [String] quota_user
|
@@ -210,20 +210,20 @@ module Google
|
|
210
210
|
# Request-specific options
|
211
211
|
#
|
212
212
|
# @yield [result, err] Result & error if block supplied
|
213
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
213
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionResponse] parsed result object
|
214
214
|
# @yieldparam err [StandardError] error object if request failed
|
215
215
|
#
|
216
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
216
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionResponse]
|
217
217
|
#
|
218
218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
-
def cancel_partner_subscription(name,
|
221
|
+
def cancel_partner_subscription(name, cancel_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
222
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
223
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
224
|
-
command.request_object =
|
225
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
226
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
223
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionRequest::Representation
|
224
|
+
command.request_object = cancel_subscription_request_object
|
225
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionResponse::Representation
|
226
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::CancelSubscriptionResponse
|
227
227
|
command.params['name'] = name unless name.nil?
|
228
228
|
command.query['fields'] = fields unless fields.nil?
|
229
229
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -236,7 +236,7 @@ module Google
|
|
236
236
|
# @param [String] parent
|
237
237
|
# Required. The parent resource name, which is the identifier of the partner. It
|
238
238
|
# will have the format of "partners/`partner_id`".
|
239
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
239
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object
|
240
240
|
# @param [String] subscription_id
|
241
241
|
# Required. Identifies the subscription resource on the Partner side. The value
|
242
242
|
# is restricted to 63 ASCII characters at the maximum. If a subscription was
|
@@ -251,20 +251,20 @@ module Google
|
|
251
251
|
# Request-specific options
|
252
252
|
#
|
253
253
|
# @yield [result, err] Result & error if block supplied
|
254
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
254
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::Subscription] parsed result object
|
255
255
|
# @yieldparam err [StandardError] error object if request failed
|
256
256
|
#
|
257
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
257
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
258
258
|
#
|
259
259
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
260
260
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
261
261
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
262
|
-
def create_partner_subscription(parent,
|
262
|
+
def create_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
263
263
|
command = make_simple_command(:post, 'v1/{+parent}/subscriptions', options)
|
264
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
265
|
-
command.request_object =
|
266
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
267
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
264
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
|
265
|
+
command.request_object = subscription_object
|
266
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
|
267
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
|
268
268
|
command.params['parent'] = parent unless parent.nil?
|
269
269
|
command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
|
270
270
|
command.query['fields'] = fields unless fields.nil?
|
@@ -279,7 +279,7 @@ module Google
|
|
279
279
|
# Required. The name of the subscription resource that is entitled to the
|
280
280
|
# current end user. It will have the format of "partners/`partner_id`/
|
281
281
|
# subscriptions/`subscription_id`"
|
282
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
282
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionRequest] entitle_subscription_request_object
|
283
283
|
# @param [String] fields
|
284
284
|
# Selector specifying which fields to include in a partial response.
|
285
285
|
# @param [String] quota_user
|
@@ -289,20 +289,20 @@ module Google
|
|
289
289
|
# Request-specific options
|
290
290
|
#
|
291
291
|
# @yield [result, err] Result & error if block supplied
|
292
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
292
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionResponse] parsed result object
|
293
293
|
# @yieldparam err [StandardError] error object if request failed
|
294
294
|
#
|
295
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
295
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionResponse]
|
296
296
|
#
|
297
297
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
298
298
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
299
299
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
300
|
-
def entitle_partner_subscription(name,
|
300
|
+
def entitle_partner_subscription(name, entitle_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
301
301
|
command = make_simple_command(:post, 'v1/{+name}:entitle', options)
|
302
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
303
|
-
command.request_object =
|
304
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
305
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
302
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionRequest::Representation
|
303
|
+
command.request_object = entitle_subscription_request_object
|
304
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionResponse::Representation
|
305
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionResponse
|
306
306
|
command.params['name'] = name unless name.nil?
|
307
307
|
command.query['fields'] = fields unless fields.nil?
|
308
308
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -316,7 +316,7 @@ module Google
|
|
316
316
|
# @param [String] name
|
317
317
|
# Required. The name of the subscription resource to be extended. It will have
|
318
318
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`".
|
319
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
319
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionRequest] extend_subscription_request_object
|
320
320
|
# @param [String] fields
|
321
321
|
# Selector specifying which fields to include in a partial response.
|
322
322
|
# @param [String] quota_user
|
@@ -326,20 +326,20 @@ module Google
|
|
326
326
|
# Request-specific options
|
327
327
|
#
|
328
328
|
# @yield [result, err] Result & error if block supplied
|
329
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
329
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionResponse] parsed result object
|
330
330
|
# @yieldparam err [StandardError] error object if request failed
|
331
331
|
#
|
332
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
332
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionResponse]
|
333
333
|
#
|
334
334
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
335
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
336
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
-
def extend_partner_subscription(name,
|
337
|
+
def extend_partner_subscription(name, extend_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
338
338
|
command = make_simple_command(:post, 'v1/{+name}:extend', options)
|
339
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
340
|
-
command.request_object =
|
341
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
342
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
339
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionRequest::Representation
|
340
|
+
command.request_object = extend_subscription_request_object
|
341
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionResponse::Representation
|
342
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::ExtendSubscriptionResponse
|
343
343
|
command.params['name'] = name unless name.nil?
|
344
344
|
command.query['fields'] = fields unless fields.nil?
|
345
345
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -360,18 +360,18 @@ module Google
|
|
360
360
|
# Request-specific options
|
361
361
|
#
|
362
362
|
# @yield [result, err] Result & error if block supplied
|
363
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
363
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::Subscription] parsed result object
|
364
364
|
# @yieldparam err [StandardError] error object if request failed
|
365
365
|
#
|
366
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
366
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
367
367
|
#
|
368
368
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
369
369
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
370
370
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
371
371
|
def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
|
372
372
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
373
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
374
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
373
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
|
374
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
|
375
375
|
command.params['name'] = name unless name.nil?
|
376
376
|
command.query['fields'] = fields unless fields.nil?
|
377
377
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -386,7 +386,7 @@ module Google
|
|
386
386
|
# @param [String] parent
|
387
387
|
# Required. The parent resource name, which is the identifier of the partner. It
|
388
388
|
# will have the format of "partners/`partner_id`".
|
389
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
389
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object
|
390
390
|
# @param [String] subscription_id
|
391
391
|
# Required. Identifies the subscription resource on the Partner side. The value
|
392
392
|
# is restricted to 63 ASCII characters at the maximum. If a subscription was
|
@@ -401,20 +401,20 @@ module Google
|
|
401
401
|
# Request-specific options
|
402
402
|
#
|
403
403
|
# @yield [result, err] Result & error if block supplied
|
404
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
404
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::Subscription] parsed result object
|
405
405
|
# @yieldparam err [StandardError] error object if request failed
|
406
406
|
#
|
407
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
407
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Subscription]
|
408
408
|
#
|
409
409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
410
410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
411
411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
412
|
-
def provision_partner_subscription(parent,
|
412
|
+
def provision_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
413
413
|
command = make_simple_command(:post, 'v1/{+parent}/subscriptions:provision', options)
|
414
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
415
|
-
command.request_object =
|
416
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
417
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
414
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
|
415
|
+
command.request_object = subscription_object
|
416
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
|
417
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
|
418
418
|
command.params['parent'] = parent unless parent.nil?
|
419
419
|
command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
|
420
420
|
command.query['fields'] = fields unless fields.nil?
|
@@ -428,7 +428,7 @@ module Google
|
|
428
428
|
# @param [String] name
|
429
429
|
# Required. The name of the subscription resource to be resumed. It will have
|
430
430
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`"
|
431
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
431
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionRequest] resume_subscription_request_object
|
432
432
|
# @param [String] fields
|
433
433
|
# Selector specifying which fields to include in a partial response.
|
434
434
|
# @param [String] quota_user
|
@@ -438,20 +438,20 @@ module Google
|
|
438
438
|
# Request-specific options
|
439
439
|
#
|
440
440
|
# @yield [result, err] Result & error if block supplied
|
441
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
441
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionResponse] parsed result object
|
442
442
|
# @yieldparam err [StandardError] error object if request failed
|
443
443
|
#
|
444
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
444
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionResponse]
|
445
445
|
#
|
446
446
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
447
447
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
448
448
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
449
|
-
def resume_partner_subscription(name,
|
449
|
+
def resume_partner_subscription(name, resume_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
450
450
|
command = make_simple_command(:post, 'v1/{+name}:resume', options)
|
451
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
452
|
-
command.request_object =
|
453
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
454
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
451
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionRequest::Representation
|
452
|
+
command.request_object = resume_subscription_request_object
|
453
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionResponse::Representation
|
454
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::ResumeSubscriptionResponse
|
455
455
|
command.params['name'] = name unless name.nil?
|
456
456
|
command.query['fields'] = fields unless fields.nil?
|
457
457
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -464,7 +464,7 @@ module Google
|
|
464
464
|
# @param [String] name
|
465
465
|
# Required. The name of the subscription resource to be suspended. It will have
|
466
466
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`"
|
467
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
467
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionRequest] suspend_subscription_request_object
|
468
468
|
# @param [String] fields
|
469
469
|
# Selector specifying which fields to include in a partial response.
|
470
470
|
# @param [String] quota_user
|
@@ -474,20 +474,20 @@ module Google
|
|
474
474
|
# Request-specific options
|
475
475
|
#
|
476
476
|
# @yield [result, err] Result & error if block supplied
|
477
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
477
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionResponse] parsed result object
|
478
478
|
# @yieldparam err [StandardError] error object if request failed
|
479
479
|
#
|
480
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
480
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionResponse]
|
481
481
|
#
|
482
482
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
483
483
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
484
484
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
485
|
-
def suspend_partner_subscription(name,
|
485
|
+
def suspend_partner_subscription(name, suspend_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
486
486
|
command = make_simple_command(:post, 'v1/{+name}:suspend', options)
|
487
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
488
|
-
command.request_object =
|
489
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
490
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
487
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionRequest::Representation
|
488
|
+
command.request_object = suspend_subscription_request_object
|
489
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionResponse::Representation
|
490
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::SuspendSubscriptionResponse
|
491
491
|
command.params['name'] = name unless name.nil?
|
492
492
|
command.query['fields'] = fields unless fields.nil?
|
493
493
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
# Required. The name of the subscription resource whose pending cancellation
|
504
504
|
# needs to be undone. It will have the format of "partners/`partner_id`/
|
505
505
|
# subscriptions/`subscription_id`"
|
506
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
506
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionRequest] undo_cancel_subscription_request_object
|
507
507
|
# @param [String] fields
|
508
508
|
# Selector specifying which fields to include in a partial response.
|
509
509
|
# @param [String] quota_user
|
@@ -513,20 +513,20 @@ module Google
|
|
513
513
|
# Request-specific options
|
514
514
|
#
|
515
515
|
# @yield [result, err] Result & error if block supplied
|
516
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
516
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionResponse] parsed result object
|
517
517
|
# @yieldparam err [StandardError] error object if request failed
|
518
518
|
#
|
519
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
519
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionResponse]
|
520
520
|
#
|
521
521
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
-
def undo_partner_subscription_cancel(name,
|
524
|
+
def undo_partner_subscription_cancel(name, undo_cancel_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
525
525
|
command = make_simple_command(:post, 'v1/{+name}:undoCancel', options)
|
526
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
527
|
-
command.request_object =
|
528
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
529
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
526
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionRequest::Representation
|
527
|
+
command.request_object = undo_cancel_subscription_request_object
|
528
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionResponse::Representation
|
529
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::UndoCancelSubscriptionResponse
|
530
530
|
command.params['name'] = name unless name.nil?
|
531
531
|
command.query['fields'] = fields unless fields.nil?
|
532
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -541,7 +541,7 @@ module Google
|
|
541
541
|
# session token is valid for 1 hour.
|
542
542
|
# @param [String] parent
|
543
543
|
# Required. The parent, the partner that can resell. Format: partners/`partner`
|
544
|
-
# @param [Google::Apis::PaymentsresellersubscriptionV1::
|
544
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionRequest] generate_user_session_request_object
|
545
545
|
# @param [String] fields
|
546
546
|
# Selector specifying which fields to include in a partial response.
|
547
547
|
# @param [String] quota_user
|
@@ -551,20 +551,20 @@ module Google
|
|
551
551
|
# Request-specific options
|
552
552
|
#
|
553
553
|
# @yield [result, err] Result & error if block supplied
|
554
|
-
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::
|
554
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse] parsed result object
|
555
555
|
# @yieldparam err [StandardError] error object if request failed
|
556
556
|
#
|
557
|
-
# @return [Google::Apis::PaymentsresellersubscriptionV1::
|
557
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse]
|
558
558
|
#
|
559
559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
560
560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
561
561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
562
|
-
def generate_partner_user_session(parent,
|
562
|
+
def generate_partner_user_session(parent, generate_user_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
563
563
|
command = make_simple_command(:post, 'v1/{+parent}/userSessions:generate', options)
|
564
|
-
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
565
|
-
command.request_object =
|
566
|
-
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::
|
567
|
-
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::
|
564
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionRequest::Representation
|
565
|
+
command.request_object = generate_user_session_request_object
|
566
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse::Representation
|
567
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse
|
568
568
|
command.params['parent'] = parent unless parent.nil?
|
569
569
|
command.query['fields'] = fields unless fields.nil?
|
570
570
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-paymentsresellersubscription_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.55.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|