Skip to content

Commit 82042ff

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 7b87e95 commit 82042ff

File tree

192 files changed

+1282
-258
lines changed

Some content is hidden

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

192 files changed

+1282
-258
lines changed

.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ docs/RbmMessageContentFile.md
136136
docs/RbmMessageContentRichCard.md
137137
docs/RbmMessageContentText.md
138138
docs/RbmMessageMedia.md
139+
docs/RbmOpenUrlEnum.md
139140
docs/RbmStandaloneCard.md
140141
docs/RbmSuggestionResponse.md
142+
docs/RbmVebViewEnum.md
141143
docs/RecordingAvailableCallback.md
142144
docs/RecordingCompleteCallback.md
143145
docs/RecordingStateEnum.md
@@ -225,6 +227,10 @@ src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java
225227
src/main/java/com/bandwidth/sdk/auth/Authentication.java
226228
src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java
227229
src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java
230+
src/main/java/com/bandwidth/sdk/auth/OAuth.java
231+
src/main/java/com/bandwidth/sdk/auth/OAuthFlow.java
232+
src/main/java/com/bandwidth/sdk/auth/OAuthOkHttpClient.java
233+
src/main/java/com/bandwidth/sdk/auth/RetryingOAuth.java
228234
src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java
229235
src/main/java/com/bandwidth/sdk/model/AccountStatistics.java
230236
src/main/java/com/bandwidth/sdk/model/AdditionalDenialReason.java
@@ -352,8 +358,10 @@ src/main/java/com/bandwidth/sdk/model/RbmMessageContentFile.java
352358
src/main/java/com/bandwidth/sdk/model/RbmMessageContentRichCard.java
353359
src/main/java/com/bandwidth/sdk/model/RbmMessageContentText.java
354360
src/main/java/com/bandwidth/sdk/model/RbmMessageMedia.java
361+
src/main/java/com/bandwidth/sdk/model/RbmOpenUrlEnum.java
355362
src/main/java/com/bandwidth/sdk/model/RbmStandaloneCard.java
356363
src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java
364+
src/main/java/com/bandwidth/sdk/model/RbmVebViewEnum.java
357365
src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java
358366
src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java
359367
src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.17.0
1+
7.16.0

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Bandwidth
44
- API version: 1.0.0
5-
- Generator version: 7.17.0
5+
- Generator version: 7.16.0
66

77
Bandwidth's Communication APIs
88

