@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230117 → 0.0.20230220
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.
- package/index.d.ts +38 -10
- package/package.json +1 -1
- package/tests.ts +13 -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:
|
|
12
|
+
// Revision: 20230220
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -191,13 +191,14 @@ declare namespace gapi.client {
|
|
|
191
191
|
* example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com.
|
|
192
192
|
* serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account
|
|
193
193
|
* (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email
|
|
194
|
-
* address that represents a Google group. For example, admins@example.com.
|
|
195
|
-
*
|
|
196
|
-
* the
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
194
|
+
* address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example,
|
|
195
|
+
* google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
|
|
196
|
+
* alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
|
|
197
|
+
* deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
|
|
198
|
+
* my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service
|
|
199
|
+
* account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently
|
|
200
|
+
* deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the
|
|
201
|
+
* binding.
|
|
201
202
|
*/
|
|
202
203
|
members?: string[];
|
|
203
204
|
/** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner. */
|
|
@@ -409,6 +410,8 @@ declare namespace gapi.client {
|
|
|
409
410
|
interface EncryptionConfig {
|
|
410
411
|
/** Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster. */
|
|
411
412
|
gcePdKmsKeyName?: string;
|
|
413
|
+
/** Optional. The Cloud KMS key name to use for encrypting customer core content and cluster PD disk for all instances in the cluster. */
|
|
414
|
+
kmsKey?: string;
|
|
412
415
|
}
|
|
413
416
|
interface EndpointConfig {
|
|
414
417
|
/** Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. */
|
|
@@ -437,8 +440,21 @@ declare namespace gapi.client {
|
|
|
437
440
|
networkUri?: string;
|
|
438
441
|
/** Optional. Service account that used to execute workload. */
|
|
439
442
|
serviceAccount?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not
|
|
445
|
+
* specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level,
|
|
446
|
+
* per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
|
|
447
|
+
*/
|
|
448
|
+
stagingBucket?: string;
|
|
440
449
|
/** Optional. Subnetwork URI to connect workload to. */
|
|
441
450
|
subnetworkUri?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish.
|
|
453
|
+
* Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and
|
|
454
|
+
* idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first.
|
|
455
|
+
* If ttl is not specified for a session, it defaults to 24h.
|
|
456
|
+
*/
|
|
457
|
+
ttl?: string;
|
|
442
458
|
}
|
|
443
459
|
interface Expr {
|
|
444
460
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
@@ -467,8 +483,8 @@ declare namespace gapi.client {
|
|
|
467
483
|
/**
|
|
468
484
|
* Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the
|
|
469
485
|
* "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more
|
|
470
|
-
* information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/
|
|
471
|
-
* projects/[project_id]/
|
|
486
|
+
* information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default
|
|
487
|
+
* projects/[project_id]/global/networks/default default
|
|
472
488
|
*/
|
|
473
489
|
networkUri?: string;
|
|
474
490
|
/** Optional. Node Group Affinity for sole-tenant clusters. */
|
|
@@ -2244,10 +2260,22 @@ declare namespace gapi.client {
|
|
|
2244
2260
|
callback?: string;
|
|
2245
2261
|
/** Selector specifying which fields to include in a partial response. */
|
|
2246
2262
|
fields?: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* Optional. A filter for the batches to return in the response.A filter is a logical expression constraining the values of various fields in each batch resource. Filters are case
|
|
2265
|
+
* sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are batch_id, batch_uuid, state, and create_time.e.g. state = RUNNING and
|
|
2266
|
+
* create_time < "2023-01-01T00:00:00Z" filters for batches in state RUNNING that were created before 2023-01-01See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a
|
|
2267
|
+
* detailed description of the filter syntax and a list of supported comparisons.
|
|
2268
|
+
*/
|
|
2269
|
+
filter?: string;
|
|
2247
2270
|
/** 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. */
|
|
2248
2271
|
key?: string;
|
|
2249
2272
|
/** OAuth 2.0 token for the current user. */
|
|
2250
2273
|
oauth_token?: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Optional. Field(s) on which to sort the list of batches.Currently the only supported sort orders are unspecified (empty) and create_time desc to sort by most recently created
|
|
2276
|
+
* batches first.See https://google.aip.dev/132#ordering for more details.
|
|
2277
|
+
*/
|
|
2278
|
+
orderBy?: string;
|
|
2251
2279
|
/** Optional. The maximum number of batches to return in each response. The service may return fewer than this value. The default page size is 20; the maximum page size is 1000. */
|
|
2252
2280
|
pageSize?: number;
|
|
2253
2281
|
/** Optional. A page token received from a previous ListBatches call. Provide this token to retrieve the subsequent page. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230220
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -176,7 +176,9 @@ gapi.load('client', async () => {
|
|
|
176
176
|
],
|
|
177
177
|
networkUri: "Test string",
|
|
178
178
|
serviceAccount: "Test string",
|
|
179
|
+
stagingBucket: "Test string",
|
|
179
180
|
subnetworkUri: "Test string",
|
|
181
|
+
ttl: "Test string",
|
|
180
182
|
},
|
|
181
183
|
peripheralsConfig: {
|
|
182
184
|
metastoreService: "Test string",
|
|
@@ -290,6 +292,8 @@ gapi.load('client', async () => {
|
|
|
290
292
|
});
|
|
291
293
|
/** Lists batch workloads. */
|
|
292
294
|
await gapi.client.dataproc.projects.locations.batches.list({
|
|
295
|
+
filter: "Test string",
|
|
296
|
+
orderBy: "Test string",
|
|
293
297
|
pageSize: 42,
|
|
294
298
|
pageToken: "Test string",
|
|
295
299
|
parent: "Test string",
|
|
@@ -647,6 +651,7 @@ gapi.load('client', async () => {
|
|
|
647
651
|
},
|
|
648
652
|
encryptionConfig: {
|
|
649
653
|
gcePdKmsKeyName: "Test string",
|
|
654
|
+
kmsKey: "Test string",
|
|
650
655
|
},
|
|
651
656
|
endpointConfig: {
|
|
652
657
|
enableHttpPortAccess: true,
|
|
@@ -1252,6 +1257,7 @@ gapi.load('client', async () => {
|
|
|
1252
1257
|
},
|
|
1253
1258
|
encryptionConfig: {
|
|
1254
1259
|
gcePdKmsKeyName: "Test string",
|
|
1260
|
+
kmsKey: "Test string",
|
|
1255
1261
|
},
|
|
1256
1262
|
endpointConfig: {
|
|
1257
1263
|
enableHttpPortAccess: true,
|
|
@@ -1857,6 +1863,7 @@ gapi.load('client', async () => {
|
|
|
1857
1863
|
},
|
|
1858
1864
|
encryptionConfig: {
|
|
1859
1865
|
gcePdKmsKeyName: "Test string",
|
|
1866
|
+
kmsKey: "Test string",
|
|
1860
1867
|
},
|
|
1861
1868
|
endpointConfig: {
|
|
1862
1869
|
enableHttpPortAccess: true,
|
|
@@ -2309,6 +2316,7 @@ gapi.load('client', async () => {
|
|
|
2309
2316
|
},
|
|
2310
2317
|
encryptionConfig: {
|
|
2311
2318
|
gcePdKmsKeyName: "Test string",
|
|
2319
|
+
kmsKey: "Test string",
|
|
2312
2320
|
},
|
|
2313
2321
|
endpointConfig: {
|
|
2314
2322
|
enableHttpPortAccess: true,
|
|
@@ -2772,6 +2780,7 @@ gapi.load('client', async () => {
|
|
|
2772
2780
|
},
|
|
2773
2781
|
encryptionConfig: {
|
|
2774
2782
|
gcePdKmsKeyName: "Test string",
|
|
2783
|
+
kmsKey: "Test string",
|
|
2775
2784
|
},
|
|
2776
2785
|
endpointConfig: {
|
|
2777
2786
|
enableHttpPortAccess: true,
|
|
@@ -4472,6 +4481,7 @@ gapi.load('client', async () => {
|
|
|
4472
4481
|
},
|
|
4473
4482
|
encryptionConfig: {
|
|
4474
4483
|
gcePdKmsKeyName: "Test string",
|
|
4484
|
+
kmsKey: "Test string",
|
|
4475
4485
|
},
|
|
4476
4486
|
endpointConfig: {
|
|
4477
4487
|
enableHttpPortAccess: true,
|
|
@@ -5077,6 +5087,7 @@ gapi.load('client', async () => {
|
|
|
5077
5087
|
},
|
|
5078
5088
|
encryptionConfig: {
|
|
5079
5089
|
gcePdKmsKeyName: "Test string",
|
|
5090
|
+
kmsKey: "Test string",
|
|
5080
5091
|
},
|
|
5081
5092
|
endpointConfig: {
|
|
5082
5093
|
enableHttpPortAccess: true,
|
|
@@ -5682,6 +5693,7 @@ gapi.load('client', async () => {
|
|
|
5682
5693
|
},
|
|
5683
5694
|
encryptionConfig: {
|
|
5684
5695
|
gcePdKmsKeyName: "Test string",
|
|
5696
|
+
kmsKey: "Test string",
|
|
5685
5697
|
},
|
|
5686
5698
|
endpointConfig: {
|
|
5687
5699
|
enableHttpPortAccess: true,
|