Skip to content

Commit 6fdb60c

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent ab08856 commit 6fdb60c

35 files changed

+488
-103
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ bandwidth/models/rbm_message_content_file.py
145145
bandwidth/models/rbm_message_content_rich_card.py
146146
bandwidth/models/rbm_message_content_text.py
147147
bandwidth/models/rbm_message_media.py
148+
bandwidth/models/rbm_open_url_enum.py
148149
bandwidth/models/rbm_standalone_card.py
149150
bandwidth/models/rbm_suggestion_response.py
151+
bandwidth/models/rbm_veb_view_enum.py
150152
bandwidth/models/recording_available_callback.py
151153
bandwidth/models/recording_complete_callback.py
152154
bandwidth/models/recording_state_enum.py
@@ -328,8 +330,10 @@ docs/RbmMessageContentFile.md
328330
docs/RbmMessageContentRichCard.md
329331
docs/RbmMessageContentText.md
330332
docs/RbmMessageMedia.md
333+
docs/RbmOpenUrlEnum.md
331334
docs/RbmStandaloneCard.md
332335
docs/RbmSuggestionResponse.md
336+
docs/RbmVebViewEnum.md
333337
docs/RecordingAvailableCallback.md
334338
docs/RecordingCompleteCallback.md
335339
docs/RecordingStateEnum.md

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ configuration = bandwidth.Configuration(
7373
password = os.environ["PASSWORD"]
7474
)
7575

76+
configuration.access_token = os.environ["ACCESS_TOKEN"]
77+
7678

