Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.46.0
v2.49.0
10 changes: 8 additions & 2 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v2.46.0"
__version__ = "v2.49.0"

# Define package exports
__all__ = [
Expand Down
51 changes: 51 additions & 0 deletions revengai/api/collections_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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)],
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down