diff --git a/.sdk-version b/.sdk-version index aeb5aaf..92c2d1e 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.46.0 +v2.49.0 diff --git a/docs/CollectionsApi.md b/docs/CollectionsApi.md index 8cedc14..983ef16 100644 --- a/docs/CollectionsApi.md +++ b/docs/CollectionsApi.md @@ -175,7 +175,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_collection** -> BaseResponseCollectionResponse get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries) +> BaseResponseCollectionResponse get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries, page_size=page_size, page_number=page_number, binary_search_str=binary_search_str) Returns a collection @@ -215,10 +215,13 @@ with revengai.ApiClient(configuration) as api_client: collection_id = 56 # int | include_tags = False # bool | (optional) (default to False) include_binaries = False # bool | (optional) (default to False) + page_size = 10 # int | (optional) (default to 10) + page_number = 1 # int | (optional) (default to 1) + binary_search_str = 'binary_search_str_example' # str | (optional) try: # Returns a collection - api_response = api_instance.get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries) + api_response = api_instance.get_collection(collection_id, include_tags=include_tags, include_binaries=include_binaries, page_size=page_size, page_number=page_number, binary_search_str=binary_search_str) print("The response of CollectionsApi->get_collection:\n") pprint(api_response) except Exception as e: @@ -235,6 +238,9 @@ Name | Type | Description | Notes **collection_id** | **int**| | **include_tags** | **bool**| | [optional] [default to False] **include_binaries** | **bool**| | [optional] [default to False] + **page_size** | **int**| | [optional] [default to 10] + **page_number** | **int**| | [optional] [default to 1] + **binary_search_str** | **str**| | [optional] ### Return type diff --git a/revengai/__init__.py b/revengai/__init__.py index 08a5e71..5dd9645 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.46.0" +__version__ = "v2.49.0" # Define package exports __all__ = [ diff --git a/revengai/api/collections_api.py b/revengai/api/collections_api.py index 0877edf..8df8a87 100644 --- a/revengai/api/collections_api.py +++ b/revengai/api/collections_api.py @@ -596,6 +596,9 @@ def get_collection( collection_id: StrictInt, include_tags: Optional[StrictBool] = None, include_binaries: Optional[StrictBool] = None, + page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, + page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, + binary_search_str: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -619,6 +622,12 @@ def get_collection( :type include_tags: bool :param include_binaries: :type include_binaries: bool + :param page_size: + :type page_size: int + :param page_number: + :type page_number: int + :param binary_search_str: + :type binary_search_str: str :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 @@ -645,6 +654,9 @@ def get_collection( collection_id=collection_id, include_tags=include_tags, include_binaries=include_binaries, + page_size=page_size, + page_number=page_number, + binary_search_str=binary_search_str, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -672,6 +684,9 @@ def get_collection_with_http_info( collection_id: StrictInt, include_tags: Optional[StrictBool] = None, include_binaries: Optional[StrictBool] = None, + page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, + page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, + binary_search_str: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -695,6 +710,12 @@ def get_collection_with_http_info( :type include_tags: bool :param include_binaries: :type include_binaries: bool + :param page_size: + :type page_size: int + :param page_number: + :type page_number: int + :param binary_search_str: + :type binary_search_str: str :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 @@ -721,6 +742,9 @@ def get_collection_with_http_info( collection_id=collection_id, include_tags=include_tags, include_binaries=include_binaries, + page_size=page_size, + page_number=page_number, + binary_search_str=binary_search_str, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -748,6 +772,9 @@ def get_collection_without_preload_content( collection_id: StrictInt, include_tags: Optional[StrictBool] = None, include_binaries: Optional[StrictBool] = None, + page_size: Optional[Annotated[int, Field(le=100, strict=True, ge=1)]] = None, + page_number: Optional[Annotated[int, Field(strict=True, ge=1)]] = None, + binary_search_str: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -771,6 +798,12 @@ def get_collection_without_preload_content( :type include_tags: bool :param include_binaries: :type include_binaries: bool + :param page_size: + :type page_size: int + :param page_number: + :type page_number: int + :param binary_search_str: + :type binary_search_str: str :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 @@ -797,6 +830,9 @@ def get_collection_without_preload_content( collection_id=collection_id, include_tags=include_tags, include_binaries=include_binaries, + page_size=page_size, + page_number=page_number, + binary_search_str=binary_search_str, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -819,6 +855,9 @@ def _get_collection_serialize( collection_id, include_tags, include_binaries, + page_size, + page_number, + binary_search_str, _request_auth, _content_type, _headers, @@ -851,6 +890,18 @@ def _get_collection_serialize( _query_params.append(('include_binaries', include_binaries)) + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if page_number is not None: + + _query_params.append(('page_number', page_number)) + + if binary_search_str is not None: + + _query_params.append(('binary_search_str', binary_search_str)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/revengai/api_client.py b/revengai/api_client.py index dfe1fa1..694127c 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v2.46.0/python' + self.user_agent = 'OpenAPI-Generator/v2.49.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 1956650..e791fc9 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v2.46.0\n"\ - "SDK Package Version: v2.46.0".\ + "Version of the API: v2.49.0\n"\ + "SDK Package Version: v2.49.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: