from __future__ import annotations
from typing import Optional, List, Dict
import enum
class AzureConfig():
container: str
def __init__(self, container: str) -> None:
...
class Catalog():
catalog_type: CatalogType
comment: str
created_at: int
name: str
properties: Dict[str, str]
storage_config: StorageConfig
def __init__(
self,
catalog_type: CatalogType,
comment: str,
created_at: int,
name: str,
properties: Dict[str, str],
storage_config: StorageConfig
) -> None:
...
class CatalogStatus():
state: str
def __init__(self, state: str) -> None:
...
class CatalogToken():
token: str
def __init__(self, token: str) -> None:
...
class DeleteTagAssignmentResponse():
...
class ListByTagsResponse():
results: List[str]
def __init__(self, results: Optional[List[str]] = None) -> None:
...
class ListTagAssignmentsResponse():
next_page_token: str
tag_assignments: List[TagAssignment]
def __init__(self, next_page_token: str, tag_assignments: Optional[List[TagAssignment]] = None) -> None:
...
class S3Config():
bucket: str
def __init__(self, bucket: str) -> None:
...
class Schema():
comment: str
created_at: int
full_name: str
schema_type: SchemaType
def __init__(
self,
comment: str,
created_at: int,
full_name: str,
schema_type: SchemaType
) -> None:
...
class StorageConfig():
azure: Optional[AzureConfig]
s3: Optional[S3Config]
def __init__(self, azure: Optional[AzureConfig] = None, s3: Optional[S3Config] = None) -> None:
...
class TagAssignment():
entity_name: str
entity_type: str
tag_key: str
tag_value: str
def __init__(
self,
entity_name: str,
entity_type: str,
tag_key: str,
tag_value: str
) -> None:
...
class CatalogType(enum.Enum):
CATALOG_TYPE_UNSPECIFIED = "CATALOG_TYPE_UNSPECIFIED"
DELTASHARING_CATALOG = "DELTASHARING_CATALOG"
MANAGED_CATALOG = "MANAGED_CATALOG"
class GetSchemaRequestView(enum.Enum):
BASIC = "BASIC"
FULL = "FULL"
VIEW_UNSPECIFIED = "VIEW_UNSPECIFIED"
class SchemaType(enum.Enum):
EXTERNAL_SCHEMA = "EXTERNAL_SCHEMA"
MANAGED_SCHEMA = "MANAGED_SCHEMA"
SCHEMA_TYPE_UNSPECIFIED = "SCHEMA_TYPE_UNSPECIFIED"
class CatalogClient():
def delete(self) -> None:
...
def get(self) -> Catalog:
...
def update(self, catalog: Optional[Catalog] = None) -> Catalog:
...
def schema(self, catalog_name: str, schema_name: str) -> SchemaClient:
...
class SchemaClient():
def delete(self) -> None:
...
def get(self, view: GetSchemaRequestView) -> Schema:
...
def update(self, schema: Optional[Schema] = None) -> Schema:
...
class ExampleClient():
def __init__(self, base_url: str, token: Optional[str] = None) -> None:
...
def create_catalog(self, catalog: Optional[Catalog] = None) -> Catalog:
...
def create_schema(
self,
name: str,
catalog_name: str,
schema_type: SchemaType
) -> Schema:
...
def create_tag_assignment(
self,
entity_type: str,
entity_name: str,
tag: Optional[TagAssignment] = None
) -> TagAssignment:
...
def delete_tag_assignment(
self,
entity_type: str,
entity_name: str,
tag_key: str
) -> DeleteTagAssignmentResponse:
...
def fetch_tag_assignment(
self,
entity_type: str,
entity_name: str,
tag_key: str
) -> TagAssignment:
...
def generate_catalog_token(self, catalog_id: str) -> CatalogToken:
...
def list_by_catalog_type(self, catalog_type: CatalogType) -> ListByTagsResponse:
...
def list_by_tags(self, tags: List[str], max_results: int) -> ListByTagsResponse:
...
def list_catalogs(self, max_results: int, page_token: str) -> List[Catalog]:
...
def list_schemas(
self,
catalog_name: str,
max_results: int,
page_token: str
) -> List[Schema]:
...
def list_tag_assignments(
self,
entity_type: str,
entity_name: str,
max_results: int,
page_token: str
) -> ListTagAssignmentsResponse:
...
def touch_tag_assignment(
self,
entity_type: str,
entity_name: str,
tag_key: str
) -> None:
...
def catalog(self, catalog_name: str) -> CatalogClient:
...
def schema(self, catalog_name: str, schema_name: str) -> SchemaClient:
...