Skip to content

Commit e1bbfd0

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent b0f6c10 commit e1bbfd0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2238
-60
lines changed

.openapi-generator/FILES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ docs/RbmMessageContentFile.md
135135
docs/RbmMessageContentRichCard.md
136136
docs/RbmMessageContentText.md
137137
docs/RbmMessageMedia.md
138+
docs/RbmOpenUrlEnum.md
138139
docs/RbmStandaloneCard.md
139140
docs/RbmSuggestionResponse.md
141+
docs/RbmVebViewEnum.md
140142
docs/RecordingAvailableCallback.md
141143
docs/RecordingCompleteCallback.md
142144
docs/RecordingStateEnum.md
@@ -202,6 +204,9 @@ src/Bandwidth.Standard/Api/TranscriptionsApi.cs
202204
src/Bandwidth.Standard/Client/ApiClient.cs
203205
src/Bandwidth.Standard/Client/ApiException.cs
204206
src/Bandwidth.Standard/Client/ApiResponse.cs
207+
src/Bandwidth.Standard/Client/Auth/OAuthAuthenticator.cs
208+
src/Bandwidth.Standard/Client/Auth/OAuthFlow.cs
209+
src/Bandwidth.Standard/Client/Auth/TokenResponse.cs
205210
src/Bandwidth.Standard/Client/ClientUtils.cs
206211
src/Bandwidth.Standard/Client/Configuration.cs
207212
src/Bandwidth.Standard/Client/ExceptionFactory.cs
@@ -342,8 +347,10 @@ src/Bandwidth.Standard/Model/RbmMessageContentFile.cs
342347
src/Bandwidth.Standard/Model/RbmMessageContentRichCard.cs
343348
src/Bandwidth.Standard/Model/RbmMessageContentText.cs
344349
src/Bandwidth.Standard/Model/RbmMessageMedia.cs
350+
src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs
345351
src/Bandwidth.Standard/Model/RbmStandaloneCard.cs
346352
src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs
353+
src/Bandwidth.Standard/Model/RbmVebViewEnum.cs
347354
src/Bandwidth.Standard/Model/RecordingAvailableCallback.cs
348355
src/Bandwidth.Standard/Model/RecordingCompleteCallback.cs
349356
src/Bandwidth.Standard/Model/RecordingStateEnum.cs

