@maxim_mazurok/gapi.client.metastore-v1 0.0.20230111 → 0.0.20230202

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 (4) hide show
  1. package/index.d.ts +70 -73
  2. package/package.json +1 -1
  3. package/readme.md +0 -5
  4. package/tests.ts +11 -11
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://metastore.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230111
12
+ // Revision: 20230202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -73,13 +73,14 @@ declare namespace gapi.client {
73
73
  * example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com.
74
74
  * serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account
75
75
  * (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
76
- * address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that
77
- * has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains
78
- * the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted.
79
- * For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the
80
- * undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has
81
- * been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains
82
- * the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
76
+ * 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,
77
+ * 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,
78
+ * 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.
79
+ * deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
80
+ * my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service
81
+ * 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
82
+ * 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
83
+ * binding.
83
84
  */
84
85
  members?: string[];
85
86
  /** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner. */
@@ -500,69 +501,6 @@ declare namespace gapi.client {
500
501
  /** A subset of TestPermissionsRequest.permissions that the caller is allowed. */
501
502
  permissions?: string[];
502
503
  }
503
- interface OperationsResource {
504
- /**
505
- * 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
506
- * 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
507
- * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
508
- * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
509
- */
510
- cancel(request: {
511
- /** V1 error format. */
512
- "$.xgafv"?: string;
513
- /** OAuth access token. */
514
- access_token?: string;
515
- /** Data format for response. */
516
- alt?: string;
517
- /** JSONP */
518
- callback?: string;
519
- /** Selector specifying which fields to include in a partial response. */
520
- fields?: string;
521
- /** 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. */
522
- key?: string;
523
- /** The name of the operation resource to be cancelled. */
524
- name: string;
525
- /** OAuth 2.0 token for the current user. */
526
- oauth_token?: string;
527
- /** Returns response with indentations and line breaks. */
528
- prettyPrint?: boolean;
529
- /** 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. */
530
- quotaUser?: string;
531
- /** Upload protocol for media (e.g. "raw", "multipart"). */
532
- upload_protocol?: string;
533
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
534
- uploadType?: string;
535
- /** Request body */
536
- resource: CancelOperationRequest;
537
- }): Request<{}>;
538
- cancel(request: {
539
- /** V1 error format. */
540
- "$.xgafv"?: string;
541
- /** OAuth access token. */
542
- access_token?: string;
543
- /** Data format for response. */
544
- alt?: string;
545
- /** JSONP */
546
- callback?: string;
547
- /** Selector specifying which fields to include in a partial response. */
548
- fields?: string;
549
- /** 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. */
550
- key?: string;
551
- /** The name of the operation resource to be cancelled. */
552
- name: string;
553
- /** OAuth 2.0 token for the current user. */
554
- oauth_token?: string;
555
- /** Returns response with indentations and line breaks. */
556
- prettyPrint?: boolean;
557
- /** 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. */
558
- quotaUser?: string;
559
- /** Upload protocol for media (e.g. "raw", "multipart"). */
560
- upload_protocol?: string;
561
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
562
- uploadType?: string;
563
- },
564
- body: CancelOperationRequest): Request<{}>;
565
- }
566
504
  interface FederationsResource {
567
505
  /** Creates a metastore federation in a project and location. */
568
506
  create(request: {
@@ -937,6 +875,67 @@ declare namespace gapi.client {
937
875
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
938
876
  }
939
877
  interface OperationsResource {
878
+ /**
879
+ * 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
880
+ * 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
881
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
882
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
883
+ */
884
+ cancel(request: {
885
+ /** V1 error format. */
886
+ "$.xgafv"?: string;
887
+ /** OAuth access token. */
888
+ access_token?: string;
889
+ /** Data format for response. */
890
+ alt?: string;
891
+ /** JSONP */
892
+ callback?: string;
893
+ /** Selector specifying which fields to include in a partial response. */
894
+ fields?: string;
895
+ /** 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. */
896
+ key?: string;
897
+ /** The name of the operation resource to be cancelled. */
898
+ name: string;
899
+ /** OAuth 2.0 token for the current user. */
900
+ oauth_token?: string;
901
+ /** Returns response with indentations and line breaks. */
902
+ prettyPrint?: boolean;
903
+ /** 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. */
904
+ quotaUser?: string;
905
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
906
+ upload_protocol?: string;
907
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
908
+ uploadType?: string;
909
+ /** Request body */
910
+ resource: CancelOperationRequest;
911
+ }): Request<{}>;
912
+ cancel(request: {
913
+ /** V1 error format. */
914
+ "$.xgafv"?: string;
915
+ /** OAuth access token. */
916
+ access_token?: string;
917
+ /** Data format for response. */
918
+ alt?: string;
919
+ /** JSONP */
920
+ callback?: string;
921
+ /** Selector specifying which fields to include in a partial response. */
922
+ fields?: string;
923
+ /** 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. */
924
+ key?: string;
925
+ /** The name of the operation resource to be cancelled. */
926
+ name: string;
927
+ /** OAuth 2.0 token for the current user. */
928
+ oauth_token?: string;
929
+ /** Returns response with indentations and line breaks. */
930
+ prettyPrint?: boolean;
931
+ /** 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. */
932
+ quotaUser?: string;
933
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
934
+ upload_protocol?: string;
935
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
936
+ uploadType?: string;
937
+ },
938
+ body: CancelOperationRequest): Request<{}>;
940
939
  /**
941
940
  * 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
942
941
  * support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -2099,8 +2098,6 @@ declare namespace gapi.client {
2099
2098
  locations: LocationsResource;
2100
2099
  }
2101
2100
 
2102
- const operations: OperationsResource;
2103
-
2104
2101
  const projects: ProjectsResource;
2105
2102
  }
2106
2103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1",
3
- "version": "0.0.20230111",
3
+ "version": "0.0.20230202",
4
4
  "description": "TypeScript typings for Dataproc Metastore API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -65,9 +65,4 @@ gapi.auth.authorize(
65
65
  After that you can use Dataproc Metastore API resources: <!-- TODO: make this work for multiple namespaces -->
66
66
 
67
67
  ```typescript
68
-
69
- /*
70
- 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 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 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, corresponding to Code.CANCELLED.
71
- */
72
- await gapi.client.metastore.operations.cancel({ name: "name", });
73
68
  ```
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: 20230111
6
+ // Revision: 20230202
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -29,16 +29,6 @@ gapi.load('client', async () => {
29
29
  });
30
30
 
31
31
  async function run() {
32
- /**
33
- * 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
34
- * 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
35
- * 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,
36
- * corresponding to Code.CANCELLED.
37
- */
38
- await gapi.client.metastore.operations.cancel({
39
- name: "Test string",
40
- }, {
41
- });
42
32
  /** Gets information about a location. */
43
33
  await gapi.client.metastore.projects.locations.get({
44
34
  name: "Test string",
@@ -168,6 +158,16 @@ gapi.load('client', async () => {
168
158
  "Test string"
169
159
  ],
170
160
  });
161
+ /**
162
+ * 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
163
+ * 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
164
+ * 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,
165
+ * corresponding to Code.CANCELLED.
166
+ */
167
+ await gapi.client.metastore.projects.locations.operations.cancel({
168
+ name: "Test string",
169
+ }, {
170
+ });
171
171
  /**
172
172
  * 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
173
173
  * this method, it returns google.rpc.Code.UNIMPLEMENTED.