Skip to content

Commit a6c8839

Browse files
yoshi-automationfeywind
authored andcommitted
feat(metastore): update the API
#### metastore:v1alpha The following keys were added: - schemas.CustomRegionConfig.deprecated - schemas.CustomRegionMetadata.deprecated - schemas.LocationMetadata.properties.customRegionMetadata.deprecated - schemas.LocationMetadata.properties.multiRegionMetadata.deprecated - schemas.MultiRegionConfig.deprecated - schemas.MultiRegionConfig.properties.customRegionConfig.deprecated - schemas.MultiRegionConfig.properties.customRegionConfig.description - schemas.MultiRegionMetadata.deprecated - schemas.Service.properties.multiRegionConfig.deprecated The following keys were changed: - schemas.CustomRegionConfig.description - schemas.CustomRegionMetadata.description - schemas.LocationMetadata.properties.customRegionMetadata.description - schemas.LocationMetadata.properties.multiRegionMetadata.description - schemas.MultiRegionConfig.description - schemas.MultiRegionConfig.properties.certificates.description - schemas.MultiRegionMetadata.description - schemas.RootCACertificate.description - schemas.RootCACertificate.properties.certificate.description - schemas.RootCACertificate.properties.expirationTime.description - schemas.Service.properties.multiRegionConfig.description #### metastore:v1beta The following keys were added: - schemas.CustomRegionConfig.deprecated - schemas.CustomRegionMetadata.deprecated - schemas.LocationMetadata.properties.customRegionMetadata.deprecated - schemas.LocationMetadata.properties.multiRegionMetadata.deprecated - schemas.MultiRegionConfig.deprecated - schemas.MultiRegionConfig.properties.customRegionConfig.deprecated - schemas.MultiRegionConfig.properties.customRegionConfig.description - schemas.MultiRegionMetadata.deprecated - schemas.Service.properties.multiRegionConfig.deprecated The following keys were changed: - schemas.CustomRegionConfig.description - schemas.CustomRegionMetadata.description - schemas.LocationMetadata.properties.customRegionMetadata.description - schemas.LocationMetadata.properties.multiRegionMetadata.description - schemas.MultiRegionConfig.description - schemas.MultiRegionConfig.properties.certificates.description - schemas.MultiRegionMetadata.description - schemas.RootCACertificate.description - schemas.RootCACertificate.properties.certificate.description - schemas.RootCACertificate.properties.expirationTime.description - schemas.Service.properties.multiRegionConfig.description #### metastore:v1 The following keys were added: - schemas.CustomRegionMetadata.deprecated - schemas.LocationMetadata.properties.customRegionMetadata.deprecated - schemas.LocationMetadata.properties.multiRegionMetadata.deprecated - schemas.MultiRegionMetadata.deprecated The following keys were changed: - schemas.CustomRegionMetadata.description - schemas.LocationMetadata.properties.customRegionMetadata.description - schemas.LocationMetadata.properties.multiRegionMetadata.description - schemas.MultiRegionMetadata.description
1 parent b04810c commit a6c8839

6 files changed

Lines changed: 85 additions & 57 deletions

File tree

