@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230919 → 0.0.20231002

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 +25 -1
  2. package/package.json +1 -1
  3. package/tests.ts +106 -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://dataproc.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230919
12
+ // Revision: 20231002
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -984,6 +984,9 @@ declare namespace gapi.client {
984
984
  */
985
985
  preemptibility?:
986
986
  string;
987
+ /** Optional. Configuration to handle the startup of instances during cluster create and update process. */
988
+ startupConfig?:
989
+ StartupConfig;
987
990
  }
988
991
  interface InstanceReference {
989
992
  /** The unique identifier of the Compute Engine instance. */
@@ -1822,6 +1825,9 @@ declare namespace gapi.client {
1822
1825
  */
1823
1826
  gracefulDecommissionTimeout?:
1824
1827
  string;
1828
+ /** Optional. operation id of the parent operation sending the resize request */
1829
+ parentOperationId?:
1830
+ string;
1825
1831
  /**
1826
1832
  * Optional. A unique ID used to identify the request. If the server receives two ResizeNodeGroupRequest
1827
1833
  * (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests) with the same ID, the second request is ignored and
@@ -2186,6 +2192,9 @@ declare namespace gapi.client {
2186
2192
  */
2187
2193
  gracefulDecommissionTimeout?:
2188
2194
  string;
2195
+ /** Optional. Remove only idle workers when scaling down cluster */
2196
+ removeOnlyIdleWorkers?:
2197
+ boolean;
2189
2198
  /**
2190
2199
  * Required. Fraction of required executors to remove from Spark Serverless clusters. A scale-down factor of 1.0 will result in scaling down so that there are no more executors for the
2191
2200
  * Spark Job.(more aggressive scaling). A scale-down factor closer to 0 will result in a smaller magnitude of scaling donw (less aggressive scaling).Bounds: 0.0, 1.0.
@@ -2225,6 +2234,15 @@ declare namespace gapi.client {
2225
2234
  requestId?:
2226
2235
  string;
2227
2236
  }
2237
+ interface StartupConfig {
2238
+ /**
2239
+ * Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is
2240
+ * applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent
2241
+ * registration, and service registration (if enabled).
2242
+ */
2243
+ requiredRegistrationFraction?:
2244
+ number;
2245
+ }
2228
2246
  interface StateHistory {
2229
2247
  /** Output only. The state of the batch at this point in history. */
2230
2248
  state?:
@@ -5182,6 +5200,9 @@ declare namespace gapi.client {
5182
5200
  /** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
5183
5201
  parent:
5184
5202
  string;
5203
+ /** Optional. operation id of the parent operation sending the create request */
5204
+ parentOperationId?:
5205
+ string;
5185
5206
  /** Returns response with indentations and line breaks. */
5186
5207
  prettyPrint?:
5187
5208
  boolean;
@@ -5238,6 +5259,9 @@ declare namespace gapi.client {
5238
5259
  /** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
5239
5260
  parent:
5240
5261
  string;
5262
+ /** Optional. operation id of the parent operation sending the create request */
5263
+ parentOperationId?:
5264
+ string;
5241
5265
  /** Returns response with indentations and line breaks. */
5242
5266
  prettyPrint?:
5243
5267
  boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20230919",
3
+ "version": "0.0.20231002",
4
4
  "description": "TypeScript typings for Cloud Dataproc API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230919
6
+ // Revision: 20231002
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -37,6 +37,7 @@ gapi.load('client', async () => {
37
37
  cooldownPeriod: "Test string",
38
38
  sparkStandaloneConfig: {
39
39
  gracefulDecommissionTimeout: "Test string",
40
+ removeOnlyIdleWorkers: true,
40
41
  scaleDownFactor: 42,
41
42
  scaleDownMinWorkerFraction: 42,
42
43
  scaleUpFactor: 42,
@@ -130,6 +131,7 @@ gapi.load('client', async () => {
130
131
  cooldownPeriod: "Test string",
131
132
  sparkStandaloneConfig: {
132
133
  gracefulDecommissionTimeout: "Test string",
134
+ removeOnlyIdleWorkers: true,
133
135
  scaleDownFactor: 42,
134
136
  scaleDownMinWorkerFraction: 42,
135
137
  scaleUpFactor: 42,
@@ -886,6 +888,9 @@ gapi.load('client', async () => {
886
888
  minNumInstances: 42,
887
889
  numInstances: 42,
888
890
  preemptibility: "Test string",
891
+ startupConfig: {
892
+ requiredRegistrationFraction: 42,
893
+ },
889
894
  },
890
895
  roles: [
891
896
  "Test string"
@@ -1052,6 +1057,9 @@ gapi.load('client', async () => {
1052
1057
  minNumInstances: 42,
1053
1058
  numInstances: 42,
1054
1059
  preemptibility: "Test string",
1060
+ startupConfig: {
1061
+ requiredRegistrationFraction: 42,
1062
+ },
1055
1063
  },
1056
1064
  metastoreConfig: {
1057
1065
  dataprocMetastoreService: "Test string",
@@ -1108,6 +1116,9 @@ gapi.load('client', async () => {
1108
1116
  minNumInstances: 42,
1109
1117
  numInstances: 42,
1110
1118
  preemptibility: "Test string",
1119
+ startupConfig: {
1120
+ requiredRegistrationFraction: 42,
1121
+ },
1111
1122
  },
1112
1123
  securityConfig: {
1113
1124
  identityConfig: {
@@ -1195,6 +1206,9 @@ gapi.load('client', async () => {
1195
1206
  minNumInstances: 42,
1196
1207
  numInstances: 42,
1197
1208
  preemptibility: "Test string",
1209
+ startupConfig: {
1210
+ requiredRegistrationFraction: 42,
1211
+ },
1198
1212
  },
1199
1213
  },
1200
1214
  labels: {
@@ -1582,6 +1596,9 @@ gapi.load('client', async () => {
1582
1596
  minNumInstances: 42,
1583
1597
  numInstances: 42,
1584
1598
  preemptibility: "Test string",
1599
+ startupConfig: {
1600
+ requiredRegistrationFraction: 42,
1601
+ },
1585
1602
  },
1586
1603
  roles: [
1587
1604
  "Test string"
@@ -1748,6 +1765,9 @@ gapi.load('client', async () => {
1748
1765
  minNumInstances: 42,
1749
1766
  numInstances: 42,
1750
1767
  preemptibility: "Test string",
1768
+ startupConfig: {
1769
+ requiredRegistrationFraction: 42,
1770
+ },
1751
1771
  },
1752
1772
  metastoreConfig: {
1753
1773
  dataprocMetastoreService: "Test string",
@@ -1804,6 +1824,9 @@ gapi.load('client', async () => {
1804
1824
  minNumInstances: 42,
1805
1825
  numInstances: 42,
1806
1826
  preemptibility: "Test string",
1827
+ startupConfig: {
1828
+ requiredRegistrationFraction: 42,
1829
+ },
1807
1830
  },
1808
1831
  securityConfig: {
1809
1832
  identityConfig: {
@@ -1891,6 +1914,9 @@ gapi.load('client', async () => {
1891
1914
  minNumInstances: 42,
1892
1915
  numInstances: 42,
1893
1916
  preemptibility: "Test string",
1917
+ startupConfig: {
1918
+ requiredRegistrationFraction: 42,
1919
+ },
1894
1920
  },
1895
1921
  },
1896
1922
  labels: {
@@ -2278,6 +2304,9 @@ gapi.load('client', async () => {
2278
2304
  minNumInstances: 42,
2279
2305
  numInstances: 42,
2280
2306
  preemptibility: "Test string",
2307
+ startupConfig: {
2308
+ requiredRegistrationFraction: 42,
2309
+ },
2281
2310
  },
2282
2311
  roles: [
2283
2312
  "Test string"
@@ -2444,6 +2473,9 @@ gapi.load('client', async () => {
2444
2473
  minNumInstances: 42,
2445
2474
  numInstances: 42,
2446
2475
  preemptibility: "Test string",
2476
+ startupConfig: {
2477
+ requiredRegistrationFraction: 42,
2478
+ },
2447
2479
  },
2448
2480
  metastoreConfig: {
2449
2481
  dataprocMetastoreService: "Test string",
@@ -2500,6 +2532,9 @@ gapi.load('client', async () => {
2500
2532
  minNumInstances: 42,
2501
2533
  numInstances: 42,
2502
2534
  preemptibility: "Test string",
2535
+ startupConfig: {
2536
+ requiredRegistrationFraction: 42,
2537
+ },
2503
2538
  },
2504
2539
  securityConfig: {
2505
2540
  identityConfig: {
@@ -2587,6 +2622,9 @@ gapi.load('client', async () => {
2587
2622
  minNumInstances: 42,
2588
2623
  numInstances: 42,
2589
2624
  preemptibility: "Test string",
2625
+ startupConfig: {
2626
+ requiredRegistrationFraction: 42,
2627
+ },
2590
2628
  },
2591
2629
  },
2592
2630
  labels: {
@@ -2605,6 +2643,7 @@ gapi.load('client', async () => {
2605
2643
  cooldownPeriod: "Test string",
2606
2644
  sparkStandaloneConfig: {
2607
2645
  gracefulDecommissionTimeout: "Test string",
2646
+ removeOnlyIdleWorkers: true,
2608
2647
  scaleDownFactor: 42,
2609
2648
  scaleDownMinWorkerFraction: 42,
2610
2649
  scaleUpFactor: 42,
@@ -2698,6 +2737,7 @@ gapi.load('client', async () => {
2698
2737
  cooldownPeriod: "Test string",
2699
2738
  sparkStandaloneConfig: {
2700
2739
  gracefulDecommissionTimeout: "Test string",
2740
+ removeOnlyIdleWorkers: true,
2701
2741
  scaleDownFactor: 42,
2702
2742
  scaleDownMinWorkerFraction: 42,
2703
2743
  scaleUpFactor: 42,
@@ -2802,6 +2842,9 @@ gapi.load('client', async () => {
2802
2842
  minNumInstances: 42,
2803
2843
  numInstances: 42,
2804
2844
  preemptibility: "Test string",
2845
+ startupConfig: {
2846
+ requiredRegistrationFraction: 42,
2847
+ },
2805
2848
  },
2806
2849
  roles: [
2807
2850
  "Test string"
@@ -2968,6 +3011,9 @@ gapi.load('client', async () => {
2968
3011
  minNumInstances: 42,
2969
3012
  numInstances: 42,
2970
3013
  preemptibility: "Test string",
3014
+ startupConfig: {
3015
+ requiredRegistrationFraction: 42,
3016
+ },
2971
3017
  },
2972
3018
  metastoreConfig: {
2973
3019
  dataprocMetastoreService: "Test string",
@@ -3024,6 +3070,9 @@ gapi.load('client', async () => {
3024
3070
  minNumInstances: 42,
3025
3071
  numInstances: 42,
3026
3072
  preemptibility: "Test string",
3073
+ startupConfig: {
3074
+ requiredRegistrationFraction: 42,
3075
+ },
3027
3076
  },
3028
3077
  securityConfig: {
3029
3078
  identityConfig: {
@@ -3111,6 +3160,9 @@ gapi.load('client', async () => {
3111
3160
  minNumInstances: 42,
3112
3161
  numInstances: 42,
3113
3162
  preemptibility: "Test string",
3163
+ startupConfig: {
3164
+ requiredRegistrationFraction: 42,
3165
+ },
3114
3166
  },
3115
3167
  },
3116
3168
  labels: {
@@ -3345,6 +3397,9 @@ gapi.load('client', async () => {
3345
3397
  minNumInstances: 42,
3346
3398
  numInstances: 42,
3347
3399
  preemptibility: "Test string",
3400
+ startupConfig: {
3401
+ requiredRegistrationFraction: 42,
3402
+ },
3348
3403
  },
3349
3404
  roles: [
3350
3405
  "Test string"
@@ -3511,6 +3566,9 @@ gapi.load('client', async () => {
3511
3566
  minNumInstances: 42,
3512
3567
  numInstances: 42,
3513
3568
  preemptibility: "Test string",
3569
+ startupConfig: {
3570
+ requiredRegistrationFraction: 42,
3571
+ },
3514
3572
  },
3515
3573
  metastoreConfig: {
3516
3574
  dataprocMetastoreService: "Test string",
@@ -3567,6 +3625,9 @@ gapi.load('client', async () => {
3567
3625
  minNumInstances: 42,
3568
3626
  numInstances: 42,
3569
3627
  preemptibility: "Test string",
3628
+ startupConfig: {
3629
+ requiredRegistrationFraction: 42,
3630
+ },
3570
3631
  },
3571
3632
  securityConfig: {
3572
3633
  identityConfig: {
@@ -3654,6 +3715,9 @@ gapi.load('client', async () => {
3654
3715
  minNumInstances: 42,
3655
3716
  numInstances: 42,
3656
3717
  preemptibility: "Test string",
3718
+ startupConfig: {
3719
+ requiredRegistrationFraction: 42,
3720
+ },
3657
3721
  },
3658
3722
  },
3659
3723
  labels: {
@@ -3823,6 +3887,7 @@ gapi.load('client', async () => {
3823
3887
  await gapi.client.dataproc.projects.regions.clusters.nodeGroups.create({
3824
3888
  nodeGroupId: "Test string",
3825
3889
  parent: "Test string",
3890
+ parentOperationId: "Test string",
3826
3891
  requestId: "Test string",
3827
3892
  }, {
3828
3893
  labels: {
@@ -3881,6 +3946,9 @@ gapi.load('client', async () => {
3881
3946
  minNumInstances: 42,
3882
3947
  numInstances: 42,
3883
3948
  preemptibility: "Test string",
3949
+ startupConfig: {
3950
+ requiredRegistrationFraction: 42,
3951
+ },
3884
3952
  },
3885
3953
  roles: [
3886
3954
  "Test string"
@@ -3898,6 +3966,7 @@ gapi.load('client', async () => {
3898
3966
  name: "Test string",
3899
3967
  }, {
3900
3968
  gracefulDecommissionTimeout: "Test string",
3969
+ parentOperationId: "Test string",
3901
3970
  requestId: "Test string",
3902
3971
  size: 42,
3903
3972
  });
@@ -5206,6 +5275,9 @@ gapi.load('client', async () => {
5206
5275
  minNumInstances: 42,
5207
5276
  numInstances: 42,
5208
5277
  preemptibility: "Test string",
5278
+ startupConfig: {
5279
+ requiredRegistrationFraction: 42,
5280
+ },
5209
5281
  },
5210
5282
  roles: [
5211
5283
  "Test string"
@@ -5372,6 +5444,9 @@ gapi.load('client', async () => {
5372
5444
  minNumInstances: 42,
5373
5445
  numInstances: 42,
5374
5446
  preemptibility: "Test string",
5447
+ startupConfig: {
5448
+ requiredRegistrationFraction: 42,
5449
+ },
5375
5450
  },
5376
5451
  metastoreConfig: {
5377
5452
  dataprocMetastoreService: "Test string",
@@ -5428,6 +5503,9 @@ gapi.load('client', async () => {
5428
5503
  minNumInstances: 42,
5429
5504
  numInstances: 42,
5430
5505
  preemptibility: "Test string",
5506
+ startupConfig: {
5507
+ requiredRegistrationFraction: 42,
5508
+ },
5431
5509
  },
5432
5510
  securityConfig: {
5433
5511
  identityConfig: {
@@ -5515,6 +5593,9 @@ gapi.load('client', async () => {
5515
5593
  minNumInstances: 42,
5516
5594
  numInstances: 42,
5517
5595
  preemptibility: "Test string",
5596
+ startupConfig: {
5597
+ requiredRegistrationFraction: 42,
5598
+ },
5518
5599
  },
5519
5600
  },
5520
5601
  labels: {
@@ -5902,6 +5983,9 @@ gapi.load('client', async () => {
5902
5983
  minNumInstances: 42,
5903
5984
  numInstances: 42,
5904
5985
  preemptibility: "Test string",
5986
+ startupConfig: {
5987
+ requiredRegistrationFraction: 42,
5988
+ },
5905
5989
  },
5906
5990
  roles: [
5907
5991
  "Test string"
@@ -6068,6 +6152,9 @@ gapi.load('client', async () => {
6068
6152
  minNumInstances: 42,
6069
6153
  numInstances: 42,
6070
6154
  preemptibility: "Test string",
6155
+ startupConfig: {
6156
+ requiredRegistrationFraction: 42,
6157
+ },
6071
6158
  },
6072
6159
  metastoreConfig: {
6073
6160
  dataprocMetastoreService: "Test string",
@@ -6124,6 +6211,9 @@ gapi.load('client', async () => {
6124
6211
  minNumInstances: 42,
6125
6212
  numInstances: 42,
6126
6213
  preemptibility: "Test string",
6214
+ startupConfig: {
6215
+ requiredRegistrationFraction: 42,
6216
+ },
6127
6217
  },
6128
6218
  securityConfig: {
6129
6219
  identityConfig: {
@@ -6211,6 +6301,9 @@ gapi.load('client', async () => {
6211
6301
  minNumInstances: 42,
6212
6302
  numInstances: 42,
6213
6303
  preemptibility: "Test string",
6304
+ startupConfig: {
6305
+ requiredRegistrationFraction: 42,
6306
+ },
6214
6307
  },
6215
6308
  },
6216
6309
  labels: {
@@ -6598,6 +6691,9 @@ gapi.load('client', async () => {
6598
6691
  minNumInstances: 42,
6599
6692
  numInstances: 42,
6600
6693
  preemptibility: "Test string",
6694
+ startupConfig: {
6695
+ requiredRegistrationFraction: 42,
6696
+ },
6601
6697
  },
6602
6698
  roles: [
6603
6699
  "Test string"
@@ -6764,6 +6860,9 @@ gapi.load('client', async () => {
6764
6860
  minNumInstances: 42,
6765
6861
  numInstances: 42,
6766
6862
  preemptibility: "Test string",
6863
+ startupConfig: {
6864
+ requiredRegistrationFraction: 42,
6865
+ },
6767
6866
  },
6768
6867
  metastoreConfig: {
6769
6868
  dataprocMetastoreService: "Test string",
@@ -6820,6 +6919,9 @@ gapi.load('client', async () => {
6820
6919
  minNumInstances: 42,
6821
6920
  numInstances: 42,
6822
6921
  preemptibility: "Test string",
6922
+ startupConfig: {
6923
+ requiredRegistrationFraction: 42,
6924
+ },
6823
6925
  },
6824
6926
  securityConfig: {
6825
6927
  identityConfig: {
@@ -6907,6 +7009,9 @@ gapi.load('client', async () => {
6907
7009
  minNumInstances: 42,
6908
7010
  numInstances: 42,
6909
7011
  preemptibility: "Test string",
7012
+ startupConfig: {
7013
+ requiredRegistrationFraction: 42,
7014
+ },
6910
7015
  },
6911
7016
  },
6912
7017
  labels: {