@maxim_mazurok/gapi.client.dataproc-v1 0.0.20220921 → 0.0.20221017

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 +139 -4
  2. package/package.json +1 -1
  3. package/tests.ts +33 -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: 20220921
12
+ // Revision: 20221017
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -550,11 +550,16 @@ declare namespace gapi.client {
550
550
  */
551
551
  minCpuPlatform?: string;
552
552
  /**
553
- * Optional. Whether the nodes are created as preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Preemptible nodes cannot be used in a node pool
554
- * with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
553
+ * 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
554
+ * 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
555
+ * assigned (the DEFAULT node pool will assume the CONTROLLER role).
555
556
  */
556
557
  preemptible?: boolean;
557
- /** Optional. Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag. */
558
+ /**
559
+ * 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
560
+ * 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
561
+ * not assigned (the DEFAULT node pool will assume the CONTROLLER role).
562
+ */
558
563
  spot?: boolean;
559
564
  }
560
565
  interface GkeNodePoolAcceleratorConfig {
@@ -2178,6 +2183,135 @@ declare namespace gapi.client {
2178
2183
  uploadType?: string;
2179
2184
  }): Request<ListBatchesResponse>;
2180
2185
  }
2186
+ interface OperationsResource {
2187
+ /**
2188
+ * 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
2189
+ * 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
2190
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
2191
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
2192
+ */
2193
+ cancel(request?: {
2194
+ /** V1 error format. */
2195
+ "$.xgafv"?: string;
2196
+ /** OAuth access token. */
2197
+ access_token?: string;
2198
+ /** Data format for response. */
2199
+ alt?: string;
2200
+ /** JSONP */
2201
+ callback?: string;
2202
+ /** Selector specifying which fields to include in a partial response. */
2203
+ fields?: string;
2204
+ /** 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. */
2205
+ key?: string;
2206
+ /** The name of the operation resource to be cancelled. */
2207
+ name: string;
2208
+ /** OAuth 2.0 token for the current user. */
2209
+ oauth_token?: string;
2210
+ /** Returns response with indentations and line breaks. */
2211
+ prettyPrint?: boolean;
2212
+ /** 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. */
2213
+ quotaUser?: string;
2214
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2215
+ upload_protocol?: string;
2216
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2217
+ uploadType?: string;
2218
+ }): Request<{}>;
2219
+ /**
2220
+ * 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
2221
+ * support this method, it returns google.rpc.Code.UNIMPLEMENTED.
2222
+ */
2223
+ delete(request?: {
2224
+ /** V1 error format. */
2225
+ "$.xgafv"?: string;
2226
+ /** OAuth access token. */
2227
+ access_token?: string;
2228
+ /** Data format for response. */
2229
+ alt?: string;
2230
+ /** JSONP */
2231
+ callback?: string;
2232
+ /** Selector specifying which fields to include in a partial response. */
2233
+ fields?: string;
2234
+ /** 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. */
2235
+ key?: string;
2236
+ /** The name of the operation resource to be deleted. */
2237
+ name: string;
2238
+ /** OAuth 2.0 token for the current user. */
2239
+ oauth_token?: string;
2240
+ /** Returns response with indentations and line breaks. */
2241
+ prettyPrint?: boolean;
2242
+ /** 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. */
2243
+ quotaUser?: string;
2244
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2245
+ upload_protocol?: string;
2246
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2247
+ uploadType?: string;
2248
+ }): Request<{}>;
2249
+ /** 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. */
2250
+ get(request?: {
2251
+ /** V1 error format. */
2252
+ "$.xgafv"?: string;
2253
+ /** OAuth access token. */
2254
+ access_token?: string;
2255
+ /** Data format for response. */
2256
+ alt?: string;
2257
+ /** JSONP */
2258
+ callback?: string;
2259
+ /** Selector specifying which fields to include in a partial response. */
2260
+ fields?: string;
2261
+ /** 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. */
2262
+ key?: string;
2263
+ /** The name of the operation resource. */
2264
+ name: string;
2265
+ /** OAuth 2.0 token for the current user. */
2266
+ oauth_token?: string;
2267
+ /** Returns response with indentations and line breaks. */
2268
+ prettyPrint?: boolean;
2269
+ /** 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. */
2270
+ quotaUser?: string;
2271
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2272
+ upload_protocol?: string;
2273
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2274
+ uploadType?: string;
2275
+ }): Request<Operation>;
2276
+ /**
2277
+ * 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
2278
+ * 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
2279
+ * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2280
+ * ensure the name binding is the parent resource, without the operations collection id.
2281
+ */
2282
+ list(request?: {
2283
+ /** V1 error format. */
2284
+ "$.xgafv"?: string;
2285
+ /** OAuth access token. */
2286
+ access_token?: string;
2287
+ /** Data format for response. */
2288
+ alt?: string;
2289
+ /** JSONP */
2290
+ callback?: string;
2291
+ /** Selector specifying which fields to include in a partial response. */
2292
+ fields?: string;
2293
+ /** The standard list filter. */
2294
+ filter?: string;
2295
+ /** 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. */
2296
+ key?: string;
2297
+ /** The name of the operation's parent resource. */
2298
+ name: string;
2299
+ /** OAuth 2.0 token for the current user. */
2300
+ oauth_token?: string;
2301
+ /** The standard list page size. */
2302
+ pageSize?: number;
2303
+ /** The standard list page token. */
2304
+ pageToken?: string;
2305
+ /** Returns response with indentations and line breaks. */
2306
+ prettyPrint?: boolean;
2307
+ /** 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. */
2308
+ quotaUser?: string;
2309
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2310
+ upload_protocol?: string;
2311
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2312
+ uploadType?: string;
2313
+ }): Request<ListOperationsResponse>;
2314
+ }
2181
2315
  interface WorkflowTemplatesResource {
2182
2316
  /** Creates new workflow template. */
2183
2317
  create(request: {
@@ -2662,6 +2796,7 @@ declare namespace gapi.client {
2662
2796
  interface LocationsResource {
2663
2797
  autoscalingPolicies: AutoscalingPoliciesResource;
2664
2798
  batches: BatchesResource;
2799
+ operations: OperationsResource;
2665
2800
  workflowTemplates: WorkflowTemplatesResource;
2666
2801
  }
2667
2802
  interface AutoscalingPoliciesResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20220921",
3
+ "version": "0.0.20221017",
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: 20220921
6
+ // Revision: 20221017
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -285,6 +285,38 @@ gapi.load('client', async () => {
285
285
  pageToken: "Test string",
286
286
  parent: "Test string",
287
287
  });
288
+ /**
289
+ * 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
290
+ * 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
291
+ * 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,
292
+ * corresponding to Code.CANCELLED.
293
+ */
294
+ await gapi.client.dataproc.projects.locations.operations.cancel({
295
+ name: "Test string",
296
+ });
297
+ /**
298
+ * 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
299
+ * this method, it returns google.rpc.Code.UNIMPLEMENTED.
300
+ */
301
+ await gapi.client.dataproc.projects.locations.operations.delete({
302
+ name: "Test string",
303
+ });
304
+ /** 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. */
305
+ await gapi.client.dataproc.projects.locations.operations.get({
306
+ name: "Test string",
307
+ });
308
+ /**
309
+ * 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
310
+ * 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"
311
+ * 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
312
+ * resource, without the operations collection id.
313
+ */
314
+ await gapi.client.dataproc.projects.locations.operations.list({
315
+ filter: "Test string",
316
+ name: "Test string",
317
+ pageSize: 42,
318
+ pageToken: "Test string",
319
+ });
288
320
  /** Creates new workflow template. */
289
321
  await gapi.client.dataproc.projects.locations.workflowTemplates.create({
290
322
  parent: "Test string",