Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
add get_next_page operation to default api
  • Loading branch information
Kate Brune
Kate Brune committed Aug 28, 2024
commit fb6da4f61601ac217b299dab9f13bc5c202e965a
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,5 @@ requirements.txt
setup.cfg
setup.py
test/__init__.py
test/test_default_api.py
tox.ini
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 4.6.2
- Package version: 4.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.freeclimb.com/support/](https://www.freeclimb.com/support/)

Expand Down
2 changes: 1 addition & 1 deletion freeclimb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "4.6.2"
__version__ = "4.7.0"

# import ApiClient
from freeclimb.api_client import ApiClient
Expand Down
126 changes: 126 additions & 0 deletions freeclimb/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8365,3 +8365,129 @@ def update_an_incoming_number(

return self.update_an_incoming_number_endpoint.call_with_http_info(**kwargs)


def get_next_page(
self,
response,
**kwargs
):
"""Get Next Page

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

>>> thread = api.get_next_page(response, async_req=True)
>>> result = thread.get()

Args:
response (object): Response from previous request to get paginated list resource.

Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): 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.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously

Returns:
object
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')

if not hasattr(response, 'next_page_uri') or not response.next_page_uri:
raise ValueError("The response object does not have a next_page_uri attribute or it is empty.")

endpoint = _Endpoint(
settings={
'response_type': (type(response),),
'auth': [
'fc'
],
'endpoint_path': response.next_page_uri,
'operation_id': 'get_next_page',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
],
'required': [
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
},
'attribute_map': {
},
'location_map': {
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=self.api_client
)

return endpoint.call_with_http_info(**kwargs)

2 changes: 1 addition & 1 deletion freeclimb/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.6.2/python'
self.user_agent = 'OpenAPI-Generator/4.7.0/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion freeclimb/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 4.6.2".\
"SDK Package Version: 4.7.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
18 changes: 18 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3783,6 +3783,7 @@
"tags": [],
"summary": "List applications",
"operationId": "list-applications",
"x-is-paginated": true,
"parameters": [
{
"name": "alias",
Expand Down Expand Up @@ -3850,6 +3851,7 @@
"tags": [],
"summary": "List available numbers",
"operationId": "list-available-numbers",
"x-is-paginated": true,
"parameters": [
{
"name": "phoneNumber",
Expand Down Expand Up @@ -4035,6 +4037,7 @@
"tags": [],
"summary": "List Incoming Numbers",
"operationId": "list-incoming-numbers",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -4316,6 +4319,7 @@
"tags": [],
"summary": "List Calls",
"operationId": "list-calls",
"x-is-paginated": true,
"parameters": [
{
"name": "active",
Expand Down Expand Up @@ -4420,6 +4424,7 @@
"tags": [],
"summary": "List Call Recordings",
"operationId": "list-call-recordings",
"x-is-paginated": true,
"parameters": [
{
"name": "dateCreated",
Expand Down Expand Up @@ -4463,6 +4468,7 @@
"tags": [],
"summary": "List Call Logs",
"operationId": "list-call-logs",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -4566,6 +4572,7 @@
"tags": [],
"summary": "List Conferences",
"operationId": "list-conferences",
"x-is-paginated": true,
"parameters": [
{
"name": "status",
Expand Down Expand Up @@ -4824,6 +4831,7 @@
"tags": [],
"summary": "List Participants",
"operationId": "list-participants",
"x-is-paginated": true,
"parameters": [
{
"name": "talk",
Expand Down Expand Up @@ -4876,6 +4884,7 @@
"tags": [],
"summary": "List Conference Recordings",
"operationId": "list-conference-recordings",
"x-is-paginated": true,
"parameters": [
{
"name": "callId",
Expand Down Expand Up @@ -5004,6 +5013,7 @@
"tags": [],
"summary": "List Active Queues",
"operationId": "list-active-queues",
"x-is-paginated": true,
"parameters": [
{
"name": "alias",
Expand Down Expand Up @@ -5137,6 +5147,7 @@
"tags": [],
"summary": "List Members",
"operationId": "list-members",
"x-is-paginated": "true",
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5255,6 +5266,7 @@
"tags": [],
"summary": "List All Account Logs",
"operationId": "list-all-account-logs",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5314,6 +5326,7 @@
"tags": [],
"summary": "List Recordings",
"operationId": "list-recordings",
"x-is-paginated": true,
"parameters": [
{
"name": "callId",
Expand Down Expand Up @@ -5495,6 +5508,7 @@
"tags": [],
"summary": "List SMS Messages",
"operationId": "list-sms-messages",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5660,6 +5674,7 @@
"tags": [],
"summary": "Get list of SMS 10DLC Campaigns",
"operationId": "get-tenDLC-sms-Campaigns",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5772,6 +5787,7 @@
"tags": [],
"summary": "Get list of SMS 10DLC Partner Campaigns",
"operationId": "get-tenDLC-sms-partnerCampaigns",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5893,6 +5909,7 @@
"tags": [],
"summary": "Get list of SMS 10DLC Brands",
"operationId": "get-tenDLC-sms-brands",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down Expand Up @@ -5994,6 +6011,7 @@
"tags": [],
"summary": "Get list of TollFree Campaigns",
"operationId": "get-tollFree-sms-campaigns",
"x-is-paginated": true,
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "FreeClimb"
VERSION = "4.6.2"
VERSION = "4.7.0"
# To install the library, run the following
#
# python setup.py install
Expand Down
Loading