google-apis-reseller_v1 0.17.0 → 0.19.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: f6f4304677a05e8dac4e8c14e037e24819fdf3557e40d093eb39a4f928a065e0
4
- data.tar.gz: 0025bf6ffd831a5738c0c007c461e21ab76dea1d5bf4ac52ea6b878832ccf2bc
3
+ metadata.gz: 32aab56bdc26aa7175d89db0b5d3c010c2206f626642aa0d9d02ce67239c5995
4
+ data.tar.gz: 0ff390ad695a7fdc34741e9834ca7d76334b9dedb0b373b3a40ef530fc7fda88
5
5
  SHA512:
6
- metadata.gz: 8b11a01dbd0c780ee67bf3911925ead1a47b8715cefb092f20e33914264a82fb811de2161d7b0bf1b39b9c2d03d14dca33e980c3f33e118659ac0f86210211b4
7
- data.tar.gz: 3b338e53e973529d6becb407cd12ea71adedb66d1f8913de3ce0093a2a5f1e0112a7100c5d4828b1eb85f8568f1a8f9ed6de5e725f976ad23126604e2e60e6f6
6
+ metadata.gz: 0a409641fe2cd713a3dc6153f253d6175eebb5a65571c8e60d7d0c59cefcb2cedc826947244aa9cec2afafde369ca8e49d002bffc1f22f070bd80571cb1ff1ae
7
+ data.tar.gz: 18bf5cd9a87f34fc51f7d39e11156052d79ba4e3263e40e4933f1eba0a03180dc0b5ab873f9d6195ea4c20609ab40236e75c0b83b7e680819ad1dd58b236f0e2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-reseller_v1
2
2
 
3
+ ### v0.19.0 (2024-01-23)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.18.0 (2023-06-18)
8
+
9
+ * Regenerated from discovery document revision 20230611
10
+
3
11
  ### v0.17.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ResellerV1
18
18
  # Version of the google-apis-reseller_v1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211106"
25
+ REVISION = "20230611"
26
26
  end
27
27
  end
28
28
  end
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/google-apps/reseller/
35
35
  class ResellerService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://reseller.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://reseller.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-reseller_v1',
49
51
  client_version: Google::Apis::ResellerV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -602,12 +604,23 @@ module Google
602
604
  # as returned by the API) can always be used. We recommend storing the unique
603
605
  # identifier in your systems where applicable.
604
606
  # @param [Google::Apis::ResellerV1::Subscription] subscription_object
607
+ # @param [String] action
608
+ # The intented insert action. The usage of this field is governed by certain
609
+ # policies which are being developed & tested currently. Hence, these might not
610
+ # work as intended. Once this is fully tested & available to consume, we will
611
+ # share more information about its usage, limitations and policy documentation.
605
612
  # @param [String] customer_auth_token
606
613
  # The `customerAuthToken` query string is required when creating a resold
607
614
  # account that transfers a direct customer's subscription or transfers another
608
615
  # reseller customer's subscription to your reseller management. This is a
609
616
  # hexadecimal authentication token needed to complete the subscription transfer.
610
617
  # For more information, see the administrator help center.
618
+ # @param [String] source_sku_id
619
+ # The sku_id of the existing subscription to be upgraded or downgraded. This is
620
+ # required when action is SWITCH. The usage of this field is governed by certain
621
+ # policies which are being developed & tested currently. Hence, these might not
622
+ # work as intended. Once this is fully tested & available to consume, we will
623
+ # share more information about its usage, limitations and policy documentation.
611
624
  # @param [String] fields
612
625
  # Selector specifying which fields to include in a partial response.
613
626
  # @param [String] quota_user
@@ -625,14 +638,16 @@ module Google
625
638
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
639
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
640
  # @raise [Google::Apis::AuthorizationError] Authorization is required
628
- def insert_subscription(customer_id, subscription_object = nil, customer_auth_token: nil, fields: nil, quota_user: nil, options: nil, &block)
641
+ def insert_subscription(customer_id, subscription_object = nil, action: nil, customer_auth_token: nil, source_sku_id: nil, fields: nil, quota_user: nil, options: nil, &block)
629
642
  command = make_simple_command(:post, 'apps/reseller/v1/customers/{customerId}/subscriptions', options)
630
643
  command.request_representation = Google::Apis::ResellerV1::Subscription::Representation
631
644
  command.request_object = subscription_object
632
645
  command.response_representation = Google::Apis::ResellerV1::Subscription::Representation
633
646
  command.response_class = Google::Apis::ResellerV1::Subscription
634
647
  command.params['customerId'] = customer_id unless customer_id.nil?
648
+ command.query['action'] = action unless action.nil?
635
649
  command.query['customerAuthToken'] = customer_auth_token unless customer_auth_token.nil?
650
+ command.query['sourceSkuId'] = source_sku_id unless source_sku_id.nil?
636
651
  command.query['fields'] = fields unless fields.nil?
637
652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
638
653
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-reseller_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-reseller_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-reseller_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-reseller_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-reseller_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Workspace Reseller API V1