Skip to content

Commit

Permalink
fix(metastore): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 29, 2025
1 parent 1f48351 commit 7812264
Show file tree
Hide file tree
Showing 13 changed files with 16,794 additions and 202 deletions.
64 changes: 32 additions & 32 deletions discovery/metastore-v1.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions discovery/metastore-v1alpha.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions discovery/metastore-v1beta.json

Large diffs are not rendered by default.

1,813 changes: 1,813 additions & 0 deletions discovery/metastore-v2.json

Large diffs are not rendered by default.

2,313 changes: 2,313 additions & 0 deletions discovery/metastore-v2alpha.json

Large diffs are not rendered by default.

2,313 changes: 2,313 additions & 0 deletions discovery/metastore-v2beta.json

Large diffs are not rendered by default.

32 changes: 31 additions & 1 deletion src/apis/metastore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
import {metastore_v1} from './v1';
import {metastore_v1alpha} from './v1alpha';
import {metastore_v1beta} from './v1beta';
import {metastore_v2} from './v2';
import {metastore_v2alpha} from './v2alpha';
import {metastore_v2beta} from './v2beta';

export const VERSIONS = {
v1: metastore_v1.Metastore,
v1alpha: metastore_v1alpha.Metastore,
v1beta: metastore_v1beta.Metastore,
v2: metastore_v2.Metastore,
v2alpha: metastore_v2alpha.Metastore,
v2beta: metastore_v2beta.Metastore,
};

