Skip to content

Commit 7df8fa3

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 8af8973 commit 7df8fa3

4 files changed

Lines changed: 28 additions & 28 deletions

File tree

‎api/openapi.yaml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ paths:
146146
schema:
147147
type: string
148148
style: simple
149-
- description: Media ID to retrieve.
150-
example: 14762070468292kw2fuqty55yp2b2/0/bw.png
149+
- description: The ID of the media file.
150+
example: bw.png
151151
explode: false
152152
in: path
153153
name: mediaId
@@ -227,8 +227,8 @@ paths:
227227
schema:
228228
type: string
229229
style: simple
230-
- description: Media ID to retrieve.
231-
example: 14762070468292kw2fuqty55yp2b2/0/bw.png
230+
- description: The ID of the media file.
231+
example: bw.png
232232
explode: false
233233
in: path
234234
name: mediaId
@@ -320,8 +320,8 @@ paths:
320320
schema:
321321
type: string
322322
style: simple
323-
- description: Media ID to retrieve.
324-
example: 14762070468292kw2fuqty55yp2b2/0/bw.png
323+
- description: The ID of the media file.
324+
example: bw.png
325325
explode: false
326326
in: path
327327
name: mediaId
@@ -7363,8 +7363,8 @@ components:
73637363
type: string
73647364
style: simple
73657365
mediaId:
7366-
description: Media ID to retrieve.
7367-
example: 14762070468292kw2fuqty55yp2b2/0/bw.png
7366+
description: The ID of the media file.
7367+
example: bw.png
73687368
explode: false
73697369
in: path
73707370
name: mediaId

‎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:

