@maxim_mazurok/gapi.client.dataproc-v1 0.0.20220921 → 0.0.20221025
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 +165 -22
- package/package.json +1 -1
- package/tests.ts +37 -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: 20221025
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -483,24 +483,6 @@ declare namespace gapi.client {
|
|
|
483
483
|
*/
|
|
484
484
|
zoneUri?: string;
|
|
485
485
|
}
|
|
486
|
-
interface GceNodePoolOperationMetadata {
|
|
487
|
-
/** Output only. Cluster UUID associated with the Compute Engine node pool operation. */
|
|
488
|
-
clusterUuid?: string;
|
|
489
|
-
/** Output only. Short description of operation. */
|
|
490
|
-
description?: string;
|
|
491
|
-
/** Output only. Compute Engine node pool ID for the operation. */
|
|
492
|
-
gceNodePoolId?: string;
|
|
493
|
-
/** Output only. Labels associated with the operation */
|
|
494
|
-
labels?: { [P in string]: string };
|
|
495
|
-
/** The operation type. */
|
|
496
|
-
operationType?: string;
|
|
497
|
-
/** Output only. Current operation status. */
|
|
498
|
-
status?: ClusterOperationStatus;
|
|
499
|
-
/** Output only. The previous operation status. */
|
|
500
|
-
statusHistory?: ClusterOperationStatus[];
|
|
501
|
-
/** Output only. Errors encountered during operation execution. */
|
|
502
|
-
warnings?: string[];
|
|
503
|
-
}
|
|
504
486
|
interface GetIamPolicyRequest {
|
|
505
487
|
/** OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. */
|
|
506
488
|
options?: GetPolicyOptions;
|
|
@@ -550,11 +532,16 @@ declare namespace gapi.client {
|
|
|
550
532
|
*/
|
|
551
533
|
minCpuPlatform?: string;
|
|
552
534
|
/**
|
|
553
|
-
* Optional. Whether the nodes are created as preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible).
|
|
554
|
-
*
|
|
535
|
+
* Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances
|
|
536
|
+
* without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not
|
|
537
|
+
* assigned (the DEFAULT node pool will assume the CONTROLLER role).
|
|
555
538
|
*/
|
|
556
539
|
preemptible?: boolean;
|
|
557
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot
|
|
542
|
+
* VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is
|
|
543
|
+
* not assigned (the DEFAULT node pool will assume the CONTROLLER role).
|
|
544
|
+
*/
|
|
558
545
|
spot?: boolean;
|
|
559
546
|
}
|
|
560
547
|
interface GkeNodePoolAcceleratorConfig {
|
|
@@ -1026,6 +1013,24 @@ declare namespace gapi.client {
|
|
|
1026
1013
|
*/
|
|
1027
1014
|
nodeGroupUri?: string;
|
|
1028
1015
|
}
|
|
1016
|
+
interface NodeGroupOperationMetadata {
|
|
1017
|
+
/** Output only. Cluster UUID associated with the node group operation. */
|
|
1018
|
+
clusterUuid?: string;
|
|
1019
|
+
/** Output only. Short description of operation. */
|
|
1020
|
+
description?: string;
|
|
1021
|
+
/** Output only. Labels associated with the operation. */
|
|
1022
|
+
labels?: { [P in string]: string };
|
|
1023
|
+
/** Output only. Node group ID for the operation. */
|
|
1024
|
+
nodeGroupId?: string;
|
|
1025
|
+
/** The operation type. */
|
|
1026
|
+
operationType?: string;
|
|
1027
|
+
/** Output only. Current operation status. */
|
|
1028
|
+
status?: ClusterOperationStatus;
|
|
1029
|
+
/** Output only. The previous operation status. */
|
|
1030
|
+
statusHistory?: ClusterOperationStatus[];
|
|
1031
|
+
/** Output only. Errors encountered during operation execution. */
|
|
1032
|
+
warnings?: string[];
|
|
1033
|
+
}
|
|
1029
1034
|
interface NodeInitializationAction {
|
|
1030
1035
|
/** Required. Cloud Storage URI of executable file. */
|
|
1031
1036
|
executableFile?: string;
|
|
@@ -1270,6 +1275,8 @@ declare namespace gapi.client {
|
|
|
1270
1275
|
version?: string;
|
|
1271
1276
|
}
|
|
1272
1277
|
interface RuntimeInfo {
|
|
1278
|
+
/** Output only. Approximate workload resource usage calculated after workload finishes. */
|
|
1279
|
+
approximateUsage?: UsageMetrics;
|
|
1273
1280
|
/** Output only. A URI pointing to the location of the diagnostics tarball. */
|
|
1274
1281
|
diagnosticOutputUri?: string;
|
|
1275
1282
|
/** Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs. */
|
|
@@ -1568,6 +1575,12 @@ declare namespace gapi.client {
|
|
|
1568
1575
|
/** A list of queries. */
|
|
1569
1576
|
queryList?: QueryList;
|
|
1570
1577
|
}
|
|
1578
|
+
interface UsageMetrics {
|
|
1579
|
+
/** Optional. DCU usage in milliDCU*seconds. */
|
|
1580
|
+
milliDcuSeconds?: string;
|
|
1581
|
+
/** Optional. Shuffle storage usage in GB*Seconds */
|
|
1582
|
+
shuffleStorageGbSeconds?: string;
|
|
1583
|
+
}
|
|
1571
1584
|
interface ValueValidation {
|
|
1572
1585
|
/** Required. List of allowed values for the parameter. */
|
|
1573
1586
|
values?: string[];
|
|
@@ -2178,6 +2191,135 @@ declare namespace gapi.client {
|
|
|
2178
2191
|
uploadType?: string;
|
|
2179
2192
|
}): Request<ListBatchesResponse>;
|
|
2180
2193
|
}
|
|
2194
|
+
interface OperationsResource {
|
|
2195
|
+
/**
|
|
2196
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
|
|
2197
|
+
* this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
2198
|
+
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
2199
|
+
* google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
|
|
2200
|
+
*/
|
|
2201
|
+
cancel(request?: {
|
|
2202
|
+
/** V1 error format. */
|
|
2203
|
+
"$.xgafv"?: string;
|
|
2204
|
+
/** OAuth access token. */
|
|
2205
|
+
access_token?: string;
|
|
2206
|
+
/** Data format for response. */
|
|
2207
|
+
alt?: string;
|
|
2208
|
+
/** JSONP */
|
|
2209
|
+
callback?: string;
|
|
2210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2211
|
+
fields?: string;
|
|
2212
|
+
/** 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. */
|
|
2213
|
+
key?: string;
|
|
2214
|
+
/** The name of the operation resource to be cancelled. */
|
|
2215
|
+
name: string;
|
|
2216
|
+
/** OAuth 2.0 token for the current user. */
|
|
2217
|
+
oauth_token?: string;
|
|
2218
|
+
/** Returns response with indentations and line breaks. */
|
|
2219
|
+
prettyPrint?: boolean;
|
|
2220
|
+
/** 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. */
|
|
2221
|
+
quotaUser?: string;
|
|
2222
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2223
|
+
upload_protocol?: string;
|
|
2224
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2225
|
+
uploadType?: string;
|
|
2226
|
+
}): Request<{}>;
|
|
2227
|
+
/**
|
|
2228
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
|
|
2229
|
+
* support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
2230
|
+
*/
|
|
2231
|
+
delete(request?: {
|
|
2232
|
+
/** V1 error format. */
|
|
2233
|
+
"$.xgafv"?: string;
|
|
2234
|
+
/** OAuth access token. */
|
|
2235
|
+
access_token?: string;
|
|
2236
|
+
/** Data format for response. */
|
|
2237
|
+
alt?: string;
|
|
2238
|
+
/** JSONP */
|
|
2239
|
+
callback?: string;
|
|
2240
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2241
|
+
fields?: string;
|
|
2242
|
+
/** 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. */
|
|
2243
|
+
key?: string;
|
|
2244
|
+
/** The name of the operation resource to be deleted. */
|
|
2245
|
+
name: string;
|
|
2246
|
+
/** OAuth 2.0 token for the current user. */
|
|
2247
|
+
oauth_token?: string;
|
|
2248
|
+
/** Returns response with indentations and line breaks. */
|
|
2249
|
+
prettyPrint?: boolean;
|
|
2250
|
+
/** 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. */
|
|
2251
|
+
quotaUser?: string;
|
|
2252
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2253
|
+
upload_protocol?: string;
|
|
2254
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2255
|
+
uploadType?: string;
|
|
2256
|
+
}): Request<{}>;
|
|
2257
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
2258
|
+
get(request?: {
|
|
2259
|
+
/** V1 error format. */
|
|
2260
|
+
"$.xgafv"?: string;
|
|
2261
|
+
/** OAuth access token. */
|
|
2262
|
+
access_token?: string;
|
|
2263
|
+
/** Data format for response. */
|
|
2264
|
+
alt?: string;
|
|
2265
|
+
/** JSONP */
|
|
2266
|
+
callback?: string;
|
|
2267
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2268
|
+
fields?: string;
|
|
2269
|
+
/** 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. */
|
|
2270
|
+
key?: string;
|
|
2271
|
+
/** The name of the operation resource. */
|
|
2272
|
+
name: string;
|
|
2273
|
+
/** OAuth 2.0 token for the current user. */
|
|
2274
|
+
oauth_token?: string;
|
|
2275
|
+
/** Returns response with indentations and line breaks. */
|
|
2276
|
+
prettyPrint?: boolean;
|
|
2277
|
+
/** 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. */
|
|
2278
|
+
quotaUser?: string;
|
|
2279
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2280
|
+
upload_protocol?: string;
|
|
2281
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2282
|
+
uploadType?: string;
|
|
2283
|
+
}): Request<Operation>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
|
|
2286
|
+
* override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as
|
|
2287
|
+
* "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
2288
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
2289
|
+
*/
|
|
2290
|
+
list(request?: {
|
|
2291
|
+
/** V1 error format. */
|
|
2292
|
+
"$.xgafv"?: string;
|
|
2293
|
+
/** OAuth access token. */
|
|
2294
|
+
access_token?: string;
|
|
2295
|
+
/** Data format for response. */
|
|
2296
|
+
alt?: string;
|
|
2297
|
+
/** JSONP */
|
|
2298
|
+
callback?: string;
|
|
2299
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2300
|
+
fields?: string;
|
|
2301
|
+
/** The standard list filter. */
|
|
2302
|
+
filter?: string;
|
|
2303
|
+
/** 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. */
|
|
2304
|
+
key?: string;
|
|
2305
|
+
/** The name of the operation's parent resource. */
|
|
2306
|
+
name: string;
|
|
2307
|
+
/** OAuth 2.0 token for the current user. */
|
|
2308
|
+
oauth_token?: string;
|
|
2309
|
+
/** The standard list page size. */
|
|
2310
|
+
pageSize?: number;
|
|
2311
|
+
/** The standard list page token. */
|
|
2312
|
+
pageToken?: string;
|
|
2313
|
+
/** Returns response with indentations and line breaks. */
|
|
2314
|
+
prettyPrint?: boolean;
|
|
2315
|
+
/** 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. */
|
|
2316
|
+
quotaUser?: string;
|
|
2317
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2318
|
+
upload_protocol?: string;
|
|
2319
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2320
|
+
uploadType?: string;
|
|
2321
|
+
}): Request<ListOperationsResponse>;
|
|
2322
|
+
}
|
|
2181
2323
|
interface WorkflowTemplatesResource {
|
|
2182
2324
|
/** Creates new workflow template. */
|
|
2183
2325
|
create(request: {
|
|
@@ -2662,6 +2804,7 @@ declare namespace gapi.client {
|
|
|
2662
2804
|
interface LocationsResource {
|
|
2663
2805
|
autoscalingPolicies: AutoscalingPoliciesResource;
|
|
2664
2806
|
batches: BatchesResource;
|
|
2807
|
+
operations: OperationsResource;
|
|
2665
2808
|
workflowTemplates: WorkflowTemplatesResource;
|
|
2666
2809
|
}
|
|
2667
2810
|
interface AutoscalingPoliciesResource {
|
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: 20221025
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -216,6 +216,10 @@ gapi.load('client', async () => {
|
|
|
216
216
|
version: "Test string",
|
|
217
217
|
},
|
|
218
218
|
runtimeInfo: {
|
|
219
|
+
approximateUsage: {
|
|
220
|
+
milliDcuSeconds: "Test string",
|
|
221
|
+
shuffleStorageGbSeconds: "Test string",
|
|
222
|
+
},
|
|
219
223
|
diagnosticOutputUri: "Test string",
|
|
220
224
|
endpoints: {
|
|
221
225
|
A: "Test string"
|
|
@@ -285,6 +289,38 @@ gapi.load('client', async () => {
|
|
|
285
289
|
pageToken: "Test string",
|
|
286
290
|
parent: "Test string",
|
|
287
291
|
});
|
|
292
|
+
/**
|
|
293
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
294
|
+
* method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed
|
|
295
|
+
* despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
|
296
|
+
* corresponding to Code.CANCELLED.
|
|
297
|
+
*/
|
|
298
|
+
await gapi.client.dataproc.projects.locations.operations.cancel({
|
|
299
|
+
name: "Test string",
|
|
300
|
+
});
|
|
301
|
+
/**
|
|
302
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
303
|
+
* this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
304
|
+
*/
|
|
305
|
+
await gapi.client.dataproc.projects.locations.operations.delete({
|
|
306
|
+
name: "Test string",
|
|
307
|
+
});
|
|
308
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
309
|
+
await gapi.client.dataproc.projects.locations.operations.get({
|
|
310
|
+
name: "Test string",
|
|
311
|
+
});
|
|
312
|
+
/**
|
|
313
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
|
|
314
|
+
* override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations"
|
|
315
|
+
* to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent
|
|
316
|
+
* resource, without the operations collection id.
|
|
317
|
+
*/
|
|
318
|
+
await gapi.client.dataproc.projects.locations.operations.list({
|
|
319
|
+
filter: "Test string",
|
|
320
|
+
name: "Test string",
|
|
321
|
+
pageSize: 42,
|
|
322
|
+
pageToken: "Test string",
|
|
323
|
+
});
|
|
288
324
|
/** Creates new workflow template. */
|
|
289
325
|
await gapi.client.dataproc.projects.locations.workflowTemplates.create({
|
|
290
326
|
parent: "Test string",
|