@maxim_mazurok/gapi.client.licensing-v1 0.0.20230421 → 0.0.20230429
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.
- package/index.d.ts +315 -158
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://licensing.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230429
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -27,383 +27,540 @@ declare namespace gapi.client {
|
|
|
27
27
|
}
|
|
28
28
|
interface LicenseAssignment {
|
|
29
29
|
/** ETag of the resource. */
|
|
30
|
-
etags?:
|
|
30
|
+
etags?:
|
|
31
|
+
string;
|
|
31
32
|
/** Identifies the resource as a LicenseAssignment, which is `licensing#licenseAssignment`. */
|
|
32
|
-
kind?:
|
|
33
|
+
kind?:
|
|
34
|
+
string;
|
|
33
35
|
/** A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs. */
|
|
34
|
-
productId?:
|
|
36
|
+
productId?:
|
|
37
|
+
string;
|
|
35
38
|
/** Display Name of the product. */
|
|
36
|
-
productName?:
|
|
39
|
+
productName?:
|
|
40
|
+
string;
|
|
37
41
|
/** Link to this page. */
|
|
38
|
-
selfLink?:
|
|
42
|
+
selfLink?:
|
|
43
|
+
string;
|
|
39
44
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
40
|
-
skuId?:
|
|
45
|
+
skuId?:
|
|
46
|
+
string;
|
|
41
47
|
/** Display Name of the sku of the product. */
|
|
42
|
-
skuName?:
|
|
48
|
+
skuName?:
|
|
49
|
+
string;
|
|
43
50
|
/**
|
|
44
51
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use a
|
|
45
52
|
* `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
46
53
|
*/
|
|
47
|
-
userId?:
|
|
54
|
+
userId?:
|
|
55
|
+
string;
|
|
48
56
|
}
|
|
49
57
|
interface LicenseAssignmentInsert {
|
|
50
58
|
/** Email id of the user */
|
|
51
|
-
userId?:
|
|
59
|
+
userId?:
|
|
60
|
+
string;
|
|
52
61
|
}
|
|
53
62
|
interface LicenseAssignmentList {
|
|
54
63
|
/** ETag of the resource. */
|
|
55
|
-
etag?:
|
|
64
|
+
etag?:
|
|
65
|
+
string;
|
|
56
66
|
/** The LicenseAssignments in this page of results. */
|
|
57
|
-
items?:
|
|
67
|
+
items?:
|
|
68
|
+
LicenseAssignment[];
|
|
58
69
|
/** Identifies the resource as a collection of LicenseAssignments. */
|
|
59
|
-
kind?:
|
|
70
|
+
kind?:
|
|
71
|
+
string;
|
|
60
72
|
/**
|
|
61
73
|
* The token that you must submit in a subsequent request to retrieve additional license results matching your query parameters. The `maxResults` query string is related to the
|
|
62
74
|
* `nextPageToken` since `maxResults` determines how many entries are returned on each next page.
|
|
63
75
|
*/
|
|
64
|
-
nextPageToken?:
|
|
76
|
+
nextPageToken?:
|
|
77
|
+
string;
|
|
65
78
|
}
|
|
66
79
|
interface LicenseAssignmentsResource {
|
|
67
80
|
/** Revoke a license. */
|
|
68
81
|
delete(request?: {
|
|
69
82
|
/** V1 error format. */
|
|
70
|
-
"$.xgafv"?:
|
|
83
|
+
"$.xgafv"?:
|
|
84
|
+
string;
|
|
71
85
|
/** OAuth access token. */
|
|
72
|
-
access_token?:
|
|
86
|
+
access_token?:
|
|
87
|
+
string;
|
|
73
88
|
/** Data format for response. */
|
|
74
|
-
alt?:
|
|
89
|
+
alt?:
|
|
90
|
+
string;
|
|
75
91
|
/** JSONP */
|
|
76
|
-
callback?:
|
|
92
|
+
callback?:
|
|
93
|
+
string;
|
|
77
94
|
/** Selector specifying which fields to include in a partial response. */
|
|
78
|
-
fields?:
|
|
95
|
+
fields?:
|
|
96
|
+
string;
|
|
79
97
|
/** 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. */
|
|
80
|
-
key?:
|
|
98
|
+
key?:
|
|
99
|
+
string;
|
|
81
100
|
/** OAuth 2.0 token for the current user. */
|
|
82
|
-
oauth_token?:
|
|
101
|
+
oauth_token?:
|
|
102
|
+
string;
|
|
83
103
|
/** Returns response with indentations and line breaks. */
|
|
84
|
-
prettyPrint?:
|
|
104
|
+
prettyPrint?:
|
|
105
|
+
boolean;
|
|
85
106
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
86
|
-
productId:
|
|
107
|
+
productId:
|
|
108
|
+
string;
|
|
87
109
|
/** 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. */
|
|
88
|
-
quotaUser?:
|
|
110
|
+
quotaUser?:
|
|
111
|
+
string;
|
|
89
112
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
90
|
-
skuId:
|
|
113
|
+
skuId:
|
|
114
|
+
string;
|
|
91
115
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
92
|
-
upload_protocol?:
|
|
116
|
+
upload_protocol?:
|
|
117
|
+
string;
|
|
93
118
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
94
|
-
uploadType?:
|
|
119
|
+
uploadType?:
|
|
120
|
+
string;
|
|
95
121
|
/**
|
|
96
122
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
97
123
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
98
124
|
*/
|
|
99
|
-
userId:
|
|
125
|
+
userId:
|
|
126
|
+
string;
|
|
100
127
|
}): Request<{}>;
|
|
101
128
|
/** Get a specific user's license by product SKU. */
|
|
102
129
|
get(request?: {
|
|
103
130
|
/** V1 error format. */
|
|
104
|
-
"$.xgafv"?:
|
|
131
|
+
"$.xgafv"?:
|
|
132
|
+
string;
|
|
105
133
|
/** OAuth access token. */
|
|
106
|
-
access_token?:
|
|
134
|
+
access_token?:
|
|
135
|
+
string;
|
|
107
136
|
/** Data format for response. */
|
|
108
|
-
alt?:
|
|
137
|
+
alt?:
|
|
138
|
+
string;
|
|
109
139
|
/** JSONP */
|
|
110
|
-
callback?:
|
|
140
|
+
callback?:
|
|
141
|
+
string;
|
|
111
142
|
/** Selector specifying which fields to include in a partial response. */
|
|
112
|
-
fields?:
|
|
143
|
+
fields?:
|
|
144
|
+
string;
|
|
113
145
|
/** 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. */
|
|
114
|
-
key?:
|
|
146
|
+
key?:
|
|
147
|
+
string;
|
|
115
148
|
/** OAuth 2.0 token for the current user. */
|
|
116
|
-
oauth_token?:
|
|
149
|
+
oauth_token?:
|
|
150
|
+
string;
|
|
117
151
|
/** Returns response with indentations and line breaks. */
|
|
118
|
-
prettyPrint?:
|
|
152
|
+
prettyPrint?:
|
|
153
|
+
boolean;
|
|
119
154
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
120
|
-
productId:
|
|
155
|
+
productId:
|
|
156
|
+
string;
|
|
121
157
|
/** 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. */
|
|
122
|
-
quotaUser?:
|
|
158
|
+
quotaUser?:
|
|
159
|
+
string;
|
|
123
160
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
124
|
-
skuId:
|
|
161
|
+
skuId:
|
|
162
|
+
string;
|
|
125
163
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
126
|
-
upload_protocol?:
|
|
164
|
+
upload_protocol?:
|
|
165
|
+
string;
|
|
127
166
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
128
|
-
uploadType?:
|
|
167
|
+
uploadType?:
|
|
168
|
+
string;
|
|
129
169
|
/**
|
|
130
170
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
131
171
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
132
172
|
*/
|
|
133
|
-
userId:
|
|
173
|
+
userId:
|
|
174
|
+
string;
|
|
134
175
|
}): Request<LicenseAssignment>;
|
|
135
176
|
/** Assign a license. */
|
|
136
177
|
insert(request: {
|
|
137
178
|
/** V1 error format. */
|
|
138
|
-
"$.xgafv"?:
|
|
179
|
+
"$.xgafv"?:
|
|
180
|
+
string;
|
|
139
181
|
/** OAuth access token. */
|
|
140
|
-
access_token?:
|
|
182
|
+
access_token?:
|
|
183
|
+
string;
|
|
141
184
|
/** Data format for response. */
|
|
142
|
-
alt?:
|
|
185
|
+
alt?:
|
|
186
|
+
string;
|
|
143
187
|
/** JSONP */
|
|
144
|
-
callback?:
|
|
188
|
+
callback?:
|
|
189
|
+
string;
|
|
145
190
|
/** Selector specifying which fields to include in a partial response. */
|
|
146
|
-
fields?:
|
|
191
|
+
fields?:
|
|
192
|
+
string;
|
|
147
193
|
/** 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. */
|
|
148
|
-
key?:
|
|
194
|
+
key?:
|
|
195
|
+
string;
|
|
149
196
|
/** OAuth 2.0 token for the current user. */
|
|
150
|
-
oauth_token?:
|
|
197
|
+
oauth_token?:
|
|
198
|
+
string;
|
|
151
199
|
/** Returns response with indentations and line breaks. */
|
|
152
|
-
prettyPrint?:
|
|
200
|
+
prettyPrint?:
|
|
201
|
+
boolean;
|
|
153
202
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
154
|
-
productId:
|
|
203
|
+
productId:
|
|
204
|
+
string;
|
|
155
205
|
/** 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. */
|
|
156
|
-
quotaUser?:
|
|
206
|
+
quotaUser?:
|
|
207
|
+
string;
|
|
157
208
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
158
|
-
skuId:
|
|
209
|
+
skuId:
|
|
210
|
+
string;
|
|
159
211
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
160
|
-
upload_protocol?:
|
|
212
|
+
upload_protocol?:
|
|
213
|
+
string;
|
|
161
214
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
162
|
-
uploadType?:
|
|
215
|
+
uploadType?:
|
|
216
|
+
string;
|
|
163
217
|
/** Request body */
|
|
164
|
-
resource:
|
|
218
|
+
resource:
|
|
219
|
+
LicenseAssignmentInsert;
|
|
165
220
|
}): Request<LicenseAssignment>;
|
|
166
221
|
insert(request: {
|
|
167
222
|
/** V1 error format. */
|
|
168
|
-
"$.xgafv"?:
|
|
223
|
+
"$.xgafv"?:
|
|
224
|
+
string;
|
|
169
225
|
/** OAuth access token. */
|
|
170
|
-
access_token?:
|
|
226
|
+
access_token?:
|
|
227
|
+
string;
|
|
171
228
|
/** Data format for response. */
|
|
172
|
-
alt?:
|
|
229
|
+
alt?:
|
|
230
|
+
string;
|
|
173
231
|
/** JSONP */
|
|
174
|
-
callback?:
|
|
232
|
+
callback?:
|
|
233
|
+
string;
|
|
175
234
|
/** Selector specifying which fields to include in a partial response. */
|
|
176
|
-
fields?:
|
|
235
|
+
fields?:
|
|
236
|
+
string;
|
|
177
237
|
/** 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. */
|
|
178
|
-
key?:
|
|
238
|
+
key?:
|
|
239
|
+
string;
|
|
179
240
|
/** OAuth 2.0 token for the current user. */
|
|
180
|
-
oauth_token?:
|
|
241
|
+
oauth_token?:
|
|
242
|
+
string;
|
|
181
243
|
/** Returns response with indentations and line breaks. */
|
|
182
|
-
prettyPrint?:
|
|
244
|
+
prettyPrint?:
|
|
245
|
+
boolean;
|
|
183
246
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
184
|
-
productId:
|
|
247
|
+
productId:
|
|
248
|
+
string;
|
|
185
249
|
/** 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. */
|
|
186
|
-
quotaUser?:
|
|
250
|
+
quotaUser?:
|
|
251
|
+
string;
|
|
187
252
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
188
|
-
skuId:
|
|
253
|
+
skuId:
|
|
254
|
+
string;
|
|
189
255
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
190
|
-
upload_protocol?:
|
|
256
|
+
upload_protocol?:
|
|
257
|
+
string;
|
|
191
258
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
192
|
-
uploadType?:
|
|
259
|
+
uploadType?:
|
|
260
|
+
string;
|
|
193
261
|
},
|
|
194
262
|
body: LicenseAssignmentInsert): Request<LicenseAssignment>;
|
|
195
263
|
/** List all users assigned licenses for a specific product SKU. */
|
|
196
264
|
listForProduct(request?: {
|
|
197
265
|
/** V1 error format. */
|
|
198
|
-
"$.xgafv"?:
|
|
266
|
+
"$.xgafv"?:
|
|
267
|
+
string;
|
|
199
268
|
/** OAuth access token. */
|
|
200
|
-
access_token?:
|
|
269
|
+
access_token?:
|
|
270
|
+
string;
|
|
201
271
|
/** Data format for response. */
|
|
202
|
-
alt?:
|
|
272
|
+
alt?:
|
|
273
|
+
string;
|
|
203
274
|
/** JSONP */
|
|
204
|
-
callback?:
|
|
275
|
+
callback?:
|
|
276
|
+
string;
|
|
205
277
|
/** The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error. */
|
|
206
|
-
customerId:
|
|
278
|
+
customerId:
|
|
279
|
+
string;
|
|
207
280
|
/** Selector specifying which fields to include in a partial response. */
|
|
208
|
-
fields?:
|
|
281
|
+
fields?:
|
|
282
|
+
string;
|
|
209
283
|
/** 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. */
|
|
210
|
-
key?:
|
|
284
|
+
key?:
|
|
285
|
+
string;
|
|
211
286
|
/** The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number. */
|
|
212
|
-
maxResults?:
|
|
287
|
+
maxResults?:
|
|
288
|
+
number;
|
|
213
289
|
/** OAuth 2.0 token for the current user. */
|
|
214
|
-
oauth_token?:
|
|
290
|
+
oauth_token?:
|
|
291
|
+
string;
|
|
215
292
|
/**
|
|
216
293
|
* Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This
|
|
217
294
|
* is an optional query string. If not specified, the server returns the first page.
|
|
218
295
|
*/
|
|
219
|
-
pageToken?:
|
|
296
|
+
pageToken?:
|
|
297
|
+
string;
|
|
220
298
|
/** Returns response with indentations and line breaks. */
|
|
221
|
-
prettyPrint?:
|
|
299
|
+
prettyPrint?:
|
|
300
|
+
boolean;
|
|
222
301
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
223
|
-
productId:
|
|
302
|
+
productId:
|
|
303
|
+
string;
|
|
224
304
|
/** 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. */
|
|
225
|
-
quotaUser?:
|
|
305
|
+
quotaUser?:
|
|
306
|
+
string;
|
|
226
307
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
227
|
-
upload_protocol?:
|
|
308
|
+
upload_protocol?:
|
|
309
|
+
string;
|
|
228
310
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
229
|
-
uploadType?:
|
|
311
|
+
uploadType?:
|
|
312
|
+
string;
|
|
230
313
|
}): Request<LicenseAssignmentList>;
|
|
231
314
|
/** List all users assigned licenses for a specific product SKU. */
|
|
232
315
|
listForProductAndSku(request?: {
|
|
233
316
|
/** V1 error format. */
|
|
234
|
-
"$.xgafv"?:
|
|
317
|
+
"$.xgafv"?:
|
|
318
|
+
string;
|
|
235
319
|
/** OAuth access token. */
|
|
236
|
-
access_token?:
|
|
320
|
+
access_token?:
|
|
321
|
+
string;
|
|
237
322
|
/** Data format for response. */
|
|
238
|
-
alt?:
|
|
323
|
+
alt?:
|
|
324
|
+
string;
|
|
239
325
|
/** JSONP */
|
|
240
|
-
callback?:
|
|
326
|
+
callback?:
|
|
327
|
+
string;
|
|
241
328
|
/** The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error. */
|
|
242
|
-
customerId:
|
|
329
|
+
customerId:
|
|
330
|
+
string;
|
|
243
331
|
/** Selector specifying which fields to include in a partial response. */
|
|
244
|
-
fields?:
|
|
332
|
+
fields?:
|
|
333
|
+
string;
|
|
245
334
|
/** 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. */
|
|
246
|
-
key?:
|
|
335
|
+
key?:
|
|
336
|
+
string;
|
|
247
337
|
/** The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number. */
|
|
248
|
-
maxResults?:
|
|
338
|
+
maxResults?:
|
|
339
|
+
number;
|
|
249
340
|
/** OAuth 2.0 token for the current user. */
|
|
250
|
-
oauth_token?:
|
|
341
|
+
oauth_token?:
|
|
342
|
+
string;
|
|
251
343
|
/**
|
|
252
344
|
* Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many entries are returned on each page. This
|
|
253
345
|
* is an optional query string. If not specified, the server returns the first page.
|
|
254
346
|
*/
|
|
255
|
-
pageToken?:
|
|
347
|
+
pageToken?:
|
|
348
|
+
string;
|
|
256
349
|
/** Returns response with indentations and line breaks. */
|
|
257
|
-
prettyPrint?:
|
|
350
|
+
prettyPrint?:
|
|
351
|
+
boolean;
|
|
258
352
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
259
|
-
productId:
|
|
353
|
+
productId:
|
|
354
|
+
string;
|
|
260
355
|
/** 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. */
|
|
261
|
-
quotaUser?:
|
|
356
|
+
quotaUser?:
|
|
357
|
+
string;
|
|
262
358
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
263
|
-
skuId:
|
|
359
|
+
skuId:
|
|
360
|
+
string;
|
|
264
361
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
265
|
-
upload_protocol?:
|
|
362
|
+
upload_protocol?:
|
|
363
|
+
string;
|
|
266
364
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
267
|
-
uploadType?:
|
|
365
|
+
uploadType?:
|
|
366
|
+
string;
|
|
268
367
|
}): Request<LicenseAssignmentList>;
|
|
269
368
|
/** Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics. */
|
|
270
369
|
patch(request: {
|
|
271
370
|
/** V1 error format. */
|
|
272
|
-
"$.xgafv"?:
|
|
371
|
+
"$.xgafv"?:
|
|
372
|
+
string;
|
|
273
373
|
/** OAuth access token. */
|
|
274
|
-
access_token?:
|
|
374
|
+
access_token?:
|
|
375
|
+
string;
|
|
275
376
|
/** Data format for response. */
|
|
276
|
-
alt?:
|
|
377
|
+
alt?:
|
|
378
|
+
string;
|
|
277
379
|
/** JSONP */
|
|
278
|
-
callback?:
|
|
380
|
+
callback?:
|
|
381
|
+
string;
|
|
279
382
|
/** Selector specifying which fields to include in a partial response. */
|
|
280
|
-
fields?:
|
|
383
|
+
fields?:
|
|
384
|
+
string;
|
|
281
385
|
/** 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. */
|
|
282
|
-
key?:
|
|
386
|
+
key?:
|
|
387
|
+
string;
|
|
283
388
|
/** OAuth 2.0 token for the current user. */
|
|
284
|
-
oauth_token?:
|
|
389
|
+
oauth_token?:
|
|
390
|
+
string;
|
|
285
391
|
/** Returns response with indentations and line breaks. */
|
|
286
|
-
prettyPrint?:
|
|
392
|
+
prettyPrint?:
|
|
393
|
+
boolean;
|
|
287
394
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
288
|
-
productId:
|
|
395
|
+
productId:
|
|
396
|
+
string;
|
|
289
397
|
/** 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. */
|
|
290
|
-
quotaUser?:
|
|
398
|
+
quotaUser?:
|
|
399
|
+
string;
|
|
291
400
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
292
|
-
skuId:
|
|
401
|
+
skuId:
|
|
402
|
+
string;
|
|
293
403
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
294
|
-
upload_protocol?:
|
|
404
|
+
upload_protocol?:
|
|
405
|
+
string;
|
|
295
406
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
296
|
-
uploadType?:
|
|
407
|
+
uploadType?:
|
|
408
|
+
string;
|
|
297
409
|
/**
|
|
298
410
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
299
411
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
300
412
|
*/
|
|
301
|
-
userId:
|
|
413
|
+
userId:
|
|
414
|
+
string;
|
|
302
415
|
/** Request body */
|
|
303
|
-
resource:
|
|
416
|
+
resource:
|
|
417
|
+
LicenseAssignment;
|
|
304
418
|
}): Request<LicenseAssignment>;
|
|
305
419
|
patch(request: {
|
|
306
420
|
/** V1 error format. */
|
|
307
|
-
"$.xgafv"?:
|
|
421
|
+
"$.xgafv"?:
|
|
422
|
+
string;
|
|
308
423
|
/** OAuth access token. */
|
|
309
|
-
access_token?:
|
|
424
|
+
access_token?:
|
|
425
|
+
string;
|
|
310
426
|
/** Data format for response. */
|
|
311
|
-
alt?:
|
|
427
|
+
alt?:
|
|
428
|
+
string;
|
|
312
429
|
/** JSONP */
|
|
313
|
-
callback?:
|
|
430
|
+
callback?:
|
|
431
|
+
string;
|
|
314
432
|
/** Selector specifying which fields to include in a partial response. */
|
|
315
|
-
fields?:
|
|
433
|
+
fields?:
|
|
434
|
+
string;
|
|
316
435
|
/** 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. */
|
|
317
|
-
key?:
|
|
436
|
+
key?:
|
|
437
|
+
string;
|
|
318
438
|
/** OAuth 2.0 token for the current user. */
|
|
319
|
-
oauth_token?:
|
|
439
|
+
oauth_token?:
|
|
440
|
+
string;
|
|
320
441
|
/** Returns response with indentations and line breaks. */
|
|
321
|
-
prettyPrint?:
|
|
442
|
+
prettyPrint?:
|
|
443
|
+
boolean;
|
|
322
444
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
323
|
-
productId:
|
|
445
|
+
productId:
|
|
446
|
+
string;
|
|
324
447
|
/** 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. */
|
|
325
|
-
quotaUser?:
|
|
448
|
+
quotaUser?:
|
|
449
|
+
string;
|
|
326
450
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
327
|
-
skuId:
|
|
451
|
+
skuId:
|
|
452
|
+
string;
|
|
328
453
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
329
|
-
upload_protocol?:
|
|
454
|
+
upload_protocol?:
|
|
455
|
+
string;
|
|
330
456
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
331
|
-
uploadType?:
|
|
457
|
+
uploadType?:
|
|
458
|
+
string;
|
|
332
459
|
/**
|
|
333
460
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
334
461
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
335
462
|
*/
|
|
336
|
-
userId:
|
|
463
|
+
userId:
|
|
464
|
+
string;
|
|
337
465
|
},
|
|
338
466
|
body: LicenseAssignment): Request<LicenseAssignment>;
|
|
339
467
|
/** Reassign a user's product SKU with a different SKU in the same product. */
|
|
340
468
|
update(request: {
|
|
341
469
|
/** V1 error format. */
|
|
342
|
-
"$.xgafv"?:
|
|
470
|
+
"$.xgafv"?:
|
|
471
|
+
string;
|
|
343
472
|
/** OAuth access token. */
|
|
344
|
-
access_token?:
|
|
473
|
+
access_token?:
|
|
474
|
+
string;
|
|
345
475
|
/** Data format for response. */
|
|
346
|
-
alt?:
|
|
476
|
+
alt?:
|
|
477
|
+
string;
|
|
347
478
|
/** JSONP */
|
|
348
|
-
callback?:
|
|
479
|
+
callback?:
|
|
480
|
+
string;
|
|
349
481
|
/** Selector specifying which fields to include in a partial response. */
|
|
350
|
-
fields?:
|
|
482
|
+
fields?:
|
|
483
|
+
string;
|
|
351
484
|
/** 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. */
|
|
352
|
-
key?:
|
|
485
|
+
key?:
|
|
486
|
+
string;
|
|
353
487
|
/** OAuth 2.0 token for the current user. */
|
|
354
|
-
oauth_token?:
|
|
488
|
+
oauth_token?:
|
|
489
|
+
string;
|
|
355
490
|
/** Returns response with indentations and line breaks. */
|
|
356
|
-
prettyPrint?:
|
|
491
|
+
prettyPrint?:
|
|
492
|
+
boolean;
|
|
357
493
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
358
|
-
productId:
|
|
494
|
+
productId:
|
|
495
|
+
string;
|
|
359
496
|
/** 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. */
|
|
360
|
-
quotaUser?:
|
|
497
|
+
quotaUser?:
|
|
498
|
+
string;
|
|
361
499
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
362
|
-
skuId:
|
|
500
|
+
skuId:
|
|
501
|
+
string;
|
|
363
502
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
364
|
-
upload_protocol?:
|
|
503
|
+
upload_protocol?:
|
|
504
|
+
string;
|
|
365
505
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
366
|
-
uploadType?:
|
|
506
|
+
uploadType?:
|
|
507
|
+
string;
|
|
367
508
|
/**
|
|
368
509
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
369
510
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
370
511
|
*/
|
|
371
|
-
userId:
|
|
512
|
+
userId:
|
|
513
|
+
string;
|
|
372
514
|
/** Request body */
|
|
373
|
-
resource:
|
|
515
|
+
resource:
|
|
516
|
+
LicenseAssignment;
|
|
374
517
|
}): Request<LicenseAssignment>;
|
|
375
518
|
update(request: {
|
|
376
519
|
/** V1 error format. */
|
|
377
|
-
"$.xgafv"?:
|
|
520
|
+
"$.xgafv"?:
|
|
521
|
+
string;
|
|
378
522
|
/** OAuth access token. */
|
|
379
|
-
access_token?:
|
|
523
|
+
access_token?:
|
|
524
|
+
string;
|
|
380
525
|
/** Data format for response. */
|
|
381
|
-
alt?:
|
|
526
|
+
alt?:
|
|
527
|
+
string;
|
|
382
528
|
/** JSONP */
|
|
383
|
-
callback?:
|
|
529
|
+
callback?:
|
|
530
|
+
string;
|
|
384
531
|
/** Selector specifying which fields to include in a partial response. */
|
|
385
|
-
fields?:
|
|
532
|
+
fields?:
|
|
533
|
+
string;
|
|
386
534
|
/** 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. */
|
|
387
|
-
key?:
|
|
535
|
+
key?:
|
|
536
|
+
string;
|
|
388
537
|
/** OAuth 2.0 token for the current user. */
|
|
389
|
-
oauth_token?:
|
|
538
|
+
oauth_token?:
|
|
539
|
+
string;
|
|
390
540
|
/** Returns response with indentations and line breaks. */
|
|
391
|
-
prettyPrint?:
|
|
541
|
+
prettyPrint?:
|
|
542
|
+
boolean;
|
|
392
543
|
/** A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. */
|
|
393
|
-
productId:
|
|
544
|
+
productId:
|
|
545
|
+
string;
|
|
394
546
|
/** 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. */
|
|
395
|
-
quotaUser?:
|
|
547
|
+
quotaUser?:
|
|
548
|
+
string;
|
|
396
549
|
/** A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. */
|
|
397
|
-
skuId:
|
|
550
|
+
skuId:
|
|
551
|
+
string;
|
|
398
552
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
399
|
-
upload_protocol?:
|
|
553
|
+
upload_protocol?:
|
|
554
|
+
string;
|
|
400
555
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
401
|
-
uploadType?:
|
|
556
|
+
uploadType?:
|
|
557
|
+
string;
|
|
402
558
|
/**
|
|
403
559
|
* The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a `userId` is subject to change, do not use
|
|
404
560
|
* a `userId` value as a key for persistent data. This key could break if the current user's email address changes. If the `userId` is suspended, the license status changes.
|
|
405
561
|
*/
|
|
406
|
-
userId:
|
|
562
|
+
userId:
|
|
563
|
+
string;
|
|
407
564
|
},
|
|
408
565
|
body: LicenseAssignment): Request<LicenseAssignment>;
|
|
409
566
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230429
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|