google-apis-paymentsresellersubscription_v1 0.48.0 → 0.49.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11ee265494a2296a55a2db2d9b90ecdd6f987dd1d8be59cf3e3158be64e5317c
4
- data.tar.gz: 28050c58a545cfc4ddc9d8bb71ac4551bb2cc799666a5cd3cf4f6137ae44edf4
3
+ metadata.gz: dcce34d9c9ab68a8b25ec5f47f7c808c53d1fab94c565748c37bcc250f5dfb05
4
+ data.tar.gz: b2fe7a15053d9ada6c6cf6b7962fac4c546a712fbf61a826441d3ee480fadbe1
5
5
  SHA512:
6
- metadata.gz: 80ea5af41e49f35b98e80644ddef4bc48ed43e88c7e9c25d189bf0561bc7d45f80043938e38f7322236d4a636b27f507075d11ea3652dcc955d1dde78aeb04a7
7
- data.tar.gz: 003d7c926f2782a6dc1e3b07e9b5c9513924b34e19dc1ce8879247c4fbc28f9de73aa14d020cf1503d048d9a0f15da0480eca08cad9891c657f1c843972c0067
6
+ metadata.gz: b45051cc9e1cb492b900dba50b629eefc2bcabc50364fc186876b5034db98705f54d3c07e920e4db4ac64186495f7485d9440d653f43b063ce66a7fb9e65adff
7
+ data.tar.gz: 923eeecdc461a8573669e60960c02e1a46f3dae800b8036c281b7b6111783583f1503d17a7fd6059d7bee6fc06ed282b3bf91d6a1c41424cbae75f1cf385f48b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.49.0 (2025-03-30)
4
+
5
+ * Regenerated from discovery document revision 20250327
6
+
3
7
  ### v0.48.0 (2025-03-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20250312
@@ -941,6 +941,46 @@ module Google
941
941
  end
942
942
  end
943
943
 
944
+ # Request to resume a suspended subscription.
945
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest
946
+ include Google::Apis::Core::Hashable
947
+
948
+ def initialize(**args)
949
+ update!(**args)
950
+ end
951
+
952
+ # Update properties of this object
953
+ def update!(**args)
954
+ end
955
+ end
956
+
957
+ # Response that contains the resumed subscription.
958
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # A subscription serves as a central billing entity between an external partner
962
+ # and Google. The underlying Google services rely on the subscription state to
963
+ # grant or revoke the user's service entitlement. It's important to note that
964
+ # the subscription state may not always perfectly align with the user's service
965
+ # entitlement. For example, some Google services may continue providing access
966
+ # to the user until the current billing cycle ends, even if the subscription has
967
+ # been immediately canceled. However, other services may not do the same. To
968
+ # fully understand the specific details, please consult the relevant contract or
969
+ # product policy.
970
+ # Corresponds to the JSON property `subscription`
971
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription]
972
+ attr_accessor :subscription
973
+
974
+ def initialize(**args)
975
+ update!(**args)
976
+ end
977
+
978
+ # Update properties of this object
979
+ def update!(**args)
980
+ @subscription = args[:subscription] if args.key?(:subscription)
981
+ end
982
+ end
983
+
944
984
  # A description of what time period or moment in time the product or service is
945
985
  # being delivered over.
946
986
  class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
@@ -1381,6 +1421,46 @@ module Google
1381
1421
  end
1382
1422
  end
1383
1423
 
1424
+ # Request to suspend a subscription.
1425
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest
1426
+ include Google::Apis::Core::Hashable
1427
+
1428
+ def initialize(**args)
1429
+ update!(**args)
1430
+ end
1431
+
1432
+ # Update properties of this object
1433
+ def update!(**args)
1434
+ end
1435
+ end
1436
+
1437
+ # Response that contains the suspended subscription.
1438
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse
1439
+ include Google::Apis::Core::Hashable
1440
+
1441
+ # A subscription serves as a central billing entity between an external partner
1442
+ # and Google. The underlying Google services rely on the subscription state to
1443
+ # grant or revoke the user's service entitlement. It's important to note that
1444
+ # the subscription state may not always perfectly align with the user's service
1445
+ # entitlement. For example, some Google services may continue providing access
1446
+ # to the user until the current billing cycle ends, even if the subscription has
1447
+ # been immediately canceled. However, other services may not do the same. To
1448
+ # fully understand the specific details, please consult the relevant contract or
1449
+ # product policy.
1450
+ # Corresponds to the JSON property `subscription`
1451
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription]
1452
+ attr_accessor :subscription
1453
+
1454
+ def initialize(**args)
1455
+ update!(**args)
1456
+ end
1457
+
1458
+ # Update properties of this object
1459
+ def update!(**args)
1460
+ @subscription = args[:subscription] if args.key?(:subscription)
1461
+ end
1462
+ end
1463
+
1384
1464
  # Request to revoke a cancellation request.
