@maxim_mazurok/gapi.client.cloudbilling-v1beta 0.0.20221024 → 0.0.20221206

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 +96 -12
  2. package/package.json +1 -1
  3. package/tests.ts +301 -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=v1beta
12
- // Revision: 20221024
12
+ // Revision: 20221206
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -22,6 +22,55 @@ declare namespace gapi.client {
22
22
  function load(name: "cloudbilling", version: "v1beta", callback: () => any): void;
23
23
 
24
24
  namespace cloudbilling {
25
+ interface CacheFillRegions {
26
+ /** The destination region for cache fill. */
27
+ destinationRegion?: string;
28
+ /** The source region for cache fill. */
29
+ sourceRegion?: string;
30
+ }
31
+ interface CloudCdnEgressWorkload {
32
+ /** The destination for the cache egress charges. */
33
+ cacheEgressDestination?: string;
34
+ /** Cache egress usage. The rate of data cache egressed in the destination. For example : units such as "GiBy/s" or "TBy/mo". */
35
+ cacheEgressRate?: Usage;
36
+ }
37
+ interface CloudCdnWorkload {
38
+ /** The source service for the cache fill. */
39
+ cacheFillOriginService?: string;
40
+ /** Cache fill usage. The rate of data transferred between cache fill regions. For example: units such as "GiBy/s" or "TBy/mo". */
41
+ cacheFillRate?: Usage;
42
+ /** The regions where data is transferred from Google data locations into Google global cache servers. The SKU prices for cache fill across services are the same. */
43
+ cacheFillRegions?: CacheFillRegions;
44
+ /** Cache look up requests. This is specified to indicate the number of requests. For example: units such as "1/s". */
45
+ cacheLookUpRate?: Usage;
46
+ }
47
+ interface CloudInterconnectEgressWorkload {
48
+ /** Data egress usage. This usage applies when you move or copy data from one Google Cloud service to another service. Expected units such as "GiBy/s, By/s, etc." */
49
+ egressRate?: Usage;
50
+ /** Locations in the [Interconnect connection location table](https://cloud.google.com/vpc/network-pricing#interconnect-pricing). This is the interconnect egress charges. */
51
+ interconnectConnectionLocation?: string;
52
+ }
53
+ interface CloudInterconnectWorkload {
54
+ /** VLAN attachment used for interconnect. */
55
+ interconnectAttachments?: VlanAttachment[];
56
+ /** Vlan attachment type. */
57
+ interconnectType?: string;
58
+ /** Interconnect circuit link type. */
59
+ linkType?: string;
60
+ /** Interconnect usage. This is specified as a unitless quantity which indicates the number of circuit provisioned in interconnect. */
61
+ provisionedLinkCount?: Usage;
62
+ }
63
+ interface CloudStorageEgressWorkload {
64
+ /** Where the data is sent to. */
65
+ destinationContinent?: string;
66
+ /**
67
+ * Egress usage rate. This usage applies when you move or copy data from one Cloud Storage bucket to another or when another Google Cloud service accesses data in your Cloud Storage
68
+ * bucket. Expected units such as "GiBy/s, By/s, ..."
69
+ */
70
+ egressRate?: Usage;
71
+ /** Where the data comes from. */
72
+ sourceContinent?: string;
73
+ }
25
74
  interface CloudStorageWorkload {
26
75
  /** Data retrieval usage. A retrieval cost applies when data or metadata is read, copied, or rewritten . For example: units such as "GiBy/s" or "By/s". */
27
76
  dataRetrieval?: Usage;
@@ -47,7 +96,7 @@ declare namespace gapi.client {
47
96
  storageClass?: string;
48
97
  }
49
98
  interface Commitment {
50
- /** Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name must be a maximum of 32 characters. */
99
+ /** Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name may be at most 128 characters long. */
51
100
  name?: string;
52
101
  /** A resource-based committed use discount (CUD). */
53
102
  vmResourceBasedCud?: VmResourceBasedCud;
@@ -194,6 +243,14 @@ declare namespace gapi.client {
194
243
  /** The [machine type](https://cloud.google.com/compute/docs/machine-types). For example: "n1-standard1". */
195
244
  machineType?: string;
196
245
  }
246
+ interface PremiumTierEgressWorkload {
247
+ /** Where the data is sent to. */
248
+ destinationContinent?: string;
249
+ /** Premium Tier egress usage. Expected units such as "GiBy/s, By/s, etc." */
250
+ egressRate?: Usage;
251
+ /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from. */
252
+ sourceRegion?: string;
253
+ }
197
254
  interface Price {
198
255
  /** The timestamp within the estimation time frame when the price was set. */
199
256
  effectiveTime?: EstimationTimePoint;
@@ -223,7 +280,8 @@ declare namespace gapi.client {
223
280
  interface ScenarioConfig {
224
281
  /**
225
282
  * Time frame for the estimate. Workloads must specify usage for this duration. Duration must be at least 1 hour (3,600 seconds) and at most 10 years (315,360,000 seconds). The
226
- * calculations for years and months are based on a 730-hour (2,628,000-second) month.
283
+ * calculations for years and months are based on a 730-hour (2,628,000-second) month. For durations longer than one month (2,628,000 seconds), the duration is rounded up to the next
284
+ * month, so the estimate shows you the costs for full months. For example, a duration of 3,232,800 seconds (roughly 5 weeks) is rounded up to 2 months.
227
285
  */
228
286
  estimateDuration?: string;
229
287
  }
@@ -258,20 +316,26 @@ declare namespace gapi.client {
258
316
  /** The unit for the usage on this SKU. */
259
317
  usageUnit?: string;
260
318
  }
319
+ interface StandardTierEgressWorkload {
320
+ /** Standard tier egress usage. Expected units such as "GiBy/s, By/s, etc." */
321
+ egressRate?: Usage;
322
+ /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from. */
323
+ sourceRegion?: string;
324
+ }
261
325
  interface Usage {
262
326
  /** A timeline of usage rates over the estimate interval. */
263
327
  usageRateTimeline?: UsageRateTimeline;
264
328
  }
265
329
  interface UsageRateTimeline {
266
330
  /**
267
- * The unit for the usage rate in each timeline entry. The supported units are a subset of [The Unified Code for Units of Measure](https://ucum.org/ucum.html) standard: * **Time units
268
- * (TIME-UNIT)** * `s` second * `min` minute * `h` hour * `d` day * `wk` week * `mo` month * `yr` year * `ms` millisecond * `us` microsecond * `ns` nanosecond * **Basic storage units
269
- * (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units (COUNT-UNIT)** * `count` count * **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T`
270
- * tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these
271
- * connectors: * `/` division or ratio (as an infix operator). For example: `kBy/{email}` or `MiBy/10ms`. * `.` multiplication or composition (as an infix operator). For example:
272
- * `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` Expression = Component { "." Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] |
273
- * Annotation | "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = "{" NAME "}" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes:
274
- * `GiBy` * GibiBytes * seconds: `GiBy.s`
331
+ * The unit for the usage rate in each timeline entry. If you provide an incorrect unit for an instance, the correct unit is provided in the error message. The supported units are a
332
+ * subset of [The Unified Code for Units of Measure](https://ucum.org/ucum.html) standard: * **Time units (TIME-UNIT)** * `s` second * `min` minute * `h` hour * `d` day * `wk` week *
333
+ * `mo` month * `yr` year * `ms` millisecond * `us` microsecond * `ns` nanosecond * **Basic storage units (BASIC-STORAGE-UNIT)** * `bit` bit * `By` byte * **Count units (COUNT-UNIT)**
334
+ * * `count` count * **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi
335
+ * (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For example: `kBy/{email}` or
336
+ * `MiBy/10ms`. * `.` multiplication or composition (as an infix operator). For example: `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: ``` Expression = Component { "."
337
+ * Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = "{"
338
+ * NAME "}" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s`
275
339
  */
276
340
  unit?: string;
277
341
  /**
@@ -289,6 +353,12 @@ declare namespace gapi.client {
289
353
  /** The usage rate. */
290
354
  usageRate?: number;
291
355
  }
356
+ interface VlanAttachment {
357
+ /** Capacities in the [pricing table](https://cloud.google.com/vpc/network-pricing#interconnect-pricing) Examples of capacity are: 50/100/200/300/400/500-Mbps, 1/2/5/10/20/50-Gbps. */
358
+ bandwidth?: string;
359
+ /** VLAN usage. This is specified as a unitless quantity which indicates the number of VLAN attachment used in interconnect. */
360
+ vlanCount?: Usage;
361
+ }
292
362
  interface VmResourceBasedCud {
293
363
  /** Guest accelerator, known as GPU. */
294
364
  guestAccelerator?: GuestAccelerator;
@@ -308,12 +378,26 @@ declare namespace gapi.client {
308
378
  virtualCpuCount?: string;
309
379
  }
310
380
  interface Workload {
381
+ /** Usage on Google Cloud CDN Egress. */
382
+ cloudCdnEgressWorkload?: CloudCdnEgressWorkload;
383
+ /** Usage on Google Cloud CDN. */
384
+ cloudCdnWorkload?: CloudCdnWorkload;
385
+ /** Usage on Google Cloud Interconnect Egress. */
386
+ cloudInterconnectEgressWorkload?: CloudInterconnectEgressWorkload;
387
+ /** Usage on Google Cloud Interconnect. */
388
+ cloudInterconnectWorkload?: CloudInterconnectWorkload;
389
+ /** Usage on a cloud storage egress. */
390
+ cloudStorageEgressWorkload?: CloudStorageEgressWorkload;
311
391
  /** Usage on Google Cloud Storage. */
312
392
  cloudStorageWorkload?: CloudStorageWorkload;
313
393
  /** Usage of a Google Compute Engine Virtual Machine. */
314
394
  computeVmWorkload?: ComputeVmWorkload;
315
- /** Required. A name for this workload. All workloads in a `CostScenario` must have a unique `name`. Each `name` must be a maximum of 32 characters. */
395
+ /** Required. A name for this workload. All workloads in a `CostScenario` must have a unique `name`. Each `name` may be at most 128 characters long. */
316
396
  name?: string;
397
+ /** Usage on Premium Tier Internet Egress. */
398
+ premiumTierEgressWorkload?: PremiumTierEgressWorkload;
399
+ /** Usage on Standard Tier Internet Egress. */
400
+ standardTierEgressWorkload?: StandardTierEgressWorkload;
317
401
  }
318
402
  interface WorkloadCostEstimate {
319
403
  /** The name of the workload, as specified in the `CostScenario`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbilling-v1beta",
3
- "version": "0.0.20221024",
3
+ "version": "0.0.20221206",
4
4
  "description": "TypeScript typings for Cloud Billing API v1beta",
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: 20221024
6
+ // Revision: 20221206
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -59,6 +59,123 @@ gapi.load('client', async () => {
59
59
  },
60
60
  workloads: [
61
61
  {
62
+ cloudCdnEgressWorkload: {
63
+ cacheEgressDestination: "Test string",
64
+ cacheEgressRate: {
65
+ usageRateTimeline: {
66
+ unit: "Test string",
67
+ usageRateTimelineEntries: [
68
+ {
69
+ effectiveTime: {
70
+ estimationTimeFrameOffset: "Test string",
71
+ },
72
+ usageRate: 42,
73
+ }
74
+ ],
75
+ },
76
+ },
77
+ },
78
+ cloudCdnWorkload: {
79
+ cacheFillOriginService: "Test string",
80
+ cacheFillRate: {
81
+ usageRateTimeline: {
82
+ unit: "Test string",
83
+ usageRateTimelineEntries: [
84
+ {
85
+ effectiveTime: {
86
+ estimationTimeFrameOffset: "Test string",
87
+ },
88
+ usageRate: 42,
89
+ }
90
+ ],
91
+ },
92
+ },
93
+ cacheFillRegions: {
94
+ destinationRegion: "Test string",
95
+ sourceRegion: "Test string",
96
+ },
97
+ cacheLookUpRate: {
98
+ usageRateTimeline: {
99
+ unit: "Test string",
100
+ usageRateTimelineEntries: [
101
+ {
102
+ effectiveTime: {
103
+ estimationTimeFrameOffset: "Test string",
104
+ },
105
+ usageRate: 42,
106
+ }
107
+ ],
108
+ },
109
+ },
110
+ },
111
+ cloudInterconnectEgressWorkload: {
112
+ egressRate: {
113
+ usageRateTimeline: {
114
+ unit: "Test string",
115
+ usageRateTimelineEntries: [
116
+ {
117
+ effectiveTime: {
118
+ estimationTimeFrameOffset: "Test string",
119
+ },
120
+ usageRate: 42,
121
+ }
122
+ ],
123
+ },
124
+ },
125
+ interconnectConnectionLocation: "Test string",
126
+ },
127
+ cloudInterconnectWorkload: {
128
+ interconnectAttachments: [
129
+ {
130
+ bandwidth: "Test string",
131
+ vlanCount: {
132
+ usageRateTimeline: {
133
+ unit: "Test string",
134
+ usageRateTimelineEntries: [
135
+ {
136
+ effectiveTime: {
137
+ estimationTimeFrameOffset: "Test string",
138
+ },
139
+ usageRate: 42,
140
+ }
141
+ ],
142
+ },
143
+ },
144
+ }
145
+ ],
146
+ interconnectType: "Test string",
147
+ linkType: "Test string",
148
+ provisionedLinkCount: {
149
+ usageRateTimeline: {
150
+ unit: "Test string",
151
+ usageRateTimelineEntries: [
152
+ {
153
+ effectiveTime: {
154
+ estimationTimeFrameOffset: "Test string",
155
+ },
156
+ usageRate: 42,
157
+ }
158
+ ],
159
+ },
160
+ },
161
+ },
162
+ cloudStorageEgressWorkload: {
163
+ destinationContinent: "Test string",
164
+ egressRate: {
165
+ usageRateTimeline: {
166
+ unit: "Test string",
167
+ usageRateTimelineEntries: [
168
+ {
169
+ effectiveTime: {
170
+ estimationTimeFrameOffset: "Test string",
171
+ },
172
+ usageRate: 42,
173
+ }
174
+ ],
175
+ },
176
+ },
177
+ sourceContinent: "Test string",
178
+ },
62
179
  cloudStorageWorkload: {
63
180
  dataRetrieval: {
64
181
  usageRateTimeline: {
@@ -191,6 +308,39 @@ gapi.load('client', async () => {
191
308
  region: "Test string",
192
309
  },
193
310
  name: "Test string",
311
+ premiumTierEgressWorkload: {
312
+ destinationContinent: "Test string",
313
+ egressRate: {
314
+ usageRateTimeline: {
315
+ unit: "Test string",
316
+ usageRateTimelineEntries: [
317
+ {
318
+ effectiveTime: {
319
+ estimationTimeFrameOffset: "Test string",
320
+ },
321
+ usageRate: 42,
322
+ }
323
+ ],
324
+ },
325
+ },
326
+ sourceRegion: "Test string",
327
+ },
328
+ standardTierEgressWorkload: {
329
+ egressRate: {
330
+ usageRateTimeline: {
331
+ unit: "Test string",
332
+ usageRateTimelineEntries: [
333
+ {
334
+ effectiveTime: {
335
+ estimationTimeFrameOffset: "Test string",
336
+ },
337
+ usageRate: 42,
338
+ }
339
+ ],
340
+ },
341
+ },
342
+ sourceRegion: "Test string",
343
+ },
194
344
  }
195
345
  ],
196
346
  },
@@ -220,6 +370,123 @@ gapi.load('client', async () => {
220
370
  },
221
371
  workloads: [
222
372
  {
373
+ cloudCdnEgressWorkload: {
374
+ cacheEgressDestination: "Test string",
375
+ cacheEgressRate: {
376
+ usageRateTimeline: {
377
+ unit: "Test string",
378
+ usageRateTimelineEntries: [
379
+ {
380
+ effectiveTime: {
381
+ estimationTimeFrameOffset: "Test string",
382
+ },
383
+ usageRate: 42,
384
+ }
385
+ ],
386
+ },
387
+ },
388
+ },
389
+ cloudCdnWorkload: {
390
+ cacheFillOriginService: "Test string",
391
+ cacheFillRate: {
392
+ usageRateTimeline: {
393
+ unit: "Test string",
394
+ usageRateTimelineEntries: [
395
+ {
396
+ effectiveTime: {
397
+ estimationTimeFrameOffset: "Test string",
398
+ },
399
+ usageRate: 42,
400
+ }
401
+ ],
402
+ },
403
+ },
404
+ cacheFillRegions: {
405
+ destinationRegion: "Test string",
406
+ sourceRegion: "Test string",
407
+ },
408
+ cacheLookUpRate: {
409
+ usageRateTimeline: {
410
+ unit: "Test string",
411
+ usageRateTimelineEntries: [
412
+ {
413
+ effectiveTime: {
414
+ estimationTimeFrameOffset: "Test string",
415
+ },
416
+ usageRate: 42,
417
+ }
418
+ ],
419
+ },
420
+ },
421
+ },
422
+ cloudInterconnectEgressWorkload: {
423
+ egressRate: {
424
+ usageRateTimeline: {
425
+ unit: "Test string",
426
+ usageRateTimelineEntries: [
427
+ {
428
+ effectiveTime: {
429
+ estimationTimeFrameOffset: "Test string",
430
+ },
431
+ usageRate: 42,
432
+ }
433
+ ],
434
+ },
435
+ },
436
+ interconnectConnectionLocation: "Test string",
437
+ },
438
+ cloudInterconnectWorkload: {
439
+ interconnectAttachments: [
440
+ {
441
+ bandwidth: "Test string",
442
+ vlanCount: {
443
+ usageRateTimeline: {
444
+ unit: "Test string",
445
+ usageRateTimelineEntries: [
446
+ {
447
+ effectiveTime: {
448
+ estimationTimeFrameOffset: "Test string",
449
+ },
450
+ usageRate: 42,
451
+ }
452
+ ],
453
+ },
454
+ },
455
+ }
456
+ ],
457
+ interconnectType: "Test string",
458
+ linkType: "Test string",
459
+ provisionedLinkCount: {
460
+ usageRateTimeline: {
461
+ unit: "Test string",
462
+ usageRateTimelineEntries: [
463
+ {
464
+ effectiveTime: {
465
+ estimationTimeFrameOffset: "Test string",
466
+ },
467
+ usageRate: 42,
468
+ }
469
+ ],
470
+ },
471
+ },
472
+ },
473
+ cloudStorageEgressWorkload: {
474
+ destinationContinent: "Test string",
475
+ egressRate: {
476
+ usageRateTimeline: {
477
+ unit: "Test string",
478
+ usageRateTimelineEntries: [
479
+ {
480
+ effectiveTime: {
481
+ estimationTimeFrameOffset: "Test string",
482
+ },
483
+ usageRate: 42,
484
+ }
485
+ ],
486
+ },
487
+ },
488
+ sourceContinent: "Test string",
489
+ },
223
490
  cloudStorageWorkload: {
224
491
  dataRetrieval: {
225
492
  usageRateTimeline: {
@@ -352,6 +619,39 @@ gapi.load('client', async () => {
352
619
  region: "Test string",
353
620
  },
354
621
  name: "Test string",
622
+ premiumTierEgressWorkload: {
623
+ destinationContinent: "Test string",
624
+ egressRate: {
625
+ usageRateTimeline: {
626
+ unit: "Test string",
627
+ usageRateTimelineEntries: [
628
+ {
629
+ effectiveTime: {
630
+ estimationTimeFrameOffset: "Test string",
631
+ },
632
+ usageRate: 42,
633
+ }
634
+ ],
635
+ },
636
+ },
637
+ sourceRegion: "Test string",
638
+ },
639
+ standardTierEgressWorkload: {
640
+ egressRate: {
641
+ usageRateTimeline: {
642
+ unit: "Test string",
643
+ usageRateTimelineEntries: [
644
+ {
645
+ effectiveTime: {
646
+ estimationTimeFrameOffset: "Test string",
647
+ },
648
+ usageRate: 42,
649
+ }
650
+ ],
651
+ },
652
+ },
653
+ sourceRegion: "Test string",
654
+ },
355
655
  }
356
656
  ],
357
657
  },