@maxim_mazurok/gapi.client.metastore-v1 0.0.20240502 → 0.0.20240510

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 (2) hide show
  1. package/index.d.ts +137 -1
  2. package/package.json +1 -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=v1
12
- // Revision: 20240502
12
+ // Revision: 20240510
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -98,6 +98,14 @@ declare namespace gapi.client {
98
98
  /** Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id} */
99
99
  subnetwork?: string;
100
100
  }
101
+ interface CustomRegionMetadata {
102
+ /** The read-only regions for this custom region. */
103
+ optionalReadOnlyRegions?: string[];
104
+ /** The read-write regions for this custom region. */
105
+ requiredReadWriteRegions?: string[];
106
+ /** The Spanner witness region for this custom region. */
107
+ witnessRegion?: string;
108
+ }
101
109
  interface DatabaseDump {
102
110
  /** The type of the database. */
103
111
  databaseType?: string;
@@ -254,6 +262,8 @@ declare namespace gapi.client {
254
262
  name?: string;
255
263
  }
256
264
  interface LocationMetadata {
265
+ /** Possible configurations supported if the current region is a custom region. */
266
+ customRegionMetadata?: CustomRegionMetadata[];
257
267
  /** The multi-region metadata if the current region is a multi-region. */
258
268
  multiRegionMetadata?: MultiRegionMetadata;
259
269
  /** The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default. */
@@ -423,6 +433,8 @@ declare namespace gapi.client {
423
433
  createTime?: string;
424
434
  /** Immutable. The database type that the Metastore service stores its data. */
425
435
  databaseType?: string;
436
+ /** Optional. Indicates if the dataproc metastore should be protected against accidental deletions. */
437
+ deletionProtection?: boolean;
426
438
  /** Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated. */
427
439
  encryptionConfig?: EncryptionConfig;
428
440
  /** Output only. The URI of the endpoint used to access the metastore service. */
@@ -1169,6 +1181,129 @@ declare namespace gapi.client {
1169
1181
  body: SetIamPolicyRequest
1170
1182
  ): Request<Policy>;
1171
1183
  }
1184
+ interface TablesResource {
1185
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1186
+ getIamPolicy(request?: {
1187
+ /** V1 error format. */
1188
+ '$.xgafv'?: string;
1189
+ /** OAuth access token. */
1190
+ access_token?: string;
1191
+ /** Data format for response. */
1192
+ alt?: string;
1193
+ /** JSONP */
1194
+ callback?: string;
1195
+ /** Selector specifying which fields to include in a partial response. */
1196
+ fields?: string;
1197
+ /** 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. */
1198
+ key?: string;
1199
+ /** OAuth 2.0 token for the current user. */
1200
+ oauth_token?: string;
1201
+ /** Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). */
1202
+ 'options.requestedPolicyVersion'?: number;
1203
+ /** Returns response with indentations and line breaks. */
1204
+ prettyPrint?: boolean;
1205
+ /** 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. */
1206
+ quotaUser?: string;
1207
+ /** REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1208
+ resource: string;
1209
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1210
+ upload_protocol?: string;
1211
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1212
+ uploadType?: string;
1213
+ }): Request<Policy>;
1214
+ /** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
1215
+ setIamPolicy(
1216
+ request: {
1217
+ /** V1 error format. */
1218
+ '$.xgafv'?: string;
1219
+ /** OAuth access token. */
1220
+ access_token?: string;
1221
+ /** Data format for response. */
1222
+ alt?: string;
1223
+ /** JSONP */
1224
+ callback?: string;
1225
+ /** Selector specifying which fields to include in a partial response. */
1226
+ fields?: string;
1227
+ /** 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. */
1228
+ key?: string;
1229
+ /** OAuth 2.0 token for the current user. */
1230
+ oauth_token?: string;
1231
+ /** Returns response with indentations and line breaks. */
1232
+ prettyPrint?: boolean;
1233
+ /** 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. */
1234
+ quotaUser?: string;
1235
+ /** REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1236
+ resource: string;
1237
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1238
+ upload_protocol?: string;
1239
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1240
+ uploadType?: string;
1241
+ },
1242
+ body: SetIamPolicyRequest
1243
+ ): Request<Policy>;
1244
+ }
1245
+ interface DatabasesResource {
1246
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1247
+ getIamPolicy(request?: {
1248
+ /** V1 error format. */
1249
+ '$.xgafv'?: string;
1250
+ /** OAuth access token. */
1251
+ access_token?: string;
1252
+ /** Data format for response. */
1253
+ alt?: string;
1254
+ /** JSONP */
1255
+ callback?: string;
1256
+ /** Selector specifying which fields to include in a partial response. */
1257
+ fields?: string;
1258
+ /** 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. */
1259
+ key?: string;
1260
+ /** OAuth 2.0 token for the current user. */
1261
+ oauth_token?: string;
1262
+ /** Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). */
1263
+ 'options.requestedPolicyVersion'?: number;
1264
+ /** Returns response with indentations and line breaks. */
1265
+ prettyPrint?: boolean;
1266
+ /** 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. */
1267
+ quotaUser?: string;
1268
+ /** REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1269
+ resource: string;
1270
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1271
+ upload_protocol?: string;
1272
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1273
+ uploadType?: string;
1274
+ }): Request<Policy>;
1275
+ /** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
1276
+ setIamPolicy(
1277
+ request: {
1278
+ /** V1 error format. */
1279
+ '$.xgafv'?: string;
1280
+ /** OAuth access token. */
1281
+ access_token?: string;
1282
+ /** Data format for response. */
1283
+ alt?: string;
1284
+ /** JSONP */
1285
+ callback?: string;
1286
+ /** Selector specifying which fields to include in a partial response. */
1287
+ fields?: string;
1288
+ /** 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. */
1289
+ key?: string;
1290
+ /** OAuth 2.0 token for the current user. */
1291
+ oauth_token?: string;
1292
+ /** Returns response with indentations and line breaks. */
1293
+ prettyPrint?: boolean;
1294
+ /** 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. */
1295
+ quotaUser?: string;
1296
+ /** REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1297
+ resource: string;
1298
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1299
+ upload_protocol?: string;
1300
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1301
+ uploadType?: string;
1302
+ },
1303
+ body: SetIamPolicyRequest
1304
+ ): Request<Policy>;
1305
+ tables: TablesResource;
1306
+ }
1172
1307
  interface MetadataImportsResource {
1173
1308
  /** Creates a new MetadataImport in a given project and location. */
1174
1309
  create(request: {
@@ -2027,6 +2162,7 @@ declare namespace gapi.client {
2027
2162
  body: TestIamPermissionsRequest
2028
2163
  ): Request<TestIamPermissionsResponse>;
2029
2164
  backups: BackupsResource;
2165
+ databases: DatabasesResource;
2030
2166
  metadataImports: MetadataImportsResource;
2031
2167
  }
2032
2168
  interface LocationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1",
3
- "version": "0.0.20240502",
3
+ "version": "0.0.20240510",
4
4
  "description": "TypeScript typings for Dataproc Metastore API v1",
5
5
  "repository": {
6
6
  "type": "git",