1385
1465
  class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
1386
1466
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PaymentsresellersubscriptionV1
18
18
  # Version of the google-apis-paymentsresellersubscription_v1 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250312"
25
+ REVISION = "20250327"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,18 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -256,6 +268,18 @@ module Google
256
268
  include Google::Apis::Core::JsonObjectSupport
257
269
  end
258
270
 
271
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
259
283
  class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
260
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
285
 
@@ -577,6 +601,20 @@ module Google
577
601
  end
578
602
  end
579
603
 
604
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest
605
+ # @private
606
+ class Representation < Google::Apis::Core::JsonRepresentation
607
+ end
608
+ end
609
+
610
+ class GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse
611
+ # @private
612
+ class Representation < Google::Apis::Core::JsonRepresentation
613
+ property :subscription, as: 'subscription', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription::Representation
614
+
615
+ end
616
+ end
617
+
580
618
  class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
581
619
  # @private
582
620
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -691,6 +729,20 @@ module Google
691
729
  end
692
730
  end
693
731
 
732
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest
733
+ # @private
734
+ class Representation < Google::Apis::Core::JsonRepresentation
735
+ end
736
+ end
737
+
738
+ class GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse
739
+ # @private
740
+ class Representation < Google::Apis::Core::JsonRepresentation
741
+ property :subscription, as: 'subscription', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription::Representation
742
+
743
+ end
744
+ end
745
+
694
746
  class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
695
747
  # @private
696
748
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -422,6 +422,78 @@ module Google
422
422
  execute_or_queue_command(command, &block)
423
423
  end
424
424
 
425
+ # Resumes a suspended subscription. The new billing cycle will start at the time
426
+ # of the request. It should be called directly by the partner using service
427
+ # accounts.
428
+ # @param [String] name
429
+ # Required. The name of the subscription resource to be resumed. It will have
430
+ # the format of "partners/`partner_id`/subscriptions/`subscription_id`"
431
+ # @param [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest] google_cloud_payments_reseller_subscription_v1_resume_subscription_request_object
432
+ # @param [String] fields
433
+ # Selector specifying which fields to include in a partial response.
434
+ # @param [String] quota_user
435
+ # Available to use for quota purposes for server-side applications. Can be any
436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
437
+ # @param [Google::Apis::RequestOptions] options
438
+ # Request-specific options
439
+ #
440
+ # @yield [result, err] Result & error if block supplied
441
+ # @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse] parsed result object
442
+ # @yieldparam err [StandardError] error object if request failed
443
+ #
444
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse]
445
+ #
446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
449
+ def resume_partner_subscription(name, google_cloud_payments_reseller_subscription_v1_resume_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
450
+ command = make_simple_command(:post, 'v1/{+name}:resume', options)
451
+ command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest::Representation
452
+ command.request_object = google_cloud_payments_reseller_subscription_v1_resume_subscription_request_object
453
+ command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse::Representation
454
+ command.response_class = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse
455
+ command.params['name'] = name unless name.nil?
456
+ command.query['fields'] = fields unless fields.nil?
457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
458
+ execute_or_queue_command(command, &block)
459
+ end
460
+
461
+ # Suspends a subscription. Contract terms may dictate if a prorated refund will
462
+ # be issued upon suspension. It should be called directly by the partner using
463
+ # service accounts.
464
+ # @param [String] name
465
+ # Required. The name of the subscription resource to be suspended. It will have
466
+ # the format of "partners/`partner_id`/subscriptions/`subscription_id`"
467
+ # @param [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest] google_cloud_payments_reseller_subscription_v1_suspend_subscription_request_object
468
+ # @param [String] fields
469
+ # Selector specifying which fields to include in a partial response.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
473
+ # @param [Google::Apis::RequestOptions] options
474
+ # Request-specific options
475
+ #
476
+ # @yield [result, err] Result & error if block supplied
477
+ # @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse] parsed result object
478
+ # @yieldparam err [StandardError] error object if request failed
479
+ #
480
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse]
481
+ #
482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
485
+ def suspend_partner_subscription(name, google_cloud_payments_reseller_subscription_v1_suspend_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ command = make_simple_command(:post, 'v1/{+name}:suspend', options)
487
+ command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest::Representation
488
+ command.request_object = google_cloud_payments_reseller_subscription_v1_suspend_subscription_request_object
489
+ command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse::Representation
490
+ command.response_class = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse
491
+ command.params['name'] = name unless name.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ execute_or_queue_command(command, &block)
495
+ end
496
+
425
497
  # Currently, it is used by **Google One, Play Pass** partners. Revokes the
426
498
  # pending cancellation of a subscription, which is currently in `
427
499
  # STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already cancelled,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-paymentsresellersubscription_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -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.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.49.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: