Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-6317 Update SDK Based on Recent Spec Changes #225

Closed
wants to merge 1 commit into from
Closed
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
23 changes: 21 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5658,13 +5658,32 @@ components:
$ref: '#/components/schemas/createCall'
updateCallRequest:
description: >-
JSON object containing information to redirect an existing call to a new
BXML document
JSON or BXML object containing information to redirect an existing call
to a new BXML document
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/updateCall'
application/xml:
schema:
type: string
description: A valid BXML document to replace the call's current BXML.
examples:
speakSentence:
summary: Speak Sentence
value: |-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Bxml>
<SpeakSentence>This is a test sentence.</SpeakSentence>
</Bxml>
redirectUrl:
summary: Redirect
value: |-
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Bxml>
<Redirect redirectUrl="https://test.example" redirectMethod="GET"/>
</Bxml>
updateCallBxmlRequest:
required: true
content:
Expand Down
15 changes: 8 additions & 7 deletions bandwidth/api/calls_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ def update_call(
self,
account_id: Annotated[StrictStr, Field(description="Your Bandwidth Account ID.")],
call_id: Annotated[StrictStr, Field(description="Programmable Voice API Call ID.")],
update_call: Annotated[UpdateCall, Field(description="JSON object containing information to redirect an existing call to a new BXML document")],
update_call: Annotated[UpdateCall, Field(description="JSON or BXML object containing information to redirect an existing call to a new BXML document")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1090,7 +1090,7 @@ def update_call(
:type account_id: str
:param call_id: Programmable Voice API Call ID. (required)
:type call_id: str
:param update_call: JSON object containing information to redirect an existing call to a new BXML document (required)
:param update_call: JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
:type update_call: UpdateCall
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -1152,7 +1152,7 @@ def update_call_with_http_info(
self,
account_id: Annotated[StrictStr, Field(description="Your Bandwidth Account ID.")],
call_id: Annotated[StrictStr, Field(description="Programmable Voice API Call ID.")],
update_call: Annotated[UpdateCall, Field(description="JSON object containing information to redirect an existing call to a new BXML document")],
update_call: Annotated[UpdateCall, Field(description="JSON or BXML object containing information to redirect an existing call to a new BXML document")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1174,7 +1174,7 @@ def update_call_with_http_info(
:type account_id: str
:param call_id: Programmable Voice API Call ID. (required)
:type call_id: str
:param update_call: JSON object containing information to redirect an existing call to a new BXML document (required)
:param update_call: JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
:type update_call: UpdateCall
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -1236,7 +1236,7 @@ def update_call_without_preload_content(
self,
account_id: Annotated[StrictStr, Field(description="Your Bandwidth Account ID.")],
call_id: Annotated[StrictStr, Field(description="Programmable Voice API Call ID.")],
update_call: Annotated[UpdateCall, Field(description="JSON object containing information to redirect an existing call to a new BXML document")],
update_call: Annotated[UpdateCall, Field(description="JSON or BXML object containing information to redirect an existing call to a new BXML document")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1258,7 +1258,7 @@ def update_call_without_preload_content(
:type account_id: str
:param call_id: Programmable Voice API Call ID. (required)
:type call_id: str
:param update_call: JSON object containing information to redirect an existing call to a new BXML document (required)
:param update_call: JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
:type update_call: UpdateCall
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -1365,7 +1365,8 @@ def _update_call_serialize(
_default_content_type = (
self.api_client.select_header_content_type(
[
'application/json'
'application/json',
'application/xml'
]
)
)
Expand Down
6 changes: 3 additions & 3 deletions docs/CallsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ with bandwidth.ApiClient(configuration) as api_client:
api_instance = bandwidth.CallsApi(api_client)
account_id = '9900000' # str | Your Bandwidth Account ID.
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # str | Programmable Voice API Call ID.
update_call = bandwidth.UpdateCall() # UpdateCall | JSON object containing information to redirect an existing call to a new BXML document
update_call = bandwidth.UpdateCall() # UpdateCall | JSON or BXML object containing information to redirect an existing call to a new BXML document

try:
# Update Call
Expand All @@ -349,7 +349,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**account_id** | **str**| Your Bandwidth Account ID. |
**call_id** | **str**| Programmable Voice API Call ID. |
**update_call** | [**UpdateCall**](UpdateCall.md)| JSON object containing information to redirect an existing call to a new BXML document |
**update_call** | [**UpdateCall**](UpdateCall.md)| JSON or BXML object containing information to redirect an existing call to a new BXML document |

### Return type

Expand All @@ -361,7 +361,7 @@ void (empty response body)

### HTTP request headers

- **Content-Type**: application/json
- **Content-Type**: application/json, application/xml
- **Accept**: application/json

### HTTP response details
Expand Down