@maxim_mazurok/gapi.client.metastore-v1alpha 0.0.20230106 → 0.0.20230131

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 +75 -10
  2. package/package.json +1 -1
  3. package/tests.ts +11 -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://metastore.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20230106
12
+ // Revision: 20230131
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -61,8 +61,8 @@ declare namespace gapi.client {
61
61
  /** The type of the backend metastore. */
62
62
  metastoreType?: string;
63
63
  /**
64
- * The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex
65
- * projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}
64
+ * The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: BigQuery
65
+ * projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}
66
66
  */
67
67
  name?: string;
68
68
  }
@@ -96,18 +96,22 @@ declare namespace gapi.client {
96
96
  * example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com.
97
97
  * serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account
98
98
  * (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
99
- * 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
100
- * 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
101
- * 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.
102
- * For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the
103
- * 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
104
- * 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
105
- * 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.
99
+ * 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,
100
+ * 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,
101
+ * 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.
102
+ * deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
103
+ * my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service
104
+ * 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
105
+ * 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
106
+ * binding.
106
107
  */
107
108
  members?: string[];
108
109
  /** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner. */
109
110
  role?: string;
110
111
  }
112
+ // tslint:disable-next-line:no-empty-interface
113
+ interface CancelOperationRequest {
114
+ }
111
115
  interface Consumer {
112
116
  /** Output only. The URI of the endpoint used to access the metastore service. */
113
117
  endpointUri?: string;
@@ -955,6 +959,67 @@ declare namespace gapi.client {
955
959
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
956
960
  }
957
961
  interface OperationsResource {
962
+ /**
963
+ * 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
964
+ * 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
965
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
966
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
967
+ */
968
+ cancel(request: {
969
+ /** V1 error format. */
970
+ "$.xgafv"?: string;
971
+ /** OAuth access token. */
972
+ access_token?: string;
973
+ /** Data format for response. */
974
+ alt?: string;
975
+ /** JSONP */
976
+ callback?: string;
977
+ /** Selector specifying which fields to include in a partial response. */
978
+ fields?: string;
979
+ /** 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. */
980
+ key?: string;
981
+ /** The name of the operation resource to be cancelled. */
982
+ name: string;
983
+ /** OAuth 2.0 token for the current user. */
984
+ oauth_token?: string;
985
+ /** Returns response with indentations and line breaks. */
986
+ prettyPrint?: boolean;
987
+ /** 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. */
988
+ quotaUser?: string;
989
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
990
+ upload_protocol?: string;
991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
992
+ uploadType?: string;
993
+ /** Request body */
994
+ resource: CancelOperationRequest;
995
+ }): Request<{}>;
996
+ cancel(request: {
997
+ /** V1 error format. */
998
+ "$.xgafv"?: string;
999
+ /** OAuth access token. */
1000
+ access_token?: string;
1001
+ /** Data format for response. */
1002
+ alt?: string;
1003
+ /** JSONP */
1004
+ callback?: string;
1005
+ /** Selector specifying which fields to include in a partial response. */
1006
+ fields?: string;
1007
+ /** 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. */
1008
+ key?: string;
1009
+ /** The name of the operation resource to be cancelled. */
1010
+ name: string;
1011
+ /** OAuth 2.0 token for the current user. */
1012
+ oauth_token?: string;
1013
+ /** Returns response with indentations and line breaks. */
1014
+ prettyPrint?: boolean;
1015
+ /** 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. */
1016
+ quotaUser?: string;
1017
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1018
+ upload_protocol?: string;
1019
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1020
+ uploadType?: string;
1021
+ },
1022
+ body: CancelOperationRequest): Request<{}>;
958
1023
  /**
959
1024
  * 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
960
1025
  * support this method, it returns google.rpc.Code.UNIMPLEMENTED.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1alpha",
3
- "version": "0.0.20230106",
3
+ "version": "0.0.20230131",
4
4
  "description": "TypeScript typings for Dataproc Metastore API v1alpha",
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: 20230106
6
+ // Revision: 20230131
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -158,6 +158,16 @@ gapi.load('client', async () => {
158
158
  "Test string"
159
159
  ],
160
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
+ });
161
171
  /**
162
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
163
173
  * this method, it returns google.rpc.Code.UNIMPLEMENTED.