"""Generated client library for biglake version data_product_sharing_v1alpha."""
# NOTE: This file is autogenerated and should not be edited by hand.

from apitools.base.py import base_api
from googlecloudsdk.generated_clients.apis.biglake.data_product_sharing_v1alpha import biglake_data_product_sharing_v1alpha_messages as messages


class BiglakeDataProductSharingV1alpha(base_api.BaseApiClient):
  """Generated client library for service biglake version data_product_sharing_v1alpha."""

  MESSAGES_MODULE = messages
  BASE_URL = 'https://biglake.googleapis.com/'
  MTLS_BASE_URL = 'https://biglake.mtls.googleapis.com/'

  _PACKAGE = 'biglake'
  _SCOPES = ['https://www.googleapis.com/auth/bigquery', 'https://www.googleapis.com/auth/cloud-platform']
  _VERSION = 'data_product_sharing_v1alpha'
  _CLIENT_ID = 'CLIENT_ID'
  _CLIENT_SECRET = 'CLIENT_SECRET'
  _USER_AGENT = 'google-cloud-sdk'
  _CLIENT_CLASS_NAME = 'BiglakeDataProductSharingV1alpha'
  _URL_VERSION = 'v1alpha'
  _API_KEY = None

  def __init__(self, url='', credentials=None,
               get_credentials=True, http=None, model=None,
               log_request=False, log_response=False,
               credentials_args=None, default_global_params=None,
               additional_http_headers=None, response_encoding=None):
    """Create a new biglake handle."""
    url = url or self.BASE_URL
    super(BiglakeDataProductSharingV1alpha, self).__init__(
        url, credentials=credentials,
        get_credentials=get_credentials, http=http, model=model,
        log_request=log_request, log_response=log_response,
        credentials_args=credentials_args,
        default_global_params=default_global_params,
        additional_http_headers=additional_http_headers,
        response_encoding=response_encoding)
    self.dataproductsharing_v1alpha_projects_catalogs = self.DataproductsharingV1alphaProjectsCatalogsService(self)
    self.dataproductsharing_v1alpha_projects = self.DataproductsharingV1alphaProjectsService(self)
    self.dataproductsharing_v1alpha = self.DataproductsharingV1alphaService(self)
    self.dataproductsharing = self.DataproductsharingService(self)

  class DataproductsharingV1alphaProjectsCatalogsService(base_api.BaseApiService):
    """Service class for the dataproductsharing_v1alpha_projects_catalogs resource."""

    _NAME = 'dataproductsharing_v1alpha_projects_catalogs'

    def __init__(self, client):
      super(BiglakeDataProductSharingV1alpha.DataproductsharingV1alphaProjectsCatalogsService, self).__init__(client)
      self._upload_configs = {
          }

    def PublishDataProduct(self, request, global_params=None):
      r"""Publishes a Knowledge Catalog Data Product or a list of tables to SAP BDC.

      Args:
        request: (BiglakeDataproductsharingV1alphaProjectsCatalogsPublishDataProductRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (PublishDataProductResponse) The response message.
      """
      config = self.GetMethodConfig('PublishDataProduct')
      return self._RunMethod(
          config, request, global_params=global_params)

    PublishDataProduct.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='dataproductsharing/v1alpha/projects/{projectsId}/catalogs/{catalogsId}:publishDataProduct',
        http_method='POST',
        method_id='biglake.dataproductsharing.v1alpha.projects.catalogs.publishDataProduct',
        ordered_params=['connectionCatalog'],
        path_params=['connectionCatalog'],
        query_params=[],
        relative_path='dataproductsharing/v1alpha/{+connectionCatalog}:publishDataProduct',
        request_field='publishDataProductRequest',
        request_type_name='BiglakeDataproductsharingV1alphaProjectsCatalogsPublishDataProductRequest',
        response_type_name='PublishDataProductResponse',
        supports_download=False,
    )

  class DataproductsharingV1alphaProjectsService(base_api.BaseApiService):
    """Service class for the dataproductsharing_v1alpha_projects resource."""

    _NAME = 'dataproductsharing_v1alpha_projects'

    def __init__(self, client):
      super(BiglakeDataProductSharingV1alpha.DataproductsharingV1alphaProjectsService, self).__init__(client)
      self._upload_configs = {
          }

  class DataproductsharingV1alphaService(base_api.BaseApiService):
    """Service class for the dataproductsharing_v1alpha resource."""

    _NAME = 'dataproductsharing_v1alpha'

    def __init__(self, client):
      super(BiglakeDataProductSharingV1alpha.DataproductsharingV1alphaService, self).__init__(client)
      self._upload_configs = {
          }

  class DataproductsharingService(base_api.BaseApiService):
    """Service class for the dataproductsharing resource."""

    _NAME = 'dataproductsharing'

    def __init__(self, client):
      super(BiglakeDataProductSharingV1alpha.DataproductsharingService, self).__init__(client)
      self._upload_configs = {
          }