export function metastore(version: 'v1'): metastore_v1.Metastore;
Expand All @@ -36,11 +42,26 @@ export function metastore(version: 'v1beta'): metastore_v1beta.Metastore;
export function metastore(
options: metastore_v1beta.Options
): metastore_v1beta.Metastore;
export function metastore(version: 'v2'): metastore_v2.Metastore;
export function metastore(
options: metastore_v2.Options
): metastore_v2.Metastore;
export function metastore(version: 'v2alpha'): metastore_v2alpha.Metastore;
export function metastore(
options: metastore_v2alpha.Options
): metastore_v2alpha.Metastore;
export function metastore(version: 'v2beta'): metastore_v2beta.Metastore;
export function metastore(
options: metastore_v2beta.Options
): metastore_v2beta.Metastore;
export function metastore<
T =
| metastore_v1.Metastore
| metastore_v1alpha.Metastore
| metastore_v1beta.Metastore,
| metastore_v1beta.Metastore
| metastore_v2.Metastore
| metastore_v2alpha.Metastore
| metastore_v2beta.Metastore,
>(
this: GoogleConfigurable,
versionOrOptions:
Expand All @@ -50,6 +71,12 @@ export function metastore<
| metastore_v1alpha.Options
| 'v1beta'
| metastore_v1beta.Options
| 'v2'
| metastore_v2.Options
| 'v2alpha'
| metastore_v2alpha.Options
| 'v2beta'
| metastore_v2beta.Options
) {
return getAPI<T>('metastore', versionOrOptions, VERSIONS, this);
}
Expand All @@ -59,6 +86,9 @@ export {auth};
export {metastore_v1};
export {metastore_v1alpha};
export {metastore_v1beta};
export {metastore_v2};
export {metastore_v2alpha};
export {metastore_v2beta};
export {
AuthPlus,
GlobalOptions,
Expand Down
62 changes: 31 additions & 31 deletions src/apis/metastore/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ export namespace metastore_v1 {
*/
export interface Schema$AuxiliaryVersionConfig {
/**
* 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.
* 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.
*/
configOverrides?: {[key: string]: string} | null;
/**
* Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
*/
networkConfig?: Schema$NetworkConfig;
/**
* The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.
* Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.
*/
version?: string | null;
}
Expand All @@ -240,15 +240,15 @@ export namespace metastore_v1 {
*/
createTime?: string | null;
/**
* The description of the backup.
* Optional. The description of the backup.
*/
description?: string | null;
/**
* Output only. The time when the backup finished creating.
*/
endTime?: string | null;
/**
* Immutable. The relative resource name of the backup, in the following form:projects/{project_number\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}
* 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\}
*/
name?: string | null;
/**
Expand Down Expand Up @@ -419,11 +419,11 @@ export namespace metastore_v1 {
*/
databaseType?: string | null;
/**
* A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
* Optional. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
*/
gcsUri?: string | null;
/**
* The name of the source database.
* Optional. The name of the source database.
*/
sourceDatabase?: string | null;
/**
Expand All @@ -449,7 +449,7 @@ export namespace metastore_v1 {
*/
export interface Schema$EncryptionConfig {
/**
* 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\}.
* 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\}.
*/
kmsKey?: string | null;
}
Expand Down Expand Up @@ -550,19 +550,19 @@ export namespace metastore_v1 {
*/
export interface Schema$HiveMetastoreConfig {
/**
* 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.
* 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.
*/
auxiliaryVersions?: {[key: string]: Schema$AuxiliaryVersionConfig} | null;
/**
* 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.
* 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.
*/
configOverrides?: {[key: string]: string} | null;
/**
* The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
* Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
*/
endpointProtocol?: string | null;
/**
* 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.
* 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.
*/
kerberosConfig?: Schema$KerberosConfig;
/**
Expand All @@ -588,15 +588,15 @@ export namespace metastore_v1 {
*/
export interface Schema$KerberosConfig {
/**
* A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
* Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
*/
keytab?: Schema$Secret;
/**
* 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.
* 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.
*/
krb5ConfigGcsUri?: string | null;
/**
* 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.
* 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.
*/
principal?: string | null;
}
Expand Down Expand Up @@ -792,11 +792,11 @@ export namespace metastore_v1 {
*/
export interface Schema$MaintenanceWindow {
/**
* The day of week, when the window starts.
* Optional. The day of week, when the window starts.
*/
dayOfWeek?: string | null;
/**
* The hour of day (0-23) when the window starts.
* Optional. The hour of day (0-23) when the window starts.
*/
hourOfDay?: number | null;
}
Expand Down Expand Up @@ -838,15 +838,15 @@ export namespace metastore_v1 {
*/
databaseDump?: Schema$DatabaseDump;
/**
* The description of the metadata import.
* Optional. The description of the metadata import.
*/
description?: string | null;
/**
* Output only. The time when the metadata import finished.
*/
endTime?: string | null;
/**
* 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\}.
* 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\}.
*/
name?: string | null;
/**
Expand Down Expand Up @@ -994,7 +994,7 @@ export namespace metastore_v1 {
*/
endTime?: string | null;
/**
* 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.
* 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.
*/
requestedCancellation?: boolean | null;
/**
Expand Down Expand Up @@ -1083,7 +1083,7 @@ export namespace metastore_v1 {
type?: string | null;
}
/**
* Request message for DataprocMetastore.Restore.
* Request message for DataprocMetastore.RestoreService.
*/
export interface Schema$RestoreServiceRequest {
/**
Expand Down Expand Up @@ -1154,7 +1154,7 @@ export namespace metastore_v1 {
*/
export interface Schema$Secret {
/**
* The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number\}/secrets/{secret_id\}/versions/{version_id\}.
* Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number\}/secrets/{secret_id\}/versions/{version_id\}.
*/
cloudSecret?: string | null;
}
Expand Down Expand Up @@ -1195,7 +1195,7 @@ export namespace metastore_v1 {
*/
labels?: {[key: string]: string} | null;
/**
* 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.
* 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.
*/
maintenanceWindow?: Schema$MaintenanceWindow;
/**
Expand All @@ -1207,27 +1207,27 @@ export namespace metastore_v1 {
*/
metadataManagementActivity?: Schema$MetadataManagementActivity;
/**
* Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
* Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
*/
name?: string | null;
/**
* 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\}.
*/
network?: string | null;
/**
* The configuration specifying the network settings for the Dataproc Metastore service.
* Optional. The configuration specifying the network settings for the Dataproc Metastore service.
*/
networkConfig?: Schema$NetworkConfig;
/**
* The TCP port at which the metastore service is reached. Default: 9083.
* Optional. The TCP port at which the metastore service is reached. Default: 9083.
*/
port?: number | null;
/**
* Immutable. The release channel of the service. If unspecified, defaults to STABLE.
*/
releaseChannel?: string | null;
/**
* Scaling configuration of the metastore service.
* Optional. Scaling configuration of the metastore service.
*/
scalingConfig?: Schema$ScalingConfig;
/**
Expand All @@ -1243,11 +1243,11 @@ export namespace metastore_v1 {
*/
stateMessage?: string | null;
/**
* The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
* Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
*/
telemetryConfig?: Schema$TelemetryConfig;
/**
* The tier of the service.
* Optional. The tier of the service.
*/
tier?: string | null;
/**
Expand Down Expand Up @@ -1307,7 +1307,7 @@ export namespace metastore_v1 {
*/
export interface Schema$TelemetryConfig {
/**
* The output format of the Dataproc Metastore service's logs.
* Optional. The output format of the Dataproc Metastore service's logs.
*/
logFormat?: string | null;
}
Expand Down Expand Up @@ -4476,7 +4476,7 @@ export namespace metastore_v1 {
export interface Params$Resource$Projects$Locations$Services$Patch
extends StandardParameters {
/**
* Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
* Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number\}/locations/{location_id\}/services/{service_id\}.
*/
name?: string;
/**
Expand Down Expand Up @@ -6014,7 +6014,7 @@ export namespace metastore_v1 {
export interface Params$Resource$Projects$Locations$Services$Metadataimports$Patch
extends StandardParameters {
/**
* 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\}.
* 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\}.
*/
name?: string;
/**
Expand Down
Loading

0 comments on commit 7812264

Please sign in to comment.