Skip to content

Commit

Permalink
feat(metastore): update the API
Browse files Browse the repository at this point in the history
#### metastore:v1alpha

The following keys were added:
- schemas.Restore.properties.backupLocation.description
- schemas.Restore.properties.backupLocation.type

The following keys were changed:
- schemas.DataCatalogConfig.properties.enabled.description
- schemas.MetadataIntegration.properties.dataCatalogConfig.description
- schemas.Service.properties.metadataIntegration.description

#### metastore:v1beta

The following keys were added:
- schemas.Restore.properties.backupLocation.description
- schemas.Restore.properties.backupLocation.type

The following keys were changed:
- schemas.DataCatalogConfig.properties.enabled.description
- schemas.MetadataIntegration.properties.dataCatalogConfig.description
- schemas.Service.properties.metadataIntegration.description

#### metastore:v1

The following keys were added:
- schemas.DataCatalogConfig.description
- schemas.DataCatalogConfig.id
- schemas.DataCatalogConfig.properties.enabled.description
- schemas.DataCatalogConfig.properties.enabled.type
- schemas.DataCatalogConfig.type
- schemas.MetadataIntegration.description
- schemas.MetadataIntegration.id
- schemas.MetadataIntegration.properties.dataCatalogConfig.$ref
- schemas.MetadataIntegration.properties.dataCatalogConfig.description
- schemas.MetadataIntegration.type
- schemas.Restore.properties.backupLocation.description
- schemas.Restore.properties.backupLocation.type
- schemas.Service.properties.metadataIntegration.$ref
- schemas.Service.properties.metadataIntegration.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent a39d751 commit 1a19ff2
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 15 deletions.
32 changes: 31 additions & 1 deletion discovery/metastore-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@
}
}
},
"revision": "20231010",
"revision": "20231102",
"rootUrl": "https://metastore.googleapis.com/",
"schemas": {
"AlterMetadataResourceLocationRequest": {
Expand Down Expand Up @@ -1569,6 +1569,17 @@
},
"type": "object"
},
"DataCatalogConfig": {
"description": "Specifies how metastore metadata should be integrated with the Data Catalog service.",
"id": "DataCatalogConfig",
"properties": {
"enabled": {
"description": "Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.",
"type": "boolean"
}
},
"type": "object"
},
"DatabaseDump": {
"description": "A specification of the location of and metadata about a database dump from a relational database management system.",
"id": "DatabaseDump",
Expand Down Expand Up @@ -2187,6 +2198,17 @@
},
"type": "object"
},
"MetadataIntegration": {
"description": "Specifies how metastore metadata should be integrated with external services.",
"id": "MetadataIntegration",
"properties": {
"dataCatalogConfig": {
"$ref": "DataCatalogConfig",
"description": "Optional. The integration config for the Data Catalog service."
}
},
"type": "object"
},
"MetadataManagementActivity": {
"description": "The metadata management activities of the metastore service.",
"id": "MetadataManagementActivity",
Expand Down Expand Up @@ -2404,6 +2426,10 @@
"readOnly": true,
"type": "string"
},
"backupLocation": {
"description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.",
"type": "string"
},
"details": {
"description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.",
"readOnly": true,
Expand Down Expand Up @@ -2583,6 +2609,10 @@
"$ref": "MaintenanceWindow",
"description": "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."
},
"metadataIntegration": {
"$ref": "MetadataIntegration",
"description": "Optional. The setting that defines how metastore metadata should be integrated with external services and systems."
},
"metadataManagementActivity": {
"$ref": "MetadataManagementActivity",
"description": "Output only. The metadata management activities of the metastore service.",
Expand Down
12 changes: 8 additions & 4 deletions discovery/metastore-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@
}
}
},
"revision": "20231010",
"revision": "20231102",
"rootUrl": "https://metastore.googleapis.com/",
"schemas": {
"AlterMetadataResourceLocationRequest": {
Expand Down Expand Up @@ -1816,7 +1816,7 @@
"id": "DataCatalogConfig",
"properties": {
"enabled": {
"description": "Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.",
"description": "Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.",
"type": "boolean"
}
},
Expand Down Expand Up @@ -2471,7 +2471,7 @@
"properties": {
"dataCatalogConfig": {
"$ref": "DataCatalogConfig",
"description": "The integration config for the Data Catalog service."
"description": "Optional. The integration config for the Data Catalog service."
},
"dataplexConfig": {
"$ref": "DataplexConfig",
Expand Down Expand Up @@ -2723,6 +2723,10 @@
"readOnly": true,
"type": "string"
},
"backupLocation": {
"description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.",
"type": "string"
},
"details": {
"description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.",
"readOnly": true,
Expand Down Expand Up @@ -2904,7 +2908,7 @@
},
"metadataIntegration": {
"$ref": "MetadataIntegration",
"description": "The setting that defines how metastore metadata should be integrated with external services and systems."
"description": "Optional. The setting that defines how metastore metadata should be integrated with external services and systems."
},
"metadataManagementActivity": {
"$ref": "MetadataManagementActivity",
Expand Down
12 changes: 8 additions & 4 deletions discovery/metastore-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@
}
}
},
"revision": "20231010",
"revision": "20231102",
"rootUrl": "https://metastore.googleapis.com/",
"schemas": {
"AlterMetadataResourceLocationRequest": {
Expand Down Expand Up @@ -1816,7 +1816,7 @@
"id": "DataCatalogConfig",
"properties": {
"enabled": {
"description": "Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.",
"description": "Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.",
"type": "boolean"
}
},
Expand Down Expand Up @@ -2471,7 +2471,7 @@
"properties": {
"dataCatalogConfig": {
"$ref": "DataCatalogConfig",
"description": "The integration config for the Data Catalog service."
"description": "Optional. The integration config for the Data Catalog service."
},
"dataplexConfig": {
"$ref": "DataplexConfig",
Expand Down Expand Up @@ -2723,6 +2723,10 @@
"readOnly": true,
"type": "string"
},
"backupLocation": {
"description": "Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.",
"type": "string"
},
"details": {
"description": "Output only. The restore details containing the revision of the service to be restored to, in format of JSON.",
"readOnly": true,
Expand Down Expand Up @@ -2904,7 +2908,7 @@
},
"metadataIntegration": {
"$ref": "MetadataIntegration",
"description": "The setting that defines how metastore metadata should be integrated with external services and systems."
"description": "Optional. The setting that defines how metastore metadata should be integrated with external services and systems."
},
"metadataManagementActivity": {
"$ref": "MetadataManagementActivity",
Expand Down
26 changes: 26 additions & 0 deletions src/apis/metastore/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,15 @@ export namespace metastore_v1 {
*/
type?: string | null;
}
/**
* Specifies how metastore metadata should be integrated with the Data Catalog service.
*/
export interface Schema$DataCatalogConfig {
/**
* Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
*/
enabled?: boolean | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
Expand Down Expand Up @@ -652,6 +661,15 @@ export namespace metastore_v1 {
*/
updateTime?: string | null;
}
/**
* Specifies how metastore metadata should be integrated with external services.
*/
export interface Schema$MetadataIntegration {
/**
* Optional. The integration config for the Data Catalog service.
*/
dataCatalogConfig?: Schema$DataCatalogConfig;
}
/**
* The metadata management activities of the metastore service.
*/
Expand Down Expand Up @@ -809,6 +827,10 @@ export namespace metastore_v1 {
* Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}.
*/
backup?: string | null;
/**
* Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
*/
backupLocation?: string | null;
/**
* Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
*/
Expand Down Expand Up @@ -905,6 +927,10 @@ export namespace metastore_v1 {
* 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;
/**
* Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
*/
metadataIntegration?: Schema$MetadataIntegration;
/**
* Output only. The metadata management activities of the metastore service.
*/
Expand Down
10 changes: 7 additions & 3 deletions src/apis/metastore/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export namespace metastore_v1alpha {
*/
export interface Schema$DataCatalogConfig {
/**
* Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
* Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
*/
enabled?: boolean | null;
}
Expand Down Expand Up @@ -684,7 +684,7 @@ export namespace metastore_v1alpha {
*/
export interface Schema$MetadataIntegration {
/**
* The integration config for the Data Catalog service.
* Optional. The integration config for the Data Catalog service.
*/
dataCatalogConfig?: Schema$DataCatalogConfig;
/**
Expand Down Expand Up @@ -871,6 +871,10 @@ export namespace metastore_v1alpha {
* Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}.
*/
backup?: string | null;
/**
* Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
*/
backupLocation?: string | null;
/**
* Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
*/
Expand Down Expand Up @@ -968,7 +972,7 @@ export namespace metastore_v1alpha {
*/
maintenanceWindow?: Schema$MaintenanceWindow;
/**
* The setting that defines how metastore metadata should be integrated with external services and systems.
* Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
*/
metadataIntegration?: Schema$MetadataIntegration;
/**
Expand Down
10 changes: 7 additions & 3 deletions src/apis/metastore/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export namespace metastore_v1beta {
*/
export interface Schema$DataCatalogConfig {
/**
* Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
* Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
*/
enabled?: boolean | null;
}
Expand Down Expand Up @@ -684,7 +684,7 @@ export namespace metastore_v1beta {
*/
export interface Schema$MetadataIntegration {
/**
* The integration config for the Data Catalog service.
* Optional. The integration config for the Data Catalog service.
*/
dataCatalogConfig?: Schema$DataCatalogConfig;
/**
Expand Down Expand Up @@ -871,6 +871,10 @@ export namespace metastore_v1beta {
* Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id\}/locations/{location_id\}/services/{service_id\}/backups/{backup_id\}.
*/
backup?: string | null;
/**
* Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
*/
backupLocation?: string | null;
/**
* Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
*/
Expand Down Expand Up @@ -968,7 +972,7 @@ export namespace metastore_v1beta {
*/
maintenanceWindow?: Schema$MaintenanceWindow;
/**
* The setting that defines how metastore metadata should be integrated with external services and systems.
* Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
*/
metadataIntegration?: Schema$MetadataIntegration;
/**
Expand Down

0 comments on commit 1a19ff2

Please sign in to comment.