@maxim_mazurok/gapi.client.cloudbilling-v1 0.1.20260306 → 0.2.20260313

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 +63 -53
  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://cloudbilling.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260306
12
+ // Revision: 20260313
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -27,8 +27,14 @@ declare namespace gapi.client {
27
27
  interface AggregationInfo {
28
28
  /** The number of intervals to aggregate over. Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days. */
29
29
  aggregationCount?: number;
30
- aggregationInterval?: string;
31
- aggregationLevel?: string;
30
+ aggregationInterval?:
31
+ | 'AGGREGATION_INTERVAL_UNSPECIFIED'
32
+ | 'DAILY'
33
+ | 'MONTHLY';
34
+ aggregationLevel?:
35
+ | 'AGGREGATION_LEVEL_UNSPECIFIED'
36
+ | 'ACCOUNT'
37
+ | 'PROJECT';
32
38
  }
33
39
  interface AuditConfig {
34
40
  /** The configuration for logging of each type of permission. */
@@ -40,7 +46,11 @@ declare namespace gapi.client {
40
46
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
41
47
  exemptedMembers?: string[];
42
48
  /** The log type that this config enables. */
43
- logType?: string;
49
+ logType?:
50
+ | 'LOG_TYPE_UNSPECIFIED'
51
+ | 'ADMIN_READ'
52
+ | 'DATA_WRITE'
53
+ | 'DATA_READ';
44
54
  }
45
55
  interface BillingAccount {
46
56
  /** Optional. The currency in which the billing account is billed and charged, represented as an ISO 4217 code such as `USD`. Billing account currency is determined at the time of billing account creation and cannot be updated subsequently, so this field should not be set on update requests. In addition, a subaccount always matches the currency of its parent billing account, so this field should not be set on subaccount creation requests. Clients can read this field to determine the currency of an existing billing account. */
@@ -88,7 +98,7 @@ declare namespace gapi.client {
88
98
  /** The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions. */
89
99
  regions?: string[];
90
100
  /** The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. */
91
- type?: string;
101
+ type?: 'TYPE_UNSPECIFIED' | 'GLOBAL' | 'REGIONAL' | 'MULTI_REGIONAL';
92
102
  }
93
103
  interface ListBillingAccountsResponse {
94
104
  /** A list of billing accounts. */
@@ -226,11 +236,11 @@ declare namespace gapi.client {
226
236
  /** Lists the projects associated with a billing account. The current authenticated user must have the `billing.resourceAssociations.list` IAM permission, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). */
227
237
  list(request?: {
228
238
  /** V1 error format. */
229
- '$.xgafv'?: string;
239
+ '$.xgafv'?: '1' | '2';
230
240
  /** OAuth access token. */
231
241
  access_token?: string;
232
242
  /** Data format for response. */
233
- alt?: string;
243
+ alt?: 'json' | 'media' | 'proto';
234
244
  /** JSONP */
235
245
  callback?: string;
236
246
  /** Selector specifying which fields to include in a partial response. */
@@ -259,11 +269,11 @@ declare namespace gapi.client {
259
269
  /** This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts. */
260
270
  create(request: {
261
271
  /** V1 error format. */
262
- '$.xgafv'?: string;
272
+ '$.xgafv'?: '1' | '2';
263
273
  /** OAuth access token. */
264
274
  access_token?: string;
265
275
  /** Data format for response. */
266
- alt?: string;
276
+ alt?: 'json' | 'media' | 'proto';
267
277
  /** JSONP */
268
278
  callback?: string;
269
279
  /** Selector specifying which fields to include in a partial response. */
@@ -288,11 +298,11 @@ declare namespace gapi.client {
288
298
  create(
289
299
  request: {
290
300
  /** V1 error format. */
291
- '$.xgafv'?: string;
301
+ '$.xgafv'?: '1' | '2';
292
302
  /** OAuth access token. */
293
303
  access_token?: string;
294
304
  /** Data format for response. */
295
- alt?: string;
305
+ alt?: 'json' | 'media' | 'proto';
296
306
  /** JSONP */
297
307
  callback?: string;
298
308
  /** Selector specifying which fields to include in a partial response. */
@@ -317,11 +327,11 @@ declare namespace gapi.client {
317
327
  /** Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access). */
318
328
  list(request?: {
319
329
  /** V1 error format. */
320
- '$.xgafv'?: string;
330
+ '$.xgafv'?: '1' | '2';
321
331
  /** OAuth access token. */
322
332
  access_token?: string;
323
333
  /** Data format for response. */
324
- alt?: string;
334
+ alt?: 'json' | 'media' | 'proto';
325
335
  /** JSONP */
326
336
  callback?: string;
327
337
  /** Selector specifying which fields to include in a partial response. */
@@ -352,11 +362,11 @@ declare namespace gapi.client {
352
362
  /** This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts. */
353
363
  create(request: {
354
364
  /** V1 error format. */
355
- '$.xgafv'?: string;
365
+ '$.xgafv'?: '1' | '2';
356
366
  /** OAuth access token. */
357
367
  access_token?: string;
358
368
  /** Data format for response. */
359
- alt?: string;
369
+ alt?: 'json' | 'media' | 'proto';
360
370
  /** JSONP */
361
371
  callback?: string;
362
372
  /** Selector specifying which fields to include in a partial response. */
@@ -381,11 +391,11 @@ declare namespace gapi.client {
381
391
  create(
382
392
  request: {
383
393
  /** V1 error format. */
384
- '$.xgafv'?: string;
394
+ '$.xgafv'?: '1' | '2';
385
395
  /** OAuth access token. */
386
396
  access_token?: string;
387
397
  /** Data format for response. */
388
- alt?: string;
398
+ alt?: 'json' | 'media' | 'proto';
389
399
  /** JSONP */
390
400
  callback?: string;
391
401
  /** Selector specifying which fields to include in a partial response. */
@@ -410,11 +420,11 @@ declare namespace gapi.client {
410
420
  /** Gets information about a billing account. The current authenticated user must be a [viewer of the billing account](https://cloud.google.com/billing/docs/how-to/billing-access). */
411
421
  get(request?: {
412
422
  /** V1 error format. */
413
- '$.xgafv'?: string;
423
+ '$.xgafv'?: '1' | '2';
414
424
  /** OAuth access token. */
415
425
  access_token?: string;
416
426
  /** Data format for response. */
417
- alt?: string;
427
+ alt?: 'json' | 'media' | 'proto';
418
428
  /** JSONP */
419
429
  callback?: string;
420
430
  /** Selector specifying which fields to include in a partial response. */
@@ -437,11 +447,11 @@ declare namespace gapi.client {
437
447
  /** Gets the access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). */
438
448
  getIamPolicy(request?: {
439
449
  /** V1 error format. */
440
- '$.xgafv'?: string;
450
+ '$.xgafv'?: '1' | '2';
441
451
  /** OAuth access token. */
442
452
  access_token?: string;
443
453
  /** Data format for response. */
444
- alt?: string;
454
+ alt?: 'json' | 'media' | 'proto';
445
455
  /** JSONP */
446
456
  callback?: string;
447
457
  /** Selector specifying which fields to include in a partial response. */
@@ -466,11 +476,11 @@ declare namespace gapi.client {
466
476
  /** Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access). */
467
477
  list(request?: {
468
478
  /** V1 error format. */
469
- '$.xgafv'?: string;
479
+ '$.xgafv'?: '1' | '2';
470
480
  /** OAuth access token. */
471
481
  access_token?: string;
472
482
  /** Data format for response. */
473
- alt?: string;
483
+ alt?: 'json' | 'media' | 'proto';
474
484
  /** JSONP */
475
485
  callback?: string;
476
486
  /** Selector specifying which fields to include in a partial response. */
@@ -499,11 +509,11 @@ declare namespace gapi.client {
499
509
  /** Changes which parent organization a billing account belongs to. */
500
510
  move(request: {
501
511
  /** V1 error format. */
502
- '$.xgafv'?: string;
512
+ '$.xgafv'?: '1' | '2';
503
513
  /** OAuth access token. */
504
514
  access_token?: string;
505
515
  /** Data format for response. */
506
- alt?: string;
516
+ alt?: 'json' | 'media' | 'proto';
507
517
  /** JSONP */
508
518
  callback?: string;
509
519
  /** Selector specifying which fields to include in a partial response. */
@@ -528,11 +538,11 @@ declare namespace gapi.client {
528
538
  move(
529
539
  request: {
530
540
  /** V1 error format. */
531
- '$.xgafv'?: string;
541
+ '$.xgafv'?: '1' | '2';
532
542
  /** OAuth access token. */
533
543
  access_token?: string;
534
544
  /** Data format for response. */
535
- alt?: string;
545
+ alt?: 'json' | 'media' | 'proto';
536
546
  /** JSONP */
537
547
  callback?: string;
538
548
  /** Selector specifying which fields to include in a partial response. */
@@ -557,11 +567,11 @@ declare namespace gapi.client {
557
567
  /** Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) of the billing account. */
558
568
  patch(request: {
559
569
  /** V1 error format. */
560
- '$.xgafv'?: string;
570
+ '$.xgafv'?: '1' | '2';
561
571
  /** OAuth access token. */
562
572
  access_token?: string;
563
573
  /** Data format for response. */
564
- alt?: string;
574
+ alt?: 'json' | 'media' | 'proto';
565
575
  /** JSONP */
566
576
  callback?: string;
567
577
  /** Selector specifying which fields to include in a partial response. */
@@ -588,11 +598,11 @@ declare namespace gapi.client {
588
598
  patch(
589
599
  request: {
590
600
  /** V1 error format. */
591
- '$.xgafv'?: string;
601
+ '$.xgafv'?: '1' | '2';
592
602
  /** OAuth access token. */
593
603
  access_token?: string;
594
604
  /** Data format for response. */
595
- alt?: string;
605
+ alt?: 'json' | 'media' | 'proto';
596
606
  /** JSONP */
597
607
  callback?: string;
598
608
  /** Selector specifying which fields to include in a partial response. */
@@ -620,11 +630,11 @@ declare namespace gapi.client {
620
630
  setIamPolicy(
621
631
  request: {
622
632
  /** V1 error format. */
623
- '$.xgafv'?: string;
633
+ '$.xgafv'?: '1' | '2';
624
634
  /** OAuth access token. */
625
635
  access_token?: string;
626
636
  /** Data format for response. */
627
- alt?: string;
637
+ alt?: 'json' | 'media' | 'proto';
628
638
  /** JSONP */
629
639
  callback?: string;
630
640
  /** Selector specifying which fields to include in a partial response. */
@@ -650,11 +660,11 @@ declare namespace gapi.client {
650
660
  testIamPermissions(
651
661
  request: {
652
662
  /** V1 error format. */
653
- '$.xgafv'?: string;
663
+ '$.xgafv'?: '1' | '2';
654
664
  /** OAuth access token. */
655
665
  access_token?: string;
656
666
  /** Data format for response. */
657
- alt?: string;
667
+ alt?: 'json' | 'media' | 'proto';
658
668
  /** JSONP */
659
669
  callback?: string;
660
670
  /** Selector specifying which fields to include in a partial response. */
@@ -683,11 +693,11 @@ declare namespace gapi.client {
683
693
  /** This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts. */
684
694
  create(request: {
685
695
  /** V1 error format. */
686
- '$.xgafv'?: string;
696
+ '$.xgafv'?: '1' | '2';
687
697
  /** OAuth access token. */
688
698
  access_token?: string;
689
699
  /** Data format for response. */
690
- alt?: string;
700
+ alt?: 'json' | 'media' | 'proto';
691
701
  /** JSONP */
692
702
  callback?: string;
693
703
  /** Selector specifying which fields to include in a partial response. */
@@ -712,11 +722,11 @@ declare namespace gapi.client {
712
722
  create(
713
723
  request: {
714
724
  /** V1 error format. */
715
- '$.xgafv'?: string;
725
+ '$.xgafv'?: '1' | '2';
716
726
  /** OAuth access token. */
717
727
  access_token?: string;
718
728
  /** Data format for response. */
719
- alt?: string;
729
+ alt?: 'json' | 'media' | 'proto';
720
730
  /** JSONP */
721
731
  callback?: string;
722
732
  /** Selector specifying which fields to include in a partial response. */
@@ -741,11 +751,11 @@ declare namespace gapi.client {
741
751
  /** Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access). */
742
752
  list(request?: {
743
753
  /** V1 error format. */
744
- '$.xgafv'?: string;
754
+ '$.xgafv'?: '1' | '2';
745
755
  /** OAuth access token. */
746
756
  access_token?: string;
747
757
  /** Data format for response. */
748
- alt?: string;
758
+ alt?: 'json' | 'media' | 'proto';
749
759
  /** JSONP */
750
760
  callback?: string;
751
761
  /** Selector specifying which fields to include in a partial response. */
@@ -774,11 +784,11 @@ declare namespace gapi.client {
774
784
  /** Changes which parent organization a billing account belongs to. */
775
785
  move(request?: {
776
786
  /** V1 error format. */
777
- '$.xgafv'?: string;
787
+ '$.xgafv'?: '1' | '2';
778
788
  /** OAuth access token. */
779
789
  access_token?: string;
780
790
  /** Data format for response. */
781
- alt?: string;
791
+ alt?: 'json' | 'media' | 'proto';
782
792
  /** JSONP */
783
793
  callback?: string;
784
794
  /** Required. The resource name of the Organization to move the billing account under. Must be of the form `organizations/{organization_id}`. */
@@ -808,11 +818,11 @@ declare namespace gapi.client {
808
818
  /** Gets the billing information for a project. The current authenticated user must have the `resourcemanager.projects.get` permission for the project, which can be granted by assigning the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) role. */
809
819
  getBillingInfo(request?: {
810
820
  /** V1 error format. */
811
- '$.xgafv'?: string;
821
+ '$.xgafv'?: '1' | '2';
812
822
  /** OAuth access token. */
813
823
  access_token?: string;
814
824
  /** Data format for response. */
815
- alt?: string;
825
+ alt?: 'json' | 'media' | 'proto';
816
826
  /** JSONP */
817
827
  callback?: string;
818
828
  /** Selector specifying which fields to include in a partial response. */
@@ -835,11 +845,11 @@ declare namespace gapi.client {
835
845
  /** Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. *Note:* Incurred charges that have not yet been reported in the transaction history of the Google Cloud Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing account](https://cloud.google.com/billing/docs/how-to/billing-access). You can disable billing on the project by setting the `billing_account_name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an *open* billing account. */
836
846
  updateBillingInfo(request: {
837
847
  /** V1 error format. */
838
- '$.xgafv'?: string;
848
+ '$.xgafv'?: '1' | '2';
839
849
  /** OAuth access token. */
840
850
  access_token?: string;
841
851
  /** Data format for response. */
842
- alt?: string;
852
+ alt?: 'json' | 'media' | 'proto';
843
853
  /** JSONP */
844
854
  callback?: string;
845
855
  /** Selector specifying which fields to include in a partial response. */
@@ -864,11 +874,11 @@ declare namespace gapi.client {
864
874
  updateBillingInfo(
865
875
  request: {
866
876
  /** V1 error format. */
867
- '$.xgafv'?: string;
877
+ '$.xgafv'?: '1' | '2';
868
878
  /** OAuth access token. */
869
879
  access_token?: string;
870
880
  /** Data format for response. */
871
- alt?: string;
881
+ alt?: 'json' | 'media' | 'proto';
872
882
  /** JSONP */
873
883
  callback?: string;
874
884
  /** Selector specifying which fields to include in a partial response. */
@@ -895,11 +905,11 @@ declare namespace gapi.client {
895
905
  /** Lists all publicly available SKUs for a given cloud service. */
896
906
  list(request?: {
897
907
  /** V1 error format. */
898
- '$.xgafv'?: string;
908
+ '$.xgafv'?: '1' | '2';
899
909
  /** OAuth access token. */
900
910
  access_token?: string;
901
911
  /** Data format for response. */
902
- alt?: string;
912
+ alt?: 'json' | 'media' | 'proto';
903
913
  /** JSONP */
904
914
  callback?: string;
905
915
  /** The ISO 4217 currency code for the pricing info in the response proto. Will use the conversion rate as of start_time. Optional. If not specified USD will be used. */
@@ -934,11 +944,11 @@ declare namespace gapi.client {
934
944
  /** Lists all public cloud services. */
935
945
  list(request?: {
936
946
  /** V1 error format. */
937
- '$.xgafv'?: string;
947
+ '$.xgafv'?: '1' | '2';
938
948
  /** OAuth access token. */
939
949
  access_token?: string;
940
950
  /** Data format for response. */
941
- alt?: string;
951
+ alt?: 'json' | 'media' | 'proto';
942
952
  /** JSONP */
943
953
  callback?: string;
944
954
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbilling-v1",
3
- "version": "0.1.20260306",
3
+ "version": "0.2.20260313",
4
4
  "description": "TypeScript typings for Cloud Billing API v1",
5
5
  "repository": {
6
6
  "type": "git",