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

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 +26 -1
  2. package/package.json +1 -1
  3. package/tests.ts +61 -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: 20230202
12
+ // Revision: 20230228
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1",
3
- "version": "0.0.20230202",
3
+ "version": "0.0.20230228",
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: 20230202
6
+ // Revision: 20230228
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -205,6 +205,22 @@ gapi.load('client', async () => {
205
205
  },
206
206
  endpointUri: "Test string",
207
207
  hiveMetastoreConfig: {
208
+ auxiliaryVersions: {
209
+ A: {
210
+ configOverrides: {
211
+ A: "Test string"
212
+ },
213
+ networkConfig: {
214
+ consumers: [
215
+ {
216
+ endpointUri: "Test string",
217
+ subnetwork: "Test string",
218
+ }
219
+ ],
220
+ },
221
+ version: "Test string",
222
+ }
223
+ },
208
224
  configOverrides: {
209
225
  A: "Test string"
210
226
  },
@@ -257,6 +273,10 @@ gapi.load('client', async () => {
257
273
  },
258
274
  port: 42,
259
275
  releaseChannel: "Test string",
276
+ scalingConfig: {
277
+ instanceSize: "Test string",
278
+ scalingFactor: 42,
279
+ },
260
280
  state: "Test string",
261
281
  stateMessage: "Test string",
262
282
  telemetryConfig: {
@@ -310,6 +330,22 @@ gapi.load('client', async () => {
310
330
  },
311
331
  endpointUri: "Test string",
312
332
  hiveMetastoreConfig: {
333
+ auxiliaryVersions: {
334
+ A: {
335
+ configOverrides: {
336
+ A: "Test string"
337
+ },
338
+ networkConfig: {
339
+ consumers: [
340
+ {
341
+ endpointUri: "Test string",
342
+ subnetwork: "Test string",
343
+ }
344
+ ],
345
+ },
346
+ version: "Test string",
347
+ }
348
+ },
313
349
  configOverrides: {
314
350
  A: "Test string"
315
351
  },
@@ -362,6 +398,10 @@ gapi.load('client', async () => {
362
398
  },
363
399
  port: 42,
364
400
  releaseChannel: "Test string",
401
+ scalingConfig: {
402
+ instanceSize: "Test string",
403
+ scalingFactor: 42,
404
+ },
365
405
  state: "Test string",
366
406
  stateMessage: "Test string",
367
407
  telemetryConfig: {
@@ -449,6 +489,22 @@ gapi.load('client', async () => {
449
489
  },
450
490
  endpointUri: "Test string",
451
491
  hiveMetastoreConfig: {
492
+ auxiliaryVersions: {
493
+ A: {
494
+ configOverrides: {
495
+ A: "Test string"
496
+ },
497
+ networkConfig: {
498
+ consumers: [
499
+ {
500
+ endpointUri: "Test string",
501
+ subnetwork: "Test string",
502
+ }
503
+ ],
504
+ },
505
+ version: "Test string",
506
+ }
507
+ },
452
508
  configOverrides: {
453
509
  A: "Test string"
454
510
  },
@@ -501,6 +557,10 @@ gapi.load('client', async () => {
501
557
  },
502
558
  port: 42,
503
559
  releaseChannel: "Test string",
560
+ scalingConfig: {
561
+ instanceSize: "Test string",
562
+ scalingFactor: 42,
563
+ },
504
564
  state: "Test string",
505
565
  stateMessage: "Test string",
506
566
  telemetryConfig: {