Skip to content

Commit

Permalink
Generate SDK with OpenAPI Generator Version 7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Oct 8, 2024
1 parent 60c8275 commit 672b5f1
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 12 deletions.
23 changes: 21 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5461,8 +5461,27 @@ components:
application/json:
schema:
$ref: '#/components/schemas/updateCall'
description: JSON object containing information to redirect an existing call
to a new BXML document
application/xml:
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>
schema:
description: A valid BXML document to replace the call's current BXML.
type: string
description: JSON or BXML object containing information to redirect an existing
call to a new BXML document
required: true
updateCallBxmlRequest:
content:
Expand Down
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
6 changes: 3 additions & 3 deletions docs/CallsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public class Example {
CallsApi apiInstance = new CallsApi(defaultClient);
String accountId = "9900000"; // String | Your Bandwidth Account ID.
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
UpdateCall updateCall = new UpdateCall(); // UpdateCall | JSON object containing information to redirect an existing call to a new BXML document
UpdateCall updateCall = new UpdateCall(); // UpdateCall | JSON or BXML object containing information to redirect an existing call to a new BXML document
try {
apiInstance.updateCall(accountId, callId, updateCall);
} catch (ApiException e) {
Expand All @@ -308,7 +308,7 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **accountId** | **String**| Your Bandwidth Account ID. | |
| **callId** | **String**| Programmable Voice API Call ID. | |
| **updateCall** | [**UpdateCall**](UpdateCall.md)| JSON object containing information to redirect an existing call to a new BXML document | |
| **updateCall** | [**UpdateCall**](UpdateCall.md)| JSON or BXML object containing information to redirect an existing call to a new BXML document | |

### Return type

Expand All @@ -320,7 +320,7 @@ null (empty response body)

### HTTP request headers

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

### HTTP response details
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/bandwidth/sdk/api/CallsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ public okhttp3.Call listCallsAsync(String accountId, String to, String from, Str
* Build call for updateCall
* @param accountId Your Bandwidth Account ID. (required)
* @param callId Programmable Voice API Call ID. (required)
* @param updateCall JSON object containing information to redirect an existing call to a new BXML document (required)
* @param updateCall JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand Down Expand Up @@ -676,7 +676,8 @@ public okhttp3.Call updateCallCall(String accountId, String callId, UpdateCall u
}

final String[] localVarContentTypes = {
"application/json"
"application/json",
"application/xml"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
Expand Down Expand Up @@ -713,7 +714,7 @@ private okhttp3.Call updateCallValidateBeforeCall(String accountId, String callI
* Interrupts and redirects a call to a different URL that should return a BXML document.
* @param accountId Your Bandwidth Account ID. (required)
* @param callId Programmable Voice API Call ID. (required)
* @param updateCall JSON object containing information to redirect an existing call to a new BXML document (required)
* @param updateCall JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table summary="Response Details" border="1">
Expand All @@ -739,7 +740,7 @@ public void updateCall(String accountId, String callId, UpdateCall updateCall) t
* Interrupts and redirects a call to a different URL that should return a BXML document.
* @param accountId Your Bandwidth Account ID. (required)
* @param callId Programmable Voice API Call ID. (required)
* @param updateCall JSON object containing information to redirect an existing call to a new BXML document (required)
* @param updateCall JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand Down Expand Up @@ -767,7 +768,7 @@ public ApiResponse<Void> updateCallWithHttpInfo(String accountId, String callId,
* Interrupts and redirects a call to a different URL that should return a BXML document.
* @param accountId Your Bandwidth Account ID. (required)
* @param callId Programmable Voice API Call ID. (required)
* @param updateCall JSON object containing information to redirect an existing call to a new BXML document (required)
* @param updateCall JSON or BXML object containing information to redirect an existing call to a new BXML document (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
Expand Down

0 comments on commit 672b5f1

Please sign in to comment.