@@ -98,6 +98,10 @@ public class Example {
9898
Basic.setUsername("YOUR USERNAME");
9999
Basic.setPassword("YOUR PASSWORD");
100100

101+
// Configure OAuth2 access token for authorization: OAuth2
102+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
103+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
104+
101105
CallsApi apiInstance = new CallsApi(defaultClient);
102106
String accountId = "9900000"; // String | Your Bandwidth Account ID.
103107
CreateCall createCall = new CreateCall(); // CreateCall | JSON object containing information to create an outbound call
@@ -302,8 +306,10 @@ Class | Method | HTTP request | Description
302306
- [RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
303307
- [RbmMessageContentText](docs/RbmMessageContentText.md)
304308
- [RbmMessageMedia](docs/RbmMessageMedia.md)
309+
- [RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
305310
- [RbmStandaloneCard](docs/RbmStandaloneCard.md)
306311
- [RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
312+
- [RbmVebViewEnum](docs/RbmVebViewEnum.md)
307313
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
308314
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
309315
- [RecordingStateEnum](docs/RecordingStateEnum.md)
@@ -362,6 +368,14 @@ Authentication schemes defined for the API:
362368

363369
- **Type**: HTTP basic authentication
364370

371+
<a id="OAuth2"></a>
372+
### OAuth2
373+
374+
- **Type**: OAuth
375+
- **Flow**: application
376+
- **Authorization URL**:
377+
- **Scopes**: N/A
378+
365379

366380
## Recommendation
367381

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
@@ -8993,6 +8994,26 @@ components:
89938994
- REQUEST_LOCATION
89948995
example: REPLY
89958996
type: string
8997+
rbmOpenUrlEnum:
8998+
description: "Specifies how the URL should be opened on a mobile device.\n-\
8999+
\ `BROWSER` Opens the URL in the device's default browser. If application\
9000+
\ is not set or the device doesn’t support WebView, this option is used by\
9001+
\ default. \n- `WEBVIEW` Opens the URL in an in-app WebView."
9002+
enum:
9003+
- BROWSER
9004+
- WEBVIEW
9005+
example: WEBVIEW
9006+
type: string
9007+
rbmVebViewEnum:
9008+
description: "Defines the layout of the WebView on a mobile device. It must\
9009+
\ be defined when application is set to `WEBVIEW`\n- `FULL` WebView takes\
9010+
\ the full screen. \n- `HALF` WebView takes half of the screen.\n- `TALL`\
9011+
\ WebView takes three-quarters of the screen."
9012+
enum:
9013+
- FULL
9014+
- HALF
9015+
- TALL
9016+
type: string
89969017
rbmActionText:
89979018
description: Displayed text for user to click
89989019
example: Hello world
@@ -9111,6 +9132,10 @@ components:
91119132
format: uri
91129133
maxLength: 2048
91139134
type: string
9135+
application:
9136+
$ref: "#/components/schemas/rbmOpenUrlEnum"
9137+
webviewViewMode:
9138+
$ref: "#/components/schemas/rbmVebViewEnum"
91149139
required:
91159140
- url
91169141
title: Open URL
@@ -14925,4 +14950,10 @@ components:
1492514950
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
1492614951
scheme: basic
1492714952
type: http
14953+
OAuth2:
14954+
flows:
14955+
clientCredentials:
14956+
scopes: {}
14957+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
14958+
type: oauth2
1492814959

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}':

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ dependencies {
112112
implementation 'com.google.code.gson:gson:2.9.1'
113113
implementation 'io.gsonfire:gson-fire:1.9.0'
114114
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
115-
implementation 'org.openapitools:jackson-databind-nullable:0.2.8'
115+
implementation 'org.openapitools:jackson-databind-nullable:0.2.7'
116+
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
116117
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0'
117118
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
118119
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ lazy val root = (project in file(".")).
1515
"com.google.code.gson" % "gson" % "2.9.1",
1616
"org.apache.commons" % "commons-lang3" % "3.18.0",
1717
"jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
18-
"org.openapitools" % "jackson-databind-nullable" % "0.2.8",
18+
"org.openapitools" % "jackson-databind-nullable" % "0.2.7",
19+
"org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2",
1920
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
2021
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
2122
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",

docs/CallsApi.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public class Example {
3939
Basic.setUsername("YOUR USERNAME");
4040
Basic.setPassword("YOUR PASSWORD");
4141

42+
// Configure OAuth2 access token for authorization: OAuth2
43+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
44+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
45+
4246
CallsApi apiInstance = new CallsApi(defaultClient);
4347
String accountId = "9900000"; // String | Your Bandwidth Account ID.
4448
CreateCall createCall = new CreateCall(); // CreateCall | JSON object containing information to create an outbound call
@@ -69,7 +73,7 @@ public class Example {
6973

7074
### Authorization
7175

72-
[Basic](../README.md#Basic)
76+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
7377

7478
### HTTP request headers
7579

@@ -117,6 +121,10 @@ public class Example {
117121
Basic.setUsername("YOUR USERNAME");
118122
Basic.setPassword("YOUR PASSWORD");
119123

124+
// Configure OAuth2 access token for authorization: OAuth2
125+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
126+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
127+
120128
CallsApi apiInstance = new CallsApi(defaultClient);
121129
String accountId = "9900000"; // String | Your Bandwidth Account ID.
122130
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
@@ -147,7 +155,7 @@ public class Example {
147155

148156
### Authorization
149157

150-
[Basic](../README.md#Basic)
158+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
151159

152160
### HTTP request headers
153161

@@ -195,6 +203,10 @@ public class Example {
195203
Basic.setUsername("YOUR USERNAME");
196204
Basic.setPassword("YOUR PASSWORD");
197205

206+
// Configure OAuth2 access token for authorization: OAuth2
207+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
208+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
209+
198210
CallsApi apiInstance = new CallsApi(defaultClient);
199211
String accountId = "9900000"; // String | Your Bandwidth Account ID.
200212
String to = "%2b19195551234"; // String | Filter results by the `to` field.
@@ -237,7 +249,7 @@ public class Example {
237249

238250
### Authorization
239251

240-
[Basic](../README.md#Basic)
252+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
241253

242254
### HTTP request headers
243255

@@ -285,6 +297,10 @@ public class Example {
285297
Basic.setUsername("YOUR USERNAME");
286298
Basic.setPassword("YOUR PASSWORD");
287299

300+
// Configure OAuth2 access token for authorization: OAuth2
301+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
302+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
303+
288304
CallsApi apiInstance = new CallsApi(defaultClient);
289305
String accountId = "9900000"; // String | Your Bandwidth Account ID.
290306
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
@@ -316,7 +332,7 @@ null (empty response body)
316332

317333
### Authorization
318334

319-
[Basic](../README.md#Basic)
335+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
320336

321337
### HTTP request headers
322338

@@ -365,6 +381,10 @@ public class Example {
365381
Basic.setUsername("YOUR USERNAME");
366382
Basic.setPassword("YOUR PASSWORD");
367383

384+
// Configure OAuth2 access token for authorization: OAuth2
385+
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
386+
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
387+
368388
CallsApi apiInstance = new CallsApi(defaultClient);
369389
String accountId = "9900000"; // String | Your Bandwidth Account ID.
370390
String callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85"; // String | Programmable Voice API Call ID.
@@ -399,7 +419,7 @@ null (empty response body)
399419
400420
### Authorization
401421
402-
[Basic](../README.md#Basic)
422+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
403423
404424
### HTTP request headers
405425

0 commit comments

Comments
 (0)