@maxim_mazurok/gapi.client.metastore-v1 0.0.20230215 → 0.0.20230305

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 +27 -7
  2. package/package.json +1 -1
  3. package/tests.ts +62 -7
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: 20230215
12
+ // Revision: 20230305
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -34,6 +34,17 @@ declare namespace gapi.client {
34
34
  /** The log type that this config enables. */
35
35
  logType?: string;
36
36
  }
37
+ interface AuxiliaryVersionConfig {
38
+ /**
39
+ * A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version's overrides. If
40
+ * keys are present in both the auxiliary version's overrides and the primary version's overrides, the value from the auxiliary version's overrides takes precedence.
41
+ */
42
+ configOverrides?: { [P in string]: string };
43
+ /** Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service. */
44
+ networkConfig?: NetworkConfig;
45
+ /** The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version. */
46
+ version?: string;
47
+ }
37
48
  interface BackendMetastore {
38
49
  /** The type of the backend metastore. */
39
50
  metastoreType?: string;
@@ -169,6 +180,12 @@ declare namespace gapi.client {
169
180
  version?: string;
170
181
  }
171
182
  interface HiveMetastoreConfig {
183
+ /**
184
+ * A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All
185
+ * auxiliary versions must be less than the service's primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first
186
+ * character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
187
+ */
188
+ auxiliaryVersions?: { [P in string]: AuxiliaryVersionConfig };
172
189
  /**
173
190
  * A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be
174
191
  * overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.
@@ -411,6 +428,12 @@ declare namespace gapi.client {
411
428
  /** Optional. The type of restore. If unspecified, defaults to METADATA_ONLY. */
412
429
  restoreType?: string;
413
430
  }
431
+ interface ScalingConfig {
432
+ /** An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) */
433
+ instanceSize?: string;
434
+ /** Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0. */
435
+ scalingFactor?: number;
436
+ }
414
437
  interface Secret {
415
438
  /** The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}. */
416
439
  cloudSecret?: string;
@@ -450,6 +473,8 @@ declare namespace gapi.client {
450
473
  port?: number;
451
474
  /** Immutable. The release channel of the service. If unspecified, defaults to STABLE. */
452
475
  releaseChannel?: string;
476
+ /** Scaling configuration of the metastore service. */
477
+ scalingConfig?: ScalingConfig;
453
478
  /** Output only. The current state of the metastore service. */
454
479
  state?: string;
455
480
  /** Output only. Additional information about the current state of the metastore service, if available. */
@@ -993,12 +1018,7 @@ declare namespace gapi.client {
993
1018
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
994
1019
  uploadType?: string;
995
1020
  }): Request<Operation>;
996
- /**
997
- * 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
998
- * 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
999
- * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1000
- * ensure the name binding is the parent resource, without the operations collection id.
1001
- */
1021
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
1002
1022
  list(request?: {
1003
1023
  /** V1 error format. */
1004
1024
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1",
3
- "version": "0.0.20230215",
3
+ "version": "0.0.20230305",
4
4
  "description": "TypeScript typings for Dataproc Metastore 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: 20230215
6
+ // Revision: 20230305
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -179,12 +179,7 @@ gapi.load('client', async () => {
179
179
  await gapi.client.metastore.projects.locations.operations.get({
180
180
  name: "Test string",
181
181
  });
182
- /**
183
- * 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
184
- * 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"
185
- * 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
186
- * resource, without the operations collection id.
187
- */
182
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
188
183
  await gapi.client.metastore.projects.locations.operations.list({
189
184
  filter: "Test string",
190
185
  name: "Test string",
@@ -205,6 +200,22 @@ gapi.load('client', async () => {
205
200
  },
206
201
  endpointUri: "Test string",
207
202
  hiveMetastoreConfig: {
203
+ auxiliaryVersions: {
204
+ A: {
205
+ configOverrides: {
206
+ A: "Test string"
207
+ },
208
+ networkConfig: {
209
+ consumers: [
210
+ {
211
+ endpointUri: "Test string",
212
+ subnetwork: "Test string",
213
+ }
214
+ ],
215
+ },
216
+ version: "Test string",
217
+ }
218
+ },
208
219
  configOverrides: {
209
220
  A: "Test string"
210
221
  },
@@ -257,6 +268,10 @@ gapi.load('client', async () => {
257
268
  },
258
269
  port: 42,
259
270
  releaseChannel: "Test string",
271
+ scalingConfig: {
272
+ instanceSize: "Test string",
273
+ scalingFactor: 42,
274
+ },
260
275
  state: "Test string",
261
276
  stateMessage: "Test string",
262
277
  telemetryConfig: {
@@ -310,6 +325,22 @@ gapi.load('client', async () => {
310
325
  },
311
326
  endpointUri: "Test string",
312
327
  hiveMetastoreConfig: {
328
+ auxiliaryVersions: {
329
+ A: {
330
+ configOverrides: {
331
+ A: "Test string"
332
+ },
333
+ networkConfig: {
334
+ consumers: [
335
+ {
336
+ endpointUri: "Test string",
337
+ subnetwork: "Test string",
338
+ }
339
+ ],
340
+ },
341
+ version: "Test string",
342
+ }
343
+ },
313
344
  configOverrides: {
314
345
  A: "Test string"
315
346
  },
@@ -362,6 +393,10 @@ gapi.load('client', async () => {
362
393
  },
363
394
  port: 42,
364
395
  releaseChannel: "Test string",
396
+ scalingConfig: {
397
+ instanceSize: "Test string",
398
+ scalingFactor: 42,
399
+ },
365
400
  state: "Test string",
366
401
  stateMessage: "Test string",
367
402
  telemetryConfig: {
@@ -449,6 +484,22 @@ gapi.load('client', async () => {
449
484
  },
450
485
  endpointUri: "Test string",
451
486
  hiveMetastoreConfig: {
487
+ auxiliaryVersions: {
488
+ A: {
489
+ configOverrides: {
490
+ A: "Test string"
491
+ },
492
+ networkConfig: {
493
+ consumers: [
494
+ {
495
+ endpointUri: "Test string",
496
+ subnetwork: "Test string",
497
+ }
498
+ ],
499
+ },
500
+ version: "Test string",
501
+ }
502
+ },
452
503
  configOverrides: {
453
504
  A: "Test string"
454
505
  },
@@ -501,6 +552,10 @@ gapi.load('client', async () => {
501
552
  },
502
553
  port: 42,
503
554
  releaseChannel: "Test string",
555
+ scalingConfig: {
556
+ instanceSize: "Test string",
557
+ scalingFactor: 42,
558
+ },
504
559
  state: "Test string",
505
560
  stateMessage: "Test string",
506
561
  telemetryConfig: {