Skip to content

Commit ee67e2d

Browse files
authored
DX-2826 Regenerate with updated bandwidth.json file (#108)
1 parent d2f9161 commit ee67e2d

File tree

4 files changed

+313
-12
lines changed

4 files changed

+313
-12
lines changed

bandwidth.json

Lines changed: 264 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
},
144144
"put": {
145145
"summary": "Upload Media",
146-
"description": "Upload a file. You may add headers to the request in order to provide some control to your media file.",
146+
"description": "Upload a file. You may add headers to the request in order to provide some control to your media file.\n\nA list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).",
147147
"operationId": "uploadMedia",
148148
"tags": [
149149
"Media"
@@ -2653,7 +2653,7 @@
26532653
"time": {
26542654
"type": "string",
26552655
"description": "The datetime stamp of the message in ISO 8601",
2656-
"example": "2016-09-14T18:20:16.000Z"
2656+
"example": "2022-09-14T18:20:16.000Z"
26572657
},
26582658
"segmentCount": {
26592659
"type": "integer",
@@ -6475,7 +6475,7 @@
64756475
"name": "fromDateTime",
64766476
"required": false,
64776477
"description": "The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.",
6478-
"example": "2016-09-14T18:20:16.000Z",
6478+
"example": "2022-09-14T18:20:16.000Z",
64796479
"schema": {
64806480
"type": "string"
64816481
}
@@ -6485,7 +6485,7 @@
64856485
"name": "toDateTime",
64866486
"required": false,
64876487
"description": "The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days.",
6488-
"example": "2016-09-14T18:20:16.000Z",
6488+
"example": "2022-09-14T18:20:16.000Z",
64896489
"schema": {
64906490
"type": "string"
64916491
}
@@ -6738,7 +6738,265 @@
67386738
},
67396739
"uploadMediaRequest": {
67406740
"content": {
6741-
"application/octet-stream": {
6741+
"application/json": {
6742+
"schema": {
6743+
"type": "string",
6744+
"format": "binary"
6745+
}
6746+
},
6747+
"application/ogg": {
6748+
"schema": {
6749+
"type": "string",
6750+
"format": "binary"
6751+
}
6752+
},
6753+
"application/pdf": {
6754+
"schema": {
6755+
"type": "string",
6756+
"format": "binary"
6757+
}
6758+
},
6759+
"application/rtf": {
6760+
"schema": {
6761+
"type": "string",
6762+
"format": "binary"
6763+
}
6764+
},
6765+
"application/zip": {
6766+
"schema": {
6767+
"type": "string",
6768+
"format": "binary"
6769+
}
6770+
},
6771+
"application/x-tar": {
6772+
"schema": {
6773+
"type": "string",
6774+
"format": "binary"
6775+
}
6776+
},
6777+
"application/xml": {
6778+
"schema": {
6779+
"type": "string",
6780+
"format": "binary"
6781+
}
6782+
},
6783+
"application/gzip": {
6784+
"schema": {
6785+
"type": "string",
6786+
"format": "binary"
6787+
}
6788+
},
6789+
"application/x-bzip2": {
6790+
"schema": {
6791+
"type": "string",
6792+
"format": "binary"
6793+
}
6794+
},
6795+
"application/x-gzip": {
6796+
"schema": {
6797+
"type": "string",
6798+
"format": "binary"
6799+
}
6800+
},
6801+
"application/smil": {
6802+
"schema": {
6803+
"type": "string",
6804+
"format": "binary"
6805+
}
6806+
},
6807+
"application/javascript": {
6808+
"schema": {
6809+
"type": "string",
6810+
"format": "binary"
6811+
}
6812+
},
6813+
"audio/mp4": {
6814+
"schema": {
6815+
"type": "string",
6816+
"format": "binary"
6817+
}
6818+
},
6819+
"audio/mpeg": {
6820+
"schema": {
6821+
"type": "string",
6822+
"format": "binary"
6823+
}
6824+
},
6825+
"audio/ogg": {
6826+
"schema": {
6827+
"type": "string",
6828+
"format": "binary"
6829+
}
6830+
},
6831+
"audio/flac": {
6832+
"schema": {
6833+
"type": "string",
6834+
"format": "binary"
6835+
}
6836+
},
6837+
"audio/webm": {
6838+
"schema": {
6839+
"type": "string",
6840+
"format": "binary"
6841+
}
6842+
},
6843+
"audio/wav": {
6844+
"schema": {
6845+
"type": "string",
6846+
"format": "binary"
6847+
}
6848+
},
6849+
"audio/amr": {
6850+
"schema": {
6851+
"type": "string",
6852+
"format": "binary"
6853+
}
6854+
},
6855+
"audio/3gpp": {
6856+
"schema": {
6857+
"type": "string",
6858+
"format": "binary"
6859+
}
6860+
},
6861+
"image/bmp": {
6862+
"schema": {
6863+
"type": "string",
6864+
"format": "binary"
6865+
}
6866+
},
6867+
"image/gif": {
6868+
"schema": {
6869+
"type": "string",
6870+
"format": "binary"
6871+
}
6872+
},
6873+
"image/jpeg": {
6874+
"schema": {
6875+
"type": "string",
6876+
"format": "binary"
6877+
}
6878+
},
6879+
"image/pjpeg": {
6880+
"schema": {
6881+
"type": "string",
6882+
"format": "binary"
6883+
}
6884+
},
6885+
"image/png": {
6886+
"schema": {
6887+
"type": "string",
6888+
"format": "binary"
6889+
}
6890+
},
6891+
"image/svg+xml": {
6892+
"schema": {
6893+
"type": "string",
6894+
"format": "binary"
6895+
}
6896+
},
6897+
"image/tiff": {
6898+
"schema": {
6899+
"type": "string",
6900+
"format": "binary"
6901+
}
6902+
},
6903+
"image/webp": {
6904+
"schema": {
6905+
"type": "string",
6906+
"format": "binary"
6907+
}
6908+
},
6909+
"image/x-icon": {
6910+
"schema": {
6911+
"type": "string",
6912+
"format": "binary"
6913+
}
6914+
},
6915+
"text/css": {
6916+
"schema": {
6917+
"type": "string",
6918+
"format": "binary"
6919+
}
6920+
},
6921+
"text/csv": {
6922+
"schema": {
6923+
"type": "string",
6924+
"format": "binary"
6925+
}
6926+
},
6927+
"text/calendar": {
6928+
"schema": {
6929+
"type": "string",
6930+
"format": "binary"
6931+
}
6932+
},
6933+
"text/plain": {
6934+
"schema": {
6935+
"type": "string",
6936+
"format": "binary"
6937+
}
6938+
},
6939+
"text/javascript": {
6940+
"schema": {
6941+
"type": "string",
6942+
"format": "binary"
6943+
}
6944+
},
6945+
"text/vcard": {
6946+
"schema": {
6947+
"type": "string",
6948+
"format": "binary"
6949+
}
6950+
},
6951+
"text/vnd.wap.wml": {
6952+
"schema": {
6953+
"type": "string",
6954+
"format": "binary"
6955+
}
6956+
},
6957+
"text/xml": {
6958+
"schema": {
6959+
"type": "string",
6960+
"format": "binary"
6961+
}
6962+
},
6963+
"video/avi": {
6964+
"schema": {
6965+
"type": "string",
6966+
"format": "binary"
6967+
}
6968+
},
6969+
"video/mp4": {
6970+
"schema": {
6971+
"type": "string",
6972+
"format": "binary"
6973+
}
6974+
},
6975+
"video/mpeg": {
6976+
"schema": {
6977+
"type": "string",
6978+
"format": "binary"
6979+
}
6980+
},
6981+
"video/ogg": {
6982+
"schema": {
6983+
"type": "string",
6984+
"format": "binary"
6985+
}
6986+
},
6987+
"video/quicktime": {
6988+
"schema": {
6989+
"type": "string",
6990+
"format": "binary"
6991+
}
6992+
},
6993+
"video/webm": {
6994+
"schema": {
6995+
"type": "string",
6996+
"format": "binary"
6997+
}
6998+
},
6999+
"video/x-ms-wmv": {
67427000
"schema": {
67437001
"type": "string",
67447002
"format": "binary"
@@ -7167,4 +7425,4 @@
71677425
}
71687426
}
71697427
}
7170-
}
7428+
}

bandwidth/api/media_api.py

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,50 @@ def __init__(self, api_client=None):
297297
'application/json'
298298
],
299299
'content_type': [
300-
'application/octet-stream'
300+
'application/json',
301+
'application/ogg',
302+
'application/pdf',
303+
'application/rtf',
304+
'application/zip',
305+
'application/x-tar',
306+
'application/xml',
307+
'application/gzip',
308+
'application/x-bzip2',
309+
'application/x-gzip',
310+
'application/smil',
311+
'application/javascript',
312+
'audio/mp4',
313+
'audio/mpeg',
314+
'audio/ogg',
315+
'audio/flac',
316+
'audio/webm',
317+
'audio/wav',
318+
'audio/amr',
319+
'audio/3gpp',
320+
'image/bmp',
321+
'image/gif',
322+
'image/jpeg',
323+
'image/pjpeg',
324+
'image/png',
325+
'image/svg+xml',
326+
'image/tiff',
327+
'image/webp',
328+
'image/x-icon',
329+
'text/css',
330+
'text/csv',
331+
'text/calendar',
332+
'text/plain',
333+
'text/javascript',
334+
'text/vcard',
335+
'text/vnd.wap.wml',
336+
'text/xml',
337+
'video/avi',
338+
'video/mp4',
339+
'video/mpeg',
340+
'video/ogg',
341+
'video/quicktime',
342+
'video/webm',
343+
'video/x-ms-wmv'
301344
]
302345
},
303346
api_client=api_client
@@ -570,7 +613,7 @@ def upload_media(
570613
):
571614
"""Upload Media # noqa: E501
572615
573-
Upload a file. You may add headers to the request in order to provide some control to your media file. # noqa: E501
616+
Upload a file. You may add headers to the request in order to provide some control to your media file. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-). # noqa: E501
574617
This method makes a synchronous HTTP request by default. To make an
575618
asynchronous HTTP request, please pass async_req=True
576619

docs/MediaApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Name | Type | Description | Notes
285285
286286
Upload Media
287287

288-
Upload a file. You may add headers to the request in order to provide some control to your media file.
288+
Upload a file. You may add headers to the request in order to provide some control to your media file. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
289289

290290
### Example
291291

@@ -361,7 +361,7 @@ void (empty response body)
361361

362362
### HTTP request headers
363363

364-
- **Content-Type**: application/octet-stream
364+
- **Content-Type**: application/json, application/ogg, application/pdf, application/rtf, application/zip, application/x-tar, application/xml, application/gzip, application/x-bzip2, application/x-gzip, application/smil, application/javascript, audio/mp4, audio/mpeg, audio/ogg, audio/flac, audio/webm, audio/wav, audio/amr, audio/3gpp, image/bmp, image/gif, image/jpeg, image/pjpeg, image/png, image/svg+xml, image/tiff, image/webp, image/x-icon, text/css, text/csv, text/calendar, text/plain, text/javascript, text/vcard, text/vnd.wap.wml, text/xml, video/avi, video/mp4, video/mpeg, video/ogg, video/quicktime, video/webm, video/x-ms-wmv
365365
- **Accept**: application/json
366366

367367

docs/MessagesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ with bandwidth.ApiClient(configuration) as api_client:
158158
carrier_name = "Verizon" # str | The name of the carrier used for this message. Possible values include but are not limited to Verizon and TMobile. Special characters need to be encoded using URL encoding (i.e. AT&T should be passed as AT%26T). (optional)
159159
message_type = MessageTypeEnum("sms") # MessageTypeEnum | The type of message. Either sms or mms. (optional)
160160
error_code = 9902 # int | The error code of the message. (optional)
161-
from_date_time = "2016-09-14T18:20:16.000Z" # str | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional)
162-
to_date_time = "2016-09-14T18:20:16.000Z" # str | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional)
161+
from_date_time = "2022-09-14T18:20:16.000Z" # str | The start of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional)
162+
to_date_time = "2022-09-14T18:20:16.000Z" # str | The end of the date range to search in ISO 8601 format. Uses the message receive time. The date range to search in is currently 14 days. (optional)
163163
sort = "sourceTn:desc" # str | The field and direction to sort by combined with a colon. Direction is either asc or desc. (optional)
164164
page_token = "gdEewhcJLQRB5" # str | A base64 encoded value used for pagination of results. (optional)
165165
limit = 50 # int | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional)

0 commit comments

Comments
 (0)