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-6319 Update SDK Based on Recent Spec Changes #123

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
10 changes: 5 additions & 5 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{4B6F94E7-BD68-40BD-AE9F-6E0A2DABA2E1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{864CAADC-43D9-494A-A094-B09DDADE42FE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4B6F94E7-BD68-40BD-AE9F-6E0A2DABA2E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4B6F94E7-BD68-40BD-AE9F-6E0A2DABA2E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4B6F94E7-BD68-40BD-AE9F-6E0A2DABA2E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4B6F94E7-BD68-40BD-AE9F-6E0A2DABA2E1}.Release|Any CPU.Build.0 = Release|Any CPU
{864CAADC-43D9-494A-A094-B09DDADE42FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{864CAADC-43D9-494A-A094-B09DDADE42FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{864CAADC-43D9-494A-A094-B09DDADE42FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{864CAADC-43D9-494A-A094-B09DDADE42FE}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
23 changes: 21 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5364,8 +5364,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 @@ -368,7 +368,7 @@ namespace Example
var apiInstance = new CallsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var updateCall = new UpdateCall(); // UpdateCall | JSON object containing information to redirect an existing call to a new BXML document
var updateCall = new UpdateCall(); // UpdateCall | JSON or BXML object containing information to redirect an existing call to a new BXML document

try
{
Expand Down Expand Up @@ -409,7 +409,7 @@ catch (ApiException e)
|------|------|-------------|-------|
| **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 @@ -421,7 +421,7 @@ void (empty response body)

### HTTP request headers

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


Expand Down
22 changes: 12 additions & 10 deletions src/Bandwidth.Standard/Api/CallsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public interface ICallsApiSync : IApiAccessor
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns></returns>
void UpdateCall(string accountId, string callId, UpdateCall updateCall, int operationIndex = 0);
Expand All @@ -137,7 +137,7 @@ public interface ICallsApiSync : IApiAccessor
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdateCallWithHttpInfo(string accountId, string callId, UpdateCall updateCall, int operationIndex = 0);
Expand Down Expand Up @@ -279,7 +279,7 @@ public interface ICallsApiAsync : IApiAccessor
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of void</returns>
Expand All @@ -294,7 +294,7 @@ public interface ICallsApiAsync : IApiAccessor
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse</returns>
Expand Down Expand Up @@ -1044,7 +1044,7 @@ public Bandwidth.Standard.Client.ApiResponse<CallState> GetCallStateWithHttpInfo
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns></returns>
public void UpdateCall(string accountId, string callId, UpdateCall updateCall, int operationIndex = 0)
Expand All @@ -1058,7 +1058,7 @@ public void UpdateCall(string accountId, string callId, UpdateCall updateCall, i
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of Object(void)</returns>
public Bandwidth.Standard.Client.ApiResponse<Object> UpdateCallWithHttpInfo(string accountId, string callId, UpdateCall updateCall, int operationIndex = 0)
Expand All @@ -1084,7 +1084,8 @@ public Bandwidth.Standard.Client.ApiResponse<Object> UpdateCallWithHttpInfo(stri
Bandwidth.Standard.Client.RequestOptions localVarRequestOptions = new Bandwidth.Standard.Client.RequestOptions();

string[] _contentTypes = new string[] {
"application/json"
"application/json",
"application/xml"
};

// to determine the Accept header
Expand Down Expand Up @@ -1138,7 +1139,7 @@ public Bandwidth.Standard.Client.ApiResponse<Object> UpdateCallWithHttpInfo(stri
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of void</returns>
Expand All @@ -1153,7 +1154,7 @@ public Bandwidth.Standard.Client.ApiResponse<Object> UpdateCallWithHttpInfo(stri
/// <exception cref="Bandwidth.Standard.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="accountId">Your Bandwidth Account ID.</param>
/// <param name="callId">Programmable Voice API Call ID.</param>
/// <param name="updateCall">JSON object containing information to redirect an existing call to a new BXML document</param>
/// <param name="updateCall">JSON or BXML object containing information to redirect an existing call to a new BXML document</param>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse</returns>
Expand Down Expand Up @@ -1181,7 +1182,8 @@ public Bandwidth.Standard.Client.ApiResponse<Object> UpdateCallWithHttpInfo(stri
Bandwidth.Standard.Client.RequestOptions localVarRequestOptions = new Bandwidth.Standard.Client.RequestOptions();

string[] _contentTypes = new string[] {
"application/json"
"application/json",
"application/xml"
};

// to determine the Accept header
Expand Down
Loading