‎discovery/metastore-v1.json‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@
16951695
}
16961696
}
16971697
},
1698-
"revision": "20251125",
1698+
"revision": "20260122",
16991699
"rootUrl": "https://metastore.googleapis.com/",
17001700
"schemas": {
17011701
"AlterMetadataResourceLocationRequest": {
@@ -2072,7 +2072,8 @@
20722072
"type": "object"
20732073
},
20742074
"CustomRegionMetadata": {
2075-
"description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
2075+
"deprecated": true,
2076+
"description": "Deprecated: Use a single region service instead. Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
20762077
"id": "CustomRegionMetadata",
20772078
"properties": {
20782079
"optionalReadOnlyRegions": {
@@ -2659,15 +2660,17 @@
26592660
"id": "LocationMetadata",
26602661
"properties": {
26612662
"customRegionMetadata": {
2662-
"description": "Possible configurations supported if the current region is a custom region.",
2663+
"deprecated": true,
2664+
"description": "Deprecated: Use a single region service instead. Possible configurations supported if the current region is a custom region.",
26632665
"items": {
26642666
"$ref": "CustomRegionMetadata"
26652667
},
26662668
"type": "array"
26672669
},
26682670
"multiRegionMetadata": {
26692671
"$ref": "MultiRegionMetadata",
2670-
"description": "The multi-region metadata if the current region is a multi-region."
2672+
"deprecated": true,
2673+
"description": "Deprecated: Use a single region service instead. The multi-region metadata if the current region is a multi-region."
26712674
},
26722675
"supportedHiveMetastoreVersions": {
26732676
"description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.",
@@ -2971,7 +2974,8 @@
29712974
"type": "object"
29722975
},
29732976
"MultiRegionMetadata": {
2974-
"description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
2977+
"deprecated": true,
2978+
"description": "Deprecated: Use a single region service instead. The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
29752979
"id": "MultiRegionMetadata",
29762980
"properties": {
29772981
"constituentRegions": {

‎discovery/metastore-v1alpha.json‎

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@
18071807
}
18081808
}
18091809
},
1810-
"revision": "20251125",
1810+
"revision": "20260122",
18111811
"rootUrl": "https://metastore.googleapis.com/",
18121812
"schemas": {
18131813
"AlterMetadataResourceLocationRequest": {
@@ -2208,7 +2208,8 @@
22082208
"type": "object"
22092209
},
22102210
"CustomRegionConfig": {
2211-
"description": "Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region.",
2211+
"deprecated": true,
2212+
"description": "Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region.",
22122213
"id": "CustomRegionConfig",
22132214
"properties": {
22142215
"readOnlyRegions": {
@@ -2229,7 +2230,8 @@
22292230
"type": "object"
22302231
},
22312232
"CustomRegionMetadata": {
2232-
"description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
2233+
"deprecated": true,
2234+
"description": "Deprecated: Use a single region service instead. Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
22332235
"id": "CustomRegionMetadata",
22342236
"properties": {
22352237
"optionalReadOnlyRegions": {
@@ -2848,15 +2850,17 @@
28482850
"id": "LocationMetadata",
28492851
"properties": {
28502852
"customRegionMetadata": {
2851-
"description": "Possible configurations supported if the current region is a custom region.",
2853+
"deprecated": true,
2854+
"description": "Deprecated: Use a single region service instead. Possible configurations supported if the current region is a custom region.",
28522855
"items": {
28532856
"$ref": "CustomRegionMetadata"
28542857
},
28552858
"type": "array"
28562859
},
28572860
"multiRegionMetadata": {
28582861
"$ref": "MultiRegionMetadata",
2859-
"description": "The multi-region metadata if the current region is a multi-region."
2862+
"deprecated": true,
2863+
"description": "Deprecated: Use a single region service instead. The multi-region metadata if the current region is a multi-region."
28602864
},
28612865
"supportedHiveMetastoreVersions": {
28622866
"description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.",
@@ -3164,26 +3168,30 @@
31643168
"type": "object"
31653169
},
31663170
"MultiRegionConfig": {
3167-
"description": "The multi-region config for the Dataproc Metastore service.",
3171+
"deprecated": true,
3172+
"description": "Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service.",
31683173
"id": "MultiRegionConfig",
31693174
"properties": {
31703175
"certificates": {
31713176
"deprecated": true,
3172-
"description": "Output only. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.",
3177+
"description": "Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.",
31733178
"items": {
31743179
"$ref": "RootCACertificate"
31753180
},
31763181
"readOnly": true,
31773182
"type": "array"
31783183
},
31793184
"customRegionConfig": {
3180-
"$ref": "CustomRegionConfig"
3185+
"$ref": "CustomRegionConfig",
3186+
"deprecated": true,
3187+
"description": "Immutable. Deprecated: Use a single region service instead."
31813188
}
31823189
},
31833190
"type": "object"
31843191
},
31853192
"MultiRegionMetadata": {
3186-
"description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
3193+
"deprecated": true,
3194+
"description": "Deprecated: Use a single region service instead. The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
31873195
"id": "MultiRegionMetadata",
31883196
"properties": {
31893197
"constituentRegions": {
@@ -3478,17 +3486,17 @@
34783486
},
34793487
"RootCACertificate": {
34803488
"deprecated": true,
3481-
"description": "A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.",
3489+
"description": "Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.",
34823490
"id": "RootCACertificate",
34833491
"properties": {
34843492
"certificate": {
34853493
"deprecated": true,
3486-
"description": "The root CA certificate in PEM format. The maximum length is 65536 bytes.",
3494+
"description": "Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.",
34873495
"type": "string"
34883496
},
34893497
"expirationTime": {
34903498
"deprecated": true,
3491-
"description": "The certificate expiration time in timestamp format.",
3499+
"description": "Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.",
34923500
"format": "google-datetime",
34933501
"type": "string"
34943502
}
@@ -3644,7 +3652,8 @@
36443652
},
36453653
"multiRegionConfig": {
36463654
"$ref": "MultiRegionConfig",
3647-
"description": "Optional. Specifies the multi-region configuration information for the Hive metastore service."
3655+
"deprecated": true,
3656+
"description": "Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service."
36483657
},
36493658
"name": {
36503659
"description": "Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.",

‎discovery/metastore-v1beta.json‎

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@
18071807
}
18081808
}
18091809
},
1810-
"revision": "20251125",
1810+
"revision": "20260122",
18111811
"rootUrl": "https://metastore.googleapis.com/",
18121812
"schemas": {
18131813
"AlterMetadataResourceLocationRequest": {
@@ -2208,7 +2208,8 @@
22082208
"type": "object"
22092209
},
22102210
"CustomRegionConfig": {
2211-
"description": "Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region.",
2211+
"deprecated": true,
2212+
"description": "Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region.",
22122213
"id": "CustomRegionConfig",
22132214
"properties": {
22142215
"readOnlyRegions": {
@@ -2229,7 +2230,8 @@
22292230
"type": "object"
22302231
},
22312232
"CustomRegionMetadata": {
2232-
"description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
2233+
"deprecated": true,
2234+
"description": "Deprecated: Use a single region service instead. Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.",
22332235
"id": "CustomRegionMetadata",
22342236
"properties": {
22352237
"optionalReadOnlyRegions": {
@@ -2848,15 +2850,17 @@
28482850
"id": "LocationMetadata",
28492851
"properties": {
28502852
"customRegionMetadata": {
2851-
"description": "Possible configurations supported if the current region is a custom region.",
2853+
"deprecated": true,
2854+
"description": "Deprecated: Use a single region service instead. Possible configurations supported if the current region is a custom region.",
28522855
"items": {
28532856
"$ref": "CustomRegionMetadata"
28542857
},
28552858
"type": "array"
28562859
},
28572860
"multiRegionMetadata": {
28582861
"$ref": "MultiRegionMetadata",
2859-
"description": "The multi-region metadata if the current region is a multi-region."
2862+
"deprecated": true,
2863+
"description": "Deprecated: Use a single region service instead. The multi-region metadata if the current region is a multi-region."
28602864
},
28612865
"supportedHiveMetastoreVersions": {
28622866
"description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.",
@@ -3164,26 +3168,30 @@
31643168
"type": "object"
31653169
},
31663170
"MultiRegionConfig": {
3167-
"description": "The multi-region config for the Dataproc Metastore service.",
3171+
"deprecated": true,
3172+
"description": "Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service.",
31683173
"id": "MultiRegionConfig",
31693174
"properties": {
31703175
"certificates": {
31713176
"deprecated": true,
3172-
"description": "Output only. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.",
3177+
"description": "Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.",
31733178
"items": {
31743179
"$ref": "RootCACertificate"
31753180
},
31763181
"readOnly": true,
31773182
"type": "array"
31783183
},
31793184
"customRegionConfig": {
3180-
"$ref": "CustomRegionConfig"
3185+
"$ref": "CustomRegionConfig",
3186+
"deprecated": true,
3187+
"description": "Immutable. Deprecated: Use a single region service instead."
31813188
}
31823189
},
31833190
"type": "object"
31843191
},
31853192
"MultiRegionMetadata": {
3186-
"description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
3193+
"deprecated": true,
3194+
"description": "Deprecated: Use a single region service instead. The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.",
31873195
"id": "MultiRegionMetadata",
31883196
"properties": {
31893197
"constituentRegions": {
@@ -3478,17 +3486,17 @@
34783486
},
34793487
"RootCACertificate": {
34803488
"deprecated": true,
3481-
"description": "A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.",
3489+
"description": "Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.",
34823490
"id": "RootCACertificate",
34833491
"properties": {
34843492
"certificate": {
34853493
"deprecated": true,
3486-
"description": "The root CA certificate in PEM format. The maximum length is 65536 bytes.",
3494+
"description": "Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.",
34873495
"type": "string"
34883496
},
34893497
"expirationTime": {
34903498
"deprecated": true,
3491-
"description": "The certificate expiration time in timestamp format.",
3499+
"description": "Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.",
34923500
"format": "google-datetime",
34933501
"type": "string"
34943502
}
@@ -3644,7 +3652,8 @@
36443652
},
36453653
"multiRegionConfig": {
36463654
"$ref": "MultiRegionConfig",
3647-
"description": "Optional. Specifies the multi-region configuration information for the Hive metastore service."
3655+
"deprecated": true,
3656+
"description": "Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service."
36483657
},
36493658
"name": {
36503659
"description": "Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.",

‎src/apis/metastore/v1.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export namespace metastore_v1 {
394394
subnetwork?: string | null;
395395
}
396396
/**
397-
* Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.
397+
* Deprecated: Use a single region service instead. Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.
398398
*/
399399
export interface Schema$CustomRegionMetadata {
400400
/**
@@ -783,11 +783,11 @@ export namespace metastore_v1 {
783783
*/
784784
export interface Schema$LocationMetadata {
785785
/**
786-
* Possible configurations supported if the current region is a custom region.
786+
* Deprecated: Use a single region service instead. Possible configurations supported if the current region is a custom region.
787787
*/
788788
customRegionMetadata?: Schema$CustomRegionMetadata[];
789789
/**
790-
* The multi-region metadata if the current region is a multi-region.
790+
* Deprecated: Use a single region service instead. The multi-region metadata if the current region is a multi-region.
791791
*/
792792
multiRegionMetadata?: Schema$MultiRegionMetadata;
793793
/**
@@ -947,7 +947,7 @@ export namespace metastore_v1 {
947947
*/
948948
export interface Schema$MoveTableToDatabaseResponse {}
949949
/**
950-
* The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.
950+
* Deprecated: Use a single region service instead. The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.
951951
*/
952952
export interface Schema$MultiRegionMetadata {
953953
/**

0 commit comments

Comments
 (0)