|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Copyright 2026 Google LLC |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | +import google.api_core as api_core |
| 17 | + |
| 18 | +from google.cloud.biglake_hive_v1 import gapic_version as package_version |
| 19 | + |
| 20 | +__version__ = package_version.__version__ |
| 21 | + |
| 22 | +# PEP 0810: Explicit Lazy Imports |
| 23 | +# Python 3.15+ natively intercepts and defers these imports. |
| 24 | +# Developers can disable this behavior and force eager imports. |
| 25 | +# For more information, see: |
| 26 | +# https://docs.python.org/3.15/library/sys.html#sys.set_lazy_imports_filter |
| 27 | +# Older Python versions safely ignore this variable. |
| 28 | +__lazy_modules__ = { |
| 29 | + "google.cloud.biglake_hive_v1.services.hive_metastore_service", |
| 30 | + "google.cloud.biglake_hive_v1.types.hive_metastore", |
| 31 | +} |
| 32 | + |
| 33 | + |
| 34 | +from .services.hive_metastore_service import ( |
| 35 | + HiveMetastoreServiceAsyncClient, |
| 36 | + HiveMetastoreServiceClient, |
| 37 | +) |
| 38 | +from .types.hive_metastore import ( |
| 39 | + BatchCreatePartitionsRequest, |
| 40 | + BatchCreatePartitionsResponse, |
| 41 | + BatchDeletePartitionsRequest, |
| 42 | + BatchUpdatePartitionsRequest, |
| 43 | + BatchUpdatePartitionsResponse, |
| 44 | + CreateHiveCatalogRequest, |
| 45 | + CreateHiveDatabaseRequest, |
| 46 | + CreateHiveTableRequest, |
| 47 | + CreatePartitionRequest, |
| 48 | + DeleteHiveCatalogRequest, |
| 49 | + DeleteHiveDatabaseRequest, |
| 50 | + DeleteHiveTableRequest, |
| 51 | + FailoverHiveCatalogRequest, |
| 52 | + FailoverHiveCatalogResponse, |
| 53 | + FieldSchema, |
| 54 | + GetHiveCatalogRequest, |
| 55 | + GetHiveDatabaseRequest, |
| 56 | + GetHiveTableRequest, |
| 57 | + HiveCatalog, |
| 58 | + HiveDatabase, |
| 59 | + HiveTable, |
| 60 | + ListHiveCatalogsRequest, |
| 61 | + ListHiveCatalogsResponse, |
| 62 | + ListHiveDatabasesRequest, |
| 63 | + ListHiveDatabasesResponse, |
| 64 | + ListHiveTablesRequest, |
| 65 | + ListHiveTablesResponse, |
| 66 | + ListPartitionsRequest, |
| 67 | + ListPartitionsResponse, |
| 68 | + Partition, |
| 69 | + PartitionValues, |
| 70 | + SerdeInfo, |
| 71 | + StorageDescriptor, |
| 72 | + UpdateHiveCatalogRequest, |
| 73 | + UpdateHiveDatabaseRequest, |
| 74 | + UpdateHiveTableRequest, |
| 75 | + UpdatePartitionRequest, |
| 76 | +) |
| 77 | + |
| 78 | +__all__ = ( |
| 79 | + "HiveMetastoreServiceAsyncClient", |
| 80 | + "BatchCreatePartitionsRequest", |
| 81 | + "BatchCreatePartitionsResponse", |
| 82 | + "BatchDeletePartitionsRequest", |
| 83 | + "BatchUpdatePartitionsRequest", |
| 84 | + "BatchUpdatePartitionsResponse", |
| 85 | + "CreateHiveCatalogRequest", |
| 86 | + "CreateHiveDatabaseRequest", |
| 87 | + "CreateHiveTableRequest", |
| 88 | + "CreatePartitionRequest", |
| 89 | + "DeleteHiveCatalogRequest", |
| 90 | + "DeleteHiveDatabaseRequest", |
| 91 | + "DeleteHiveTableRequest", |
| 92 | + "FailoverHiveCatalogRequest", |
| 93 | + "FailoverHiveCatalogResponse", |
| 94 | + "FieldSchema", |
| 95 | + "GetHiveCatalogRequest", |
| 96 | + "GetHiveDatabaseRequest", |
| 97 | + "GetHiveTableRequest", |
| 98 | + "HiveCatalog", |
| 99 | + "HiveDatabase", |
| 100 | + "HiveMetastoreServiceClient", |
| 101 | + "HiveTable", |
| 102 | + "ListHiveCatalogsRequest", |
| 103 | + "ListHiveCatalogsResponse", |
| 104 | + "ListHiveDatabasesRequest", |
| 105 | + "ListHiveDatabasesResponse", |
| 106 | + "ListHiveTablesRequest", |
| 107 | + "ListHiveTablesResponse", |
| 108 | + "ListPartitionsRequest", |
| 109 | + "ListPartitionsResponse", |
| 110 | + "Partition", |
| 111 | + "PartitionValues", |
| 112 | + "SerdeInfo", |
| 113 | + "StorageDescriptor", |
| 114 | + "UpdateHiveCatalogRequest", |
| 115 | + "UpdateHiveDatabaseRequest", |
| 116 | + "UpdateHiveTableRequest", |
| 117 | + "UpdatePartitionRequest", |
| 118 | +) |
| 119 | + |
| 120 | +api_core.check_python_version("google.cloud.biglake_hive_v1") |
| 121 | +api_core.check_dependency_versions("google.cloud.biglake_hive_v1") |
0 commit comments