original_docstring: Returns the list of managed private endpoints.
  
          :param resource_group_name: The name of the resource group containing the Kusto cluster.
          :type resource_group_name: str
          :param cluster_name: The name of the Kusto cluster.
          :type cluster_name: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either ManagedPrivateEndpointListResult or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~kusto_management_client.models.ManagedPrivateEndpointListResult]
          :raises: ~azure.core.exceptions.HttpResponseError
          
docstring: Returns the list of managed private endpoints.
docstring_tokens: Returns the list of managed private endpoints .
code: def list(
          self,
          resource_group_name,  # type: str
          cluster_name,  # type: str
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["_models.ManagedPrivateEndpointListResult"]
          """Returns the list of managed private endpoints.
  
          :param resource_group_name: The name of the resource group containing the Kusto cluster.
          :type resource_group_name: str
          :param cluster_name: The name of the Kusto cluster.
          :type cluster_name: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either ManagedPrivateEndpointListResult or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~kusto_management_client.models.ManagedPrivateEndpointListResult]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["_models.ManagedPrivateEndpointListResult"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          api_version = "2021-08-27"
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
                      'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
                      'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('ManagedPrivateEndpointListResult', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
code_tokens: def list ( self , resource_group_name , cluster_name , ** kwargs ) : cls = kwargs . pop ( 'cls' , None ) error_map = { 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError } error_map . update ( kwargs . pop ( 'error_map' , { } ) ) api_version = "2021-08-27" accept = "application/json" def prepare_request ( next_link = None ) : header_parameters = { } header_parameters [ 'Accept' ] = self . _serialize . header ( "accept" , accept , 'str' ) if not next_link : url = self . list . metadata [ 'url' ] path_format_arguments = { 'subscriptionId' : self . _serialize . url ( "self._config.subscription_id" , self . _config . subscription_id , 'str' ) , 'resourceGroupName' : self . _serialize . url ( "resource_group_name" , resource_group_name , 'str' ) , 'clusterName' : self . _serialize . url ( "cluster_name" , cluster_name , 'str' ) , } url = self . _client . format_url ( url , ** path_format_arguments ) query_parameters = { } query_parameters [ 'api-version' ] = self . _serialize . query ( "api_version" , api_version , 'str' ) request = self . _client . get ( url , query_parameters , header_parameters ) else : url = next_link query_parameters = { } request = self . _client . get ( url , query_parameters , header_parameters ) return request def extract_data ( pipeline_response ) : deserialized = self . _deserialize ( 'ManagedPrivateEndpointListResult' , pipeline_response ) list_of_elem = deserialized . value if cls : list_of_elem = cls ( list_of_elem ) return None , iter ( list_of_elem ) def get_next ( next_link = None ) : request = prepare_request ( next_link ) pipeline_response = self . _client . _pipeline . run ( request , stream = False , ** kwargs ) response = pipeline_response . http_response if response . status_code not in [ 200 ] : map_error ( status_code = response . status_code , response = response , error_map = error_map ) raise HttpResponseError ( response = response , error_format = ARMErrorFormat ) return pipeline_response return ItemPaged ( get_next , extract_data )
short_docstring: Returns the list of managed private endpoints.
short_docstring_tokens: Returns the list of managed private endpoints .
comment: # type: str$SEP$# type: str$SEP$# type: Any$SEP$# type: (...) -> Iterable["_models.ManagedPrivateEndpointListResult"]$SEP$"""Returns the list of managed private endpoints.
  
          :param resource_group_name: The name of the resource group containing the Kusto cluster.
          :type resource_group_name: str
          :param cluster_name: The name of the Kusto cluster.
          :type cluster_name: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either ManagedPrivateEndpointListResult or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~kusto_management_client.models.ManagedPrivateEndpointListResult]
          :raises: ~azure.core.exceptions.HttpResponseError
          """$SEP$# type: ClsType["_models.ManagedPrivateEndpointListResult"]$SEP$# Construct headers$SEP$# type: Dict[str, Any]$SEP$# Construct URL$SEP$# type: ignore$SEP$# Construct parameters$SEP$# type: Dict[str, Any]$SEP$# type: Dict[str, Any]