@maxim_mazurok/gapi.client.cloudchannel-v1 0.0.20230607 → 0.0.20230611

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 (3) hide show
  1. package/index.d.ts +156 -1
  2. package/package.json +1 -1
  3. package/tests.ts +23 -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://cloudchannel.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230607
12
+ // Revision: 20230611
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -358,6 +358,20 @@ declare namespace gapi.client {
358
358
  baseEntitlement?:
359
359
  string;
360
360
  }
361
+ interface GoogleCloudChannelV1BillableSku {
362
+ /** Resource name of Service which contains Repricing SKU. Format: services/{service}. Example: "services/B7D9-FDCB-15D8". */
363
+ service?:
364
+ string;
365
+ /** Unique human readable name for the Service. */
366
+ serviceDisplayName?:
367
+ string;
368
+ /** Resource name of Billable SKU. Format: billableSkus/{sku}. Example: billableSkus/6E1B-6634-470F". */
369
+ sku?:
370
+ string;
371
+ /** Unique human readable name for the SKU. */
372
+ skuDisplayName?:
373
+ string;
374
+ }
361
375
  interface GoogleCloudChannelV1BillingAccount {
362
376
  /** Output only. The time when this billing account was created. */
363
377
  createTime?:
@@ -959,6 +973,22 @@ declare namespace gapi.client {
959
973
  reports?:
960
974
  GoogleCloudChannelV1Report[];
961
975
  }
976
+ interface GoogleCloudChannelV1ListSkuGroupBillableSkusResponse {
977
+ /** The list of billable SKUs in the requested SKU group. */
978
+ billableSkus?:
979
+ GoogleCloudChannelV1BillableSku[];
980
+ /** A token to retrieve the next page of results. Pass to ListSkuGroupBillableSkus.page_token to obtain that page. */
981
+ nextPageToken?:
982
+ string;
983
+ }
984
+ interface GoogleCloudChannelV1ListSkuGroupsResponse {
985
+ /** A token to retrieve the next page of results. Pass to ListSkuGroups.page_token to obtain that page. */
986
+ nextPageToken?:
987
+ string;
988
+ /** The list of SKU groups requested. */
989
+ skuGroups?:
990
+ GoogleCloudChannelV1SkuGroup[];
991
+ }
962
992
  interface GoogleCloudChannelV1ListSkusResponse {
963
993
  /** A token to retrieve the next page of results. */
964
994
  nextPageToken?:
@@ -1471,6 +1501,14 @@ declare namespace gapi.client {
1471
1501
  product?:
1472
1502
  GoogleCloudChannelV1Product;
1473
1503
  }
1504
+ interface GoogleCloudChannelV1SkuGroup {
1505
+ /** Unique human readable identifier for the SKU group. */
1506
+ displayName?:
1507
+ string;
1508
+ /** Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". */
1509
+ name?:
1510
+ string;
1511
+ }
1474
1512
  interface GoogleCloudChannelV1SkuGroupCondition {
1475
1513
  /**
1476
1514
  * Specifies a SKU group (https://cloud.google.com/skus/sku-groups). Resource name of SKU group. Format: accounts/{account}/skuGroups/{sku_group}. Example:
@@ -5259,6 +5297,121 @@ declare namespace gapi.client {
5259
5297
  },
5260
5298
  body: GoogleCloudChannelV1RunReportJobRequest): Request<GoogleLongrunningOperation>;
5261
5299
  }
5300
+ interface BillableSkusResource {
5301
+ /**
5302
+ * Lists the Billable SKUs in a given SKU group. Possible error codes: PERMISSION_DENIED: If the account making the request and the account being queried for are different, or the
5303
+ * account doesn't exist. INVALID_ARGUMENT: Missing or invalid required parameters in the request. INTERNAL: Any non-user error related to technical issue in the backend. In this case,
5304
+ * contact cloud channel support. Return Value: If successful, the BillableSku resources. The data for each resource is displayed in the ascending order of: *
5305
+ * BillableSku.service_display_name * BillableSku.sku_display_name If unsuccessful, returns an error.
5306
+ */
5307
+ list(request?: {
5308
+ /** V1 error format. */
5309
+ "$.xgafv"?:
5310
+ string;
5311
+ /** OAuth access token. */
5312
+ access_token?:
5313
+ string;
5314
+ /** Data format for response. */
5315
+ alt?:
5316
+ string;
5317
+ /** JSONP */
5318
+ callback?:
5319
+ string;
5320
+ /** Selector specifying which fields to include in a partial response. */
5321
+ fields?:
5322
+ string;
5323
+ /** 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. */
5324
+ key?:
5325
+ string;
5326
+ /** OAuth 2.0 token for the current user. */
5327
+ oauth_token?:
5328
+ string;
5329
+ /**
5330
+ * Optional. The maximum number of SKUs to return. The service may return fewer than this value. If unspecified, returns a maximum of 100000 SKUs. The maximum value is 100000;
5331
+ * values above 100000 will be coerced to 100000.
5332
+ */
5333
+ pageSize?:
5334
+ number;
5335
+ /**
5336
+ * Optional. A token identifying a page of results beyond the first page. Obtained through ListSkuGroupBillableSkus.next_page_token of the previous
5337
+ * CloudChannelService.ListSkuGroupBillableSkus call.
5338
+ */
5339
+ pageToken?:
5340
+ string;
5341
+ /** Required. Resource name of the SKU group. Format: accounts/{account}/skuGroups/{sku_group}. */
5342
+ parent:
5343
+ string;
5344
+ /** Returns response with indentations and line breaks. */
5345
+ prettyPrint?:
5346
+ boolean;
5347
+ /** 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. */
5348
+ quotaUser?:
5349
+ string;
5350
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5351
+ upload_protocol?:
5352
+ string;
5353
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5354
+ uploadType?:
5355
+ string;
5356
+ }): Request<GoogleCloudChannelV1ListSkuGroupBillableSkusResponse>;
5357
+ }
5358
+ interface SkuGroupsResource {
5359
+ /**
5360
+ * Lists the Rebilling supported SKU groups the account is authorized to sell. Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes: * PERMISSION_DENIED: If the
5361
+ * account making the request and the account being queried are different, or the account doesn't exist. * INTERNAL: Any non-user error related to technical issues in the backend. In
5362
+ * this case, contact Cloud Channel support. Return Value: If successful, the SkuGroup resources. The data for each resource is displayed in the alphabetical order of SKU group display
5363
+ * name. The data for each resource is displayed in the ascending order of SkuGroup.display_name If unsuccessful, returns an error.
5364
+ */
5365
+ list(request?: {
5366
+ /** V1 error format. */
5367
+ "$.xgafv"?:
5368
+ string;
5369
+ /** OAuth access token. */
5370
+ access_token?:
5371
+ string;
5372
+ /** Data format for response. */
5373
+ alt?:
5374
+ string;
5375
+ /** JSONP */
5376
+ callback?:
5377
+ string;
5378
+ /** Selector specifying which fields to include in a partial response. */
5379
+ fields?:
5380
+ string;
5381
+ /** 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. */
5382
+ key?:
5383
+ string;
5384
+ /** OAuth 2.0 token for the current user. */
5385
+ oauth_token?:
5386
+ string;
5387
+ /**
5388
+ * Optional. The maximum number of SKU groups to return. The service may return fewer than this value. If unspecified, returns a maximum of 1000 SKU groups. The maximum value is
5389
+ * 1000; values above 1000 will be coerced to 1000.
5390
+ */
5391
+ pageSize?:
5392
+ number;
5393
+ /** Optional. A token identifying a page of results beyond the first page. Obtained through ListSkuGroups.next_page_token of the previous CloudChannelService.ListSkuGroups call. */
5394
+ pageToken?:
5395
+ string;
5396
+ /** Required. The resource name of the account from which to list SKU groups. Parent uses the format: accounts/{account}. */
5397
+ parent:
5398
+ string;
5399
+ /** Returns response with indentations and line breaks. */
5400
+ prettyPrint?:
5401
+ boolean;
5402
+ /** 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. */
5403
+ quotaUser?:
5404
+ string;
5405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5406
+ upload_protocol?:
5407
+ string;
5408
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5409
+ uploadType?:
5410
+ string;
5411
+ }): Request<GoogleCloudChannelV1ListSkuGroupsResponse>;
5412
+ billableSkus:
5413
+ BillableSkusResource;
5414
+ }
5262
5415
  interface AccountsResource {
5263
5416
  /**
5264
5417
  * Confirms the existence of Cloud Identity accounts based on the domain and if the Cloud Identity accounts are owned by the reseller. Possible error codes: * PERMISSION_DENIED: The
@@ -5759,6 +5912,8 @@ declare namespace gapi.client {
5759
5912
  ReportJobsResource;
5760
5913
  reports:
5761
5914
  ReportsResource;
5915
+ skuGroups:
5916
+ SkuGroupsResource;
5762
5917
  }
5763
5918
  interface OperationsResource {
5764
5919
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudchannel-v1",
3
- "version": "0.0.20230607",
3
+ "version": "0.0.20230611",
4
4
  "description": "TypeScript typings for Cloud Channel API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230607
6
+ // Revision: 20230611
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1308,6 +1308,28 @@ gapi.load('client', async () => {
1308
1308
  filter: "Test string",
1309
1309
  languageCode: "Test string",
1310
1310
  });
1311
+ /**
1312
+ * Lists the Rebilling supported SKU groups the account is authorized to sell. Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes: * PERMISSION_DENIED: If the account
1313
+ * making the request and the account being queried are different, or the account doesn't exist. * INTERNAL: Any non-user error related to technical issues in the backend. In this case,
1314
+ * contact Cloud Channel support. Return Value: If successful, the SkuGroup resources. The data for each resource is displayed in the alphabetical order of SKU group display name. The data
1315
+ * for each resource is displayed in the ascending order of SkuGroup.display_name If unsuccessful, returns an error.
1316
+ */
1317
+ await gapi.client.cloudchannel.accounts.skuGroups.list({
1318
+ pageSize: 42,
1319
+ pageToken: "Test string",
1320
+ parent: "Test string",
1321
+ });
1322
+ /**
1323
+ * Lists the Billable SKUs in a given SKU group. Possible error codes: PERMISSION_DENIED: If the account making the request and the account being queried for are different, or the account
1324
+ * doesn't exist. INVALID_ARGUMENT: Missing or invalid required parameters in the request. INTERNAL: Any non-user error related to technical issue in the backend. In this case, contact
1325
+ * cloud channel support. Return Value: If successful, the BillableSku resources. The data for each resource is displayed in the ascending order of: * BillableSku.service_display_name *
1326
+ * BillableSku.sku_display_name If unsuccessful, returns an error.
1327
+ */
1328
+ await gapi.client.cloudchannel.accounts.skuGroups.billableSkus.list({
1329
+ pageSize: 42,
1330
+ pageToken: "Test string",
1331
+ parent: "Test string",
1332
+ });
1311
1333
  /**
1312
1334
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
1313
1335
  * method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation