Skip to content

Commit 7812264

Browse files
yoshi-automationsofisl
authored andcommitted
fix(metastore): update the API
#### metastore:v1alpha The following keys were changed: - resources.projects.resources.locations.resources.services.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.services.resources.metadataImports.methods.patch.parameters.name.description - schemas.AuxiliaryVersionConfig.properties.configOverrides.description - schemas.AuxiliaryVersionConfig.properties.version.description - schemas.Backup.properties.description.description - schemas.Backup.properties.name.description - schemas.DatabaseDump.properties.gcsUri.description - schemas.DatabaseDump.properties.sourceDatabase.description - schemas.DataplexConfig.properties.lakeResources.description - schemas.EncryptionConfig.properties.kmsKey.description - schemas.HiveMetastoreConfig.properties.auxiliaryVersions.description - schemas.HiveMetastoreConfig.properties.configOverrides.description - schemas.HiveMetastoreConfig.properties.endpointProtocol.description - schemas.HiveMetastoreConfig.properties.kerberosConfig.description - schemas.KerberosConfig.properties.keytab.description - schemas.KerberosConfig.properties.krb5ConfigGcsUri.description - schemas.KerberosConfig.properties.principal.description - schemas.MaintenanceWindow.properties.dayOfWeek.description - schemas.MaintenanceWindow.properties.hourOfDay.description - schemas.MetadataImport.properties.description.description - schemas.MetadataImport.properties.name.description - schemas.MetadataIntegration.properties.dataplexConfig.description - schemas.NetworkConfig.properties.customRoutesEnabled.description - schemas.OperationMetadata.properties.requestedCancellation.description - schemas.RestoreServiceRequest.description - schemas.Secret.properties.cloudSecret.description - schemas.Service.properties.maintenanceWindow.description - schemas.Service.properties.name.description - schemas.Service.properties.networkConfig.description - schemas.Service.properties.port.description - schemas.Service.properties.scalingConfig.description - schemas.Service.properties.telemetryConfig.description - schemas.Service.properties.tier.description - schemas.TelemetryConfig.properties.logFormat.description #### metastore:v1beta The following keys were changed: - resources.projects.resources.locations.resources.services.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.services.resources.metadataImports.methods.patch.parameters.name.description - schemas.AuxiliaryVersionConfig.properties.configOverrides.description - schemas.AuxiliaryVersionConfig.properties.version.description - schemas.Backup.properties.description.description - schemas.Backup.properties.name.description - schemas.DatabaseDump.properties.gcsUri.description - schemas.DatabaseDump.properties.sourceDatabase.description - schemas.DataplexConfig.properties.lakeResources.description - schemas.EncryptionConfig.properties.kmsKey.description - schemas.HiveMetastoreConfig.properties.auxiliaryVersions.description - schemas.HiveMetastoreConfig.properties.configOverrides.description - schemas.HiveMetastoreConfig.properties.endpointProtocol.description - schemas.HiveMetastoreConfig.properties.kerberosConfig.description - schemas.KerberosConfig.properties.keytab.description - schemas.KerberosConfig.properties.krb5ConfigGcsUri.description - schemas.KerberosConfig.properties.principal.description - schemas.MaintenanceWindow.properties.dayOfWeek.description - schemas.MaintenanceWindow.properties.hourOfDay.description - schemas.MetadataImport.properties.description.description - schemas.MetadataImport.properties.name.description - schemas.MetadataIntegration.properties.dataplexConfig.description - schemas.NetworkConfig.properties.customRoutesEnabled.description - schemas.OperationMetadata.properties.requestedCancellation.description - schemas.RestoreServiceRequest.description - schemas.Secret.properties.cloudSecret.description - schemas.Service.properties.maintenanceWindow.description - schemas.Service.properties.name.description - schemas.Service.properties.networkConfig.description - schemas.Service.properties.port.description - schemas.Service.properties.scalingConfig.description - schemas.Service.properties.telemetryConfig.description - schemas.Service.properties.tier.description - schemas.TelemetryConfig.properties.logFormat.description #### metastore:v1 The following keys were changed: - resources.projects.resources.locations.resources.services.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.services.resources.metadataImports.methods.patch.parameters.name.description - schemas.AuxiliaryVersionConfig.properties.configOverrides.description - schemas.AuxiliaryVersionConfig.properties.version.description - schemas.Backup.properties.description.description - schemas.Backup.properties.name.description - schemas.DatabaseDump.properties.gcsUri.description - schemas.DatabaseDump.properties.sourceDatabase.description - schemas.EncryptionConfig.properties.kmsKey.description - schemas.HiveMetastoreConfig.properties.auxiliaryVersions.description - schemas.HiveMetastoreConfig.properties.configOverrides.description - schemas.HiveMetastoreConfig.properties.endpointProtocol.description - schemas.HiveMetastoreConfig.properties.kerberosConfig.description - schemas.KerberosConfig.properties.keytab.description - schemas.KerberosConfig.properties.krb5ConfigGcsUri.description - schemas.KerberosConfig.properties.principal.description - schemas.MaintenanceWindow.properties.dayOfWeek.description - schemas.MaintenanceWindow.properties.hourOfDay.description - schemas.MetadataImport.properties.description.description - schemas.MetadataImport.properties.name.description - schemas.OperationMetadata.properties.requestedCancellation.description - schemas.RestoreServiceRequest.description - schemas.Secret.properties.cloudSecret.description - schemas.Service.properties.maintenanceWindow.description - schemas.Service.properties.name.description - schemas.Service.properties.networkConfig.description - schemas.Service.properties.port.description - schemas.Service.properties.scalingConfig.description - schemas.Service.properties.telemetryConfig.description - schemas.Service.properties.tier.description - schemas.TelemetryConfig.properties.logFormat.description
1 parent 1f48351 commit 7812264

File tree

13 files changed

+16794
-202
lines changed

13 files changed

+16794
-202
lines changed

‎discovery/metastore-v1.json

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

‎discovery/metastore-v1alpha.json

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

‎discovery/metastore-v1beta.json

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

‎discovery/metastore-v2.json

Lines changed: 1813 additions & 0 deletions
Large diffs are not rendered by default.

‎discovery/metastore-v2alpha.json

Lines changed: 2313 additions & 0 deletions
Large diffs are not rendered by default.

‎discovery/metastore-v2beta.json

Lines changed: 2313 additions & 0 deletions
Large diffs are not rendered by default.

‎src/apis/metastore/index.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
1717
import {metastore_v1} from './v1';
1818
import {metastore_v1alpha} from './v1alpha';
1919
import {metastore_v1beta} from './v1beta';
20+
import {metastore_v2} from './v2';
21+
import {metastore_v2alpha} from './v2alpha';
22+
import {metastore_v2beta} from './v2beta';
2023

2124
export const VERSIONS = {
2225
v1: metastore_v1.Metastore,
2326
v1alpha: metastore_v1alpha.Metastore,
2427
v1beta: metastore_v1beta.Metastore,
28+
v2: metastore_v2.Metastore,
29+
v2alpha: metastore_v2alpha.Metastore,
30+
v2beta: metastore_v2beta.Metastore,
2531
};
2632

2733
export function metastore(version: 'v1'): metastore_v1.Metastore;
@@ -36,11 +42,26 @@ export function metastore(version: 'v1beta'): metastore_v1beta.Metastore;
3642
export function metastore(
3743
options: metastore_v1beta.Options
3844
): metastore_v1beta.Metastore;
45+
export function metastore(version: 'v2'): metastore_v2.Metastore;
46+
export function metastore(
47+
options: metastore_v2.Options
48+
): metastore_v2.Metastore;
49+
export function metastore(version: 'v2alpha'): metastore_v2alpha.Metastore;
50+
export function metastore(
51+
options: metastore_v2alpha.Options
52+
): metastore_v2alpha.Metastore;
53+
export function metastore(version: 'v2beta'): metastore_v2beta.Metastore;
54+
export function metastore(
55+
options: metastore_v2beta.Options
56+
): metastore_v2beta.Metastore;
3957
export function metastore<
4058
T =
4159
| metastore_v1.Metastore
4260
| metastore_v1alpha.Metastore
43-
| metastore_v1beta.Metastore,
61+
| metastore_v1beta.Metastore
62+
| metastore_v2.Metastore
63+
| metastore_v2alpha.Metastore
64+
| metastore_v2beta.Metastore,
4465
>(
4566
this: GoogleConfigurable,
4667
versionOrOptions:
@@ -50,6 +71,12 @@ export function metastore<
5071
| metastore_v1alpha.Options
5172
| 'v1beta'
5273
| metastore_v1beta.Options
74+
| 'v2'
75+
| metastore_v2.Options
76+
| 'v2alpha'
77+
| metastore_v2alpha.Options
78+
| 'v2beta'
79+
| metastore_v2beta.Options
5380
) {
5481
return getAPI<T>('metastore', versionOrOptions, VERSIONS, this);
5582
}
@@ -59,6 +86,9 @@ export {auth};
5986
export {metastore_v1};
6087
export {metastore_v1alpha};
6188
export {metastore_v1beta};
89+
export {metastore_v2};
90+
export {metastore_v2alpha};
91+
export {metastore_v2beta};
6292
export {
6393
AuthPlus,
6494
GlobalOptions,

‎src/apis/metastore/v1.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ export namespace metastore_v1 {
206206
*/
207207
export interface Schema$AuxiliaryVersionConfig {
208208
/**
209-
* 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 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.
209+
* Optional. 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 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.
210210
*/
211211
configOverrides?: {[key: string]: string} | null;
212212
/**
213213
* Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
214214
*/
215215
networkConfig?: Schema$NetworkConfig;
216216
/**
217-
* The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.
217+
* Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.
218218
*/
219219
version?: string | null;
220220
}
@@ -240,15 +240,15 @@ export namespace metastore_v1 {
240240
*/
241241
createTime?: string | null;
242242
/**
243-
* The description of the backup.
243+
* Optional. The description of the backup.
244244
*/
245245
description?: string | null;
246246
/**
247247
* Output only. The time when the backup finished creating.
248248
*/
249249
endTime?: string | null;
250250
/**
251-
* Immutable. The relative resource name of the backup, in the following form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}
251+
* Immutable. Identifier. The relative resource name of the backup, in the following form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}
252252
*/
253253
name?: string | null;
254254
/**
@@ -419,11 +419,11 @@ export namespace metastore_v1 {
419419
*/
420420
databaseType?: string | null;
421421
/**
422-
* A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
422+
* Optional. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
423423
*/
424424
gcsUri?: string | null;
425425
/**
426-
* The name of the source database.
426+
* Optional. The name of the source database.
427427
*/
428428
sourceDatabase?: string | null;
429429
/**
@@ -449,7 +449,7 @@ export namespace metastore_v1 {
449449
*/
450450
export interface Schema$EncryptionConfig {
451451
/**
452-
* The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number\}/locations/{location_id\}/keyRings/{key_ring_id\}/cryptoKeys/{crypto_key_id\}.
452+
* Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number\}/locations/{location_id\}/keyRings/{key_ring_id\}/cryptoKeys/{crypto_key_id\}.
453453
*/
454454
kmsKey?: string | null;
455455
}
@@ -550,19 +550,19 @@ export namespace metastore_v1 {
550550
*/
551551
export interface Schema$HiveMetastoreConfig {
552552
/**
553-
* 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 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 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.
553+
* Optional. 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 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 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.
554554
*/
555555
auxiliaryVersions?: {[key: string]: Schema$AuxiliaryVersionConfig} | null;
556556
/**
557-
* 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 overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.
557+
* Optional. 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 overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.
558558
*/
559559
configOverrides?: {[key: string]: string} | null;
560560
/**
561-
* The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
561+
* Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
562562
*/
563563
endpointProtocol?: string | null;
564564
/**
565-
* Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field's path (hive_metastore_config.kerberos_config) in the request's update_mask while omitting this field from the request's service.
565+
* Optional. Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field's path (hive_metastore_config.kerberos_config) in the request's update_mask while omitting this field from the request's service.
566566
*/
567567
kerberosConfig?: Schema$KerberosConfig;
568568
/**
@@ -588,15 +588,15 @@ export namespace metastore_v1 {
588588
*/
589589
export interface Schema$KerberosConfig {
590590
/**
591-
* A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
591+
* Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
592592
*/
593593
keytab?: Schema$Secret;
594594
/**
595-
* A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name\}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
595+
* Optional. A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name\}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
596596
*/
597597
krb5ConfigGcsUri?: string | null;
598598
/**
599-
* A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
599+
* Optional. A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
600600
*/
601601
principal?: string | null;
602602
}
@@ -792,11 +792,11 @@ export namespace metastore_v1 {
792792
*/
793793
export interface Schema$MaintenanceWindow {
794794
/**
795-
* The day of week, when the window starts.
795+
* Optional. The day of week, when the window starts.
796796
*/
797797
dayOfWeek?: string | null;
798798
/**
799-
* The hour of day (0-23) when the window starts.
799+
* Optional. The hour of day (0-23) when the window starts.
800800
*/
801801
hourOfDay?: number | null;
802802
}
@@ -838,15 +838,15 @@ export namespace metastore_v1 {
838838
*/
839839
databaseDump?: Schema$DatabaseDump;
840840
/**
841-
* The description of the metadata import.
841+
* Optional. The description of the metadata import.
842842
*/
843843
description?: string | null;
844844
/**
845845
* Output only. The time when the metadata import finished.
846846
*/
847847
endTime?: string | null;
848848
/**
849-
* Immutable. The relative resource name of the metadata import, of the form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/metadataImports/{metadata_import_id\}.
849+
* Immutable. Identifier. The relative resource name of the metadata import, of the form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/metadataImports/{metadata_import_id\}.
850850
*/
851851
name?: string | null;
852852
/**
@@ -994,7 +994,7 @@ export namespace metastore_v1 {
994994
*/
995995
endTime?: string | null;
996996
/**
997-
* Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
997+
* Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
998998
*/
999999
requestedCancellation?: boolean | null;
10001000
/**
@@ -1083,7 +1083,7 @@ export namespace metastore_v1 {
10831083
type?: string | null;
10841084
}
10851085
/**
1086-
* Request message for DataprocMetastore.Restore.
1086+
* Request message for DataprocMetastore.RestoreService.
10871087
*/
10881088
export interface Schema$RestoreServiceRequest {
10891089
/**
@@ -1154,7 +1154,7 @@ export namespace metastore_v1 {
11541154
*/
11551155
export interface Schema$Secret {
11561156
/**
1157-
* The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number\}/secrets/{secret_id\}/versions/{version_id\}.
1157+
* Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number\}/secrets/{secret_id\}/versions/{version_id\}.
11581158
*/
11591159
cloudSecret?: string | null;
11601160
}
@@ -1195,7 +1195,7 @@ export namespace metastore_v1 {
11951195
*/
11961196
labels?: {[key: string]: string} | null;
11971197
/**
1198-
* The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
1198+
* Optional. The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
11991199
*/
12001200
maintenanceWindow?: Schema$MaintenanceWindow;
12011201
/**
@@ -1207,27 +1207,27 @@ export namespace metastore_v1 {
12071207
*/
12081208
metadataManagementActivity?: Schema$MetadataManagementActivity;
12091209
/**
1210-
* Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
1210+
* Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
12111211
*/
12121212
name?: string | null;
12131213
/**
12141214
* Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number\}/global/networks/{network_id\}.
12151215
*/
12161216
network?: string | null;
12171217
/**
1218-
* The configuration specifying the network settings for the Dataproc Metastore service.
1218+
* Optional. The configuration specifying the network settings for the Dataproc Metastore service.
12191219
*/
12201220
networkConfig?: Schema$NetworkConfig;
12211221
/**
1222-
* The TCP port at which the metastore service is reached. Default: 9083.
1222+
* Optional. The TCP port at which the metastore service is reached. Default: 9083.
12231223
*/
12241224
port?: number | null;
12251225
/**
12261226
* Immutable. The release channel of the service. If unspecified, defaults to STABLE.
12271227
*/
12281228
releaseChannel?: string | null;
12291229
/**
1230-
* Scaling configuration of the metastore service.
1230+
* Optional. Scaling configuration of the metastore service.
12311231
*/
12321232
scalingConfig?: Schema$ScalingConfig;
12331233
/**
@@ -1243,11 +1243,11 @@ export namespace metastore_v1 {
12431243
*/
12441244
stateMessage?: string | null;
12451245
/**
1246-
* The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
1246+
* Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
12471247
*/
12481248
telemetryConfig?: Schema$TelemetryConfig;
12491249
/**
1250-
* The tier of the service.
1250+
* Optional. The tier of the service.
12511251
*/
12521252
tier?: string | null;
12531253
/**
@@ -1307,7 +1307,7 @@ export namespace metastore_v1 {
13071307
*/
13081308
export interface Schema$TelemetryConfig {
13091309
/**
1310-
* The output format of the Dataproc Metastore service's logs.
1310+
* Optional. The output format of the Dataproc Metastore service's logs.
13111311
*/
13121312
logFormat?: string | null;
13131313
}
@@ -4476,7 +4476,7 @@ export namespace metastore_v1 {
44764476
export interface Params$Resource$Projects$Locations$Services$Patch
44774477
extends StandardParameters {
44784478
/**
4479-
* Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
4479+
* Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
44804480
*/
44814481
name?: string;
44824482
/**
@@ -6014,7 +6014,7 @@ export namespace metastore_v1 {
60146014
export interface Params$Resource$Projects$Locations$Services$Metadataimports$Patch
60156015
extends StandardParameters {
60166016
/**
6017-
* Immutable. The relative resource name of the metadata import, of the form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/metadataImports/{metadata_import_id\}.
6017+
* Immutable. Identifier. The relative resource name of the metadata import, of the form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/metadataImports/{metadata_import_id\}.
60186018
*/
60196019
name?: string;
60206020
/**

0 commit comments

Comments
 (0)