blob: 328c7cd1d4b7e5cba5fa63adbdd29af65be69573 [file] [log] [blame]
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001{
2 "mtlsRootUrl": "https://www.mtls.googleapis.com/",
3 "protocol": "rest",
4 "servicePath": "",
5 "revision": "20200911",
6 "icons": {
7 "x32": "http://www.google.com/images/icons/product/search-32.gif",
8 "x16": "http://www.google.com/images/icons/product/search-16.gif"
9 },
10 "fullyEncodeReservedExpansion": true,
11 "ownerDomain": "google.com",
12 "basePath": "",
13 "canonicalName": "Reseller",
14 "ownerName": "Google",
15 "auth": {
16 "oauth2": {
17 "scopes": {
18 "https://www.googleapis.com/auth/apps.order.readonly": {
19 "description": "Manage users on your domain"
20 },
21 "https://www.googleapis.com/auth/apps.order": {
22 "description": "Manage users on your domain"
23 }
24 }
25 }
26 },
27 "baseUrl": "https://www.googleapis.com/",
28 "title": "Enterprise Apps Reseller API",
29 "description": "Perform common functions that are available on the Google Apps Reseller Console at scale like placing orders and viewing customer information",
30 "id": "reseller:v1",
31 "name": "reseller",
32 "resources": {
33 "subscriptions": {
34 "methods": {
35 "suspend": {
36 "id": "reseller.subscriptions.suspend",
37 "response": {
38 "$ref": "Subscription"
39 },
40 "httpMethod": "POST",
41 "description": "Suspends an active subscription.",
42 "parameterOrder": [
43 "customerId",
44 "subscriptionId"
45 ],
46 "scopes": [
47 "https://www.googleapis.com/auth/apps.order"
48 ],
49 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend",
50 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend",
51 "parameters": {
52 "customerId": {
53 "type": "string",
54 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
55 "required": true,
56 "location": "path"
57 },
58 "subscriptionId": {
59 "location": "path",
60 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.",
61 "required": true,
62 "type": "string"
63 }
64 }
65 },
66 "startPaidService": {
67 "response": {
68 "$ref": "Subscription"
69 },
70 "id": "reseller.subscriptions.startPaidService",
71 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService",
72 "httpMethod": "POST",
73 "parameterOrder": [
74 "customerId",
75 "subscriptionId"
76 ],
77 "scopes": [
78 "https://www.googleapis.com/auth/apps.order"
79 ],
80 "description": "Immediately move a 30-day free trial subscription to a paid service subscription.",
81 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService",
82 "parameters": {
83 "subscriptionId": {
84 "required": true,
85 "type": "string",
86 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.",
87 "location": "path"
88 },
89 "customerId": {
90 "location": "path",
91 "required": true,
92 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
93 "type": "string"
94 }
95 }
96 },
97 "changePlan": {
98 "httpMethod": "POST",
99 "parameters": {
100 "customerId": {
101 "type": "string",
102 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
103 "required": true,
104 "location": "path"
105 },
106 "subscriptionId": {
107 "location": "path",
108 "required": true,
109 "type": "string",
110 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method."
111 }
112 },
113 "parameterOrder": [
114 "customerId",
115 "subscriptionId"
116 ],
117 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan",
118 "scopes": [
119 "https://www.googleapis.com/auth/apps.order"
120 ],
121 "id": "reseller.subscriptions.changePlan",
122 "response": {
123 "$ref": "Subscription"
124 },
125 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan",
126 "request": {
127 "$ref": "ChangePlanRequest"
128 },
129 "description": "Update a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments."
130 },
131 "insert": {
132 "parameters": {
133 "customerId": {
134 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
135 "type": "string",
136 "location": "path",
137 "required": true
138 },
139 "customerAuthToken": {
140 "description": "The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.",
141 "location": "query",
142 "type": "string"
143 }
144 },
145 "description": "Create or transfer a subscription.",
146 "parameterOrder": [
147 "customerId"
148 ],
149 "scopes": [
150 "https://www.googleapis.com/auth/apps.order"
151 ],
152 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions",
153 "httpMethod": "POST",
154 "path": "apps/reseller/v1/customers/{customerId}/subscriptions",
155 "id": "reseller.subscriptions.insert",
156 "request": {
157 "$ref": "Subscription"
158 },
159 "response": {
160 "$ref": "Subscription"
161 }
162 },
163 "get": {
164 "description": "Get a specific subscription.",
165 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}",
166 "response": {
167 "$ref": "Subscription"
168 },
169 "parameters": {
170 "customerId": {
171 "required": true,
172 "type": "string",
173 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
174 "location": "path"
175 },
176 "subscriptionId": {
177 "location": "path",
178 "required": true,
179 "type": "string",
180 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method."
181 }
182 },
183 "scopes": [
184 "https://www.googleapis.com/auth/apps.order",
185 "https://www.googleapis.com/auth/apps.order.readonly"
186 ],
187 "httpMethod": "GET",
188 "parameterOrder": [
189 "customerId",
190 "subscriptionId"
191 ],
192 "id": "reseller.subscriptions.get",
193 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}"
194 },
195 "delete": {
196 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}",
197 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}",
198 "httpMethod": "DELETE",
199 "id": "reseller.subscriptions.delete",
200 "description": "Cancel, suspend, or transfer a subscription to direct.",
201 "scopes": [
202 "https://www.googleapis.com/auth/apps.order"
203 ],
204 "parameterOrder": [
205 "customerId",
206 "subscriptionId",
207 "deletionType"
208 ],
209 "parameters": {
210 "customerId": {
211 "required": true,
212 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
213 "type": "string",
214 "location": "path"
215 },
216 "deletionType": {
217 "type": "string",
218 "required": true,
219 "location": "query",
220 "enumDescriptions": [
221 "",
222 "Cancels the subscription immediately. This does not apply to a G Suite subscription.",
223 "Transfers a subscription directly to Google. The customer is immediately transferred to a direct billing relationship with Google and is given a short amount of time with no service interruption. The customer can then choose to set up billing directly with Google by using a credit card, or they can transfer to another reseller."
224 ],
225 "description": "The deletionType query string enables the cancellation, downgrade, or suspension of a subscription.",
226 "enum": [
227 "deletionTypeUndefined",
228 "cancel",
229 "transferToDirect"
230 ]
231 },
232 "subscriptionId": {
233 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.",
234 "type": "string",
235 "required": true,
236 "location": "path"
237 }
238 }
239 },
240 "changeRenewalSettings": {
241 "request": {
242 "$ref": "RenewalSettings"
243 },
244 "id": "reseller.subscriptions.changeRenewalSettings",
245 "parameterOrder": [
246 "customerId",
247 "subscriptionId"
248 ],
249 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings",
250 "scopes": [
251 "https://www.googleapis.com/auth/apps.order"
252 ],
253 "description": "Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.",
254 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings",
255 "parameters": {
256 "customerId": {
257 "type": "string",
258 "location": "path",
259 "required": true,
260 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates."
261 },
262 "subscriptionId": {
263 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.",
264 "required": true,
265 "type": "string",
266 "location": "path"
267 }
268 },
269 "httpMethod": "POST",
270 "response": {
271 "$ref": "Subscription"
272 }
273 },
274 "list": {
275 "flatPath": "apps/reseller/v1/subscriptions",
276 "id": "reseller.subscriptions.list",
277 "scopes": [
278 "https://www.googleapis.com/auth/apps.order",
279 "https://www.googleapis.com/auth/apps.order.readonly"
280 ],
281 "response": {
282 "$ref": "Subscriptions"
283 },
284 "parameters": {
285 "maxResults": {
286 "type": "integer",
287 "location": "query",
288 "minimum": "1",
289 "format": "uint32",
290 "description": "When retrieving a large list, the maxResults is the maximum number of results per page. The nextPageToken value takes you to the next page. The default is 20.",
291 "maximum": "100"
292 },
293 "customerAuthToken": {
294 "type": "string",
295 "location": "query",
296 "description": "The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center."
297 },
298 "customerNamePrefix": {
299 "description": "When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes exam.com, example20.com and example.com: - exa -- Returns all customer names that start with 'exa' which could include exam.com, example20.com, and example.com. A name prefix is similar to using a regular expression's asterisk, exa*. - example -- Returns example20.com and example.com. ",
300 "location": "query",
301 "type": "string"
302 },
303 "customerId": {
304 "type": "string",
305 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
306 "location": "query"
307 },
308 "pageToken": {
309 "type": "string",
310 "description": "Token to specify next page in the list",
311 "location": "query"
312 }
313 },
314 "parameterOrder": [],
315 "httpMethod": "GET",
316 "description": "List of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions.",
317 "path": "apps/reseller/v1/subscriptions"
318 },
319 "changeSeats": {
320 "parameters": {
321 "subscriptionId": {
322 "location": "path",
323 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.",
324 "type": "string",
325 "required": true
326 },
327 "customerId": {
328 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
329 "required": true,
330 "location": "path",
331 "type": "string"
332 }
333 },
334 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats",
335 "description": "Update a subscription's user license settings.",
336 "scopes": [
337 "https://www.googleapis.com/auth/apps.order"
338 ],
339 "httpMethod": "POST",
340 "response": {
341 "$ref": "Subscription"
342 },
343 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats",
344 "request": {
345 "$ref": "Seats"
346 },
347 "parameterOrder": [
348 "customerId",
349 "subscriptionId"
350 ],
351 "id": "reseller.subscriptions.changeSeats"
352 },
353 "activate": {
354 "parameters": {
355 "subscriptionId": {
356 "required": true,
357 "location": "path",
358 "type": "string",
359 "description": "This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method."
360 },
361 "customerId": {
362 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
363 "required": true,
364 "type": "string",
365 "location": "path"
366 }
367 },
368 "response": {
369 "$ref": "Subscription"
370 },
371 "id": "reseller.subscriptions.activate",
372 "httpMethod": "POST",
373 "scopes": [
374 "https://www.googleapis.com/auth/apps.order"
375 ],
376 "description": "Activates a subscription previously suspended by the reseller",
377 "parameterOrder": [
378 "customerId",
379 "subscriptionId"
380 ],
381 "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate",
382 "path": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate"
383 }
384 }
385 },
386 "customers": {
387 "methods": {
388 "update": {
389 "scopes": [
390 "https://www.googleapis.com/auth/apps.order"
391 ],
392 "path": "apps/reseller/v1/customers/{customerId}",
393 "request": {
394 "$ref": "Customer"
395 },
396 "description": "Update a customer account's settings.",
397 "response": {
398 "$ref": "Customer"
399 },
400 "id": "reseller.customers.update",
401 "httpMethod": "PUT",
402 "flatPath": "apps/reseller/v1/customers/{customerId}",
403 "parameterOrder": [
404 "customerId"
405 ],
406 "parameters": {
407 "customerId": {
408 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
409 "location": "path",
410 "required": true,
411 "type": "string"
412 }
413 }
414 },
415 "patch": {
416 "httpMethod": "PATCH",
417 "scopes": [
418 "https://www.googleapis.com/auth/apps.order"
419 ],
420 "path": "apps/reseller/v1/customers/{customerId}",
421 "parameters": {
422 "customerId": {
423 "location": "path",
424 "required": true,
425 "type": "string",
426 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates."
427 }
428 },
429 "id": "reseller.customers.patch",
430 "response": {
431 "$ref": "Customer"
432 },
433 "description": "Patch a customer account's settings via Apiary Patch Orchestration",
434 "request": {
435 "$ref": "Customer"
436 },
437 "parameterOrder": [
438 "customerId"
439 ],
440 "flatPath": "apps/reseller/v1/customers/{customerId}"
441 },
442 "get": {
443 "id": "reseller.customers.get",
444 "response": {
445 "$ref": "Customer"
446 },
447 "path": "apps/reseller/v1/customers/{customerId}",
448 "flatPath": "apps/reseller/v1/customers/{customerId}",
449 "description": "Get a customer account.",
450 "scopes": [
451 "https://www.googleapis.com/auth/apps.order",
452 "https://www.googleapis.com/auth/apps.order.readonly"
453 ],
454 "httpMethod": "GET",
455 "parameterOrder": [
456 "customerId"
457 ],
458 "parameters": {
459 "customerId": {
460 "type": "string",
461 "description": "Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.",
462 "required": true,
463 "location": "path"
464 }
465 }
466 },
467 "insert": {
468 "path": "apps/reseller/v1/customers",
469 "scopes": [
470 "https://www.googleapis.com/auth/apps.order"
471 ],
472 "id": "reseller.customers.insert",
473 "request": {
474 "$ref": "Customer"
475 },
476 "flatPath": "apps/reseller/v1/customers",
477 "parameterOrder": [],
478 "parameters": {
479 "customerAuthToken": {
480 "description": "The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.",
481 "location": "query",
482 "type": "string"
483 }
484 },
485 "httpMethod": "POST",
486 "description": "Order a new customer's account.",
487 "response": {
488 "$ref": "Customer"
489 }
490 }
491 }
492 },
493 "resellernotify": {
494 "methods": {
495 "getwatchdetails": {
496 "id": "reseller.resellernotify.getwatchdetails",
497 "parameterOrder": [],
498 "description": "Returns all the details of the watch corresponding to the reseller.",
499 "httpMethod": "GET",
500 "parameters": {},
501 "flatPath": "apps/reseller/v1/resellernotify/getwatchdetails",
502 "scopes": [
503 "https://www.googleapis.com/auth/apps.order",
504 "https://www.googleapis.com/auth/apps.order.readonly"
505 ],
506 "path": "apps/reseller/v1/resellernotify/getwatchdetails",
507 "response": {
508 "$ref": "ResellernotifyGetwatchdetailsResponse"
509 }
510 },
511 "unregister": {
512 "scopes": [
513 "https://www.googleapis.com/auth/apps.order"
514 ],
515 "path": "apps/reseller/v1/resellernotify/unregister",
516 "description": "Unregisters a Reseller for receiving notifications.",
517 "httpMethod": "POST",
518 "flatPath": "apps/reseller/v1/resellernotify/unregister",
519 "response": {
520 "$ref": "ResellernotifyResource"
521 },
522 "parameterOrder": [],
523 "id": "reseller.resellernotify.unregister",
524 "parameters": {
525 "serviceAccountEmailAddress": {
526 "type": "string",
527 "description": "The service account which owns the Cloud-PubSub topic.",
528 "location": "query"
529 }
530 }
531 },
532 "register": {
533 "id": "reseller.resellernotify.register",
534 "path": "apps/reseller/v1/resellernotify/register",
535 "response": {
536 "$ref": "ResellernotifyResource"
537 },
538 "parameterOrder": [],
539 "scopes": [
540 "https://www.googleapis.com/auth/apps.order"
541 ],
542 "description": "Registers a Reseller for receiving notifications.",
543 "parameters": {
544 "serviceAccountEmailAddress": {
545 "description": "The service account which will own the created Cloud-PubSub topic.",
546 "type": "string",
547 "location": "query"
548 }
549 },
550 "httpMethod": "POST",
551 "flatPath": "apps/reseller/v1/resellernotify/register"
552 }
553 }
554 }
555 },
556 "kind": "discovery#restDescription",
557 "documentationLink": "https://developers.google.com/google-apps/reseller/",
558 "version": "v1",
559 "discoveryVersion": "v1",
560 "batchPath": "batch/reseller/v1",
561 "schemas": {
562 "Subscription": {
563 "id": "Subscription",
564 "properties": {
565 "trialSettings": {
566 "properties": {
567 "trialEndTime": {
568 "format": "int64",
569 "type": "string",
570 "description": "Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter."
571 },
572 "isInTrial": {
573 "description": "Determines if a subscription's plan is in a 30-day free trial or not: - true — The plan is in trial. - false — The plan is not in trial. ",
574 "type": "boolean"
575 }
576 },
577 "description": "The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.",
578 "type": "object"
579 },
580 "status": {
581 "description": "This is an optional property.",
582 "type": "string"
583 },
584 "plan": {
585 "description": "The plan property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API\"s payment plans, see the API concepts.",
586 "type": "object",
587 "properties": {
588 "isCommitmentPlan": {
589 "type": "boolean",
590 "description": "The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan: - true — The subscription's plan is an annual commitment plan. - false — The plan is not an annual commitment plan. "
591 },
592 "planName": {
593 "type": "string",
594 "description": "The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts. Possible values are: - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. *Caution: *ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses. - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments - FLEXIBLE — The flexible plan - TRIAL — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling changePlan will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling startPaidService. - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing. "
595 },
596 "commitmentInterval": {
597 "properties": {
598 "endTime": {
599 "format": "int64",
600 "type": "string",
601 "description": "An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter."
602 },
603 "startTime": {
604 "type": "string",
605 "description": "An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.",
606 "format": "int64"
607 }
608 },
609 "type": "object",
610 "description": "In this version of the API, annual commitment plan's interval is one year. *Note: *When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses. "
611 }
612 }
613 },
614 "billingMethod": {
615 "description": "Read-only field that returns the current billing method for a subscription.",
616 "type": "string"
617 },
618 "resourceUiUrl": {
619 "type": "string",
620 "description": "URL to customer's Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console."
621 },
622 "seats": {
623 "description": "This is a required property. The number and limit of user seat licenses in the plan.",
624 "$ref": "Seats"
625 },
626 "subscriptionId": {
627 "description": "The subscriptionId is the subscription identifier and is unique for each customer. This is a required property. Since a subscriptionId changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the subscriptionId as described in retrieve all reseller subscriptions.",
628 "type": "string"
629 },
630 "kind": {
631 "default": "reseller#subscription",
632 "type": "string",
633 "description": "Identifies the resource as a Subscription. Value: reseller#subscription"
634 },
635 "customerId": {
636 "description": "This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.",
637 "type": "string"
638 },
639 "skuName": {
640 "description": "Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.",
641 "type": "string"
642 },
643 "renewalSettings": {
644 "$ref": "RenewalSettings",
645 "description": "Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center."
646 },
647 "suspensionReasons": {
648 "items": {
649 "type": "string"
650 },
651 "description": "Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription's STATUS is SUSPENDED until all pending suspensions are removed. Possible options include: - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services. - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term. - RESELLER_INITIATED - A manual suspension invoked by a Reseller. - TRIAL_ENDED - The customer's trial expired without a plan selected. - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise). ",
652 "type": "array"
653 },
654 "dealCode": {
655 "description": "Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in insert requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.",
656 "type": "string"
657 },
658 "skuId": {
659 "description": "A required property. The skuId is a unique system identifier for a product's SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.",
660 "type": "string"
661 },
662 "transferInfo": {
663 "description": "Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.",
664 "type": "object",
665 "properties": {
666 "minimumTransferableSeats": {
667 "type": "integer",
668 "description": "When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.",
669 "format": "int32"
670 },
671 "transferabilityExpirationTime": {
672 "description": "The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.",
673 "type": "string",
674 "format": "int64"
675 }
676 }
677 },
678 "creationTime": {
679 "description": "The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.",
680 "format": "int64",
681 "type": "string"
682 },
683 "customerDomain": {
684 "description": "Primary domain name of the customer",
685 "type": "string"
686 },
687 "purchaseOrderId": {
688 "type": "string",
689 "description": "This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters."
690 }
691 },
692 "type": "object",
693 "description": "JSON template for a subscription."
694 },
695 "Seats": {
696 "properties": {
697 "maximumNumberOfSeats": {
698 "type": "integer",
699 "format": "int32",
700 "description": "This is a required property and is exclusive to subscriptions with FLEXIBLE or TRIAL plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller's contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user."
701 },
702 "numberOfSeats": {
703 "format": "int32",
704 "description": "This is a required property and is exclusive to subscriptions with ANNUAL_MONTHLY_PAY and ANNUAL_YEARLY_PAY plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the numberOfSeats cannot be reduced until renewal. The reseller is invoiced based on the numberOfSeats value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.",
705 "type": "integer"
706 },
707 "kind": {
708 "default": "subscriptions#seats",
709 "type": "string",
710 "description": "Identifies the resource as a subscription seat setting. Value: subscriptions#seats"
711 },
712 "licensedNumberOfSeats": {
713 "description": "Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field's value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: listForProductAndSku",
714 "type": "integer",
715 "format": "int32"
716 }
717 },
718 "description": "JSON template for subscription seats.",
719 "id": "Seats",
720 "type": "object"
721 },
722 "RenewalSettings": {
723 "type": "object",
724 "description": "JSON template for a subscription renewal settings.",
725 "id": "RenewalSettings",
726 "properties": {
727 "renewalType": {
728 "description": "Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the renewalType is a required property.",
729 "type": "string"
730 },
731 "kind": {
732 "default": "subscriptions#renewalSettings",
733 "type": "string",
734 "description": "Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings"
735 }
736 }
737 },
738 "Address": {
739 "id": "Address",
740 "type": "object",
741 "description": "JSON template for address of a customer.",
742 "properties": {
743 "locality": {
744 "description": "An example of a locality value is the city of San Francisco.",
745 "type": "string"
746 },
747 "countryCode": {
748 "description": "For countryCode information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.",
749 "type": "string"
750 },
751 "addressLine1": {
752 "type": "string",
753 "description": "A customer's physical address. An address can be composed of one to three lines. The addressline2 and addressLine3 are optional."
754 },
755 "organizationName": {
756 "type": "string",
757 "description": "The company or company division name. This is required."
758 },
759 "addressLine2": {
760 "description": "Line 2 of the address.",
761 "type": "string"
762 },
763 "region": {
764 "description": "An example of a region value is CA for the state of California.",
765 "type": "string"
766 },
767 "postalCode": {
768 "type": "string",
769 "description": "A postalCode example is a postal zip code such as 94043. This property is required when creating a new customer."
770 },
771 "contactName": {
772 "type": "string",
773 "description": "The customer contact's name. This is required."
774 },
775 "addressLine3": {
776 "description": "Line 3 of the address.",
777 "type": "string"
778 },
779 "kind": {
780 "default": "customers#address",
781 "type": "string",
782 "description": "Identifies the resource as a customer address. Value: customers#address"
783 }
784 }
785 },
786 "ChangePlanRequest": {
787 "description": "JSON template for the ChangePlan rpc request.",
788 "id": "ChangePlanRequest",
789 "properties": {
790 "dealCode": {
791 "type": "string",
792 "description": "Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in changePlan request in order to receive discounted rate. This property is optional. If a deal code has already been added to a subscription, this property may be left empty and the existing discounted rate will still apply (if not empty, only provide the deal code that is already present on the subscription). If a deal code has never been added to a subscription and this property is left blank, regular pricing will apply."
793 },
794 "purchaseOrderId": {
795 "type": "string",
796 "description": "This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters."
797 },
798 "seats": {
799 "$ref": "Seats",
800 "description": "This is a required property. The seats property is the number of user seat licenses."
801 },
802 "kind": {
803 "type": "string",
804 "default": "subscriptions#changePlanRequest",
805 "description": "Identifies the resource as a subscription change plan request. Value: subscriptions#changePlanRequest"
806 },
807 "planName": {
808 "type": "string",
809 "description": "The planName property is required. This is the name of the subscription's payment plan. For more information about the Google payment plans, see API concepts. Possible values are: - ANNUAL_MONTHLY_PAY - The annual commitment plan with monthly payments *Caution: *ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses. - ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments - FLEXIBLE - The flexible plan - TRIAL - The 30-day free trial plan "
810 }
811 },
812 "type": "object"
813 },
814 "Subscriptions": {
815 "type": "object",
816 "id": "Subscriptions",
817 "description": "JSON template for a subscription list.",
818 "properties": {
819 "kind": {
820 "description": "Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions",
821 "default": "reseller#subscriptions",
822 "type": "string"
823 },
824 "nextPageToken": {
825 "type": "string",
826 "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
827 },
828 "subscriptions": {
829 "description": "The subscriptions in this page of results.",
830 "items": {
831 "$ref": "Subscription"
832 },
833 "type": "array"
834 }
835 }
836 },
837 "Customer": {
838 "id": "Customer",
839 "properties": {
840 "postalAddress": {
841 "$ref": "Address",
842 "description": "A customer's address information. Each field has a limit of 255 charcters."
843 },
844 "alternateEmail": {
845 "type": "string",
846 "description": "Like the \"Customer email\" in the reseller tools, this email is the secondary contact used if something happens to the customer's service such as service outage or a security issue. This property is required when creating a new customer and should not use the same domain as customerDomain ."
847 },
848 "customerDomain": {
849 "description": "The customer's primary domain name string. customerDomain is required when creating a new customer. Do not include the www prefix in the domain when adding a customer.",
850 "type": "string"
851 },
852 "phoneNumber": {
853 "description": "Customer contact phone number. Must start with \"+\" followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, \"123\". This field is silently ignored if invalid.",
854 "type": "string"
855 },
856 "kind": {
857 "default": "reseller#customer",
858 "type": "string",
859 "description": "Identifies the resource as a customer. Value: reseller#customer"
860 },
861 "resourceUiUrl": {
862 "type": "string",
863 "description": "URL to customer's Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console."
864 },
865 "customerDomainVerified": {
866 "description": "Whether the customer's primary domain has been verified.",
867 "type": "boolean"
868 },
869 "customerId": {
870 "type": "string",
871 "description": "This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google."
872 }
873 },
874 "type": "object",
875 "description": "JSON template for a customer."
876 },
877 "ResellernotifyGetwatchdetailsResponse": {
878 "id": "ResellernotifyGetwatchdetailsResponse",
879 "description": "JSON template for resellernotify getwatchdetails response.",
880 "properties": {
881 "topicName": {
882 "type": "string",
883 "description": "Topic name of the PubSub"
884 },
885 "serviceAccountEmailAddresses": {
886 "type": "array",
887 "description": "List of registered service accounts.",
888 "items": {
889 "type": "string"
890 }
891 }
892 },
893 "type": "object"
894 },
895 "ResellernotifyResource": {
896 "type": "object",
897 "id": "ResellernotifyResource",
898 "properties": {
899 "topicName": {
900 "description": "Topic name of the PubSub",
901 "type": "string"
902 }
903 },
904 "description": "JSON template for resellernotify response."
905 }
906 },
907 "rootUrl": "https://www.googleapis.com/",
908 "parameters": {
909 "callback": {
910 "description": "JSONP",
911 "location": "query",
912 "type": "string"
913 },
914 "quotaUser": {
915 "type": "string",
916 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
917 "location": "query"
918 },
919 "prettyPrint": {
920 "default": "true",
921 "location": "query",
922 "type": "boolean",
923 "description": "Returns response with indentations and line breaks."
924 },
925 "oauth_token": {
926 "description": "OAuth 2.0 token for the current user.",
927 "location": "query",
928 "type": "string"
929 },
930 "access_token": {
931 "location": "query",
932 "description": "OAuth access token.",
933 "type": "string"
934 },
935 "$.xgafv": {
936 "enumDescriptions": [
937 "v1 error format",
938 "v2 error format"
939 ],
940 "type": "string",
941 "location": "query",
942 "description": "V1 error format.",
943 "enum": [
944 "1",
945 "2"
946 ]
947 },
948 "alt": {
949 "type": "string",
950 "location": "query",
951 "default": "json",
952 "enum": [
953 "json",
954 "media",
955 "proto"
956 ],
957 "description": "Data format for response.",
958 "enumDescriptions": [
959 "Responses with Content-Type of application/json",
960 "Media download with context-dependent Content-Type",
961 "Responses with Content-Type of application/x-protobuf"
962 ]
963 },
964 "upload_protocol": {
965 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
966 "location": "query",
967 "type": "string"
968 },
969 "key": {
970 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
971 "location": "query",
972 "type": "string"
973 },
974 "uploadType": {
975 "location": "query",
976 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
977 "type": "string"
978 },
979 "fields": {
980 "location": "query",
981 "description": "Selector specifying which fields to include in a partial response.",
982 "type": "string"
983 }
984 }
985}