‎docs/MediaApi.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class Example {
4444

4545
MediaApi apiInstance = new MediaApi(defaultClient);
4646
String accountId = "9900000"; // String | 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-
String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
47+
String mediaId = "bw.png"; // String | The ID of the media file.
4848
try {
4949
apiInstance.deleteMedia(accountId, mediaId);
5050
} catch (ApiException e) {
@@ -63,7 +63,7 @@ public class Example {
6363
| Name | Type | Description | Notes |
6464
|------------- | ------------- | ------------- | -------------|
6565
| **accountId** | **String**| 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.** | |
66-
| **mediaId** | **String**| Media ID to retrieve. | |
66+
| **mediaId** | **String**| The ID of the media file. | |
6767

6868
### Return type
6969

@@ -125,7 +125,7 @@ public class Example {
125125

126126
MediaApi apiInstance = new MediaApi(defaultClient);
127127
String accountId = "9900000"; // String | 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.**
128-
String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
128+
String mediaId = "bw.png"; // String | The ID of the media file.
129129
try {
130130
File result = apiInstance.getMedia(accountId, mediaId);
131131
System.out.println(result);
@@ -145,7 +145,7 @@ public class Example {
145145
| Name | Type | Description | Notes |
146146
|------------- | ------------- | ------------- | -------------|
147147
| **accountId** | **String**| 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.** | |
148-
| **mediaId** | **String**| Media ID to retrieve. | |
148+
| **mediaId** | **String**| The ID of the media file. | |
149149

150150
### Return type
151151

@@ -289,7 +289,7 @@ public class Example {
289289

290290
MediaApi apiInstance = new MediaApi(defaultClient);
291291
String accountId = "9900000"; // String | 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.**
292-
String mediaId = "14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
292+
String mediaId = "bw.png"; // String | The ID of the media file.
293293
File body = new File("/path/to/file"); // File |
294294
String contentType = "audio/wav"; // String | The media type of the entity-body.
295295
String cacheControl = "no-cache"; // String | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
@@ -311,7 +311,7 @@ public class Example {
311311
| Name | Type | Description | Notes |
312312
|------------- | ------------- | ------------- | -------------|
313313
| **accountId** | **String**| 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.** | |
314-
| **mediaId** | **String**| Media ID to retrieve. | |
314+
| **mediaId** | **String**| The ID of the media file. | |
315315
| **body** | **File**| | |
316316
| **contentType** | **String**| The media type of the entity-body. | [optional] |
317317
| **cacheControl** | **String**| General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. | [optional] |

‎src/main/java/com/bandwidth/sdk/api/MediaApi.java‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
7777
/**
7878
* Build call for deleteMedia
7979
* @param accountId 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)
80-
* @param mediaId Media ID to retrieve. (required)
80+
* @param mediaId The ID of the media file. (required)
8181
* @param _callback Callback for upload/download progress
8282
* @return Call to execute
8383
* @throws ApiException If fail to serialize the request body object
@@ -162,7 +162,7 @@ private okhttp3.Call deleteMediaValidateBeforeCall(@javax.annotation.Nonnull Str
162162
* Delete Media
163163
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
164164
* @param accountId 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)
165-
* @param mediaId Media ID to retrieve. (required)
165+
* @param mediaId The ID of the media file. (required)
166166
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
167167
* @http.response.details
168168
<table border="1">
@@ -187,7 +187,7 @@ public void deleteMedia(@javax.annotation.Nonnull String accountId, @javax.annot
187187
* Delete Media
188188
* Deletes a media file from Bandwidth API server. Make sure you don&#39;t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
189189
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
190-
* @param mediaId Media ID to retrieve. (required)
190+
* @param mediaId The ID of the media file. (required)
191191
* @return ApiResponse&lt;Void&gt;
192192
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
193193
* @http.response.details
@@ -214,7 +214,7 @@ public ApiResponse<Void> deleteMediaWithHttpInfo(@javax.annotation.Nonnull Strin
214214
* Delete Media (asynchronously)
215215
* Deletes a media file from Bandwidth API server. Make sure you don&#39;t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
216216
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
217-
* @param mediaId Media ID to retrieve. (required)
217+
* @param mediaId The ID of the media file. (required)
218218
* @param _callback The callback to be executed when the API call finishes
219219
* @return The request call
220220
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -242,7 +242,7 @@ public okhttp3.Call deleteMediaAsync(@javax.annotation.Nonnull String accountId,
242242
/**
243243
* Build call for getMedia
244244
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
245-
* @param mediaId Media ID to retrieve. (required)
245+
* @param mediaId The ID of the media file. (required)
246246
* @param _callback Callback for upload/download progress
247247
* @return Call to execute
248248
* @throws ApiException If fail to serialize the request body object
@@ -328,7 +328,7 @@ private okhttp3.Call getMediaValidateBeforeCall(@javax.annotation.Nonnull String
328328
* Get Media
329329
* Downloads a media file you previously uploaded.
330330
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
331-
* @param mediaId Media ID to retrieve. (required)
331+
* @param mediaId The ID of the media file. (required)
332332
* @return File
333333
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
334334
* @http.response.details
@@ -355,7 +355,7 @@ public File getMedia(@javax.annotation.Nonnull String accountId, @javax.annotati
355355
* Get Media
356356
* Downloads a media file you previously uploaded.
357357
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
358-
* @param mediaId Media ID to retrieve. (required)
358+
* @param mediaId The ID of the media file. (required)
359359
* @return ApiResponse&lt;File&gt;
360360
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
361361
* @http.response.details
@@ -383,7 +383,7 @@ public ApiResponse<File> getMediaWithHttpInfo(@javax.annotation.Nonnull String a
383383
* Get Media (asynchronously)
384384
* Downloads a media file you previously uploaded.
385385
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
386-
* @param mediaId Media ID to retrieve. (required)
386+
* @param mediaId The ID of the media file. (required)
387387
* @param _callback The callback to be executed when the API call finishes
388388
* @return The request call
389389
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -580,7 +580,7 @@ public okhttp3.Call listMediaAsync(@javax.annotation.Nonnull String accountId, @
580580
/**
581581
* Build call for uploadMedia
582582
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
583-
* @param mediaId Media ID to retrieve. (required)
583+
* @param mediaId The ID of the media file. (required)
584584
* @param body (required)
585585
* @param contentType The media type of the entity-body. (optional)
586586
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -731,7 +731,7 @@ private okhttp3.Call uploadMediaValidateBeforeCall(@javax.annotation.Nonnull Str
731731
* Upload Media
732732
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
733733
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
734-
* @param mediaId Media ID to retrieve. (required)
734+
* @param mediaId The ID of the media file. (required)
735735
* @param body (required)
736736
* @param contentType The media type of the entity-body. (optional)
737737
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -759,7 +759,7 @@ public void uploadMedia(@javax.annotation.Nonnull String accountId, @javax.annot
759759
* Upload Media
760760
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
761761
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
762-
* @param mediaId Media ID to retrieve. (required)
762+
* @param mediaId The ID of the media file. (required)
763763
* @param body (required)
764764
* @param contentType The media type of the entity-body. (optional)
765765
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -789,7 +789,7 @@ public ApiResponse<Void> uploadMediaWithHttpInfo(@javax.annotation.Nonnull Strin
789789
* Upload Media (asynchronously)
790790
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
791791
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (&#x60;u-be8dvafwrs63rwpm7pfil4b&#x60;) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
792-
* @param mediaId Media ID to retrieve. (required)
792+
* @param mediaId The ID of the media file. (required)
793793
* @param body (required)
794794
* @param contentType The media type of the entity-body. (optional)
795795
* @param cacheControl 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)