7779
# Enter a context with an instance of the API client
7880
with bandwidth.ApiClient(configuration) as api_client:
@@ -277,8 +279,10 @@ Class | Method | HTTP request | Description
277279
- [RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
278280
- [RbmMessageContentText](docs/RbmMessageContentText.md)
279281
- [RbmMessageMedia](docs/RbmMessageMedia.md)
282+
- [RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
280283
- [RbmStandaloneCard](docs/RbmStandaloneCard.md)
281284
- [RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
285+
- [RbmVebViewEnum](docs/RbmVebViewEnum.md)
282286
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
283287
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
284288
- [RecordingStateEnum](docs/RecordingStateEnum.md)
@@ -337,6 +341,14 @@ Authentication schemes defined for the API:
337341

338342
- **Type**: HTTP basic authentication
339343

344+
<a id="OAuth2"></a>
345+
### OAuth2
346+
347+
- **Type**: OAuth
348+
- **Flow**: application
349+
- **Authorization URL**:
350+
- **Scopes**: N/A
351+
340352

341353
## Author
342354

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

bandwidth/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,10 @@
165165
"RbmMessageContentRichCard",
166166
"RbmMessageContentText",
167167
"RbmMessageMedia",
168+
"RbmOpenUrlEnum",
168169
"RbmStandaloneCard",
169170
"RbmSuggestionResponse",
171+
"RbmVebViewEnum",
170172
"RecordingAvailableCallback",
171173
"RecordingCompleteCallback",
172174
"RecordingStateEnum",
@@ -366,8 +368,10 @@
366368
from bandwidth.models.rbm_message_content_rich_card import RbmMessageContentRichCard as RbmMessageContentRichCard
367369
from bandwidth.models.rbm_message_content_text import RbmMessageContentText as RbmMessageContentText
368370
from bandwidth.models.rbm_message_media import RbmMessageMedia as RbmMessageMedia
371+
from bandwidth.models.rbm_open_url_enum import RbmOpenUrlEnum as RbmOpenUrlEnum
369372
from bandwidth.models.rbm_standalone_card import RbmStandaloneCard as RbmStandaloneCard
370373
from bandwidth.models.rbm_suggestion_response import RbmSuggestionResponse as RbmSuggestionResponse
374+
from bandwidth.models.rbm_veb_view_enum import RbmVebViewEnum as RbmVebViewEnum
371375
from bandwidth.models.recording_available_callback import RecordingAvailableCallback as RecordingAvailableCallback
372376
from bandwidth.models.recording_complete_callback import RecordingCompleteCallback as RecordingCompleteCallback
373377
from bandwidth.models.recording_state_enum import RecordingStateEnum as RecordingStateEnum

bandwidth/api/calls_api.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def _create_call_serialize(
338338

339339
# authentication setting
340340
_auth_settings: List[str] = [
341-
'Basic'
341+
'Basic',
342+
'OAuth2'
342343
]
343344

344345
return self.api_client.param_serialize(
@@ -641,7 +642,8 @@ def _get_call_state_serialize(
641642

642643
# authentication setting
643644
_auth_settings: List[str] = [
644-
'Basic'
645+
'Basic',
646+
'OAuth2'
645647
]
646648

647649
return self.api_client.param_serialize(
@@ -1048,7 +1050,8 @@ def _list_calls_serialize(
10481050

10491051
# authentication setting
10501052
_auth_settings: List[str] = [
1051-
'Basic'
1053+
'Basic',
1054+
'OAuth2'
10521055
]
10531056

10541057
return self.api_client.param_serialize(
@@ -1382,7 +1385,8 @@ def _update_call_serialize(
13821385

13831386
# authentication setting
13841387
_auth_settings: List[str] = [
1385-
'Basic'
1388+
'Basic',
1389+
'OAuth2'
13861390
]
13871391

13881392
return self.api_client.param_serialize(
@@ -1716,7 +1720,8 @@ def _update_call_bxml_serialize(
17161720

17171721
# authentication setting
17181722
_auth_settings: List[str] = [
1719-
'Basic'
1723+
'Basic',
1724+
'OAuth2'
17201725
]
17211726

17221727
return self.api_client.param_serialize(

bandwidth/api/conferences_api.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def _download_conference_recording_serialize(
343343

344344
# authentication setting
345345
_auth_settings: List[str] = [
346-
'Basic'
346+
'Basic',
347+
'OAuth2'
347348
]
348349

349350
return self.api_client.param_serialize(
@@ -646,7 +647,8 @@ def _get_conference_serialize(
646647

647648
# authentication setting
648649
_auth_settings: List[str] = [
649-
'Basic'
650+
'Basic',
651+
'OAuth2'
650652
]
651653

652654
return self.api_client.param_serialize(
@@ -964,7 +966,8 @@ def _get_conference_member_serialize(
964966

965967
# authentication setting
966968
_auth_settings: List[str] = [
967-
'Basic'
969+
'Basic',
970+
'OAuth2'
968971
]
969972

970973
return self.api_client.param_serialize(
@@ -1282,7 +1285,8 @@ def _get_conference_recording_serialize(
12821285

12831286
# authentication setting
12841287
_auth_settings: List[str] = [
1285-
'Basic'
1288+
'Basic',
1289+
'OAuth2'
12861290
]
12871291

12881292
return self.api_client.param_serialize(
@@ -1585,7 +1589,8 @@ def _list_conference_recordings_serialize(
15851589

15861590
# authentication setting
15871591
_auth_settings: List[str] = [
1588-
'Basic'
1592+
'Basic',
1593+
'OAuth2'
15891594
]
15901595

15911596
return self.api_client.param_serialize(
@@ -1958,7 +1963,8 @@ def _list_conferences_serialize(
19581963

19591964
# authentication setting
19601965
_auth_settings: List[str] = [
1961-
'Basic'
1966+
'Basic',
1967+
'OAuth2'
19621968
]
19631969

19641970
return self.api_client.param_serialize(
@@ -2289,7 +2295,8 @@ def _update_conference_serialize(
22892295

22902296
# authentication setting
22912297
_auth_settings: List[str] = [
2292-
'Basic'
2298+
'Basic',
2299+
'OAuth2'
22932300
]
22942301

22952302
return self.api_client.param_serialize(
@@ -2620,7 +2627,8 @@ def _update_conference_bxml_serialize(
26202627

26212628
# authentication setting
26222629
_auth_settings: List[str] = [
2623-
'Basic'
2630+
'Basic',
2631+
'OAuth2'
26242632
]
26252633

26262634
return self.api_client.param_serialize(
@@ -2966,7 +2974,8 @@ def _update_conference_member_serialize(
29662974

29672975
# authentication setting
29682976
_auth_settings: List[str] = [
2969-
'Basic'
2977+
'Basic',
2978+
'OAuth2'
29702979
]
29712980

29722981
return self.api_client.param_serialize(

bandwidth/api/media_api.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def _delete_media_serialize(
322322

323323
# authentication setting
324324
_auth_settings: List[str] = [
325-
'Basic'
325+
'Basic',
326+
'OAuth2'
326327
]
327328

328329
return self.api_client.param_serialize(
@@ -626,7 +627,8 @@ def _get_media_serialize(
626627

627628
# authentication setting
628629
_auth_settings: List[str] = [
629-
'Basic'
630+
'Basic',
631+
'OAuth2'
630632
]
631633

632634
return self.api_client.param_serialize(
@@ -929,7 +931,8 @@ def _list_media_serialize(
929931

930932
# authentication setting
931933
_auth_settings: List[str] = [
932-
'Basic'
934+
'Basic',
935+
'OAuth2'
933936
]
934937

935938
return self.api_client.param_serialize(
@@ -1345,7 +1348,8 @@ def _upload_media_serialize(
13451348

13461349
# authentication setting
13471350
_auth_settings: List[str] = [
1348-
'Basic'
1351+
'Basic',
1352+
'OAuth2'
13491353
]
13501354

13511355
return self.api_client.param_serialize(

bandwidth/api/messages_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def _create_message_serialize(
344344

345345
# authentication setting
346346
_auth_settings: List[str] = [
347-
'Basic'
347+
'Basic',
348+
'OAuth2'
348349
]
349350

350351
return self.api_client.param_serialize(
@@ -1088,7 +1089,8 @@ def _list_messages_serialize(
10881089

10891090
# authentication setting
10901091
_auth_settings: List[str] = [
1091-
'Basic'
1092+
'Basic',
1093+
'OAuth2'
10921094
]
10931095

10941096
return self.api_client.param_serialize(

bandwidth/api/mfa_api.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ def _generate_messaging_code_serialize(
326326

327327
# authentication setting
328328
_auth_settings: List[str] = [
329-
'Basic'
329+
'Basic',
330+
'OAuth2'
330331
]
331332

332333
return self.api_client.param_serialize(
@@ -630,7 +631,8 @@ def _generate_voice_code_serialize(
630631

631632
# authentication setting
632633
_auth_settings: List[str] = [
633-
'Basic'
634+
'Basic',
635+
'OAuth2'
634636
]
635637

636638
return self.api_client.param_serialize(
@@ -937,7 +939,8 @@ def _verify_code_serialize(
937939

938940
# authentication setting
939941
_auth_settings: List[str] = [
940-
'Basic'
942+
'Basic',
943+
'OAuth2'
941944
]
942945

943946
return self.api_client.param_serialize(

bandwidth/api/multi_channel_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def _create_multi_channel_message_serialize(
338338

339339
# authentication setting
340340
_auth_settings: List[str] = [
341-
'Basic'
341+
'Basic',
342+
'OAuth2'
342343
]
343344

344345
return self.api_client.param_serialize(

0 commit comments

Comments
 (0)