@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230726 → 0.0.20230814

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 +998 -132
  2. package/package.json +2 -2
  3. package/tests.ts +242 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20230726",
3
+ "version": "0.0.20230814",
4
4
  "description": "TypeScript typings for Cloud Dataproc API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
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: 20230726
6
+ // Revision: 20230814
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -327,6 +327,213 @@ gapi.load('client', async () => {
327
327
  pageSize: 42,
328
328
  pageToken: "Test string",
329
329
  });
330
+ /** Create an interactive session asynchronously. */
331
+ await gapi.client.dataproc.projects.locations.sessions.create({
332
+ parent: "Test string",
333
+ requestId: "Test string",
334
+ sessionId: "Test string",
335
+ }, {
336
+ createTime: "Test string",
337
+ creator: "Test string",
338
+ environmentConfig: {
339
+ executionConfig: {
340
+ idleTtl: "Test string",
341
+ kmsKey: "Test string",
342
+ networkTags: [
343
+ "Test string"
344
+ ],
345
+ networkUri: "Test string",
346
+ serviceAccount: "Test string",
347
+ stagingBucket: "Test string",
348
+ subnetworkUri: "Test string",
349
+ ttl: "Test string",
350
+ },
351
+ peripheralsConfig: {
352
+ metastoreService: "Test string",
353
+ sparkHistoryServerConfig: {
354
+ dataprocCluster: "Test string",
355
+ },
356
+ },
357
+ },
358
+ jupyterSession: {
359
+ displayName: "Test string",
360
+ kernel: "Test string",
361
+ },
362
+ labels: {
363
+ A: "Test string"
364
+ },
365
+ name: "Test string",
366
+ runtimeConfig: {
367
+ containerImage: "Test string",
368
+ properties: {
369
+ A: "Test string"
370
+ },
371
+ version: "Test string",
372
+ },
373
+ runtimeInfo: {
374
+ approximateUsage: {
375
+ milliDcuSeconds: "Test string",
376
+ shuffleStorageGbSeconds: "Test string",
377
+ },
378
+ currentUsage: {
379
+ milliDcu: "Test string",
380
+ milliDcuPremium: "Test string",
381
+ shuffleStorageGb: "Test string",
382
+ shuffleStorageGbPremium: "Test string",
383
+ snapshotTime: "Test string",
384
+ },
385
+ diagnosticOutputUri: "Test string",
386
+ endpoints: {
387
+ A: "Test string"
388
+ },
389
+ outputUri: "Test string",
390
+ },
391
+ sessionTemplate: "Test string",
392
+ state: "Test string",
393
+ stateHistory: [
394
+ {
395
+ state: "Test string",
396
+ stateMessage: "Test string",
397
+ stateStartTime: "Test string",
398
+ }
399
+ ],
400
+ stateMessage: "Test string",
401
+ stateTime: "Test string",
402
+ user: "Test string",
403
+ uuid: "Test string",
404
+ });
405
+ /** Deletes the interactive session resource. If the session is not in terminal state, it will be terminated and deleted afterwards. */
406
+ await gapi.client.dataproc.projects.locations.sessions.delete({
407
+ name: "Test string",
408
+ requestId: "Test string",
409
+ });
410
+ /** Gets the resource representation for an interactive session. */
411
+ await gapi.client.dataproc.projects.locations.sessions.get({
412
+ name: "Test string",
413
+ });
414
+ /** Inject Credentials in the interactive session. */
415
+ await gapi.client.dataproc.projects.locations.sessions.injectCredentials({
416
+ session: "Test string",
417
+ }, {
418
+ credentialsCiphertext: "Test string",
419
+ requestId: "Test string",
420
+ });
421
+ /** Lists interactive sessions. */
422
+ await gapi.client.dataproc.projects.locations.sessions.list({
423
+ filter: "Test string",
424
+ pageSize: 42,
425
+ pageToken: "Test string",
426
+ parent: "Test string",
427
+ });
428
+ /** Terminates the interactive session. */
429
+ await gapi.client.dataproc.projects.locations.sessions.terminate({
430
+ name: "Test string",
431
+ }, {
432
+ requestId: "Test string",
433
+ });
434
+ /** Create an session template, synchronously. */
435
+ await gapi.client.dataproc.projects.locations.sessionTemplates.create({
436
+ parent: "Test string",
437
+ }, {
438
+ createTime: "Test string",
439
+ creator: "Test string",
440
+ description: "Test string",
441
+ environmentConfig: {
442
+ executionConfig: {
443
+ idleTtl: "Test string",
444
+ kmsKey: "Test string",
445
+ networkTags: [
446
+ "Test string"
447
+ ],
448
+ networkUri: "Test string",
449
+ serviceAccount: "Test string",
450
+ stagingBucket: "Test string",
451
+ subnetworkUri: "Test string",
452
+ ttl: "Test string",
453
+ },
454
+ peripheralsConfig: {
455
+ metastoreService: "Test string",
456
+ sparkHistoryServerConfig: {
457
+ dataprocCluster: "Test string",
458
+ },
459
+ },
460
+ },
461
+ jupyterSession: {
462
+ displayName: "Test string",
463
+ kernel: "Test string",
464
+ },
465
+ labels: {
466
+ A: "Test string"
467
+ },
468
+ name: "Test string",
469
+ runtimeConfig: {
470
+ containerImage: "Test string",
471
+ properties: {
472
+ A: "Test string"
473
+ },
474
+ version: "Test string",
475
+ },
476
+ updateTime: "Test string",
477
+ });
478
+ /** Deletes a session template. */
479
+ await gapi.client.dataproc.projects.locations.sessionTemplates.delete({
480
+ name: "Test string",
481
+ });
482
+ /** Gets the resource representation for a session template. */
483
+ await gapi.client.dataproc.projects.locations.sessionTemplates.get({
484
+ name: "Test string",
485
+ });
486
+ /** Lists session templates. */
487
+ await gapi.client.dataproc.projects.locations.sessionTemplates.list({
488
+ filter: "Test string",
489
+ pageSize: 42,
490
+ pageToken: "Test string",
491
+ parent: "Test string",
492
+ });
493
+ /** Updates the session template, synchronously.Disable check for update_mask, because all updates will be full replacements. */
494
+ await gapi.client.dataproc.projects.locations.sessionTemplates.patch({
495
+ name: "Test string",
496
+ }, {
497
+ createTime: "Test string",
498
+ creator: "Test string",
499
+ description: "Test string",
500
+ environmentConfig: {
501
+ executionConfig: {
502
+ idleTtl: "Test string",
503
+ kmsKey: "Test string",
504
+ networkTags: [
505
+ "Test string"
506
+ ],
507
+ networkUri: "Test string",
508
+ serviceAccount: "Test string",
509
+ stagingBucket: "Test string",
510
+ subnetworkUri: "Test string",
511
+ ttl: "Test string",
512
+ },
513
+ peripheralsConfig: {
514
+ metastoreService: "Test string",
515
+ sparkHistoryServerConfig: {
516
+ dataprocCluster: "Test string",
517
+ },
518
+ },
519
+ },
520
+ jupyterSession: {
521
+ displayName: "Test string",
522
+ kernel: "Test string",
523
+ },
524
+ labels: {
525
+ A: "Test string"
526
+ },
527
+ name: "Test string",
528
+ runtimeConfig: {
529
+ containerImage: "Test string",
530
+ properties: {
531
+ A: "Test string"
532
+ },
533
+ version: "Test string",
534
+ },
535
+ updateTime: "Test string",
536
+ });
330
537
  /** Creates new workflow template. */
