Skip to content

Commit 0288092

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 7e5ca05 commit 0288092

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

bandwidth.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8237,8 +8237,8 @@ components:
82378237
in: path
82388238
name: mediaId
82398239
required: true
8240-
description: Media ID to retrieve.
8241-
example: 14762070468292kw2fuqty55yp2b2/0/bw.png
8240+
description: The ID of the media file.
8241+
example: bw.png
82428242
schema:
82438243
type: string
82448244
contentType:

bandwidth/api/media_api.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None:
4444
def delete_media(
4545
self,
4646
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
47-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
47+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
4848
_request_timeout: Union[
4949
None,
5050
Annotated[StrictFloat, Field(gt=0)],
@@ -64,7 +64,7 @@ def delete_media(
6464
6565
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
6666
:type account_id: str
67-
:param media_id: Media ID to retrieve. (required)
67+
:param media_id: The ID of the media file. (required)
6868
:type media_id: str
6969
:param _request_timeout: timeout setting for this request. If one
7070
number provided, it will be total request
@@ -123,7 +123,7 @@ def delete_media(
123123
def delete_media_with_http_info(
124124
self,
125125
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
126-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
126+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
127127
_request_timeout: Union[
128128
None,
129129
Annotated[StrictFloat, Field(gt=0)],
@@ -143,7 +143,7 @@ def delete_media_with_http_info(
143143
144144
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
145145
:type account_id: str
146-
:param media_id: Media ID to retrieve. (required)
146+
:param media_id: The ID of the media file. (required)
147147
:type media_id: str
148148
:param _request_timeout: timeout setting for this request. If one
149149
number provided, it will be total request
@@ -202,7 +202,7 @@ def delete_media_with_http_info(
202202
def delete_media_without_preload_content(
203203
self,
204204
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
205-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
205+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
206206
_request_timeout: Union[
207207
None,
208208
Annotated[StrictFloat, Field(gt=0)],
@@ -222,7 +222,7 @@ def delete_media_without_preload_content(
222222
223223
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
224224
:type account_id: str
225-
:param media_id: Media ID to retrieve. (required)
225+
:param media_id: The ID of the media file. (required)
226226
:type media_id: str
227227
:param _request_timeout: timeout setting for this request. If one
228228
number provided, it will be total request
@@ -348,7 +348,7 @@ def _delete_media_serialize(
348348
def get_media(
349349
self,
350350
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
351-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
351+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
352352
_request_timeout: Union[
353353
None,
354354
Annotated[StrictFloat, Field(gt=0)],
@@ -368,7 +368,7 @@ def get_media(
368368
369369
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
370370
:type account_id: str
371-
:param media_id: Media ID to retrieve. (required)
371+
:param media_id: The ID of the media file. (required)
372372
:type media_id: str
373373
:param _request_timeout: timeout setting for this request. If one
374374
number provided, it will be total request
@@ -427,7 +427,7 @@ def get_media(
427427
def get_media_with_http_info(
428428
self,
429429
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
430-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
430+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
431431
_request_timeout: Union[
432432
None,
433433
Annotated[StrictFloat, Field(gt=0)],
@@ -447,7 +447,7 @@ def get_media_with_http_info(
447447
448448
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
449449
:type account_id: str
450-
:param media_id: Media ID to retrieve. (required)
450+
:param media_id: The ID of the media file. (required)
451451
:type media_id: str
452452
:param _request_timeout: timeout setting for this request. If one
453453
number provided, it will be total request
@@ -506,7 +506,7 @@ def get_media_with_http_info(
506506
def get_media_without_preload_content(
507507
self,
508508
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
509-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
509+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
510510
_request_timeout: Union[
511511
None,
512512
Annotated[StrictFloat, Field(gt=0)],
@@ -526,7 +526,7 @@ def get_media_without_preload_content(
526526
527527
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
528528
:type account_id: str
529-
:param media_id: Media ID to retrieve. (required)
529+
:param media_id: The ID of the media file. (required)
530530
:type media_id: str
531531
:param _request_timeout: timeout setting for this request. If one
532532
number provided, it will be total request
@@ -957,7 +957,7 @@ def _list_media_serialize(
957957
def upload_media(
958958
self,
959959
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
960-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
960+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
961961
body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
962962
content_type: Annotated[Optional[StrictStr], Field(description="The media type of the entity-body.")] = None,
963963
cache_control: Annotated[Optional[StrictStr], Field(description="General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.")] = None,
@@ -980,7 +980,7 @@ def upload_media(
980980
981981
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
982982
:type account_id: str
983-
:param media_id: Media ID to retrieve. (required)
983+
:param media_id: The ID of the media file. (required)
984984
:type media_id: str
985985
:param body: (required)
986986
:type body: bytearray
@@ -1048,7 +1048,7 @@ def upload_media(
10481048
def upload_media_with_http_info(
10491049
self,
10501050
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
1051-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
1051+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
10521052
body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
10531053
content_type: Annotated[Optional[StrictStr], Field(description="The media type of the entity-body.")] = None,
10541054
cache_control: Annotated[Optional[StrictStr], Field(description="General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.")] = None,
@@ -1071,7 +1071,7 @@ def upload_media_with_http_info(
10711071
10721072
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
10731073
:type account_id: str
1074-
:param media_id: Media ID to retrieve. (required)
1074+
:param media_id: The ID of the media file. (required)
10751075
:type media_id: str
10761076
:param body: (required)
10771077
:type body: bytearray
@@ -1139,7 +1139,7 @@ def upload_media_with_http_info(
11391139
def upload_media_without_preload_content(
11401140
self,
11411141
account_id: Annotated[StrictStr, Field(description="This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** ")],
1142-
media_id: Annotated[StrictStr, Field(description="Media ID to retrieve.")],
1142+
media_id: Annotated[StrictStr, Field(description="The ID of the media file.")],
11431143
body: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
11441144
content_type: Annotated[Optional[StrictStr], Field(description="The media type of the entity-body.")] = None,
11451145
cache_control: Annotated[Optional[StrictStr], Field(description="General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.")] = None,
@@ -1162,7 +1162,7 @@ def upload_media_without_preload_content(
11621162
11631163
:param account_id: This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
11641164
:type account_id: str
1165-
:param media_id: Media ID to retrieve. (required)
1165+
:param media_id: The ID of the media file. (required)
11661166
:type media_id: str
11671167
:param body: (required)
11681168
:type body: bytearray

docs/MediaApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ with bandwidth.ApiClient(configuration) as api_client:
5959
# Create an instance of the API class
6060
api_instance = bandwidth.MediaApi(api_client)
6161
account_id = '9900000' # str | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
62-
media_id = '14762070468292kw2fuqty55yp2b2/0/bw.png' # str | Media ID to retrieve.
62+
media_id = 'bw.png' # str | The ID of the media file.
6363

6464
try:
6565
# Delete Media
@@ -76,7 +76,7 @@ with bandwidth.ApiClient(configuration) as api_client:
7676
Name | Type | Description | Notes
7777
------------- | ------------- | ------------- | -------------
7878
**account_id** | **str**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** |
79-
**media_id** | **str**| Media ID to retrieve. |
79+
**media_id** | **str**| The ID of the media file. |
8080

8181
### Return type
8282

@@ -152,7 +152,7 @@ with bandwidth.ApiClient(configuration) as api_client:
152152
# Create an instance of the API class
153153
api_instance = bandwidth.MediaApi(api_client)
154154
account_id = '9900000' # str | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
155-
media_id = '14762070468292kw2fuqty55yp2b2/0/bw.png' # str | Media ID to retrieve.
155+
media_id = 'bw.png' # str | The ID of the media file.
156156

157157
try:
158158
# Get Media
@@ -171,7 +171,7 @@ with bandwidth.ApiClient(configuration) as api_client:
171171
Name | Type | Description | Notes
172172
------------- | ------------- | ------------- | -------------
173173
**account_id** | **str**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** |
174-
**media_id** | **str**| Media ID to retrieve. |
174+
**media_id** | **str**| The ID of the media file. |
175175

176176
### Return type
177177

@@ -347,7 +347,7 @@ with bandwidth.ApiClient(configuration) as api_client:
347347
# Create an instance of the API class
348348
api_instance = bandwidth.MediaApi(api_client)
349349
account_id = '9900000' # str | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
350-
media_id = '14762070468292kw2fuqty55yp2b2/0/bw.png' # str | Media ID to retrieve.
350+
media_id = 'bw.png' # str | The ID of the media file.
351351
body = None # bytearray |
352352
content_type = 'audio/wav' # str | The media type of the entity-body. (optional)
353353
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)
@@ -367,7 +367,7 @@ with bandwidth.ApiClient(configuration) as api_client:
367367
Name | Type | Description | Notes
368368
------------- | ------------- | ------------- | -------------
369369
**account_id** | **str**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** |
370-
**media_id** | **str**| Media ID to retrieve. |
370+
**media_id** | **str**| The ID of the media file. |
371371
**body** | **bytearray**| |
372372
**content_type** | **str**| The media type of the entity-body. | [optional]
373373
**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]

0 commit comments

Comments
 (0)