google-apis-reseller_v1 0.4.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43252b2f0e04dedc5c4d542bc81419ea5bbfe15343ba44d4b32cdbb643219983
4
- data.tar.gz: f1c5cf5e386ff6701cc9d398ab7a249d56a38271851aa63cb00462adf8723c07
3
+ metadata.gz: 732d8fae9588e4bb387e76548ba0c40b0ee6b17db6dceedb3ce01f405b0114a8
4
+ data.tar.gz: 575107f88bf3f4d6c7edcedffa463bd67aa9ff220b2a6281286b7dff36b61f40
5
5
  SHA512:
6
- metadata.gz: fa61ea2062d56e6417a18db9943b539a34c9c29e77b83605ef67fed646d7b0ca219232052386dc0bdb428974795dc39857e75c98acce6e1ab89bacf3a2111198
7
- data.tar.gz: 413584b8ec00d8f376760eef8547f6b361a2fbf48acabad5054955670608a392c9606ff5ffa809fc5578c606b56055a0d27962f3ed4d4217d7e0157c54452351
6
+ metadata.gz: 1b17746980b2081d2110bd37733def6d79263787a6771d4fd0c790c448c3ab9bd0a761e8c3b3ffeeba93a800bc5b60ead77e98423f97500dcdaea47ac31a4604
7
+ data.tar.gz: dd08b164fe3fb6db67fa86f64db29388887763b7de320d968598ab62b019cd2315ecc392fbab5213ff2184acde20c06ee717685a9c48179bb721848fc9620a5d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-reseller_v1
2
2
 
3
+ ### v0.8.0 (2021-07-22)
4
+
5
+ * Regenerated from discovery document revision 20210720
6
+
7
+ ### v0.7.0 (2021-06-29)
8
+
9
+ * Regenerated using generator version 0.4.0
10
+
11
+ ### v0.6.0 (2021-06-24)
12
+
13
+ * Regenerated from discovery document revision 20210623
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.5.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
3
20
  ### v0.4.0 (2021-03-25)
4
21
 
5
22
  * Regenerated from discovery document revision 20210323
@@ -167,8 +167,9 @@ module Google
167
167
 
168
168
  # Like the "Customer email" in the reseller tools, this email is the secondary
169
169
  # contact used if something happens to the customer's service such as service
170
- # outage or a security issue. This property is required when creating a new
171
- # customer and should not use the same domain as `customerDomain`.
170
+ # outage or a security issue. This property is required when creating a new "
171
+ # domain" customer and should not use the same domain as `customerDomain`. The `
172
+ # alternateEmail` field is not necessary to create a "team" customer.
172
173
  # Corresponds to the JSON property `alternateEmail`
173
174
  # @return [String]
174
175
  attr_accessor :alternate_email
@@ -193,6 +194,14 @@ module Google
193
194
  # @return [String]
194
195
  attr_accessor :customer_id
195
196
 
197
+ # Identifies the type of the customer. Acceptable values include: * `domain`:
198
+ # Implies a domain-verified customer (default). * `team`: Implies an email-
199
+ # verified customer. For more information, see [managed teams](https://support.
200
+ # google.com/a/users/answer/9939479).
201
+ # Corresponds to the JSON property `customerType`
202
+ # @return [String]
203
+ attr_accessor :customer_type
204
+
196
205
  # Identifies the resource as a customer. Value: `reseller#customer`
197
206
  # Corresponds to the JSON property `kind`
198
207
  # @return [String]
@@ -211,6 +220,11 @@ module Google
211
220
  # @return [Google::Apis::ResellerV1::Address]
212
221
  attr_accessor :postal_address
213
222
 
223
+ # JSON template for primary admin in case of TEAM customers
224
+ # Corresponds to the JSON property `primaryAdmin`
225
+ # @return [Google::Apis::ResellerV1::PrimaryAdmin]
226
+ attr_accessor :primary_admin
227
+
214
228
  # URL to customer's Admin console dashboard. The read-only URL is generated by
215
229
  # the API service. This is used if your client application requires the customer
216
230
  # to complete a task in the Admin console.
@@ -228,13 +242,38 @@ module Google
228
242
  @customer_domain = args[:customer_domain] if args.key?(:customer_domain)
229
243
  @customer_domain_verified = args[:customer_domain_verified] if args.key?(:customer_domain_verified)
230
244
  @customer_id = args[:customer_id] if args.key?(:customer_id)
245
+ @customer_type = args[:customer_type] if args.key?(:customer_type)
231
246
  @kind = args[:kind] if args.key?(:kind)
