class_docstr: NOTE: This class is auto generated by OpenAPI Generator
  Ref: https://openapi-generator.tech
  
  Do not edit the class manually.
class_docstr_tok: ["NOTE",":","This","class","is","auto","generated","by","OpenAPI","Generator","Ref",":","https",":","\/\/openapi-generator.tech","Do","not","edit","the","class","manually","."]
docstr: get_datasets_enriched_query_by_name  # noqa: E501
  
  Query for datasets  enriched with additional information by their name prefix unless exact flag is set  # noqa: E501
  This method makes a synchronous HTTP request by default. To make an
  asynchronous HTTP request, please pass async_req=True
  
  >>> thread = api.get_datasets_enriched_query_by_name(dataset_name, shared, exact, get_assets_of_team, get_assets_of_team_inclusive_self, page_size, page_offset, async_req=True)
  >>> result = thread.get()
  
  :param dataset_name: (required)
  :type dataset_name: str
  :param shared: if set, only returns the datasets which have been shared with the user
  :type shared: bool
  :param exact: if set, only returns the datasets which match the name exactly (not just by prefix)
  :type exact: bool
  :param get_assets_of_team: if this flag is true, we get the relevant asset of the team of the user rather than the assets of the user
  :type get_assets_of_team: bool
  :param get_assets_of_team_inclusive_self: if this flag is true, we get the relevant asset of the team of the user including the assets of the user
  :type get_assets_of_team_inclusive_self: bool
  :param page_size: pagination size/limit of the number of samples to return
  :type page_size: int
  :param page_offset: pagination offset
  :type page_offset: int
  :param async_req: Whether to execute the request asynchronously.
  :type async_req: bool, optional
  :param _request_timeout: timeout setting for this request. If one
                           number provided, it will be total request
                           timeout. It can also be a pair (tuple) of
                           (connection, read) timeouts.
  :return: Returns the result object.
           If the method is called asynchronously,
           returns the request thread.
  :rtype: List[DatasetDataEnriched]
