Skip to content

Commit fb6da4f

Browse files
author
Kate Brune
committed
add get_next_page operation to default api
1 parent 302393e commit fb6da4f

9 files changed

Lines changed: 448 additions & 5 deletions

File tree

‎.openapi-generator/FILES‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,5 @@ requirements.txt
301301
setup.cfg
302302
setup.py
303303
test/__init__.py
304+
test/test_default_api.py
304305
tox.ini

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

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

‎freeclimb/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.6.2"
14+
__version__ = "4.7.0"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient

‎freeclimb/api/default_api.py‎

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8365,3 +8365,129 @@ def update_an_incoming_number(
83658365

83668366
return self.update_an_incoming_number_endpoint.call_with_http_info(**kwargs)
83678367

8368+
8369+
def get_next_page(
8370+
self,
8371+
response,
8372+
**kwargs
8373+
):
8374+
"""Get Next Page
8375+
8376+
This method makes a synchronous HTTP request by default. To make an
8377+
asynchronous HTTP request, please pass async_req=True
8378+
8379+
>>> thread = api.get_next_page(response, async_req=True)
8380+
>>> result = thread.get()
8381+
8382+
Args:
8383+
response (object): Response from previous request to get paginated list resource.
8384+
8385+
Keyword Args:
8386+
_return_http_data_only (bool): response data without head status
8387+
code and headers. Default is True.
8388+
_preload_content (bool): if False, the urllib3.HTTPResponse object
8389+
will be returned without reading/decoding response data.
8390+
Default is True.
8391+
_request_timeout (int/float/tuple): timeout setting for this request. If
8392+
one number provided, it will be total request timeout. It can also
8393+
be a pair (tuple) of (connection, read) timeouts.
8394+
Default is None.
8395+
_check_input_type (bool): specifies if type checking
8396+
should be done one the data sent to the server.
8397+
Default is True.
8398+
_check_return_type (bool): specifies if type checking
8399+
should be done one the data received from the server.
8400+
Default is True.
8401+
_spec_property_naming (bool): True if the variable names in the input data
8402+
are serialized names, as specified in the OpenAPI document.
8403+
False if the variable names in the input data
8404+
are pythonic names, e.g. snake case (default)
8405+
_content_type (str/None): force body content-type.
8406+
Default is None and content-type will be predicted by allowed
8407+
content-types and body.
8408+
_host_index (int/None): specifies the index of the server
8409+
that we want to use.
8410+
Default is read from the configuration.
8411+
async_req (bool): execute request asynchronously
8412+
8413+
Returns:
8414+
object
8415+
If the method is called asynchronously, returns the request
8416+
thread.
8417+
"""
8418+
kwargs['async_req'] = kwargs.get(
8419+
'async_req', False
8420+
)
8421+
kwargs['_return_http_data_only'] = kwargs.get(
8422+
'_return_http_data_only', True
8423+
)
8424+
kwargs['_preload_content'] = kwargs.get(
8425+
'_preload_content', True
8426+
)
8427+
kwargs['_request_timeout'] = kwargs.get(
8428+
'_request_timeout', None
8429+
)
8430+
kwargs['_check_input_type'] = kwargs.get(
8431+
'_check_input_type', True
8432+
)
8433+
kwargs['_check_return_type'] = kwargs.get(
8434+
'_check_return_type', True
8435+
)
8436+
kwargs['_spec_property_naming'] = kwargs.get(
8437+
'_spec_property_naming', False
8438+
)
8439+
kwargs['_content_type'] = kwargs.get(
8440+
'_content_type')
8441+
kwargs['_host_index'] = kwargs.get('_host_index')
8442+
8443+
if not hasattr(response, 'next_page_uri') or not response.next_page_uri:
8444+
raise ValueError("The response object does not have a next_page_uri attribute or it is empty.")
8445+
8446+
endpoint = _Endpoint(
8447+
settings={
8448+
'response_type': (type(response),),
8449+
'auth': [
8450+
'fc'
8451+
],
8452+
'endpoint_path': response.next_page_uri,
8453+
'operation_id': 'get_next_page',
8454+
'http_method': 'GET',
8455+
'servers': None,
8456+
},
8457+
params_map={
8458+
'all': [
8459+
],
8460+
'required': [
8461+
],
8462+
'nullable': [
8463+
],
8464+
'enum': [
8465+
],
8466+
'validation': [
8467+
]
8468+
},
8469+
root_map={
8470+
'validations': {
8471+
},
8472+
'allowed_values': {
8473+
},
8474+
'openapi_types': {
8475+
},
8476+
'attribute_map': {
8477+
},
8478+
'location_map': {
8479+
},
8480+
'collection_format_map': {
8481+
}
8482+
},
8483+
headers_map={
8484+
'accept': [
8485+
'application/json'
8486+
],
8487+
'content_type': [],
8488+
},
8489+
api_client=self.api_client
8490+
)
8491+
8492+
return endpoint.call_with_http_info(**kwargs)
8493+

‎freeclimb/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/4.6.2/python'
80+
self.user_agent = 'OpenAPI-Generator/4.7.0/python'
8181

8282
def __enter__(self):
8383
return self

‎freeclimb/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def to_debug_report(self):
405405
"OS: {env}\n"\
406406
"Python Version: {pyversion}\n"\
407407
"Version of the API: 1.0.0\n"\
408-
"SDK Package Version: 4.6.2".\
408+
"SDK Package Version: 4.7.0".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

‎openapi.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3783,6 +3783,7 @@
37833783
"tags": [],
37843784
"summary": "List applications",
37853785
"operationId": "list-applications",
3786+
"x-is-paginated": true,
37863787
"parameters": [
37873788
{
37883789
"name": "alias",
@@ -3850,6 +3851,7 @@
38503851
"tags": [],
38513852
"summary": "List available numbers",
38523853
"operationId": "list-available-numbers",
3854+
"x-is-paginated": true,
38533855
"parameters": [
38543856
{
38553857
"name": "phoneNumber",
@@ -4035,6 +4037,7 @@
40354037
"tags": [],
40364038
"summary": "List Incoming Numbers",
40374039
"operationId": "list-incoming-numbers",
4040+
"x-is-paginated": true,
40384041
"parameters": [
40394042
{
40404043
"$ref": "#/components/parameters/AccountId"
@@ -4316,6 +4319,7 @@
43164319
"tags": [],
43174320
"summary": "List Calls",
43184321
"operationId": "list-calls",
4322+
"x-is-paginated": true,
43194323
"parameters": [
43204324
{
43214325
"name": "active",
@@ -4420,6 +4424,7 @@
44204424
"tags": [],
44214425
"summary": "List Call Recordings",
44224426
"operationId": "list-call-recordings",
4427+
"x-is-paginated": true,
44234428
"parameters": [
44244429
{
44254430
"name": "dateCreated",
@@ -4463,6 +4468,7 @@
44634468
"tags": [],
44644469
"summary": "List Call Logs",
44654470
"operationId": "list-call-logs",
4471+
"x-is-paginated": true,
44664472
"parameters": [
44674473
{
44684474
"$ref": "#/components/parameters/AccountId"
@@ -4566,6 +4572,7 @@
45664572
"tags": [],
45674573
"summary": "List Conferences",
45684574
"operationId": "list-conferences",
4575+
"x-is-paginated": true,
45694576
"parameters": [
45704577
{
45714578
"name": "status",
@@ -4824,6 +4831,7 @@
48244831
"tags": [],
48254832
"summary": "List Participants",
48264833
"operationId": "list-participants",
4834+
"x-is-paginated": true,
48274835
"parameters": [
48284836
{
48294837
"name": "talk",
@@ -4876,6 +4884,7 @@
48764884
"tags": [],
48774885
"summary": "List Conference Recordings",
48784886
"operationId": "list-conference-recordings",
4887+
"x-is-paginated": true,
48794888
"parameters": [
48804889
{
48814890
"name": "callId",
@@ -5004,6 +5013,7 @@
50045013
"tags": [],
50055014
"summary": "List Active Queues",
50065015
"operationId": "list-active-queues",
5016+
"x-is-paginated": true,
50075017
"parameters": [
50085018
{
50095019
"name": "alias",
@@ -5137,6 +5147,7 @@
51375147
"tags": [],
51385148
"summary": "List Members",
51395149
"operationId": "list-members",
5150+
"x-is-paginated": "true",
51405151
"parameters": [
51415152
{
51425153
"$ref": "#/components/parameters/AccountId"
@@ -5255,6 +5266,7 @@
52555266
"tags": [],
52565267
"summary": "List All Account Logs",
52575268
"operationId": "list-all-account-logs",
5269+
"x-is-paginated": true,
52585270
"parameters": [
52595271
{
52605272
"$ref": "#/components/parameters/AccountId"
@@ -5314,6 +5326,7 @@
53145326
"tags": [],
53155327
"summary": "List Recordings",
53165328
"operationId": "list-recordings",
5329+
"x-is-paginated": true,
53175330
"parameters": [
53185331
{
53195332
"name": "callId",
@@ -5495,6 +5508,7 @@
54955508
"tags": [],
54965509
"summary": "List SMS Messages",
54975510
"operationId": "list-sms-messages",
5511+
"x-is-paginated": true,
54985512
"parameters": [
54995513
{
55005514
"$ref": "#/components/parameters/AccountId"
@@ -5660,6 +5674,7 @@
56605674
"tags": [],
56615675
"summary": "Get list of SMS 10DLC Campaigns",
56625676
"operationId": "get-tenDLC-sms-Campaigns",
5677+
"x-is-paginated": true,
56635678
"parameters": [
56645679
{
56655680
"$ref": "#/components/parameters/AccountId"
@@ -5772,6 +5787,7 @@
57725787
"tags": [],
57735788
"summary": "Get list of SMS 10DLC Partner Campaigns",
57745789
"operationId": "get-tenDLC-sms-partnerCampaigns",
5790+
"x-is-paginated": true,
57755791
"parameters": [
57765792
{
57775793
"$ref": "#/components/parameters/AccountId"
@@ -5893,6 +5909,7 @@
58935909
"tags": [],
58945910
"summary": "Get list of SMS 10DLC Brands",
58955911
"operationId": "get-tenDLC-sms-brands",
5912+
"x-is-paginated": true,
58965913
"parameters": [
58975914
{
58985915
"$ref": "#/components/parameters/AccountId"
@@ -5994,6 +6011,7 @@
59946011
"tags": [],
59956012
"summary": "Get list of TollFree Campaigns",
59966013
"operationId": "get-tollFree-sms-campaigns",
6014+
"x-is-paginated": true,
59976015
"parameters": [
59986016
{
59996017
"$ref": "#/components/parameters/AccountId"

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "FreeClimb"
15-
VERSION = "4.6.2"
15+
VERSION = "4.7.0"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)