232
247
  @phone_number = args[:phone_number] if args.key?(:phone_number)
233
248
  @postal_address = args[:postal_address] if args.key?(:postal_address)
249
+ @primary_admin = args[:primary_admin] if args.key?(:primary_admin)
234
250
  @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url)
235
251
  end
236
252
  end
237
253
 
254
+ # JSON template for primary admin in case of TEAM customers
255
+ class PrimaryAdmin
256
+ include Google::Apis::Core::Hashable
257
+
258
+ # The business email of the primary administrator of the customer. The email
259
+ # verification link is sent to this email address at the time of customer
260
+ # creation. Primary administrators have access to the customer's Admin Console,
261
+ # including the ability to invite and evict users and manage the administrative
262
+ # needs of the customer.
263
+ # Corresponds to the JSON property `primaryEmail`
264
+ # @return [String]
265
+ attr_accessor :primary_email
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @primary_email = args[:primary_email] if args.key?(:primary_email)
274
+ end
275
+ end
276
+
238
277
  # JSON template for a subscription renewal settings.
239
278
  class RenewalSettings
240
279
  include Google::Apis::Core::Hashable
@@ -598,9 +637,9 @@ module Google
598
637
  class TransferInfo
599
638
  include Google::Apis::Core::Hashable
600
639
 
601
- # Sku id of the current resold subscription. This is populated only when
602
- # customer has subscription with legacy sku and the subscription resource is
603
- # populated with recommeded sku for transfer in.
640
+ # The `skuId` of the current resold subscription. This is populated only when
641
+ # the customer has a subscription with a legacy SKU and the subscription
642
+ # resource is populated with the `skuId` of the SKU recommended for the transfer.
604
643
  # Corresponds to the JSON property `currentLegacySkuId`
605
644
  # @return [String]
606
645
  attr_accessor :current_legacy_sku_id
@@ -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.4.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210323"
25
+ REVISION = "20210720"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class PrimaryAdmin
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class RenewalSettings
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -135,14 +141,24 @@ module Google
135
141
  property :customer_domain, as: 'customerDomain'
136
142
  property :customer_domain_verified, as: 'customerDomainVerified'
137
143
  property :customer_id, as: 'customerId'
144
+ property :customer_type, as: 'customerType'
138
145
  property :kind, as: 'kind'
139
146
  property :phone_number, as: 'phoneNumber'
140
147
  property :postal_address, as: 'postalAddress', class: Google::Apis::ResellerV1::Address, decorator: Google::Apis::ResellerV1::Address::Representation
141
148
 
149
+ property :primary_admin, as: 'primaryAdmin', class: Google::Apis::ResellerV1::PrimaryAdmin, decorator: Google::Apis::ResellerV1::PrimaryAdmin::Representation
150
+
142
151
  property :resource_ui_url, as: 'resourceUiUrl'
143
152
  end
144
153
  end
145
154
 
155
+ class PrimaryAdmin
156
+ # @private
157
+ class Representation < Google::Apis::Core::JsonRepresentation
158
+ property :primary_email, as: 'primaryEmail'
159
+ end
160
+ end
161
+
146
162
  class RenewalSettings
147
163
  # @private
148
164
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,7 +50,7 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
- # Get a customer account. Use this operation to see a customer account already
53
+ # Gets a customer account. Use this operation to see a customer account already
54
54
  # in your reseller management, or to see the minimal account information for an
55
55
  # existing customer that you do not manage. For more information about the API
56
56
  # response for existing customers, see [retrieving a customer account](/admin-
@@ -87,7 +87,7 @@ module Google
87
87
  execute_or_queue_command(command, &block)
88
88
  end
89
89
 
90
- # Order a new customer's account. Before ordering a new customer account,
90
+ # Orders a new customer's account. Before ordering a new customer account,
91
91
  # establish whether the customer account already exists using the [`customers.
92
92
  # get`](/admin-sdk/reseller/v1/reference/customers/get) If the customer account
93
93
  # exists as a direct Google account or as a resold customer account from another
@@ -138,7 +138,11 @@ module Google
138
138
  execute_or_queue_command(command, &block)
139
139
  end
140
140
 
141
- # Update a customer account's settings. This method supports patch semantics.
141
+ # Updates a customer account's settings. This method supports patch semantics.
142
+ # You cannot update `customerType` via the Reseller API, but a `"team"` customer
143
+ # can verify their domain and become `customerType = "domain"`. For more
144
+ # information, see [Verify your domain to unlock Essentials features](https://
145
+ # support.google.com/a/answer/9122284).
142
146
  # @param [String] customer_id
