Skip to content

Commit

Permalink
Generate SDK with OpenAPI Generator Version 7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Oct 8, 2024
1 parent 17b768f commit 5d6537d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
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

0 comments on commit 5d6537d

Please sign in to comment.