@maxim_mazurok/gapi.client.dataproc-v1 0.0.20221130 → 0.0.20221207
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 +86 -1
- 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: 20221207
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -3194,6 +3194,91 @@ declare namespace gapi.client {
|
|
|
3194
3194
|
body: AutoscalingPolicy): Request<AutoscalingPolicy>;
|
|
3195
3195
|
}
|
|
3196
3196
|
interface NodeGroupsResource {
|
|
3197
|
+
/**
|
|
3198
|
+
* Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata
|
|
3199
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
|
|
3200
|
+
*/
|
|
3201
|
+
create(request: {
|
|
3202
|
+
/** V1 error format. */
|
|
3203
|
+
"$.xgafv"?: string;
|
|
3204
|
+
/** OAuth access token. */
|
|
3205
|
+
access_token?: string;
|
|
3206
|
+
/** Data format for response. */
|
|
3207
|
+
alt?: string;
|
|
3208
|
+
/** JSONP */
|
|
3209
|
+
callback?: string;
|
|
3210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3211
|
+
fields?: string;
|
|
3212
|
+
/** 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. */
|
|
3213
|
+
key?: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* 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
|
|
3216
|
+
* with underscore or hyphen. Must consist of from 3 to 33 characters.
|
|
3217
|
+
*/
|
|
3218
|
+
nodeGroupId?: string;
|
|
3219
|
+
/** OAuth 2.0 token for the current user. */
|
|
3220
|
+
oauth_token?: string;
|
|
3221
|
+
/** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
|
|
3222
|
+
parent: string;
|
|
3223
|
+
/** Returns response with indentations and line breaks. */
|
|
3224
|
+
prettyPrint?: boolean;
|
|
3225
|
+
/** 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. */
|
|
3226
|
+
quotaUser?: string;
|
|
3227
|
+
/**
|
|
3228
|
+
* Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest
|
|
3229
|
+
* (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
|
|
3230
|
+
* and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID
|
|
3231
|
+
* (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
|
|
3232
|
+
* 40 characters.
|
|
3233
|
+
*/
|
|
3234
|
+
requestId?: string;
|
|
3235
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3236
|
+
upload_protocol?: string;
|
|
3237
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3238
|
+
uploadType?: string;
|
|
3239
|
+
/** Request body */
|
|
3240
|
+
resource: NodeGroup;
|
|
3241
|
+
}): Request<Operation>;
|
|
3242
|
+
create(request: {
|
|
3243
|
+
/** V1 error format. */
|
|
3244
|
+
"$.xgafv"?: string;
|
|
3245
|
+
/** OAuth access token. */
|
|
3246
|
+
access_token?: string;
|
|
3247
|
+
/** Data format for response. */
|
|
3248
|
+
alt?: string;
|
|
3249
|
+
/** JSONP */
|
|
3250
|
+
callback?: string;
|
|
3251
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3252
|
+
fields?: string;
|
|
3253
|
+
/** 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. */
|
|
3254
|
+
key?: string;
|
|
3255
|
+
/**
|
|
3256
|
+
* 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
|
|
3257
|
+
* with underscore or hyphen. Must consist of from 3 to 33 characters.
|
|
3258
|
+
*/
|
|
3259
|
+
nodeGroupId?: string;
|
|
3260
|
+
/** OAuth 2.0 token for the current user. */
|
|
3261
|
+
oauth_token?: string;
|
|
3262
|
+
/** Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster} */
|
|
3263
|
+
parent: string;
|
|
3264
|
+
/** Returns response with indentations and line breaks. */
|
|
3265
|
+
prettyPrint?: boolean;
|
|
3266
|
+
/** 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. */
|
|
3267
|
+
quotaUser?: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest
|
|
3270
|
+
* (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
|
|
3271
|
+
* and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID
|
|
3272
|
+
* (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
|
|
3273
|
+
* 40 characters.
|
|
3274
|
+
*/
|
|
3275
|
+
requestId?: string;
|
|
3276
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3277
|
+
upload_protocol?: string;
|
|
3278
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3279
|
+
uploadType?: string;
|
|
3280
|
+
},
|
|
3281
|
+
body: NodeGroup): Request<Operation>;
|
|
3197
3282
|
/** Gets the resource representation for a node group in a cluster. */
|
|
3198
3283
|
get(request?: {
|
|
3199
3284
|
/** V1 error format. */
|
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: 20221207
|
|
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",
|