@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1 0.1.20261115 → 0.2.20261119

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.
Files changed (2) hide show
  1. package/index.d.ts +439 -442
  2. package/package.json +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://cloudcommerceprocurement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20261115
12
+ // Revision: 20261119
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -177,38 +177,11 @@ declare namespace gapi.client {
177
177
  /** A free-form reason string, explaining the reason for suspension request. */
178
178
  reason?: string;
179
179
  }
180
- interface AccountsResource {
181
- /** Grants an approval on an Account. */
182
- approve(request: {
183
- /** V1 error format. */
184
- '$.xgafv'?: '1' | '2';
185
- /** OAuth access token. */
186
- access_token?: string;
187
- /** Data format for response. */
188
- alt?: 'json' | 'media' | 'proto';
189
- /** JSONP */
190
- callback?: string;
191
- /** Selector specifying which fields to include in a partial response. */
192
- fields?: string;
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. */
194
- key?: string;
195
- /** Required. The resource name of the account, with the format `providers/{providerId}/accounts/{accountId}`. */
196
- name: string;
197
- /** OAuth 2.0 token for the current user. */
198
- oauth_token?: string;
199
- /** Returns response with indentations and line breaks. */
200
- prettyPrint?: boolean;
201
- /** 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. */
202
- quotaUser?: string;
203
- /** Upload protocol for media (e.g. "raw", "multipart"). */
204
- upload_protocol?: string;
205
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
206
- uploadType?: string;
207
- /** Request body */
208
- resource: ApproveAccountRequest;
209
- }): Request<{}>;
210
- approve(
211
- request: {
180
+
181
+ const providers: {
182
+ accounts: {
183
+ /** Grants an approval on an Account. */
184
+ approve(request: {
212
185
  /** V1 error format. */
213
186
  '$.xgafv'?: '1' | '2';
214
187
  /** OAuth access token. */
@@ -233,103 +206,103 @@ declare namespace gapi.client {
233
206
  upload_protocol?: string;
234
207
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
235
208
  uploadType?: string;
236
- },
237
- body: ApproveAccountRequest,
238
- ): Request<{}>;
239
- /** Gets a requested Account resource. */
240
- get(request?: {
241
- /** V1 error format. */
242
- '$.xgafv'?: '1' | '2';
243
- /** OAuth access token. */
244
- access_token?: string;
245
- /** Data format for response. */
246
- alt?: 'json' | 'media' | 'proto';
247
- /** JSONP */
248
- callback?: string;
249
- /** Selector specifying which fields to include in a partial response. */
250
- fields?: string;
251
- /** 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. */
252
- key?: string;
253
- /** Required. The name of the account to retrieve. */
254
- name: string;
255
- /** OAuth 2.0 token for the current user. */
256
- oauth_token?: string;
257
- /** Returns response with indentations and line breaks. */
258
- prettyPrint?: boolean;
259
- /** 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. */
260
- quotaUser?: string;
261
- /** Upload protocol for media (e.g. "raw", "multipart"). */
262
- upload_protocol?: string;
263
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
264
- uploadType?: string;
265
- /** Optional. What information to include in the response. */
266
- view?:
267
- | 'ACCOUNT_VIEW_UNSPECIFIED'
268
- | 'ACCOUNT_VIEW_BASIC'
269
- | 'ACCOUNT_VIEW_FULL';
270
- }): Request<Account>;
271
- /** Lists Accounts that the provider has access to. */
272
- list(request?: {
273
- /** V1 error format. */
274
- '$.xgafv'?: '1' | '2';
275
- /** OAuth access token. */
276
- access_token?: string;
277
- /** Data format for response. */
278
- alt?: 'json' | 'media' | 'proto';
279
- /** JSONP */
280
- callback?: string;
281
- /** Selector specifying which fields to include in a partial response. */
282
- fields?: string;
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. */
284
- key?: string;
285
- /** OAuth 2.0 token for the current user. */
286
- oauth_token?: string;
287
- /** The maximum number of entries that are requested. The default page size is 25 and the maximum page size is 200. */
288
- pageSize?: number;
289
- /** The token for fetching the next page. */
290
- pageToken?: string;
291
- /** Required. The parent resource name. */
292
- parent: string;
293
- /** Returns response with indentations and line breaks. */
294
- prettyPrint?: boolean;
295
- /** 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. */
296
- quotaUser?: string;
297
- /** Upload protocol for media (e.g. "raw", "multipart"). */
298
- upload_protocol?: string;
299
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
300
- uploadType?: string;
301
- }): Request<ListAccountsResponse>;
302
- /** Rejects an approval on an Account. */
303
- reject(request: {
304
- /** V1 error format. */
305
- '$.xgafv'?: '1' | '2';
306
- /** OAuth access token. */
307
- access_token?: string;
308
- /** Data format for response. */
309
- alt?: 'json' | 'media' | 'proto';
310
- /** JSONP */
311
- callback?: string;
312
- /** Selector specifying which fields to include in a partial response. */
313
- fields?: string;
314
- /** 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. */
315
- key?: string;
316
- /** Required. The resource name of the account. */
317
- name: string;
318
- /** OAuth 2.0 token for the current user. */
319
- oauth_token?: string;
320
- /** Returns response with indentations and line breaks. */
321
- prettyPrint?: boolean;
322
- /** 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. */
323
- quotaUser?: string;
324
- /** Upload protocol for media (e.g. "raw", "multipart"). */
325
- upload_protocol?: string;
326
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
327
- uploadType?: string;
328
- /** Request body */
329
- resource: RejectAccountRequest;
330
- }): Request<{}>;
331
- reject(
332
- request: {
209
+ /** Request body */
210
+ resource: ApproveAccountRequest;
211
+ }): Request<{}>;
212
+ approve(
213
+ request: {
214
+ /** V1 error format. */
215
+ '$.xgafv'?: '1' | '2';
216
+ /** OAuth access token. */
217
+ access_token?: string;
218
+ /** Data format for response. */
219
+ alt?: 'json' | 'media' | 'proto';
220
+ /** JSONP */
221
+ callback?: string;
222
+ /** Selector specifying which fields to include in a partial response. */
223
+ fields?: string;
224
+ /** 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. */
225
+ key?: string;
226
+ /** Required. The resource name of the account, with the format `providers/{providerId}/accounts/{accountId}`. */
227
+ name: string;
228
+ /** OAuth 2.0 token for the current user. */
229
+ oauth_token?: string;
230
+ /** Returns response with indentations and line breaks. */
231
+ prettyPrint?: boolean;
232
+ /** 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. */
233
+ quotaUser?: string;
234
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
235
+ upload_protocol?: string;
236
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
237
+ uploadType?: string;
238
+ },
239
+ body: ApproveAccountRequest,
240
+ ): Request<{}>;
241
+ /** Gets a requested Account resource. */
242
+ get(request?: {
243
+ /** V1 error format. */
244
+ '$.xgafv'?: '1' | '2';
245
+ /** OAuth access token. */
246
+ access_token?: string;
247
+ /** Data format for response. */
248
+ alt?: 'json' | 'media' | 'proto';
249
+ /** JSONP */
250
+ callback?: string;
251
+ /** Selector specifying which fields to include in a partial response. */
252
+ fields?: string;
253
+ /** 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. */
254
+ key?: string;
255
+ /** Required. The name of the account to retrieve. */
256
+ name: string;
257
+ /** OAuth 2.0 token for the current user. */
258
+ oauth_token?: string;
259
+ /** Returns response with indentations and line breaks. */
260
+ prettyPrint?: boolean;
261
+ /** 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. */
262
+ quotaUser?: string;
263
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
264
+ upload_protocol?: string;
265
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
266
+ uploadType?: string;
267
+ /** Optional. What information to include in the response. */
268
+ view?:
269
+ | 'ACCOUNT_VIEW_UNSPECIFIED'
270
+ | 'ACCOUNT_VIEW_BASIC'
271
+ | 'ACCOUNT_VIEW_FULL';
272
+ }): Request<Account>;
273
+ /** Lists Accounts that the provider has access to. */
274
+ list(request?: {
275
+ /** V1 error format. */
276
+ '$.xgafv'?: '1' | '2';
277
+ /** OAuth access token. */
278
+ access_token?: string;
279
+ /** Data format for response. */
280
+ alt?: 'json' | 'media' | 'proto';
281
+ /** JSONP */
282
+ callback?: string;
283
+ /** Selector specifying which fields to include in a partial response. */
284
+ fields?: string;
285
+ /** 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. */
286
+ key?: string;
287
+ /** OAuth 2.0 token for the current user. */
288
+ oauth_token?: string;
289
+ /** The maximum number of entries that are requested. The default page size is 25 and the maximum page size is 200. */
290
+ pageSize?: number;
291
+ /** The token for fetching the next page. */
292
+ pageToken?: string;
293
+ /** Required. The parent resource name. */
294
+ parent: string;
295
+ /** Returns response with indentations and line breaks. */
296
+ prettyPrint?: boolean;
297
+ /** 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. */
298
+ quotaUser?: string;
299
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
300
+ upload_protocol?: string;
301
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
302
+ uploadType?: string;
303
+ }): Request<ListAccountsResponse>;
304
+ /** Rejects an approval on an Account. */
305
+ reject(request: {
333
306
  /** V1 error format. */
334
307
  '$.xgafv'?: '1' | '2';
335
308
  /** OAuth access token. */
@@ -354,40 +327,40 @@ declare namespace gapi.client {
354
327
  upload_protocol?: string;
355
328
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
356
329
  uploadType?: string;
357
- },
358
- body: RejectAccountRequest,
359
- ): Request<{}>;
360
- /** Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts. */
361
- reset(request: {
362
- /** V1 error format. */
363
- '$.xgafv'?: '1' | '2';
364
- /** OAuth access token. */
365
- access_token?: string;
366
- /** Data format for response. */
367
- alt?: 'json' | 'media' | 'proto';
368
- /** JSONP */
369
- callback?: string;
370
- /** Selector specifying which fields to include in a partial response. */
371
- fields?: string;
372
- /** 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. */
373
- key?: string;
374
- /** Required. The resource name of the account. */
375
- name: string;
376
- /** OAuth 2.0 token for the current user. */
377
- oauth_token?: string;
378
- /** Returns response with indentations and line breaks. */
379
- prettyPrint?: boolean;
380
- /** 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. */
381
- quotaUser?: string;
382
- /** Upload protocol for media (e.g. "raw", "multipart"). */
383
- upload_protocol?: string;
384
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
385
- uploadType?: string;
386
- /** Request body */
387
- resource: ResetAccountRequest;
388
- }): Request<{}>;
389
- reset(
390
- request: {
330
+ /** Request body */
331
+ resource: RejectAccountRequest;
332
+ }): Request<{}>;
333
+ reject(
334
+ request: {
335
+ /** V1 error format. */
336
+ '$.xgafv'?: '1' | '2';
337
+ /** OAuth access token. */
338
+ access_token?: string;
339
+ /** Data format for response. */
340
+ alt?: 'json' | 'media' | 'proto';
341
+ /** JSONP */
342
+ callback?: string;
343
+ /** Selector specifying which fields to include in a partial response. */
344
+ fields?: string;
345
+ /** 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. */
346
+ key?: string;
347
+ /** Required. The resource name of the account. */
348
+ name: string;
349
+ /** OAuth 2.0 token for the current user. */
350
+ oauth_token?: string;
351
+ /** Returns response with indentations and line breaks. */
352
+ prettyPrint?: boolean;
353
+ /** 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. */
354
+ quotaUser?: string;
355
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
356
+ upload_protocol?: string;
357
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
358
+ uploadType?: string;
359
+ },
360
+ body: RejectAccountRequest,
361
+ ): Request<{}>;
362
+ /** Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts. */
363
+ reset(request: {
391
364
  /** V1 error format. */
392
365
  '$.xgafv'?: '1' | '2';
393
366
  /** OAuth access token. */
@@ -412,42 +385,42 @@ declare namespace gapi.client {
412
385
  upload_protocol?: string;
413
386
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
414
387
  uploadType?: string;
415
- },
416
- body: ResetAccountRequest,
417
- ): Request<{}>;
418
- }
419
- interface EntitlementsResource {
420
- /** Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource. */
421
- approve(request: {
422
- /** V1 error format. */
423
- '$.xgafv'?: '1' | '2';
424
- /** OAuth access token. */
425
- access_token?: string;
426
- /** Data format for response. */
427
- alt?: 'json' | 'media' | 'proto';
428
- /** JSONP */
429
- callback?: string;
430
- /** Selector specifying which fields to include in a partial response. */
431
- fields?: string;
432
- /** 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. */
433
- key?: string;
434
- /** Required. The resource name of the entitlement, with the format `providers/{providerId}/entitlements/{entitlementId}`. */
435
- name: string;
436
- /** OAuth 2.0 token for the current user. */
437
- oauth_token?: string;
438
- /** Returns response with indentations and line breaks. */
439
- prettyPrint?: boolean;
440
- /** 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. */
441
- quotaUser?: string;
442
- /** Upload protocol for media (e.g. "raw", "multipart"). */
443
- upload_protocol?: string;
444
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
445
- uploadType?: string;
446
- /** Request body */
447
- resource: ApproveEntitlementRequest;
448
- }): Request<{}>;
449
- approve(
450
- request: {
388
+ /** Request body */
389
+ resource: ResetAccountRequest;
390
+ }): Request<{}>;
391
+ reset(
392
+ request: {
393
+ /** V1 error format. */
394
+ '$.xgafv'?: '1' | '2';
395
+ /** OAuth access token. */
396
+ access_token?: string;
397
+ /** Data format for response. */
398
+ alt?: 'json' | 'media' | 'proto';
399
+ /** JSONP */
400
+ callback?: string;
401
+ /** Selector specifying which fields to include in a partial response. */
402
+ fields?: string;
403
+ /** 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. */
404
+ key?: string;
405
+ /** Required. The resource name of the account. */
406
+ name: string;
407
+ /** OAuth 2.0 token for the current user. */
408
+ oauth_token?: string;
409
+ /** Returns response with indentations and line breaks. */
410
+ prettyPrint?: boolean;
411
+ /** 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. */
412
+ quotaUser?: string;
413
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
414
+ upload_protocol?: string;
415
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
416
+ uploadType?: string;
417
+ },
418
+ body: ResetAccountRequest,
419
+ ): Request<{}>;
420
+ };
421
+ entitlements: {
422
+ /** Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource. */
423
+ approve(request: {
451
424
  /** V1 error format. */
452
425
  '$.xgafv'?: '1' | '2';
453
426
  /** OAuth access token. */
@@ -472,40 +445,40 @@ declare namespace gapi.client {
472
445
  upload_protocol?: string;
473
446
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
474
447
  uploadType?: string;
475
- },
476
- body: ApproveEntitlementRequest,
477
- ): Request<{}>;
478
- /** Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource. */
479
- approvePlanChange(request: {
480
- /** V1 error format. */
481
- '$.xgafv'?: '1' | '2';
482
- /** OAuth access token. */
483
- access_token?: string;
484
- /** Data format for response. */
485
- alt?: 'json' | 'media' | 'proto';
486
- /** JSONP */
487
- callback?: string;
488
- /** Selector specifying which fields to include in a partial response. */
489
- fields?: string;
490
- /** 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. */
491
- key?: string;
492
- /** Required. The resource name of the entitlement. */
493
- name: string;
494
- /** OAuth 2.0 token for the current user. */
495
- oauth_token?: string;
496
- /** Returns response with indentations and line breaks. */
497
- prettyPrint?: boolean;
498
- /** 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. */
499
- quotaUser?: string;
500
- /** Upload protocol for media (e.g. "raw", "multipart"). */
501
- upload_protocol?: string;
502
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
503
- uploadType?: string;
504
- /** Request body */
505
- resource: ApproveEntitlementPlanChangeRequest;
506
- }): Request<{}>;
507
- approvePlanChange(
508
- request: {
448
+ /** Request body */
449
+ resource: ApproveEntitlementRequest;
450
+ }): Request<{}>;
451
+ approve(
452
+ request: {
453
+ /** V1 error format. */
454
+ '$.xgafv'?: '1' | '2';
455
+ /** OAuth access token. */
456
+ access_token?: string;
457
+ /** Data format for response. */
458
+ alt?: 'json' | 'media' | 'proto';
459
+ /** JSONP */
460
+ callback?: string;
461
+ /** Selector specifying which fields to include in a partial response. */
462
+ fields?: string;
463
+ /** 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. */
464
+ key?: string;
465
+ /** Required. The resource name of the entitlement, with the format `providers/{providerId}/entitlements/{entitlementId}`. */
466
+ name: string;
467
+ /** OAuth 2.0 token for the current user. */
468
+ oauth_token?: string;
469
+ /** Returns response with indentations and line breaks. */
470
+ prettyPrint?: boolean;
471
+ /** 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. */
472
+ quotaUser?: string;
473
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
474
+ upload_protocol?: string;
475
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
476
+ uploadType?: string;
477
+ },
478
+ body: ApproveEntitlementRequest,
479
+ ): Request<{}>;
480
+ /** Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource. */
481
+ approvePlanChange(request: {
509
482
  /** V1 error format. */
510
483
  '$.xgafv'?: '1' | '2';
511
484
  /** OAuth access token. */
@@ -530,102 +503,100 @@ declare namespace gapi.client {
530
503
  upload_protocol?: string;
531
504
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
532
505
  uploadType?: string;
533
- },
534
- body: ApproveEntitlementPlanChangeRequest,
535
- ): Request<{}>;
536
- /** Gets a requested Entitlement resource. */
537
- get(request?: {
538
- /** V1 error format. */
539
- '$.xgafv'?: '1' | '2';
540
- /** OAuth access token. */
541
- access_token?: string;
542
- /** Data format for response. */
543
- alt?: 'json' | 'media' | 'proto';
544
- /** JSONP */
545
- callback?: string;
546
- /** Selector specifying which fields to include in a partial response. */
547
- fields?: string;
548
- /** 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. */
549
- key?: string;
550
- /** Required. The name of the entitlement to retrieve. */
551
- name: string;
552
- /** OAuth 2.0 token for the current user. */
553
- oauth_token?: string;
554
- /** Returns response with indentations and line breaks. */
555
- prettyPrint?: boolean;
556
- /** 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. */
557
- quotaUser?: string;
558
- /** Upload protocol for media (e.g. "raw", "multipart"). */
559
- upload_protocol?: string;
560
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
561
- uploadType?: string;
562
- }): Request<Entitlement>;
563
- /** Lists Entitlements for which the provider has read access. */
564
- list(request?: {
565
- /** V1 error format. */
566
- '$.xgafv'?: '1' | '2';
567
- /** OAuth access token. */
568
- access_token?: string;
569
- /** Data format for response. */
570
- alt?: 'json' | 'media' | 'proto';
571
- /** JSONP */
572
- callback?: string;
573
- /** Selector specifying which fields to include in a partial response. */
574
- fields?: string;
575
- /** The filter that can be used to limit the list request. The filter is a query string that can match a selected set of attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`, `state=pending_cancellation`, and `plan!=foo-plan`. Supported query attributes are * `account` * `customer_billing_account` with value in the format of: `billingAccounts/{id}` * `product_external_name` * `quote_external_name` * `offer` * `new_pending_offer` * `plan` * `newPendingPlan` or `new_pending_plan` * `state` * `services` * `consumers.project` * `change_history.new_offer` Note that the consumers and change_history.new_offer match works on repeated structures, so equality (`consumers.project=projects/123456789`) is not supported. Set membership can be expressed with the `:` operator. For example, `consumers.project:projects/123456789` finds entitlements with at least one consumer with project field equal to `projects/123456789`. `change_history.new_offer` retrieves all entitlements that were once associated or are currently active with the offer. Also note that the state name match is case-insensitive and query can omit the prefix "ENTITLEMENT_". For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If the query contains some special characters other than letters, underscore, or digits, the phrase must be quoted with double quotes. For example, `product="providerId:productId"`, where the product name needs to be quoted because it contains special character colon. Queries can be combined with `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped to force a desired evaluation order. For example, `state=active AND (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective `AND` can be omitted between two predicates. For example `account=E-1234 state=active` is equivalent to `account=E-1234 AND state=active`. */
576
- filter?: string;
577
- /** 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. */
578
- key?: string;
579
- /** OAuth 2.0 token for the current user. */
580
- oauth_token?: string;
581
- /** The maximum number of entries that are requested. The default page size is 200. */
582
- pageSize?: number;
583
- /** The token for fetching the next page. */
584
- pageToken?: string;
585
- /** Required. The parent resource name. */
586
- parent: string;
587
- /** Returns response with indentations and line breaks. */
588
- prettyPrint?: boolean;
589
- /** 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. */
590
- quotaUser?: string;
591
- /** Upload protocol for media (e.g. "raw", "multipart"). */
592
- upload_protocol?: string;
593
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
594
- uploadType?: string;
595
- }): Request<ListEntitlementsResponse>;
596
- /** Updates an existing Entitlement. */
597
- patch(request: {
598
- /** V1 error format. */
599
- '$.xgafv'?: '1' | '2';
600
- /** OAuth access token. */
601
- access_token?: string;
602
- /** Data format for response. */
603
- alt?: 'json' | 'media' | 'proto';
604
- /** JSONP */
605
- callback?: string;
606
- /** Selector specifying which fields to include in a partial response. */
607
- fields?: string;
608
- /** 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. */
609
- key?: string;
610
- /** Required. The name of the entitlement to update. */
611
- name: string;
612
- /** OAuth 2.0 token for the current user. */
613
- oauth_token?: string;
614
- /** Returns response with indentations and line breaks. */
615
- prettyPrint?: boolean;
616
- /** 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. */
617
- quotaUser?: string;
618
- /** The update mask that applies to the resource. See the [FieldMask definition] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask) for more details. */
619
- updateMask?: string;
620
- /** Upload protocol for media (e.g. "raw", "multipart"). */
621
- upload_protocol?: string;
622
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
623
- uploadType?: string;
624
- /** Request body */
625
- resource: Entitlement;
626
- }): Request<Entitlement>;
627
- patch(
628
- request: {
506
+ /** Request body */
507
+ resource: ApproveEntitlementPlanChangeRequest;
508
+ }): Request<{}>;
509
+ approvePlanChange(
510
+ request: {
511
+ /** V1 error format. */
512
+ '$.xgafv'?: '1' | '2';
513
+ /** OAuth access token. */
514
+ access_token?: string;
515
+ /** Data format for response. */
516
+ alt?: 'json' | 'media' | 'proto';
517
+ /** JSONP */
518
+ callback?: string;
519
+ /** Selector specifying which fields to include in a partial response. */
520
+ fields?: string;
521
+ /** 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. */
522
+ key?: string;
523
+ /** Required. The resource name of the entitlement. */
524
+ name: string;
525
+ /** OAuth 2.0 token for the current user. */
526
+ oauth_token?: string;
527
+ /** Returns response with indentations and line breaks. */
528
+ prettyPrint?: boolean;
529
+ /** 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. */
530
+ quotaUser?: string;
531
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
532
+ upload_protocol?: string;
533
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
534
+ uploadType?: string;
535
+ },
536
+ body: ApproveEntitlementPlanChangeRequest,
537
+ ): Request<{}>;
538
+ /** Gets a requested Entitlement resource. */
539
+ get(request?: {
540
+ /** V1 error format. */
541
+ '$.xgafv'?: '1' | '2';
542
+ /** OAuth access token. */
543
+ access_token?: string;
544
+ /** Data format for response. */
545
+ alt?: 'json' | 'media' | 'proto';
546
+ /** JSONP */
547
+ callback?: string;
548
+ /** Selector specifying which fields to include in a partial response. */
549
+ fields?: string;
550
+ /** 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. */
551
+ key?: string;
552
+ /** Required. The name of the entitlement to retrieve. */
553
+ name: string;
554
+ /** OAuth 2.0 token for the current user. */
555
+ oauth_token?: string;
556
+ /** Returns response with indentations and line breaks. */
557
+ prettyPrint?: boolean;
558
+ /** 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. */
559
+ quotaUser?: string;
560
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
561
+ upload_protocol?: string;
562
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
563
+ uploadType?: string;
564
+ }): Request<Entitlement>;
565
+ /** Lists Entitlements for which the provider has read access. */
566
+ list(request?: {
567
+ /** V1 error format. */
568
+ '$.xgafv'?: '1' | '2';
569
+ /** OAuth access token. */
570
+ access_token?: string;
571
+ /** Data format for response. */
572
+ alt?: 'json' | 'media' | 'proto';
573
+ /** JSONP */
574
+ callback?: string;
575
+ /** Selector specifying which fields to include in a partial response. */
576
+ fields?: string;
577
+ /** The filter that can be used to limit the list request. The filter is a query string that can match a selected set of attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`, `state=pending_cancellation`, and `plan!=foo-plan`. Supported query attributes are * `account` * `customer_billing_account` with value in the format of: `billingAccounts/{id}` * `product_external_name` * `quote_external_name` * `offer` * `new_pending_offer` * `plan` * `newPendingPlan` or `new_pending_plan` * `state` * `services` * `consumers.project` * `change_history.new_offer` Note that the consumers and change_history.new_offer match works on repeated structures, so equality (`consumers.project=projects/123456789`) is not supported. Set membership can be expressed with the `:` operator. For example, `consumers.project:projects/123456789` finds entitlements with at least one consumer with project field equal to `projects/123456789`. `change_history.new_offer` retrieves all entitlements that were once associated or are currently active with the offer. Also note that the state name match is case-insensitive and query can omit the prefix "ENTITLEMENT_". For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If the query contains some special characters other than letters, underscore, or digits, the phrase must be quoted with double quotes. For example, `product="providerId:productId"`, where the product name needs to be quoted because it contains special character colon. Queries can be combined with `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped to force a desired evaluation order. For example, `state=active AND (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective `AND` can be omitted between two predicates. For example `account=E-1234 state=active` is equivalent to `account=E-1234 AND state=active`. */
578
+ filter?: string;
579
+ /** 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. */
580
+ key?: string;
581
+ /** OAuth 2.0 token for the current user. */
582
+ oauth_token?: string;
583
+ /** The maximum number of entries that are requested. The default page size is 200. */
584
+ pageSize?: number;
585
+ /** The token for fetching the next page. */
586
+ pageToken?: string;
587
+ /** Required. The parent resource name. */
588
+ parent: string;
589
+ /** Returns response with indentations and line breaks. */
590
+ prettyPrint?: boolean;
591
+ /** 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. */
592
+ quotaUser?: string;
593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
594
+ upload_protocol?: string;
595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
596
+ uploadType?: string;
597
+ }): Request<ListEntitlementsResponse>;
598
+ /** Updates an existing Entitlement. */
599
+ patch(request: {
629
600
  /** V1 error format. */
630
601
  '$.xgafv'?: '1' | '2';
631
602
  /** OAuth access token. */
@@ -652,40 +623,42 @@ declare namespace gapi.client {
652
623
  upload_protocol?: string;
653
624
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
654
625
  uploadType?: string;
655
- },
656
- body: Entitlement,
657
- ): Request<Entitlement>;
658
- /** Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource. */
659
- reject(request: {
660
- /** V1 error format. */
661
- '$.xgafv'?: '1' | '2';
662
- /** OAuth access token. */
663
- access_token?: string;
664
- /** Data format for response. */
665
- alt?: 'json' | 'media' | 'proto';
666
- /** JSONP */
667
- callback?: string;
668
- /** Selector specifying which fields to include in a partial response. */
669
- fields?: string;
670
- /** 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. */
671
- key?: string;
672
- /** Required. The resource name of the entitlement. */
673
- name: string;
674
- /** OAuth 2.0 token for the current user. */
675
- oauth_token?: string;
676
- /** Returns response with indentations and line breaks. */
677
- prettyPrint?: boolean;
678
- /** 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. */
679
- quotaUser?: string;
680
- /** Upload protocol for media (e.g. "raw", "multipart"). */
681
- upload_protocol?: string;
682
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
683
- uploadType?: string;
684
- /** Request body */
685
- resource: RejectEntitlementRequest;
686
- }): Request<{}>;
687
- reject(
688
- request: {
626
+ /** Request body */
627
+ resource: Entitlement;
628
+ }): Request<Entitlement>;
629
+ patch(
630
+ request: {
631
+ /** V1 error format. */
632
+ '$.xgafv'?: '1' | '2';
633
+ /** OAuth access token. */
634
+ access_token?: string;
635
+ /** Data format for response. */
636
+ alt?: 'json' | 'media' | 'proto';
637
+ /** JSONP */
638
+ callback?: string;
639
+ /** Selector specifying which fields to include in a partial response. */
640
+ fields?: string;
641
+ /** 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. */
642
+ key?: string;
643
+ /** Required. The name of the entitlement to update. */
644
+ name: string;
645
+ /** OAuth 2.0 token for the current user. */
646
+ oauth_token?: string;
647
+ /** Returns response with indentations and line breaks. */
648
+ prettyPrint?: boolean;
649
+ /** 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. */
650
+ quotaUser?: string;
651
+ /** The update mask that applies to the resource. See the [FieldMask definition] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask) for more details. */
652
+ updateMask?: string;
653
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
654
+ upload_protocol?: string;
655
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
656
+ uploadType?: string;
657
+ },
658
+ body: Entitlement,
659
+ ): Request<Entitlement>;
660
+ /** Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource. */
661
+ reject(request: {
689
662
  /** V1 error format. */
690
663
  '$.xgafv'?: '1' | '2';
691
664
  /** OAuth access token. */
@@ -710,40 +683,40 @@ declare namespace gapi.client {
710
683
  upload_protocol?: string;
711
684
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
712
685
  uploadType?: string;
713
- },
714
- body: RejectEntitlementRequest,
715
- ): Request<{}>;
716
- /** Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource. */
717
- rejectPlanChange(request: {
718
- /** V1 error format. */
719
- '$.xgafv'?: '1' | '2';
720
- /** OAuth access token. */
721
- access_token?: string;
722
- /** Data format for response. */
723
- alt?: 'json' | 'media' | 'proto';
724
- /** JSONP */
725
- callback?: string;
726
- /** Selector specifying which fields to include in a partial response. */
727
- fields?: string;
728
- /** 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. */
729
- key?: string;
730
- /** Required. The resource name of the entitlement. */
731
- name: string;
732
- /** OAuth 2.0 token for the current user. */
733
- oauth_token?: string;
734
- /** Returns response with indentations and line breaks. */
735
- prettyPrint?: boolean;
736
- /** 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. */
737
- quotaUser?: string;
738
- /** Upload protocol for media (e.g. "raw", "multipart"). */
739
- upload_protocol?: string;
740
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
741
- uploadType?: string;
742
- /** Request body */
743
- resource: RejectEntitlementPlanChangeRequest;
744
- }): Request<{}>;
745
- rejectPlanChange(
746
- request: {
686
+ /** Request body */
687
+ resource: RejectEntitlementRequest;
688
+ }): Request<{}>;
689
+ reject(
690
+ request: {
691
+ /** V1 error format. */
692
+ '$.xgafv'?: '1' | '2';
693
+ /** OAuth access token. */
694
+ access_token?: string;
695
+ /** Data format for response. */
696
+ alt?: 'json' | 'media' | 'proto';
697
+ /** JSONP */
698
+ callback?: string;
699
+ /** Selector specifying which fields to include in a partial response. */
700
+ fields?: string;
701
+ /** 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. */
702
+ key?: string;
703
+ /** Required. The resource name of the entitlement. */
704
+ name: string;
705
+ /** OAuth 2.0 token for the current user. */
706
+ oauth_token?: string;
707
+ /** Returns response with indentations and line breaks. */
708
+ prettyPrint?: boolean;
709
+ /** 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. */
710
+ quotaUser?: string;
711
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
712
+ upload_protocol?: string;
713
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
714
+ uploadType?: string;
715
+ },
716
+ body: RejectEntitlementRequest,
717
+ ): Request<{}>;
718
+ /** Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource. */
719
+ rejectPlanChange(request: {
747
720
  /** V1 error format. */
748
721
  '$.xgafv'?: '1' | '2';
749
722
  /** OAuth access token. */
@@ -768,40 +741,40 @@ declare namespace gapi.client {
768
741
  upload_protocol?: string;
769
742
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
770
743
  uploadType?: string;
771
- },
772
- body: RejectEntitlementPlanChangeRequest,
773
- ): Request<{}>;
774
- /** Requests suspension of an active Entitlement. This is not yet supported. */
775
- suspend(request: {
776
- /** V1 error format. */
777
- '$.xgafv'?: '1' | '2';
778
- /** OAuth access token. */
779
- access_token?: string;
780
- /** Data format for response. */
781
- alt?: 'json' | 'media' | 'proto';
782
- /** JSONP */
783
- callback?: string;
784
- /** Selector specifying which fields to include in a partial response. */
785
- fields?: string;
786
- /** 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. */
787
- key?: string;
788
- /** Required. The name of the entitlement to suspend. */
789
- name: string;
790
- /** OAuth 2.0 token for the current user. */
791
- oauth_token?: string;
792
- /** Returns response with indentations and line breaks. */
793
- prettyPrint?: boolean;
794
- /** 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. */
795
- quotaUser?: string;
796
- /** Upload protocol for media (e.g. "raw", "multipart"). */
797
- upload_protocol?: string;
798
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
799
- uploadType?: string;
800
- /** Request body */
801
- resource: SuspendEntitlementRequest;
802
- }): Request<{}>;
803
- suspend(
804
- request: {
744
+ /** Request body */
745
+ resource: RejectEntitlementPlanChangeRequest;
746
+ }): Request<{}>;
747
+ rejectPlanChange(
748
+ request: {
749
+ /** V1 error format. */
750
+ '$.xgafv'?: '1' | '2';
751
+ /** OAuth access token. */
752
+ access_token?: string;
753
+ /** Data format for response. */
754
+ alt?: 'json' | 'media' | 'proto';
755
+ /** JSONP */
756
+ callback?: string;
757
+ /** Selector specifying which fields to include in a partial response. */
758
+ fields?: string;
759
+ /** 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. */
760
+ key?: string;
761
+ /** Required. The resource name of the entitlement. */
762
+ name: string;
763
+ /** OAuth 2.0 token for the current user. */
764
+ oauth_token?: string;
765
+ /** Returns response with indentations and line breaks. */
766
+ prettyPrint?: boolean;
767
+ /** 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. */
768
+ quotaUser?: string;
769
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
770
+ upload_protocol?: string;
771
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
772
+ uploadType?: string;
773
+ },
774
+ body: RejectEntitlementPlanChangeRequest,
775
+ ): Request<{}>;
776
+ /** Requests suspension of an active Entitlement. This is not yet supported. */
777
+ suspend(request: {
805
778
  /** V1 error format. */
806
779
  '$.xgafv'?: '1' | '2';
807
780
  /** OAuth access token. */
@@ -826,15 +799,39 @@ declare namespace gapi.client {
826
799
  upload_protocol?: string;
827
800
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
828
801
  uploadType?: string;
829
- },
830
- body: SuspendEntitlementRequest,
831
- ): Request<{}>;
832
- }
833
- interface ProvidersResource {
834
- accounts: AccountsResource;
835
- entitlements: EntitlementsResource;
836
- }
837
-
838
- const providers: ProvidersResource;
802
+ /** Request body */
803
+ resource: SuspendEntitlementRequest;
804
+ }): Request<{}>;
805
+ suspend(
806
+ request: {
807
+ /** V1 error format. */
808
+ '$.xgafv'?: '1' | '2';
809
+ /** OAuth access token. */
810
+ access_token?: string;
811
+ /** Data format for response. */
812
+ alt?: 'json' | 'media' | 'proto';
813
+ /** JSONP */
814
+ callback?: string;
815
+ /** Selector specifying which fields to include in a partial response. */
816
+ fields?: string;
817
+ /** 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. */
818
+ key?: string;
819
+ /** Required. The name of the entitlement to suspend. */
820
+ name: string;
821
+ /** OAuth 2.0 token for the current user. */
822
+ oauth_token?: string;
823
+ /** Returns response with indentations and line breaks. */
824
+ prettyPrint?: boolean;
825
+ /** 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. */
826
+ quotaUser?: string;
827
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
828
+ upload_protocol?: string;
829
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
830
+ uploadType?: string;
831
+ },
832
+ body: SuspendEntitlementRequest,
833
+ ): Request<{}>;
834
+ };
835
+ };
839
836
  }
840
837
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1",
3
- "version": "0.1.20261115",
3
+ "version": "0.2.20261119",
4
4
  "description": "TypeScript typings for Cloud Commerce Partner Procurement API v1",
5
5
  "repository": {
6
6
  "type": "git",