# Path: google-datacatalog-hive-connector/src/google/datacatalog_connectors/hive/sync/datacatalog_synchronizer.py
# class DataCatalogSynchronizer:
#     __CLEAN_UP_EVENTS = [
#         entities.SyncEvent.DROP_DATABASE, entities.SyncEvent.DROP_TABLE
#     ]
#     def __init__(self,
#                  project_id,
#                  location_id,
#                  hive_metastore_db_host=None,
#                  hive_metastore_db_user=None,
#                  hive_metastore_db_pass=None,
#                  hive_metastore_db_name=None,
#                  hive_metastore_db_type=None,
#                  metadata_sync_event=None,
#                  enable_monitoring=None):
#     def run(self):
#     def __ingest_created_or_updated(self, prepared_entries):
#     def __after_run(self):
#     def __log_entries(self, prepared_entries):
#     def __log_metadata(self, metadata):
#     def __cleanup_deleted_tables(cls, cleaner, prepared_entries):
#     def __cleanup_deleted_databases(cls, cleaner, prepared_entries):


import argparse
import logging
import os
import sys
from .sync import datacatalog_synchronizer
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.





class Hive2DatacatalogCli:

    @staticmethod
    def run(argv):
        args = Hive2DatacatalogCli.__parse_args(argv)
        # Enable logging
        logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)

        if args.service_account_path:
            os.environ['GOOGLE_APPLICATION_CREDENTIALS']\
                = args.service_account_path


# Path: google-datacatalog-hive-connector/src/google/datacatalog_connectors/hive/sync/datacatalog_synchronizer.py
# class DataCatalogSynchronizer:
#     __CLEAN_UP_EVENTS = [
#         entities.SyncEvent.DROP_DATABASE, entities.SyncEvent.DROP_TABLE
#     ]
#     def __init__(self,
#                  project_id,
#                  location_id,
#                  hive_metastore_db_host=None,
#                  hive_metastore_db_user=None,
#                  hive_metastore_db_pass=None,
#                  hive_metastore_db_name=None,
#                  hive_metastore_db_type=None,
#                  metadata_sync_event=None,
#                  enable_monitoring=None):
#     def run(self):
#     def __ingest_created_or_updated(self, prepared_entries):
#     def __after_run(self):
#     def __log_entries(self, prepared_entries):
#     def __log_metadata(self, metadata):
#     def __cleanup_deleted_tables(cls, cleaner, prepared_entries):
#     def __cleanup_deleted_databases(cls, cleaner, prepared_entries):


# Path: google-datacatalog-hive-connector/src/google/datacatalog_connectors/hive/datacatalog_cli.py
import argparse
import logging
import os
import sys
from .sync import datacatalog_synchronizer

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.





class Hive2DatacatalogCli:

    @staticmethod
    def run(argv):
        args = Hive2DatacatalogCli.__parse_args(argv)
        # Enable logging
        logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)

        if args.service_account_path:
            os.environ['GOOGLE_APPLICATION_CREDENTIALS']\
                = args.service_account_path


        datacatalog_synchronizer.DataCatalogSynchronizer(