text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is
  # regenerated.
  # --------------------------------------------------------------------------
  
  from msrest.service_client import SDKClient
  from msrest import Configuration, Serializer, Deserializer
  from .version import VERSION
  from msrest.pipeline import ClientRawResponse
  from msrest.exceptions import HttpOperationError
  
  
  class MetadataWrapperClientConfiguration(Configuration):
      """Configuration for MetadataWrapperClient
      Note that all parameters used to create this instance are saved as instance
      attributes.
  
      :param str base_url: Service URL
      """
  
      def __init__(
              self, base_url=None):
  
          if not base_url:
              base_url = 'http://localhost'
  
          super(MetadataWrapperClientConfiguration, self).__init__(base_url)
  
          self.add_user_agent('metadatawrapperclient/{}'.format(VERSION))
  
  
  class MetadataWrapperClient(SDKClient):
      """Api Documentation
  
      :ivar config: Configuration for client.
      :vartype config: MetadataWrapperClientConfiguration
  
      :param str base_url: Service URL
      """
  
      def __init__(
              self, base_url=None):
  
          self.config = MetadataWrapperClientConfiguration(base_url)
          super(MetadataWrapperClient, self).__init__(None, self.config)
  
          client_models = {}
          self.api_version = '1.0'
          self._serialize = Serializer(client_models)
          self._deserialize = Deserializer(client_models)
  
  
      def greeting_using_get(
              self, custom_headers=None, raw=False, **operation_config):
          """greeting.
  
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.greeting_using_get.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct and send request
          request = self._client.get(url, query_parameters, header_parameters)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      greeting_using_get.metadata = {'url': '/'}
  
      def entity_post_using_post(
              self, input, custom_headers=None, raw=False, **operation_config):
          """Add new entity in atlas.
  
          :param input: {
           "entities": [
           {
           "typeName": "adls_gen2_resource_set",
           "createdBy": "sg",
           "attributes": {
           "qualifiedName": "/2019/",
           "name": "/2019/"
           }
           }
           ]
           }
          :type input: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.entity_post_using_post.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(input, 'str')
  
          # Construct and send request
          request = self._client.post(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      entity_post_using_post.metadata = {'url': '/api/entity'}
  
      def entity_bulk_get_using_get(
              self, input, custom_headers=None, raw=False, **operation_config):
          """entityBulkGet.
  
          :param input: input
          :type input: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.entity_bulk_get_using_get.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(input, 'str')
  
          # Construct and send request
          request = self._client.get(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      entity_bulk_get_using_get.metadata = {'url': '/api/entity/bulk'}
  
      def entity_bulk_post_using_post(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """entityBulkPost.
  
          :param ip_json: ipJSON
          :type ip_json: object
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.entity_bulk_post_using_post.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'object')
  
          # Construct and send request
          request = self._client.post(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      entity_bulk_post_using_post.metadata = {'url': '/api/entity/bulk'}
  
      def entity_bulk_delete_using_delete(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """entityBulkDelete.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.entity_bulk_delete_using_delete.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.delete(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 204, 401, 403]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      entity_bulk_delete_using_delete.metadata = {'url': '/api/entity/bulk'}
  
      def relationship_post_using_post(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """relationshipPost.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.relationship_post_using_post.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.post(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      relationship_post_using_post.metadata = {'url': '/api/relationship'}
  
      def relationship_bulk_post_using_put(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """relationshipBulkPost.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.relationship_bulk_post_using_put.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.put(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      relationship_bulk_post_using_put.metadata = {'url': '/api/relationship'}
  
      def relationship_guid_get_using_get(
              self, guid, custom_headers=None, raw=False, **operation_config):
          """relationshipGUIDGet.
  
          :param guid: guid
          :type guid: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.relationship_guid_get_using_get.metadata['url']
          path_format_arguments = {
              'guid': self._serialize.url("guid", guid, 'str')
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct and send request
          request = self._client.get(url, query_parameters, header_parameters)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      relationship_guid_get_using_get.metadata = {'url': '/api/relationship/guid/{guid}'}
  
      def relationship_guid_delete_using_delete(
              self, guid, custom_headers=None, raw=False, **operation_config):
          """relationshipGUIDDelete.
  
          :param guid: guid
          :type guid: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.relationship_guid_delete_using_delete.metadata['url']
          path_format_arguments = {
              'guid': self._serialize.url("guid", guid, 'str')
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct and send request
          request = self._client.delete(url, query_parameters, header_parameters)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 204, 401, 403]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      relationship_guid_delete_using_delete.metadata = {'url': '/api/relationship/guid/{guid}'}
  
      def search_basic_get_using_get(
              self, query, custom_headers=None, raw=False, **operation_config):
          """searchBasicGet.
  
          :param query: query
          :type query: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.search_basic_get_using_get.metadata['url']
  
          # Construct parameters
          query_parameters = {}
          query_parameters['query'] = self._serialize.query("query", query, 'str')
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct and send request
          request = self._client.get(url, query_parameters, header_parameters)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      search_basic_get_using_get.metadata = {'url': '/api/search'}
  
      def typedefs_get_using_get(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """typedefsGet.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.typedefs_get_using_get.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.get(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      typedefs_get_using_get.metadata = {'url': '/api/typedefs'}
  
      def typedefs_post_using_post(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """typedefsPost.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.typedefs_post_using_post.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.post(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      typedefs_post_using_post.metadata = {'url': '/api/typedefs'}
  
      def typedefs_put_using_put(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """typedefsPut.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.typedefs_put_using_put.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.put(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 201, 401, 403, 404]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      typedefs_put_using_put.metadata = {'url': '/api/typedefs'}
  
      def typedefs_delete_using_delete(
              self, ip_json, custom_headers=None, raw=False, **operation_config):
          """typedefsDelete.
  
          :param ip_json: ipJSON
          :type ip_json: str
          :param dict custom_headers: headers that will be added to the request
          :param bool raw: returns the direct response alongside the
           deserialized response
          :param operation_config: :ref:`Operation configuration
           overrides<msrest:optionsforoperations>`.
          :return: str or ClientRawResponse if raw=true
          :rtype: str or ~msrest.pipeline.ClientRawResponse
          :raises:
           :class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
          """
          # Construct URL
          url = self.typedefs_delete_using_delete.metadata['url']
  
          # Construct parameters
          query_parameters = {}
  
          # Construct headers
          header_parameters = {}
          header_parameters['Accept'] = 'application/json'
          header_parameters['Content-Type'] = 'application/json; charset=utf-8'
          if custom_headers:
              header_parameters.update(custom_headers)
  
          # Construct body
          body_content = self._serialize.body(ip_json, 'str')
  
          # Construct and send request
          request = self._client.delete(url, query_parameters, header_parameters, body_content)
          response = self._client.send(request, stream=False, **operation_config)
  
          if response.status_code not in [200, 204, 401, 403]:
              raise HttpOperationError(self._deserialize, response)
  
          deserialized = None
  
          if response.status_code == 200:
              deserialized = self._deserialize('str', response)
  
          if raw:
              client_raw_response = ClientRawResponse(deserialized, response)
              return client_raw_response
  
          return deserialized
      typedefs_delete_using_delete.metadata = {'url': '/api/typedefs'}
  