Bandwidth.Standard.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{90963038-62D5-4C4E-931F-91B8A5342BAC}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{8553E87A-245E-4BE1-B540-298581E0FC38}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{8553E87A-245E-4BE1-B540-298581E0FC38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{8553E87A-245E-4BE1-B540-298581E0FC38}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{8553E87A-245E-4BE1-B540-298581E0FC38}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{8553E87A-245E-4BE1-B540-298581E0FC38}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ namespace Example
7878
// Configure HTTP basic authorization: Basic
7979
config.Username = "YOUR_USERNAME";
8080
config.Password = "YOUR_PASSWORD";
81+
// Configure OAuth2 access token for authorization: OAuth2
82+
config.AccessToken = "YOUR_ACCESS_TOKEN";
8183

8284
var apiInstance = new CallsApi(config);
8385
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -289,8 +291,10 @@ Class | Method | HTTP request | Description
289291
- [Model.RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
290292
- [Model.RbmMessageContentText](docs/RbmMessageContentText.md)
291293
- [Model.RbmMessageMedia](docs/RbmMessageMedia.md)
294+
- [Model.RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
292295
- [Model.RbmStandaloneCard](docs/RbmStandaloneCard.md)
293296
- [Model.RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
297+
- [Model.RbmVebViewEnum](docs/RbmVebViewEnum.md)
294298
- [Model.RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
295299
- [Model.RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
296300
- [Model.RecordingStateEnum](docs/RecordingStateEnum.md)
@@ -349,3 +353,11 @@ Authentication schemes defined for the API:
349353

350354
- **Type**: HTTP basic authentication
351355

356+
<a id="OAuth2"></a>
357+
### OAuth2
358+
359+
- **Type**: OAuth
360+
- **Flow**: application
361+
- **Authorization URL**:
362+
- **Scopes**: N/A
363+

api/openapi.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ servers:
1111
- url: /
1212
security:
1313
- Basic: []
14+
- OAuth2: []
1415
tags:
1516
- name: Messages
1617
- name: Media
@@ -8868,6 +8869,26 @@ components:
88688869
- REQUEST_LOCATION
88698870
example: REPLY
88708871
type: string
8872+
rbmOpenUrlEnum:
8873+
description: "Specifies how the URL should be opened on a mobile device.\n-\
8874+
\ `BROWSER` Opens the URL in the device's default browser. If application\
8875+
\ is not set or the device doesn’t support WebView, this option is used by\
8876+
\ default. \n- `WEBVIEW` Opens the URL in an in-app WebView."
8877+
enum:
8878+
- BROWSER
8879+
- WEBVIEW
8880+
example: WEBVIEW
8881+
type: string
8882+
rbmVebViewEnum:
8883+
description: "Defines the layout of the WebView on a mobile device. It must\
8884+
\ be defined when application is set to `WEBVIEW`\n- `FULL` WebView takes\
8885+
\ the full screen. \n- `HALF` WebView takes half of the screen.\n- `TALL`\
8886+
\ WebView takes three-quarters of the screen."
8887+
enum:
8888+
- FULL
8889+
- HALF
8890+
- TALL
8891+
type: string
88718892
rbmActionText:
88728893
description: Displayed text for user to click
88738894
example: Hello world
@@ -8986,6 +9007,10 @@ components:
89869007
format: uri
89879008
maxLength: 2048
89889009
type: string
9010+
application:
9011+
$ref: '#/components/schemas/rbmOpenUrlEnum'
9012+
webviewViewMode:
9013+
$ref: '#/components/schemas/rbmVebViewEnum'
89899014
required:
89909015
- url
89919016
title: Open URL
@@ -14800,4 +14825,10 @@ components:
1480014825
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
1480114826
scheme: basic
1480214827
type: http
14828+
OAuth2:
14829+
flows:
14830+
clientCredentials:
14831+
scopes: {}
14832+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
14833+
type: oauth2
1480314834

bandwidth.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ info:
99
version: 1.0.0
1010
security:
1111
- Basic: []
12+
- OAuth2: []
1213
tags:
1314
- name: Messages
1415
- name: Media
@@ -2377,6 +2378,35 @@ components:
23772378
- OPEN_URL
23782379
- REQUEST_LOCATION
23792380
example: REPLY
2381+
rbmOpenUrlEnum:
2382+
type: string
2383+
description: >-
2384+
Specifies how the URL should be opened on a mobile device.
2385+
2386+
- `BROWSER` Opens the URL in the device's default browser. If
2387+
application is not set or the device doesn’t support WebView, this
2388+
option is used by default.
2389+
2390+
- `WEBVIEW` Opens the URL in an in-app WebView.
2391+
enum:
2392+
- BROWSER
2393+
- WEBVIEW
2394+
example: WEBVIEW
2395+
rbmVebViewEnum:
2396+
type: string
2397+
description: >-
2398+
Defines the layout of the WebView on a mobile device. It must be defined
2399+
when application is set to `WEBVIEW`
2400+
2401+
- `FULL` WebView takes the full screen.
2402+
2403+
- `HALF` WebView takes half of the screen.
2404+
2405+
- `TALL` WebView takes three-quarters of the screen.
2406+
enum:
2407+
- FULL
2408+
- HALF
2409+
- TALL
23802410
rbmActionText:
23812411
title: Text
23822412
type: string
@@ -2481,6 +2511,10 @@ components:
24812511
description: The URL to open in browser.
24822512
example: https://dev.bandwidth.com
24832513
maxLength: 2048
2514+
application:
2515+
$ref: '#/components/schemas/rbmOpenUrlEnum'
2516+
webviewViewMode:
2517+
$ref: '#/components/schemas/rbmVebViewEnum'
24842518
required:
24852519
- url
24862520
multiChannelFullActions:
@@ -8427,6 +8461,12 @@ components:
84278461
84288462
84298463
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
8464+
OAuth2:
8465+
type: oauth2
8466+
flows:
8467+
clientCredentials:
8468+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
8469+
scopes: {}
84308470
callbacks:
84318471
inboundCallback:
84328472
'{inboundCallbackUrl}':

docs/CallsApi.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ namespace Example
3737
// Configure HTTP basic authorization: Basic
3838
config.Username = "YOUR_USERNAME";
3939
config.Password = "YOUR_PASSWORD";
40+
// Configure OAuth2 access token for authorization: OAuth2
41+
config.AccessToken = "YOUR_ACCESS_TOKEN";
4042

4143
var apiInstance = new CallsApi(config);
4244
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -92,7 +94,7 @@ catch (ApiException e)
9294

9395
### Authorization
9496

95-
[Basic](../README.md#Basic)
97+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
9698

9799
### HTTP request headers
98100

@@ -142,6 +144,8 @@ namespace Example
142144
// Configure HTTP basic authorization: Basic
143145
config.Username = "YOUR_USERNAME";
144146
config.Password = "YOUR_PASSWORD";
147+
// Configure OAuth2 access token for authorization: OAuth2
148+
config.AccessToken = "YOUR_ACCESS_TOKEN";
145149

146150
var apiInstance = new CallsApi(config);
147151
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -197,7 +201,7 @@ catch (ApiException e)
197201

198202
### Authorization
199203

200-
[Basic](../README.md#Basic)
204+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
201205

202206
### HTTP request headers
203207

@@ -247,6 +251,8 @@ namespace Example
247251
// Configure HTTP basic authorization: Basic
248252
config.Username = "YOUR_USERNAME";
249253
config.Password = "YOUR_PASSWORD";
254+
// Configure OAuth2 access token for authorization: OAuth2
255+
config.AccessToken = "YOUR_ACCESS_TOKEN";
250256

251257
var apiInstance = new CallsApi(config);
252258
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -314,7 +320,7 @@ catch (ApiException e)
314320

315321
### Authorization
316322

317-
[Basic](../README.md#Basic)
323+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
318324

319325
### HTTP request headers
320326

@@ -364,6 +370,8 @@ namespace Example
364370
// Configure HTTP basic authorization: Basic
365371
config.Username = "YOUR_USERNAME";
366372
config.Password = "YOUR_PASSWORD";
373+
// Configure OAuth2 access token for authorization: OAuth2
374+
config.AccessToken = "YOUR_ACCESS_TOKEN";
367375

368376
var apiInstance = new CallsApi(config);
369377
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -417,7 +425,7 @@ void (empty response body)
417425

418426
### Authorization
419427

420-
[Basic](../README.md#Basic)
428+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
421429

422430
### HTTP request headers
423431

@@ -468,6 +476,8 @@ namespace Example
468476
// Configure HTTP basic authorization: Basic
469477
config.Username = "YOUR_USERNAME";
470478
config.Password = "YOUR_PASSWORD";
479+
// Configure OAuth2 access token for authorization: OAuth2
480+
config.AccessToken = "YOUR_ACCESS_TOKEN";
471481

472482
var apiInstance = new CallsApi(config);
473483
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -524,7 +534,7 @@ void (empty response body)
524534

525535
### Authorization
526536

527-
[Basic](../README.md#Basic)
537+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
528538

529539
### HTTP request headers
530540

0 commit comments

Comments
 (0)