docstr_tok: ["get_datasets_enriched_query_by_name","#","noqa",":","E501","Query","for","datasets","enriched","with","additional","information","by","their","name","prefix","unless","exact","flag","is","set","#","noqa",":","E501","This","method","makes","a","synchronous","HTTP","request","by","default",".","To","make","an","asynchronous","HTTP","request",",","please","pass","async_req=True",">",">",">","thread","=","api.get_datasets_enriched_query_by_name","(","dataset_name",",","shared",",","exact",",","get_assets_of_team",",","get_assets_of_team_inclusive_self",",","page_size",",","page_offset",",","async_req=True",")",">",">",">","result","=","thread.get","(",")",":","param","dataset_name",":","(","required",")",":","type","dataset_name",":","str",":","param","shared",":","if","set",",","only","returns","the","datasets","which","have","been","shared","with","the","user",":","type","shared",":","bool",":","param","exact",":","if","set",",","only","returns","the","datasets","which","match","the","name","exactly","(","not","just","by","prefix",")",":","type","exact",":","bool",":","param","get_assets_of_team",":","if","this","flag","is","true",",","we","get","the","relevant","asset","of","the","team","of","the","user","rather","than","the","assets","of","the","user",":","type","get_assets_of_team",":","bool",":","param","get_assets_of_team_inclusive_self",":","if","this","flag","is","true",",","we","get","the","relevant","asset","of","the","team","of","the","user","including","the","assets","of","the","user",":","type","get_assets_of_team_inclusive_self",":","bool",":","param","page_size",":","pagination","size\/limit","of","the","number","of","samples","to","return",":","type","page_size",":","int",":","param","page_offset",":","pagination","offset",":","type","page_offset",":","int",":","param","async_req",":","Whether","to","execute","the","request","asynchronously",".",":","type","async_req",":","bool",",","optional",":","param","_request_timeout",":","timeout","setting","for","this","request",".","If","one","number","provided",",","it","will","be","total","request","timeout",".","It","can","also","be","a","pair","(","tuple",")","of","(","connection",",","read",")","timeouts",".",":","return",":","Returns","the","result","object",".","If","the","method","is","called","asynchronously",",","returns","the","request","thread",".",":","rtype",":","List","[","DatasetDataEnriched","]"]
code: def get_datasets_enriched_query_by_name(
      self,
      dataset_name: constr(strict=True, min_length=1),
      shared: Annotated[
          Optional[StrictBool],
          Field(
              description="if set, only returns the datasets which have been shared with the user"
          ),
      ] = None,
      exact: Annotated[
          Optional[StrictBool],
          Field(
              description="if set, only returns the datasets which match the name exactly (not just by prefix)"
          ),
      ] = None,
      get_assets_of_team: Annotated[
          Optional[StrictBool],
          Field(
              description="if this flag is true, we get the relevant asset of the team of the user rather than the assets of the user"
          ),
      ] = None,
      get_assets_of_team_inclusive_self: Annotated[
          Optional[StrictBool],
          Field(
              description="if this flag is true, we get the relevant asset of the team of the user including the assets of the user"
          ),
      ] = None,
      page_size: Annotated[
          Optional[conint(strict=True, ge=1)],
          Field(
              description="pagination size/limit of the number of samples to return"
          ),
      ] = None,
      page_offset: Annotated[
          Optional[conint(strict=True, ge=0)],
          Field(description="pagination offset"),
      ] = None,
      **kwargs,
  ) -> List[DatasetDataEnriched]:  # noqa: E501
      """get_datasets_enriched_query_by_name  # noqa: E501
  
      Query for datasets  enriched with additional information by their name prefix unless exact flag is set  # noqa: E501
      This method makes a synchronous HTTP request by default. To make an
      asynchronous HTTP request, please pass async_req=True
  
      >>> thread = api.get_datasets_enriched_query_by_name(dataset_name, shared, exact, get_assets_of_team, get_assets_of_team_inclusive_self, page_size, page_offset, async_req=True)
      >>> result = thread.get()
  
      :param dataset_name: (required)
      :type dataset_name: str
      :param shared: if set, only returns the datasets which have been shared with the user
      :type shared: bool
      :param exact: if set, only returns the datasets which match the name exactly (not just by prefix)
      :type exact: bool
      :param get_assets_of_team: if this flag is true, we get the relevant asset of the team of the user rather than the assets of the user
      :type get_assets_of_team: bool
      :param get_assets_of_team_inclusive_self: if this flag is true, we get the relevant asset of the team of the user including the assets of the user
      :type get_assets_of_team_inclusive_self: bool
      :param page_size: pagination size/limit of the number of samples to return
      :type page_size: int
      :param page_offset: pagination offset
      :type page_offset: int
      :param async_req: Whether to execute the request asynchronously.
      :type async_req: bool, optional
      :param _request_timeout: timeout setting for this request. If one
                               number provided, it will be total request
                               timeout. It can also be a pair (tuple) of
                               (connection, read) timeouts.
      :return: Returns the result object.
               If the method is called asynchronously,
               returns the request thread.
      :rtype: List[DatasetDataEnriched]
      """
      kwargs["_return_http_data_only"] = True
      if "_preload_content" in kwargs:
          raise ValueError(
              "Error! Please call the get_datasets_enriched_query_by_name_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"
          )
      return self.get_datasets_enriched_query_by_name_with_http_info(
          dataset_name,
          shared,
          exact,
          get_assets_of_team,
          get_assets_of_team_inclusive_self,
          page_size,
          page_offset,
          **kwargs,
      )
  
imports: import re
  import io
  import warnings
  from pydantic import validate_arguments, ValidationError
  from typing_extensions import Annotated
  from pydantic import Field, StrictBool, StrictInt, StrictStr, conint, conlist, constr, validator
  from typing import List, Optional
  from lightly.openapi_generated.swagger_client.models.create_entity_response import CreateEntityResponse
  from lightly.openapi_generated.swagger_client.models.dataset_create_request import DatasetCreateRequest
  from lightly.openapi_generated.swagger_client.models.dataset_data import DatasetData
  from lightly.openapi_generated.swagger_client.models.dataset_data_enriched import DatasetDataEnriched
  from lightly.openapi_generated.swagger_client.models.dataset_update_request import DatasetUpdateRequest
  from lightly.openapi_generated.swagger_client.models.job_status_meta import JobStatusMeta
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.api_response import ApiResponse
  from lightly.openapi_generated.swagger_client.exceptions import ApiTypeError, ApiValueError
label_desc: Use image node_id 16 for calling the DatasetsApi obj's underlying member method code with example usage: obj.get_datasets_enriched_query_by_name(dataset_name, shared, exact, get_assets_of_team, get_assets_of_team_inclusive_page_size, page_offset) and returns: self