From 5d6537d229b497084d847f60e0e797feb7904dfb Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 8 Oct 2024 14:04:52 +0000 Subject: [PATCH] Generate SDK with OpenAPI Generator Version 7.7.0 --- bandwidth.yml | 23 +++++++++++++++++++++-- bandwidth/api/calls_api.py | 15 ++++++++------- docs/CallsApi.md | 6 +++--- 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/bandwidth.yml b/bandwidth.yml index c4b1fb2b..1361c836 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -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: |- + + + This is a test sentence. + + redirectUrl: + summary: Redirect + value: |- + + + + updateCallBxmlRequest: required: true content: diff --git a/bandwidth/api/calls_api.py b/bandwidth/api/calls_api.py index 1d1a13c4..6d2512ef 100644 --- a/bandwidth/api/calls_api.py +++ b/bandwidth/api/calls_api.py @@ -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)], @@ -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 @@ -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)], @@ -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 @@ -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)], @@ -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 @@ -1365,7 +1365,8 @@ def _update_call_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'application/json', + 'application/xml' ] ) ) diff --git a/docs/CallsApi.md b/docs/CallsApi.md index 5e4896bc..5473a9a3 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -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 @@ -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 @@ -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