143
147
  # Either the customer's primary domain name or the customer's unique identifier.
144
148
  # If using the domain name, we do not recommend using a `customerId` as a key
@@ -174,9 +178,10 @@ module Google
174
178
  execute_or_queue_command(command, &block)
175
179
  end
176
180
 
177
- # Update a customer account's settings. For more information, see [update a
178
- # customer's settings](/admin-sdk/reseller/v1/how-tos/manage_customers#
179
- # update_customer).
181
+ # Updates a customer account's settings. You cannot update `customerType` via
182
+ # the Reseller API, but a `"team"` customer can verify their domain and become `
183
+ # customerType = "domain"`. For more information, see [update a customer's
184
+ # settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).
180
185
  # @param [String] customer_id
181
186
  # Either the customer's primary domain name or the customer's unique identifier.
182
187
  # If using the domain name, we do not recommend using a `customerId` as a key
@@ -342,7 +347,7 @@ module Google
342
347
  execute_or_queue_command(command, &block)
343
348
  end
344
349
 
345
- # Update a subscription plan. Use this method to update a plan for a 30-day
350
+ # Updates a subscription plan. Use this method to update a plan for a 30-day
346
351
  # trial or a flexible plan subscription to an annual commitment plan with
347
352
  # monthly or yearly payments. How a plan is updated differs depending on the
348
353
  # plan and the products. For more information, see the description in [manage
@@ -390,9 +395,9 @@ module Google
390
395
  execute_or_queue_command(command, &block)
391
396
  end
392
397
 
393
- # Update a user license's renewal settings. This is applicable for accounts with
394
- # annual commitment plans only. For more information, see the description in [
395
- # manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
398
+ # Updates a user license's renewal settings. This is applicable for accounts
399
+ # with annual commitment plans only. For more information, see the description
400
+ # in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
396
401
  # update_renewal).
397
402
  # @param [String] customer_id
398
403
  # Either the customer's primary domain name or the customer's unique identifier.
@@ -436,7 +441,7 @@ module Google
436
441
  execute_or_queue_command(command, &block)
437
442
  end
438
443
 
439
- # Update a subscription's user license settings. For more information about
444
+ # Updates a subscription's user license settings. For more information about
440
445
  # updating an annual commitment plan or a flexible plan subscription’s licenses,
441
446
  # see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#
442
447
  # update_subscription_seat).
@@ -482,7 +487,7 @@ module Google
482
487
  execute_or_queue_command(command, &block)
483
488
  end
484
489
 
485
- # Cancel, suspend, or transfer a subscription to direct.
490
+ # Cancels, suspends, or transfers a subscription to direct.
486
491
  # @param [String] customer_id
487
492
  # Either the customer's primary domain name or the customer's unique identifier.
488
493
  # If using the domain name, we do not recommend using a `customerId` as a key
@@ -524,7 +529,7 @@ module Google
524
529
  execute_or_queue_command(command, &block)
525
530
  end
526
531
 
527
- # Get a specific subscription. The `subscriptionId` can be found using the [
532
+ # Gets a specific subscription. The `subscriptionId` can be found using the [
528
533
  # Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/
529
534
  # manage_subscriptions#get_all_subscriptions) method. For more information about
530
535
  # retrieving a specific subscription, see the information descrived in [manage
@@ -569,7 +574,7 @@ module Google
569
574
  execute_or_queue_command(command, &block)
570
575
  end
571
576
 
572
- # Create or transfer a subscription. Create a subscription for a customer's
577
+ # Creates or transfer a subscription. Create a subscription for a customer's
573
578
  # account that you ordered using the [Order a new customer account](/admin-sdk/
574
579
  # reseller/v1/reference/customers/insert.html) method. For more information
575
580
  # about creating a subscription for different payment plans, see [manage
@@ -623,7 +628,7 @@ module Google
623
628
  execute_or_queue_command(command, &block)
624
629
  end
625
630
 
626
- # List of subscriptions managed by the reseller. The list can be all
631
+ # Lists of subscriptions managed by the reseller. The list can be all
627
632
  # subscriptions, all of a customer's subscriptions, or all of a customer's
628
633
  # transferable subscriptions. Optionally, this method can filter the response by
629
634
  # a `customerNamePrefix`. For more information, see [manage subscriptions](/
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-reseller_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.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: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Google Workspace Reseller API V1.
28
34
  Simple REST clients are Ruby client libraries that provide access to Google services
29
35
  via their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-reseller_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-reseller_v1/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-reseller_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-reseller_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Google Workspace Reseller API V1