Skip to content

Commit 21c4a0a

Browse files
committed
Regenerate SDK using Binary instead of Byte format
1 parent 6424319 commit 21c4a0a

File tree

8 files changed

+20
-21
lines changed

8 files changed

+20
-21
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.gitignore
22
.gitlab-ci.yml
3-
.openapi-generator-ignore
43
.travis.yml
54
README.md
65
bandwidth/__init__.py

bandwidth.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,7 @@
45014501
"schema": {
45024502
"type": "string",
45034503
"description": "Successful Operation",
4504-
"format": "byte"
4504+
"format": "binary"
45054505
}
45064506
}
45074507
}
@@ -4669,13 +4669,13 @@
46694669
"audio/vnd.wave": {
46704670
"schema": {
46714671
"type": "string",
4672-
"format": "byte"
4672+
"format": "binary"
46734673
}
46744674
},
46754675
"audio/mpeg": {
46764676
"schema": {
46774677
"type": "string",
4678-
"format": "byte"
4678+
"format": "binary"
46794679
}
46804680
}
46814681
}
@@ -5636,7 +5636,7 @@
56365636
"application/octet-stream": {
56375637
"schema": {
56385638
"type": "string",
5639-
"format": "byte"
5639+
"format": "binary"
56405640
}
56415641
}
56425642
},

bandwidth/api/conferences_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, api_client=None):
4343
self.api_client = api_client
4444
self.download_conference_recording_endpoint = _Endpoint(
4545
settings={
46-
'response_type': (str,),
46+
'response_type': (file_type,),
4747
'auth': [
4848
'Basic'
4949
],
@@ -726,7 +726,7 @@ def download_conference_recording(
726726
async_req (bool): execute request asynchronously
727727
728728
Returns:
729-
str
729+
file_type
730730
If the method is called asynchronously, returns the request
731731
thread.
732732
"""

bandwidth/api/media_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self, api_client=None):
101101
)
102102
self.get_media_endpoint = _Endpoint(
103103
settings={
104-
'response_type': (str,),
104+
'response_type': (file_type,),
105105
'auth': [
106106
'Basic'
107107
],
@@ -270,7 +270,7 @@ def __init__(self, api_client=None):
270270
'media_id':
271271
(str,),
272272
'body':
273-
(str,),
273+
(file_type,),
274274
'content_type':
275275
(str,),
276276
'cache_control':
@@ -442,7 +442,7 @@ def get_media(
442442
async_req (bool): execute request asynchronously
443443
444444
Returns:
445-
str
445+
file_type
446446
If the method is called asynchronously, returns the request
447447
thread.
448448
"""
@@ -580,7 +580,7 @@ def upload_media(
580580
Args:
581581
account_id (str): Your Bandwidth Account ID.
582582
media_id (str): Media ID to retrieve.
583-
body (str):
583+
body (file_type):
584584
585585
Keyword Args:
586586
content_type (str): The media type of the entity-body.. [optional]

bandwidth/api/recordings_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __init__(self, api_client=None):
246246
)
247247
self.download_call_recording_endpoint = _Endpoint(
248248
settings={
249-
'response_type': (str,),
249+
'response_type': (file_type,),
250250
'auth': [
251251
'Basic'
252252
],
@@ -1060,7 +1060,7 @@ def download_call_recording(
10601060
async_req (bool): execute request asynchronously
10611061
10621062
Returns:
1063-
str
1063+
file_type
10641064
If the method is called asynchronously, returns the request
10651065
thread.
10661066
"""

docs/ConferencesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Method | HTTP request | Description
1616

1717

1818
# **download_conference_recording**
19-
> str download_conference_recording(account_id, conference_id, recording_id)
19+
> file_type download_conference_recording(account_id, conference_id, recording_id)
2020
2121
Download Conference Recording
2222

@@ -77,7 +77,7 @@ Name | Type | Description | Notes
7777

7878
### Return type
7979

80-
**str**
80+
**file_type**
8181

8282
### Authorization
8383

docs/MediaApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void (empty response body)
9797
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
9898

9999
# **get_media**
100-
> str get_media(account_id, media_id)
100+
> file_type get_media(account_id, media_id)
101101
102102
Get Media
103103

@@ -156,7 +156,7 @@ Name | Type | Description | Notes
156156

157157
### Return type
158158

159-
**str**
159+
**file_type**
160160

161161
### Authorization
162162

@@ -320,7 +320,7 @@ with bandwidth.ApiClient(configuration) as api_client:
320320
api_instance = media_api.MediaApi(api_client)
321321
account_id = "9900000" # str | Your Bandwidth Account ID.
322322
media_id = "14762070468292kw2fuqty55yp2b2/0/bw.png" # str | Media ID to retrieve.
323-
body = 'YQ==' # str |
323+
body = open('/path/to/file', 'rb') # file_type |
324324
content_type = "audio/wav" # str | The media type of the entity-body. (optional)
325325
cache_control = "no-cache" # str | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
326326

@@ -347,7 +347,7 @@ Name | Type | Description | Notes
347347
------------- | ------------- | ------------- | -------------
348348
**account_id** | **str**| Your Bandwidth Account ID. |
349349
**media_id** | **str**| Media ID to retrieve. |
350-
**body** | **str**| |
350+
**body** | **file_type**| |
351351
**content_type** | **str**| The media type of the entity-body. | [optional]
352352
**cache_control** | **str**| General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. | [optional]
353353

docs/RecordingsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void (empty response body)
284284
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
285285

286286
# **download_call_recording**
287-
> str download_call_recording(account_id, call_id, recording_id)
287+
> file_type download_call_recording(account_id, call_id, recording_id)
288288
289289
Download Recording
290290

@@ -345,7 +345,7 @@ Name | Type | Description | Notes
345345

346346
### Return type
347347

348-
**str**
348+
**file_type**
349349

350350
### Authorization
351351

0 commit comments

Comments
 (0)