@maxim_mazurok/gapi.client.dataproc-v1 0.0.20221130 → 0.0.20230103
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 +91 -5
- package/package.json +1 -1
- package/tests.ts +53 -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: 20230103
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -420,7 +420,8 @@ declare namespace gapi.client {
|
|
|
420
420
|
interface ExecutionConfig {
|
|
421
421
|
/**
|
|
422
422
|
* Optional. The duration to keep the session alive while it's idling. Passing this threshold will cause the session to be terminated. Minimum value is 10 minutes; maximum value is 14
|
|
423
|
-
* days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set.
|
|
423
|
+
* days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set. If both ttl and idle_ttl are specified,
|
|
424
|
+
* 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.
|
|
424
425
|
*/
|
|
425
426
|
idleTtl?: string;
|
|
426
427
|
/** Optional. The Cloud KMS key to use for encryption. */
|
|
@@ -1274,7 +1275,7 @@ declare namespace gapi.client {
|
|
|
1274
1275
|
/** Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist. */
|
|
1275
1276
|
clusterUuid?: string;
|
|
1276
1277
|
/**
|
|
1277
|
-
* Optional. Timeout for graceful YARN
|
|
1278
|
+
* Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies
|
|
1278
1279
|
* the amount of time to wait for jobs finish before forcefully removing nodes. The default timeout is 0 for forceful decommissioning, and the maximum timeout period is 1 day. (see
|
|
1279
1280
|
* JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.
|
|
1280
1281
|
*/
|
|
@@ -3194,6 +3195,91 @@ declare namespace gapi.client {
|
|
|
3194
3195
|
body: AutoscalingPolicy): Request<AutoscalingPolicy>;
|
|
3195
3196
|
}
|
|
3196
3197
|
interface NodeGroupsResource {
|
|
3198
|
+
/**
|
|
3199
|
+
* Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata
|
|
3200
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
|
|
3201
|
+
*/
|
|
3202
|
+
create(request: {
|
|
3203
|
+
/** V1 error format. */
|
|
3204
|
+
"$.xgafv"?: string;
|
|
3205
|
+
/** OAuth access token. */
|
|
3206
|
+
access_token?: string;
|
|
3207
|
+
/** Data format for response. */
|
|
3208
|
+
alt?: string;
|
|
3209
|
+
/** JSONP */
|
|
3210
|
+
callback?: string;
|
|
3211
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3212
|
+
fields?: string;
|
|
3213
|
+
/** 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. */
|
|
3214
|
+
key?: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end
|
|
3217
|
+
* with underscore or hyphen. Must consist of from 3 to 33 characters.
|
|
3218
|
+
*/
|
|
3219
|
+
nodeGroupId?: string;
|
|
3220
|
+
/** OAuth 2.0 token for the current user. */
|
|
3221
|
+
oauth_token?: string;
|
|
3222
|
+
/** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
|
|
3223
|
+
parent: string;
|
|
3224
|
+
/** Returns response with indentations and line breaks. */
|
|
3225
|
+
prettyPrint?: boolean;
|
|
3226
|
+
/** 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. */
|
|
3227
|
+
quotaUser?: string;
|
|
3228
|
+
/**
|
|
3229
|
+
* Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest
|
|
3230
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored
|
|
3231
|
+
* and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID
|
|
3232
|
+
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is
|
|
3233
|
+
* 40 characters.
|
|
3234
|
+
*/
|
|
3235
|
+
requestId?: string;
|
|
3236
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3237
|
+
upload_protocol?: string;
|
|
3238
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3239
|
+
uploadType?: string;
|
|
3240
|
+
/** Request body */
|
|
3241
|
+
resource: NodeGroup;
|
|
3242
|
+
}): Request<Operation>;
|
|
3243
|
+
create(request: {
|
|
3244
|
+
/** V1 error format. */
|
|
3245
|
+
"$.xgafv"?: string;
|
|
3246
|
+
/** OAuth access token. */
|
|
3247
|
+
access_token?: string;
|
|
3248
|
+
/** Data format for response. */
|
|
3249
|
+
alt?: string;
|
|
3250
|
+
/** JSONP */
|
|
3251
|
+
callback?: string;
|
|
3252
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3253
|
+
fields?: string;
|
|
3254
|
+
/** 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. */
|
|
3255
|
+
key?: string;
|
|
3256
|
+
/**
|
|
3257
|
+
* Optional. An optional node group ID. Generated if not specified.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end
|
|
3258
|
+
* with underscore or hyphen. Must consist of from 3 to 33 characters.
|
|
3259
|
+
*/
|
|
3260
|
+
nodeGroupId?: string;
|
|
3261
|
+
/** OAuth 2.0 token for the current user. */
|
|
3262
|
+
oauth_token?: string;
|
|
3263
|
+
/** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
|
|
3264
|
+
parent: string;
|
|
3265
|
+
/** Returns response with indentations and line breaks. */
|
|
3266
|
+
prettyPrint?: boolean;
|
|
3267
|
+
/** 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. */
|
|
3268
|
+
quotaUser?: string;
|
|
3269
|
+
/**
|
|
3270
|
+
* Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest
|
|
3271
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored
|
|
3272
|
+
* and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID
|
|
3273
|
+
* (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is
|
|
3274
|
+
* 40 characters.
|
|
3275
|
+
*/
|
|
3276
|
+
requestId?: string;
|
|
3277
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3278
|
+
upload_protocol?: string;
|
|
3279
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3280
|
+
uploadType?: string;
|
|
3281
|
+
},
|
|
3282
|
+
body: NodeGroup): Request<Operation>;
|
|
3197
3283
|
/** Gets the resource representation for a node group in a cluster. */
|
|
3198
3284
|
get(request?: {
|
|
3199
3285
|
/** V1 error format. */
|
|
@@ -3662,7 +3748,7 @@ declare namespace gapi.client {
|
|
|
3662
3748
|
/** Selector specifying which fields to include in a partial response. */
|
|
3663
3749
|
fields?: string;
|
|
3664
3750
|
/**
|
|
3665
|
-
* Optional. Timeout for graceful YARN
|
|
3751
|
+
* Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
|
|
3666
3752
|
* long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the
|
|
3667
3753
|
* maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image
|
|
3668
3754
|
* versions 1.2 and higher.
|
|
@@ -3718,7 +3804,7 @@ declare namespace gapi.client {
|
|
|
3718
3804
|
/** Selector specifying which fields to include in a partial response. */
|
|
3719
3805
|
fields?: string;
|
|
3720
3806
|
/**
|
|
3721
|
-
* Optional. Timeout for graceful YARN
|
|
3807
|
+
* Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
|
|
3722
3808
|
* long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the
|
|
3723
3809
|
* maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image
|
|
3724
3810
|
* versions 1.2 and higher.
|
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: 20230103
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -3162,6 +3162,58 @@ gapi.load('client', async () => {
|
|
|
3162
3162
|
"Test string"
|
|
3163
3163
|
],
|
|
3164
3164
|
});
|
|
3165
|
+
/**
|
|
3166
|
+
* Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata
|
|
3167
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
|
|
3168
|
+
*/
|
|
3169
|
+
await gapi.client.dataproc.projects.regions.clusters.nodeGroups.create({
|
|
3170
|
+
nodeGroupId: "Test string",
|
|
3171
|
+
parent: "Test string",
|
|
3172
|
+
requestId: "Test string",
|
|
3173
|
+
}, {
|
|
3174
|
+
labels: {
|
|
3175
|
+
A: "Test string"
|
|
3176
|
+
},
|
|
3177
|
+
name: "Test string",
|
|
3178
|
+
nodeGroupConfig: {
|
|
3179
|
+
accelerators: [
|
|
3180
|
+
{
|
|
3181
|
+
acceleratorCount: 42,
|
|
3182
|
+
acceleratorTypeUri: "Test string",
|
|
3183
|
+
}
|
|
3184
|
+
],
|
|
3185
|
+
diskConfig: {
|
|
3186
|
+
bootDiskSizeGb: 42,
|
|
3187
|
+
bootDiskType: "Test string",
|
|
3188
|
+
localSsdInterface: "Test string",
|
|
3189
|
+
numLocalSsds: 42,
|
|
3190
|
+
},
|
|
3191
|
+
imageUri: "Test string",
|
|
3192
|
+
instanceNames: [
|
|
3193
|
+
"Test string"
|
|
3194
|
+
],
|
|
3195
|
+
instanceReferences: [
|
|
3196
|
+
{
|
|
3197
|
+
instanceId: "Test string",
|
|
3198
|
+
instanceName: "Test string",
|
|
3199
|
+
publicEciesKey: "Test string",
|
|
3200
|
+
publicKey: "Test string",
|
|
3201
|
+
}
|
|
3202
|
+
],
|
|
3203
|
+
isPreemptible: true,
|
|
3204
|
+
machineTypeUri: "Test string",
|
|
3205
|
+
managedGroupConfig: {
|
|
3206
|
+
instanceGroupManagerName: "Test string",
|
|
3207
|
+
instanceTemplateName: "Test string",
|
|
3208
|
+
},
|
|
3209
|
+
minCpuPlatform: "Test string",
|
|
3210
|
+
numInstances: 42,
|
|
3211
|
+
preemptibility: "Test string",
|
|
3212
|
+
},
|
|
3213
|
+
roles: [
|
|
3214
|
+
"Test string"
|
|
3215
|
+
],
|
|
3216
|
+
});
|
|
3165
3217
|
/** Gets the resource representation for a node group in a cluster. */
|
|
3166
3218
|
await gapi.client.dataproc.projects.regions.clusters.nodeGroups.get({
|
|
3167
3219
|
name: "Test string",
|