331
538
  await gapi.client.dataproc.projects.locations.workflowTemplates.create({
332
539
  parent: "Test string",
@@ -625,6 +832,7 @@ gapi.load('client', async () => {
625
832
  instanceTemplateName: "Test string",
626
833
  },
627
834
  minCpuPlatform: "Test string",
835
+ minNumInstances: 42,
628
836
  numInstances: 42,
629
837
  preemptibility: "Test string",
630
838
  },
@@ -774,6 +982,7 @@ gapi.load('client', async () => {
774
982
  instanceTemplateName: "Test string",
775
983
  },
776
984
  minCpuPlatform: "Test string",
985
+ minNumInstances: 42,
777
986
  numInstances: 42,
778
987
  preemptibility: "Test string",
779
988
  },
@@ -812,6 +1021,7 @@ gapi.load('client', async () => {
812
1021
  instanceTemplateName: "Test string",
813
1022
  },
814
1023
  minCpuPlatform: "Test string",
1024
+ minNumInstances: 42,
815
1025
  numInstances: 42,
816
1026
  preemptibility: "Test string",
817
1027
  },
@@ -881,6 +1091,7 @@ gapi.load('client', async () => {
881
1091
  instanceTemplateName: "Test string",
882
1092
  },
883
1093
  minCpuPlatform: "Test string",
1094
+ minNumInstances: 42,
884
1095
  numInstances: 42,
885
1096
  preemptibility: "Test string",
886
1097
  },
@@ -1231,6 +1442,7 @@ gapi.load('client', async () => {
1231
1442
  instanceTemplateName: "Test string",
1232
1443
  },
1233
1444
  minCpuPlatform: "Test string",
1445
+ minNumInstances: 42,
1234
1446
  numInstances: 42,
1235
1447
  preemptibility: "Test string",
1236
1448
  },
@@ -1380,6 +1592,7 @@ gapi.load('client', async () => {
1380
1592
  instanceTemplateName: "Test string",
1381
1593
  },
1382
1594
  minCpuPlatform: "Test string",
1595
+ minNumInstances: 42,
1383
1596
  numInstances: 42,
1384
1597
  preemptibility: "Test string",
1385
1598
  },
@@ -1418,6 +1631,7 @@ gapi.load('client', async () => {
1418
1631
  instanceTemplateName: "Test string",
1419
1632
  },
1420
1633
  minCpuPlatform: "Test string",
1634
+ minNumInstances: 42,
1421
1635
  numInstances: 42,
1422
1636
  preemptibility: "Test string",
1423
1637
  },
@@ -1487,6 +1701,7 @@ gapi.load('client', async () => {
1487
1701
  instanceTemplateName: "Test string",
1488
1702
  },
1489
1703
  minCpuPlatform: "Test string",
1704
+ minNumInstances: 42,
1490
1705
  numInstances: 42,
1491
1706
  preemptibility: "Test string",
1492
1707
  },
@@ -1837,6 +2052,7 @@ gapi.load('client', async () => {
1837
2052
  instanceTemplateName: "Test string",
1838
2053
  },
1839
2054
  minCpuPlatform: "Test string",
2055
+ minNumInstances: 42,
1840
2056
  numInstances: 42,
1841
2057
  preemptibility: "Test string",
1842
2058
  },
@@ -1986,6 +2202,7 @@ gapi.load('client', async () => {
1986
2202
  instanceTemplateName: "Test string",
1987
2203
  },
1988
2204
  minCpuPlatform: "Test string",
2205
+ minNumInstances: 42,
1989
2206
  numInstances: 42,
1990
2207
  preemptibility: "Test string",
1991
2208
  },
@@ -2024,6 +2241,7 @@ gapi.load('client', async () => {
2024
2241
  instanceTemplateName: "Test string",
2025
2242
  },
2026
2243
  minCpuPlatform: "Test string",
2244
+ minNumInstances: 42,
2027
2245
  numInstances: 42,
2028
2246
  preemptibility: "Test string",
2029
2247
  },
@@ -2093,6 +2311,7 @@ gapi.load('client', async () => {
2093
2311
  instanceTemplateName: "Test string",
2094
2312
  },
2095
2313
  minCpuPlatform: "Test string",
2314
+ minNumInstances: 42,
2096
2315
  numInstances: 42,
2097
2316
  preemptibility: "Test string",
2098
2317
  },
@@ -2290,6 +2509,7 @@ gapi.load('client', async () => {
2290
2509
  instanceTemplateName: "Test string",
2291
2510
  },
2292
2511
  minCpuPlatform: "Test string",
2512
+ minNumInstances: 42,
2293
2513
  numInstances: 42,
2294
2514
  preemptibility: "Test string",
2295
2515
  },
@@ -2439,6 +2659,7 @@ gapi.load('client', async () => {
2439
2659
  instanceTemplateName: "Test string",
2440
2660
  },
2441
2661
  minCpuPlatform: "Test string",
2662
+ minNumInstances: 42,
2442
2663
  numInstances: 42,
2443
2664
  preemptibility: "Test string",
2444
2665
  },
@@ -2477,6 +2698,7 @@ gapi.load('client', async () => {
2477
2698
  instanceTemplateName: "Test string",
2478
2699
  },
2479
2700
  minCpuPlatform: "Test string",
2701
+ minNumInstances: 42,
2480
2702
  numInstances: 42,
2481
2703
  preemptibility: "Test string",
2482
2704
  },
@@ -2546,6 +2768,7 @@ gapi.load('client', async () => {
2546
2768
  instanceTemplateName: "Test string",
2547
2769
  },
2548
2770
  minCpuPlatform: "Test string",
2771
+ minNumInstances: 42,
2549
2772
  numInstances: 42,
2550
2773
  preemptibility: "Test string",
2551
2774
  },
@@ -2645,6 +2868,7 @@ gapi.load('client', async () => {
2645
2868
  await gapi.client.dataproc.projects.regions.clusters.delete({
2646
2869
  clusterName: "Test string",
2647
2870
  clusterUuid: "Test string",
2871
+ gracefulTerminationTimeout: "Test string",
2648
2872
  projectId: "Test string",
2649
2873
  region: "Test string",
2650
2874
  requestId: "Test string",
@@ -2760,6 +2984,7 @@ gapi.load('client', async () => {
2760
2984
  instanceTemplateName: "Test string",
2761
2985
  },
2762
2986
  minCpuPlatform: "Test string",
2987
+ minNumInstances: 42,
2763
2988
  numInstances: 42,
2764
2989
  preemptibility: "Test string",
2765
2990
  },
@@ -2909,6 +3134,7 @@ gapi.load('client', async () => {
2909
3134
  instanceTemplateName: "Test string",
2910
3135
  },
2911
3136
  minCpuPlatform: "Test string",
3137
+ minNumInstances: 42,
2912
3138
  numInstances: 42,
2913
3139
  preemptibility: "Test string",
2914
3140
  },
@@ -2947,6 +3173,7 @@ gapi.load('client', async () => {
2947
3173
  instanceTemplateName: "Test string",
2948
3174
  },
2949
3175
  minCpuPlatform: "Test string",
3176
+ minNumInstances: 42,
2950
3177
  numInstances: 42,
2951
3178
  preemptibility: "Test string",
2952
3179
  },
@@ -3016,6 +3243,7 @@ gapi.load('client', async () => {
3016
3243
  instanceTemplateName: "Test string",
3017
3244
  },
3018
3245
  minCpuPlatform: "Test string",
3246
+ minNumInstances: 42,
3019
3247
  numInstances: 42,
3020
3248
  preemptibility: "Test string",
3021
3249
  },
@@ -3225,6 +3453,7 @@ gapi.load('client', async () => {
3225
3453
  instanceTemplateName: "Test string",
3226
3454
  },
3227
3455
  minCpuPlatform: "Test string",
3456
+ minNumInstances: 42,
3228
3457
  numInstances: 42,
3229
3458
  preemptibility: "Test string",
3230
3459
  },
@@ -4513,6 +4742,7 @@ gapi.load('client', async () => {
4513
4742
  instanceTemplateName: "Test string",
4514
4743
  },
4515
4744
  minCpuPlatform: "Test string",
4745
+ minNumInstances: 42,
4516
4746
  numInstances: 42,
4517
4747
  preemptibility: "Test string",
4518
4748
  },
@@ -4662,6 +4892,7 @@ gapi.load('client', async () => {
4662
4892
  instanceTemplateName: "Test string",
4663
4893
  },
4664
4894
  minCpuPlatform: "Test string",
4895
+ minNumInstances: 42,
4665
4896
  numInstances: 42,
4666
4897
  preemptibility: "Test string",
4667
4898
  },
@@ -4700,6 +4931,7 @@ gapi.load('client', async () => {
4700
4931
  instanceTemplateName: "Test string",
4701
4932
  },
4702
4933
  minCpuPlatform: "Test string",
4934
+ minNumInstances: 42,
4703
4935
  numInstances: 42,
4704
4936
  preemptibility: "Test string",
4705
4937
  },
@@ -4769,6 +5001,7 @@ gapi.load('client', async () => {
4769
5001
  instanceTemplateName: "Test string",
4770
5002
  },
4771
5003
  minCpuPlatform: "Test string",
5004
+ minNumInstances: 42,
4772
5005
  numInstances: 42,
4773
5006
  preemptibility: "Test string",
4774
5007
  },
@@ -5119,6 +5352,7 @@ gapi.load('client', async () => {
5119
5352
  instanceTemplateName: "Test string",
5120
5353
  },
5121
5354
  minCpuPlatform: "Test string",
5355
+ minNumInstances: 42,
5122
5356
  numInstances: 42,
5123
5357
  preemptibility: "Test string",
5124
5358
  },
@@ -5268,6 +5502,7 @@ gapi.load('client', async () => {
5268
5502
  instanceTemplateName: "Test string",
5269
5503
  },
5270
5504
  minCpuPlatform: "Test string",
5505
+ minNumInstances: 42,
5271
5506
  numInstances: 42,
5272
5507
  preemptibility: "Test string",
5273
5508
  },
@@ -5306,6 +5541,7 @@ gapi.load('client', async () => {
5306
5541
  instanceTemplateName: "Test string",
5307
5542
  },
5308
5543
  minCpuPlatform: "Test string",
5544
+ minNumInstances: 42,
5309
5545
  numInstances: 42,
5310
5546
  preemptibility: "Test string",
5311
5547
  },
@@ -5375,6 +5611,7 @@ gapi.load('client', async () => {
5375
5611
  instanceTemplateName: "Test string",
5376
5612
  },
5377
5613
  minCpuPlatform: "Test string",
5614
+ minNumInstances: 42,
5378
5615
  numInstances: 42,
5379
5616
  preemptibility: "Test string",
5380
5617
  },
@@ -5725,6 +5962,7 @@ gapi.load('client', async () => {
5725
5962
  instanceTemplateName: "Test string",
5726
5963
  },
5727
5964
  minCpuPlatform: "Test string",
5965
+ minNumInstances: 42,
5728
5966
  numInstances: 42,
5729
5967
  preemptibility: "Test string",
5730
5968
  },
@@ -5874,6 +6112,7 @@ gapi.load('client', async () => {
5874
6112
  instanceTemplateName: "Test string",
5875
6113
  },
5876
6114
  minCpuPlatform: "Test string",
6115
+ minNumInstances: 42,
5877
6116
  numInstances: 42,
5878
6117
  preemptibility: "Test string",
5879
6118
  },
@@ -5912,6 +6151,7 @@ gapi.load('client', async () => {
5912
6151
  instanceTemplateName: "Test string",
5913
6152
  },
5914
6153
  minCpuPlatform: "Test string",
6154
+ minNumInstances: 42,
5915
6155
  numInstances: 42,
5916
6156
  preemptibility: "Test string",
5917
6157
  },
@@ -5981,6 +6221,7 @@ gapi.load('client', async () => {
5981
6221
  instanceTemplateName: "Test string",
5982
6222
  },
5983
6223
  minCpuPlatform: "Test string",
6224
+ minNumInstances: 42,
5984
6225
  numInstances: 42,
5985
6226
  preemptibility: "Test string",
5986
6227
  },