@maxim_mazurok/gapi.client.cloudbilling-v1beta 0.0.20230424 → 0.0.20230501

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 +361 -182
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudbilling.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20230424
12
+ // Revision: 20230501
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,270 +24,358 @@ declare namespace gapi.client {
24
24
  namespace cloudbilling {
25
25
  interface CacheFillRegions {
26
26
  /** The destination region for cache fill. */
27
- destinationRegion?: string;
27
+ destinationRegion?:
28
+ string;
28
29
  /** The source region for cache fill. */
29
- sourceRegion?: string;
30
+ sourceRegion?:
31
+ string;
30
32
  }
31
33
  interface CloudCdnEgressWorkload {
32
34
  /** The destination for the cache egress charges. */
33
- cacheEgressDestination?: string;
35
+ cacheEgressDestination?:
36
+ string;
34
37
  /** 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;
38
+ cacheEgressRate?:
39
+ Usage;
36
40
  }
37
41
  interface CloudCdnWorkload {
38
42
  /** The source service for the cache fill. */
39
- cacheFillOriginService?: string;
43
+ cacheFillOriginService?:
44
+ string;
40
45
  /** 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;
46
+ cacheFillRate?:
47
+ Usage;
42
48
  /** 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;
49
+ cacheFillRegions?:
50
+ CacheFillRegions;
44
51
  /** Cache look up requests. This is specified to indicate the number of requests. For example: units such as "1/s". */
45
- cacheLookUpRate?: Usage;
52
+ cacheLookUpRate?:
53
+ Usage;
46
54
  }
47
55
  interface CloudInterconnectEgressWorkload {
48
56
  /** 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;
57
+ egressRate?:
58
+ Usage;
50
59
  /** 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;
60
+ interconnectConnectionLocation?:
61
+ string;
52
62
  }
53
63
  interface CloudInterconnectWorkload {
54
64
  /** VLAN attachment used for interconnect. */
55
- interconnectAttachments?: VlanAttachment[];
65
+ interconnectAttachments?:
66
+ VlanAttachment[];
56
67
  /** Vlan attachment type. */
57
- interconnectType?: string;
68
+ interconnectType?:
69
+ string;
58
70
  /** Interconnect circuit link type. */
59
- linkType?: string;
71
+ linkType?:
72
+ string;
60
73
  /** Interconnect usage. This is specified as a unitless quantity which indicates the number of circuit provisioned in interconnect. */
61
- provisionedLinkCount?: Usage;
74
+ provisionedLinkCount?:
75
+ Usage;
62
76
  }
63
77
  interface CloudStorageEgressWorkload {
64
78
  /** Where the data is sent to. */
65
- destinationContinent?: string;
79
+ destinationContinent?:
80
+ string;
66
81
  /**
67
82
  * 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
83
  * bucket. Expected units such as "GiBy/s, By/s, ..."
69
84
  */
70
- egressRate?: Usage;
85
+ egressRate?:
86
+ Usage;
71
87
  /** Where the data comes from. */
72
- sourceContinent?: string;
88
+ sourceContinent?:
89
+ string;
73
90
  }
74
91
  interface CloudStorageWorkload {
75
92
  /** 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". */
76
- dataRetrieval?: Usage;
93
+ dataRetrieval?:
94
+ Usage;
77
95
  /** Data storage usage. The amount of data stored in buckets. For example: units such as "GiBy/s" or "TBy/mo". */
78
- dataStored?: Usage;
96
+ dataStored?:
97
+ Usage;
79
98
  /** Specify dual regions. */
80
- dualRegion?: DualRegional;
99
+ dualRegion?:
100
+ DualRegional;
81
101
  /** Specify multi regions. */
82
- multiRegion?: MultiRegional;
102
+ multiRegion?:
103
+ MultiRegional;
83
104
  /**
84
105
  * Class A operation usage in Cloud Storage, such as listing the objects in buckets. See the [operations pricing](https://cloud.google.com/storage/pricing#operations-pricing) tables
85
106
  * for a list of which operations fall into each class. For example: units such as "1/s".
86
107
  */
87
- operationA?: Usage;
108
+ operationA?:
109
+ Usage;
88
110
  /**
89
111
  * Class B operation usage in Cloud Storage, such as `getIamPolicy`. See the [operations pricing](https://cloud.google.com/storage/pricing#operations-pricing) tables for a list of
90
112
  * which operations fall into each class. For example: units such as "1/s".
91
113
  */
92
- operationB?: Usage;
114
+ operationB?:
115
+ Usage;
93
116
  /** Specify a single region. */
94
- region?: Regional;
117
+ region?:
118
+ Regional;
95
119
  /** The [storage class](https://cloud.google.com/storage/docs/storage-classes#classes) of the data and operation. For example: "standard" and "nearline". */
96
- storageClass?: string;
120
+ storageClass?:
121
+ string;
97
122
  }
98
123
  interface Commitment {
99
124
  /** Required. A name for this commitment. All commitments in a CostScenario must have unique names. Each name may be at most 128 characters long. */
100
- name?: string;
125
+ name?:
126
+ string;
101
127
  /** A resource-based committed use discount (CUD). */
102
- vmResourceBasedCud?: VmResourceBasedCud;
128
+ vmResourceBasedCud?:
129
+ VmResourceBasedCud;
103
130
  }
104
131
  interface CommitmentCostEstimate {
105
132
  /** Total estimated costs for the commitment. */
106
- commitmentTotalCostEstimate?: CostEstimate;
133
+ commitmentTotalCostEstimate?:
134
+ CostEstimate;
107
135
  /** The name of the commitment, as specified in the `CostScenario`. */
108
- name?: string;
136
+ name?:
137
+ string;
109
138
  /** Estimated costs for each SKU in the commitment. */
110
- skuCostEstimates?: SkuCostEstimate[];
139
+ skuCostEstimates?:
140
+ SkuCostEstimate[];
111
141
  }
112
142
  interface ComputeVmWorkload {
113
143
  /** Defines whether each instance has confidential compute enabled. */
114
- enableConfidentialCompute?: boolean;
144
+ enableConfidentialCompute?:
145
+ boolean;
115
146
  /** Guest accelerators attached to each machine. */
116
- guestAccelerator?: GuestAccelerator;
147
+ guestAccelerator?:
148
+ GuestAccelerator;
117
149
  /** VM usage. This is specified as a unitless quantity which indicates the number of instances running. */
118
- instancesRunning?: Usage;
150
+ instancesRunning?:
151
+ Usage;
119
152
  /** Premium image licenses used by each instance. */
120
- licenses?: string[];
153
+ licenses?:
154
+ string[];
121
155
  /** The machine type. */
122
- machineType?: MachineType;
156
+ machineType?:
157
+ MachineType;
123
158
  /** Persistent disks attached to each instance. Must include a boot disk. */
124
- persistentDisks?: PersistentDisk[];
159
+ persistentDisks?:
160
+ PersistentDisk[];
125
161
  /** Defines whether each instance is preemptible. */
126
- preemptible?: boolean;
162
+ preemptible?:
163
+ boolean;
127
164
  /** The [region](https://cloud.google.com/compute/docs/regions-zones) where the VMs run. For example: "us-central1". */
128
- region?: string;
165
+ region?:
166
+ string;
129
167
  }
130
168
  interface CostEstimate {
131
169
  /** The estimated credits applied. */
132
- creditEstimates?: CreditEstimate[];
170
+ creditEstimates?:
171
+ CreditEstimate[];
133
172
  /** The estimated net cost after applying credits. */
134
- netCostEstimate?: Money;
173
+ netCostEstimate?:
174
+ Money;
135
175
  /** The estimated cost prior to applying credits. */
136
- preCreditCostEstimate?: Money;
176
+ preCreditCostEstimate?:
177
+ Money;
137
178
  }
138
179
  interface CostEstimationResult {
139
180
  /** Required. The ISO 4217 currency code for the cost estimate. */
140
- currencyCode?: string;
181
+ currencyCode?:
182
+ string;
141
183
  /** Required. Estimated costs for each idealized month of a `CostScenario`. */
142
- segmentCostEstimates?: SegmentCostEstimate[];
184
+ segmentCostEstimates?:
185
+ SegmentCostEstimate[];
143
186
  /** Required. Information about SKUs used in the estimate. */
144
- skus?: Sku[];
187
+ skus?:
188
+ Sku[];
145
189
  }
146
190
  interface CostScenario {
147
191
  /**
148
192
  * New commitments to estimate the costs for. The cost of the commitments will be included in the estimate result and discounts the commitment entitles will be included in the workload
149
193
  * cost estimates. A maximum of 100 workloads can be provided.
150
194
  */
151
- commitments?: Commitment[];
195
+ commitments?:
196
+ Commitment[];
152
197
  /** Configuration for the scenario. */
153
- scenarioConfig?: ScenarioConfig;
198
+ scenarioConfig?:
199
+ ScenarioConfig;
154
200
  /** The Google Cloud usage whose costs are estimated. A maximum of 100 workloads can be provided. */
155
- workloads?: Workload[];
201
+ workloads?:
202
+ Workload[];
156
203
  }
157
204
  interface CreditEstimate {
158
205
  /** The estimated credit amount. */
159
- creditAmount?: Money;
206
+ creditAmount?:
207
+ Money;
160
208
  /** The credit description. */
161
- creditDescription?: string;
209
+ creditDescription?:
210
+ string;
162
211
  /** The credit type. */
163
- creditType?: string;
212
+ creditType?:
213
+ string;
164
214
  }
165
215
  interface CustomMachineType {
166
216
  /**
167
217
  * Required. The machine series. Only certain [machine series](https://cloud.google.com/compute/docs/general-purpose-machines#custom_machine_types) support custom configurations. For
168
218
  * example: "n1".
169
219
  */
170
- machineSeries?: string;
220
+ machineSeries?:
221
+ string;
171
222
  /**
172
223
  * Required. Memory size of the VM in GB (2^30 bytes). Must be an increment of 0.25 (256 MB). Each [machine
173
224
  * series](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison) has limitations on allowed values for the ratio of memory-to-vCPU count.
174
225
  */
175
- memorySizeGb?: number;
226
+ memorySizeGb?:
227
+ number;
176
228
  /** Required. The number of vCPUs. The allowed values depend on the [machine series](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison). */
177
- virtualCpuCount?: string;
229
+ virtualCpuCount?:
230
+ string;
178
231
  }
179
232
  interface DualRegional {
180
233
  /** The [location name](https://cloud.google.com/storage/docs/locations#available-locations) where the data is stored. For example: "asia1" for dual region. */
181
- name?: string;
234
+ name?:
235
+ string;
182
236
  }
183
237
  interface EstimateCostScenarioForBillingAccountRequest {
184
238
  /** The scenario to estimate costs for. */
185
- costScenario?: CostScenario;
239
+ costScenario?:
240
+ CostScenario;
186
241
  }
187
242
  interface EstimateCostScenarioForBillingAccountResponse {
188
243
  /** The result of the cost estimation. */
189
- costEstimationResult?: CostEstimationResult;
244
+ costEstimationResult?:
245
+ CostEstimationResult;
190
246
  }
191
247
  interface EstimateCostScenarioWithListPriceRequest {
192
248
  /** The scenario to estimate costs for. */
193
- costScenario?: CostScenario;
249
+ costScenario?:
250
+ CostScenario;
194
251
  }
195
252
  interface EstimateCostScenarioWithListPriceResponse {
196
253
  /** The result of the cost estimation. */
197
- costEstimationResult?: CostEstimationResult;
254
+ costEstimationResult?:
255
+ CostEstimationResult;
198
256
  }
199
257
  interface EstimationTimePoint {
200
258
  /** The point in time, relative to the start of the time frame covered by the cost estimate. */
201
- estimationTimeFrameOffset?: string;
259
+ estimationTimeFrameOffset?:
260
+ string;
202
261
  }
203
262
  interface GuestAccelerator {
204
263
  /** The number of the guest accelerator cards exposed to each instance. */
205
- acceleratorCount?: string;
264
+ acceleratorCount?:
265
+ string;
206
266
  /** The type of the guest accelerator cards. For example: "nvidia-tesla-t4". */
207
- acceleratorType?: string;
267
+ acceleratorType?:
268
+ string;
208
269
  }
209
270
  interface InterRegionEgress {
210
271
  /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data goes to. */
211
- destinationRegion?: string;
272
+ destinationRegion?:
273
+ string;
212
274
  /** VM to VM egress usage. Expected units such as "GiBy/s, By/s, etc." */
213
- egressRate?: Usage;
275
+ egressRate?:
276
+ Usage;
214
277
  /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from. */
215
- sourceRegion?: string;
278
+ sourceRegion?:
279
+ string;
216
280
  }
217
281
  interface IntraRegionEgress {
218
282
  /** VM to VM egress usage. Expected units such as "GiBy/s, By/s, etc." */
219
- egressRate?: Usage;
283
+ egressRate?:
284
+ Usage;
220
285
  }
221
286
  interface MachineType {
222
- customMachineType?: CustomMachineType;
223
- predefinedMachineType?: PredefinedMachineType;
287
+ customMachineType?:
288
+ CustomMachineType;
289
+ predefinedMachineType?:
290
+ PredefinedMachineType;
224
291
  }
225
292
  interface Money {
226
293
  /** The three-letter currency code defined in ISO 4217. */
227
- currencyCode?: string;
294
+ currencyCode?:
295
+ string;
228
296
  /**
229
297
  * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units`
230
298
  * is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and
231
299
  * `nanos`=-750,000,000.
232
300
  */
233
- nanos?: number;
301
+ nanos?:
302
+ number;
234
303
  /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
235
- units?: string;
304
+ units?:
305
+ string;
236
306
  }
237
307
  interface MultiRegional {
238
308
  /** The [location name](https://cloud.google.com/storage/docs/locations#available-locations) where the data is stored. For example: "us" for multi-region. */
239
- name?: string;
309
+ name?:
310
+ string;
240
311
  }
241
312
  interface PersistentDisk {
242
313
  /** Specifies the size of disk. Must be at least 10 GB. */
243
- diskSize?: Usage;
314
+ diskSize?:
315
+ Usage;
244
316
  /** The [disk type](https://cloud.google.com/compute/docs/disks#disk-types). For example: "pd-standard". */
245
- diskType?: string;
317
+ diskType?:
318
+ string;
246
319
  /**
247
320
  * Indicates how many IOPS to provision for the disk for extreme persistent disks. This sets the number of I/O operations per second that the disk can handle. Values must be between
248
321
  * 10,000 and 120,000.
249
322
  */
250
- provisionedIops?: Usage;
323
+ provisionedIops?:
324
+ Usage;
251
325
  /** The geographic scope of the disk. Defaults to `SCOPE_ZONAL` if not specified. */
252
- scope?: string;
326
+ scope?:
327
+ string;
253
328
  }
254
329
  interface PredefinedMachineType {
255
330
  /** The [machine type](https://cloud.google.com/compute/docs/machine-types). For example: "n1-standard1". */
256
- machineType?: string;
331
+ machineType?:
332
+ string;
257
333
  }
258
334
  interface PremiumTierEgressWorkload {
259
335
  /** Where the data is sent to. */
260
- destinationContinent?: string;
336
+ destinationContinent?:
337
+ string;
261
338
  /** Premium Tier egress usage. Expected units such as "GiBy/s, By/s, etc." */
262
- egressRate?: Usage;
339
+ egressRate?:
340
+ Usage;
263
341
  /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from. */
264
- sourceRegion?: string;
342
+ sourceRegion?:
343
+ string;
265
344
  }
266
345
  interface Price {
267
346
  /** The timestamp within the estimation time frame when the price was set. */
268
- effectiveTime?: EstimationTimePoint;
347
+ effectiveTime?:
348
+ EstimationTimePoint;
269
349
  /** The type of price. Possible values: "RATE" */
270
- priceType?: string;
350
+ priceType?:
351
+ string;
271
352
  /** A set of tiered rates. */
272
- rate?: Rate;
353
+ rate?:
354
+ Rate;
273
355
  }
274
356
  interface Rate {
275
357
  /** The service tiers. */
276
- tiers?: RateTier[];
358
+ tiers?:
359
+ RateTier[];
277
360
  /** The SKU's pricing unit. For example, if the tier price is $1 per 1000000 Bytes, then this field will show 'By'. The `start_amount` field in each tier will be in this unit. */
278
- unit?: string;
361
+ unit?:
362
+ string;
279
363
  /** The SKU's count for the pricing unit. For example, if the tier price is $1 per 1000000 Bytes, then this column will show 1000000. */
280
- unitCount?: number;
364
+ unitCount?:
365
+ number;
281
366
  }
282
367
  interface RateTier {
283
368
  /** The price for this tier. */
284
- price?: Money;
369
+ price?:
370
+ Money;
285
371
  /** The magnitude of usage in which the tier interval begins. Example: "From 100 GiBi the price is $1 per byte" implies `start_amount` = 100 */
286
- startAmount?: number;
372
+ startAmount?:
373
+ number;
287
374
  }
288
375
  interface Regional {
289
376
  /** The [location name](https://cloud.google.com/storage/docs/locations#available-locations). For example: "us-central1" for region. */
290
- name?: string;
377
+ name?:
378
+ string;
291
379
  }
292
380
  interface ScenarioConfig {
293
381
  /**
@@ -295,48 +383,63 @@ declare namespace gapi.client {
295
383
  * 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
296
384
  * 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.
297
385
  */
298
- estimateDuration?: string;
386
+ estimateDuration?:
387
+ string;
299
388
  }
300
389
  interface SegmentCostEstimate {
301
390
  /** Estimated costs for each commitment. */
302
- commitmentCostEstimates?: CommitmentCostEstimate[];
391
+ commitmentCostEstimates?:
392
+ CommitmentCostEstimate[];
303
393
  /** Timestamp for the start of the segment. */
304
- segmentStartTime?: EstimationTimePoint;
394
+ segmentStartTime?:
395
+ EstimationTimePoint;
305
396
  /** Total estimated costs for the time segment. */
306
- segmentTotalCostEstimate?: CostEstimate;
397
+ segmentTotalCostEstimate?:
398
+ CostEstimate;
307
399
  /** Estimated costs for each workload. */
308
- workloadCostEstimates?: WorkloadCostEstimate[];
400
+ workloadCostEstimates?:
401
+ WorkloadCostEstimate[];
309
402
  }
310
403
  interface Sku {
311
404
  /** The display name for the SKU. Example: A2 Instance Core running in Americas */
312
- displayName?: string;
405
+ displayName?:
406
+ string;
313
407
  /**
314
408
  * A timeline of prices for a SKU in chronological order. Note: The API currently only supports using a constant price for the entire estimation time frame so this list will contain a
315
409
  * single value.
316
410
  */
317
- prices?: Price[];
411
+ prices?:
412
+ Price[];
318
413
  /** The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE" */
319
- sku?: string;
414
+ sku?:
415
+ string;
320
416
  }
321
417
  interface SkuCostEstimate {
322
418
  /** The estimated cost for the usage on this SKU. */
323
- costEstimate?: CostEstimate;
419
+ costEstimate?:
420
+ CostEstimate;
324
421
  /** The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE" More information about the SKU can be found in the `skus` field of the `CostEstimationResult`. */
325
- sku?: string;
422
+ sku?:
423
+ string;
326
424
  /** The amount of usage on this SKU. */
327
- usageAmount?: number;
425
+ usageAmount?:
426
+ number;
328
427
  /** The unit for the usage on this SKU. */
329
- usageUnit?: string;
428
+ usageUnit?:
429
+ string;
330
430
  }
331
431
  interface StandardTierEgressWorkload {
332
432
  /** Standard tier egress usage. Expected units such as "GiBy/s, By/s, etc." */
333
- egressRate?: Usage;
433
+ egressRate?:
434
+ Usage;
334
435
  /** Which [region](https://cloud.google.com/compute/docs/regions-zones) the egress data comes from. */
335
- sourceRegion?: string;
436
+ sourceRegion?:
437
+ string;
336
438
  }
337
439
  interface Usage {
338
440
  /** A timeline of usage rates over the estimate interval. */
339
- usageRateTimeline?: UsageRateTimeline;
441
+ usageRateTimeline?:
442
+ UsageRateTimeline;
340
443
  }
341
444
  interface UsageRateTimeline {
342
445
  /**
@@ -349,143 +452,196 @@ declare namespace gapi.client {
349
452
  * Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; UNIT = TIME-UNIT | STORAGE-UNIT | DATA-UNIT | COUNT-UNIT Annotation = "{"
350
453
  * NAME "}" ; ``` Examples: * Request per second: `1/s` or `{requests}/s` * GibiBytes: `GiBy` * GibiBytes * seconds: `GiBy.s`
351
454
  */
352
- unit?: string;
455
+ unit?:
456
+ string;
353
457
  /**
354
458
  * The timeline entries. Each entry has a start time and usage rate. The start time specifies the effective time of the usage rate. The entries must be sorted by start time in an
355
459
  * increasing order.
356
460
  */
357
- usageRateTimelineEntries?: UsageRateTimelineEntry[];
461
+ usageRateTimelineEntries?:
462
+ UsageRateTimelineEntry[];
358
463
  }
359
464
  interface UsageRateTimelineEntry {
360
465
  /**
361
466
  * The effective time for this entry. The usage rate is in effect starting at this time until the effective time of the subsequent entry in the timeline. The last entry defines the
362
467
  * usage rate until the end of the `Usage` time frame. Must correspond to an integer number of hours.
363
468
  */
364
- effectiveTime?: EstimationTimePoint;
469
+ effectiveTime?:
470
+ EstimationTimePoint;
365
471
  /** The usage rate. */
366
- usageRate?: number;
472
+ usageRate?:
473
+ number;
367
474
  }
368
475
  interface VlanAttachment {
369
476
  /** 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. */
370
- bandwidth?: string;
477
+ bandwidth?:
478
+ string;
371
479
  /** VLAN usage. This is specified as a unitless quantity which indicates the number of VLAN attachment used in interconnect. */
372
- vlanCount?: Usage;
480
+ vlanCount?:
481
+ Usage;
373
482
  }
374
483
  interface VmResourceBasedCud {
375
484
  /** Guest accelerator, known as GPU. */
376
- guestAccelerator?: GuestAccelerator;
485
+ guestAccelerator?:
486
+ GuestAccelerator;
377
487
  /**
378
488
  * The machine series for CUD. For example: "n1" for general purpose N1 machine type commitments. "n2" for general purpose N2 machine type commitments. "e2" for general purpose E2
379
489
  * machine type commitments. "n2d" for general purpose N2D machine type commitments. "t2d" for general purpose T2D machine type commitments. "c2"/"c2d" for compute-optimized
380
490
  * commitments. "m1"/"m2" for the memory-optimized commitments. "a2' for the accelerator-optimized commitments.
381
491
  */
382
- machineSeries?: string;
492
+ machineSeries?:
493
+ string;
383
494
  /** Memory size of the VM in GB (2^30 bytes). Must be an increment of 0.25 (256 MB). */
384
- memorySizeGb?: number;
495
+ memorySizeGb?:
496
+ number;
385
497
  /** Commitment usage plan. */
386
- plan?: string;
498
+ plan?:
499
+ string;
387
500
  /** The region where the VM runs. For example: "us-central1" */
388
- region?: string;
501
+ region?:
502
+ string;
389
503
  /** The number of vCPUs. The number of vCPUs must be an integer of 0 or more and can be even or odd. */
390
- virtualCpuCount?: string;
504
+ virtualCpuCount?:
505
+ string;
391
506
  }
392
507
  interface VmToVmEgressWorkload {
393
- interRegionEgress?: InterRegionEgress;
394
- intraRegionEgress?: IntraRegionEgress;
508
+ interRegionEgress?:
509
+ InterRegionEgress;
510
+ intraRegionEgress?:
511
+ IntraRegionEgress;
395
512
  }
396
513
  interface Workload {
397
514
  /** Usage on Google Cloud CDN Egress. */
398
- cloudCdnEgressWorkload?: CloudCdnEgressWorkload;
515
+ cloudCdnEgressWorkload?:
516
+ CloudCdnEgressWorkload;
399
517
  /** Usage on Google Cloud CDN. */
400
- cloudCdnWorkload?: CloudCdnWorkload;
518
+ cloudCdnWorkload?:
519
+ CloudCdnWorkload;
401
520
  /** Usage on Google Cloud Interconnect Egress. */
402
- cloudInterconnectEgressWorkload?: CloudInterconnectEgressWorkload;
521
+ cloudInterconnectEgressWorkload?:
522
+ CloudInterconnectEgressWorkload;
403
523
  /** Usage on Google Cloud Interconnect. */
404
- cloudInterconnectWorkload?: CloudInterconnectWorkload;
524
+ cloudInterconnectWorkload?:
525
+ CloudInterconnectWorkload;
405
526
  /** Usage on a cloud storage egress. */
406
- cloudStorageEgressWorkload?: CloudStorageEgressWorkload;
527
+ cloudStorageEgressWorkload?:
528
+ CloudStorageEgressWorkload;
407
529
  /** Usage on Google Cloud Storage. */
408
- cloudStorageWorkload?: CloudStorageWorkload;
530
+ cloudStorageWorkload?:
531
+ CloudStorageWorkload;
409
532
  /** Usage of a Google Compute Engine Virtual Machine. */
410
- computeVmWorkload?: ComputeVmWorkload;
533
+ computeVmWorkload?:
534
+ ComputeVmWorkload;
411
535
  /** 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. */
412
- name?: string;
536
+ name?:
537
+ string;
413
538
  /** Usage on Premium Tier Internet Egress. */
414
- premiumTierEgressWorkload?: PremiumTierEgressWorkload;
539
+ premiumTierEgressWorkload?:
540
+ PremiumTierEgressWorkload;
415
541
  /** Usage on Standard Tier Internet Egress. */
416
- standardTierEgressWorkload?: StandardTierEgressWorkload;
542
+ standardTierEgressWorkload?:
543
+ StandardTierEgressWorkload;
417
544
  /** Usage on Vm to Vm Egress. */
418
- vmToVmEgressWorkload?: VmToVmEgressWorkload;
545
+ vmToVmEgressWorkload?:
546
+ VmToVmEgressWorkload;
419
547
  }
420
548
  interface WorkloadCostEstimate {
421
549
  /** The name of the workload, as specified in the `CostScenario`. */
422
- name?: string;
550
+ name?:
551
+ string;
423
552
  /** Estimated costs for each SKU in the workload. */
424
- skuCostEstimates?: SkuCostEstimate[];
553
+ skuCostEstimates?:
554
+ SkuCostEstimate[];
425
555
  /** Total estimated costs for the workload. */
426
- workloadTotalCostEstimate?: CostEstimate;
556
+ workloadTotalCostEstimate?:
557
+ CostEstimate;
427
558
  }
428
559
  interface BillingAccountsResource {
429
560
  /** Use custom pricing in the estimate, using a `CostScenario` with a defined `billingAccount`. */
430
561
  estimateCostScenario(request: {
431
562
  /** V1 error format. */
432
- "$.xgafv"?: string;
563
+ "$.xgafv"?:
564
+ string;
433
565
  /** OAuth access token. */
434
- access_token?: string;
566
+ access_token?:
567
+ string;
435
568
  /** Data format for response. */
436
- alt?: string;
569
+ alt?:
570
+ string;
437
571
  /**
438
- * Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_acount_id}`. For example,
572
+ * Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_account_id}`. For example,
439
573
  * `billingAccounts/012345-567890-ABCDEF` is the resource name for billing account `012345-567890-ABCDEF`. Must be specified.
440
574
  */
441
- billingAccount: string;
575
+ billingAccount:
576
+ string;
442
577
  /** JSONP */
443
- callback?: string;
578
+ callback?:
579
+ string;
444
580
  /** Selector specifying which fields to include in a partial response. */
445
- fields?: string;
581
+ fields?:
582
+ string;
446
583
  /** 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. */
447
- key?: string;
584
+ key?:
585
+ string;
448
586
  /** OAuth 2.0 token for the current user. */
449
- oauth_token?: string;
587
+ oauth_token?:
588
+ string;
450
589
  /** Returns response with indentations and line breaks. */
451
- prettyPrint?: boolean;
590
+ prettyPrint?:
591
+ boolean;
452
592
  /** 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. */
453
- quotaUser?: string;
593
+ quotaUser?:
594
+ string;
454
595
  /** Upload protocol for media (e.g. "raw", "multipart"). */
455
- upload_protocol?: string;
596
+ upload_protocol?:
597
+ string;
456
598
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
457
- uploadType?: string;
599
+ uploadType?:
600
+ string;
458
601
  /** Request body */
459
- resource: EstimateCostScenarioForBillingAccountRequest;
602
+ resource:
603
+ EstimateCostScenarioForBillingAccountRequest;
460
604
  }): Request<EstimateCostScenarioForBillingAccountResponse>;
461
605
  estimateCostScenario(request: {
462
606
  /** V1 error format. */
463
- "$.xgafv"?: string;
607
+ "$.xgafv"?:
608
+ string;
464
609
  /** OAuth access token. */
465
- access_token?: string;
610
+ access_token?:
611
+ string;
466
612
  /** Data format for response. */
467
- alt?: string;
613
+ alt?:
614
+ string;
468
615
  /**
469
- * Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_acount_id}`. For example,
616
+ * Resource name of the billing account for the cost estimate. The resource name has the form `billingAccounts/{billing_account_id}`. For example,
470
617
  * `billingAccounts/012345-567890-ABCDEF` is the resource name for billing account `012345-567890-ABCDEF`. Must be specified.
471
618
  */
472
- billingAccount: string;
619
+ billingAccount:
620
+ string;
473
621
  /** JSONP */
474
- callback?: string;
622
+ callback?:
623
+ string;
475
624
  /** Selector specifying which fields to include in a partial response. */
476
- fields?: string;
625
+ fields?:
626
+ string;
477
627
  /** 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. */
478
- key?: string;
628
+ key?:
629
+ string;
479
630
  /** OAuth 2.0 token for the current user. */
480
- oauth_token?: string;
631
+ oauth_token?:
632
+ string;
481
633
  /** Returns response with indentations and line breaks. */
482
- prettyPrint?: boolean;
634
+ prettyPrint?:
635
+ boolean;
483
636
  /** 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. */
484
- quotaUser?: string;
637
+ quotaUser?:
638
+ string;
485
639
  /** Upload protocol for media (e.g. "raw", "multipart"). */
486
- upload_protocol?: string;
640
+ upload_protocol?:
641
+ string;
487
642
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
488
- uploadType?: string;
643
+ uploadType?:
644
+ string;
489
645
  },
490
646
  body: EstimateCostScenarioForBillingAccountRequest): Request<EstimateCostScenarioForBillingAccountResponse>;
491
647
  }
@@ -493,53 +649,76 @@ declare namespace gapi.client {
493
649
  /** Estimate list prices using a `CostScenario` without a defined `billingAccount`. */
494
650
  estimateCostScenario(request: {
495
651
  /** V1 error format. */
496
- "$.xgafv"?: string;
652
+ "$.xgafv"?:
653
+ string;
497
654
  /** OAuth access token. */
498
- access_token?: string;
655
+ access_token?:
656
+ string;
499
657
  /** Data format for response. */
500
- alt?: string;
658
+ alt?:
659
+ string;
501
660
  /** JSONP */
502
- callback?: string;
661
+ callback?:
662
+ string;
503
663
  /** Selector specifying which fields to include in a partial response. */
504
- fields?: string;
664
+ fields?:
665
+ string;
505
666
  /** 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. */
506
- key?: string;
667
+ key?:
668
+ string;
507
669
  /** OAuth 2.0 token for the current user. */
508
- oauth_token?: string;
670
+ oauth_token?:
671
+ string;
509
672
  /** Returns response with indentations and line breaks. */
510
- prettyPrint?: boolean;
673
+ prettyPrint?:
674
+ boolean;
511
675
  /** 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. */
512
- quotaUser?: string;
676
+ quotaUser?:
677
+ string;
513
678
  /** Upload protocol for media (e.g. "raw", "multipart"). */
514
- upload_protocol?: string;
679
+ upload_protocol?:
680
+ string;
515
681
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
516
- uploadType?: string;
682
+ uploadType?:
683
+ string;
517
684
  /** Request body */
518
- resource: EstimateCostScenarioWithListPriceRequest;
685
+ resource:
686
+ EstimateCostScenarioWithListPriceRequest;
519
687
  }): Request<EstimateCostScenarioWithListPriceResponse>;
520
688
  estimateCostScenario(request: {
521
689
  /** V1 error format. */
522
- "$.xgafv"?: string;
690
+ "$.xgafv"?:
691
+ string;
523
692
  /** OAuth access token. */
524
- access_token?: string;
693
+ access_token?:
694
+ string;
525
695
  /** Data format for response. */
526
- alt?: string;
696
+ alt?:
697
+ string;
527
698
  /** JSONP */
528
- callback?: string;
699
+ callback?:
700
+ string;
529
701
  /** Selector specifying which fields to include in a partial response. */
530
- fields?: string;
702
+ fields?:
703
+ string;
531
704
  /** 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. */
532
- key?: string;
705
+ key?:
706
+ string;
533
707
  /** OAuth 2.0 token for the current user. */
534
- oauth_token?: string;
708
+ oauth_token?:
709
+ string;
535
710
  /** Returns response with indentations and line breaks. */
536
- prettyPrint?: boolean;
711
+ prettyPrint?:
712
+ boolean;
537
713
  /** 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. */
538
- quotaUser?: string;
714
+ quotaUser?:
715
+ string;
539
716
  /** Upload protocol for media (e.g. "raw", "multipart"). */
540
- upload_protocol?: string;
717
+ upload_protocol?:
718
+ string;
541
719
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
542
- uploadType?: string;
720
+ uploadType?:
721
+ string;
543
722
  },
544
723
  body: EstimateCostScenarioWithListPriceRequest): Request<EstimateCostScenarioWithListPriceResponse>;
545
724
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbilling-v1beta",
3
- "version": "0.0.20230424",
3
+ "version": "0.0.20230501",
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: 20230424
6
+ // Revision: 20230501
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */