diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index c5ba16c..89e6e47 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{0AC7241A-463A-4CA2-A850-F38F4A50FC51}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{0B827FE6-C4E9-4144-A195-8A00B3C063F4}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0AC7241A-463A-4CA2-A850-F38F4A50FC51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0AC7241A-463A-4CA2-A850-F38F4A50FC51}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0AC7241A-463A-4CA2-A850-F38F4A50FC51}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0AC7241A-463A-4CA2-A850-F38F4A50FC51}.Release|Any CPU.Build.0 = Release|Any CPU + {0B827FE6-C4E9-4144-A195-8A00B3C063F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0B827FE6-C4E9-4144-A195-8A00B3C063F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0B827FE6-C4E9-4144-A195-8A00B3C063F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0B827FE6-C4E9-4144-A195-8A00B3C063F4}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/api/openapi.yaml b/api/openapi.yaml index 483be22..93b86f0 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -144,8 +144,8 @@ paths: schema: type: string style: simple - - description: Media ID to retrieve. - example: 14762070468292kw2fuqty55yp2b2/0/bw.png + - description: The ID of the media file. + example: bw.png explode: false in: path name: mediaId @@ -223,8 +223,8 @@ paths: schema: type: string style: simple - - description: Media ID to retrieve. - example: 14762070468292kw2fuqty55yp2b2/0/bw.png + - description: The ID of the media file. + example: bw.png explode: false in: path name: mediaId @@ -313,8 +313,8 @@ paths: schema: type: string style: simple - - description: Media ID to retrieve. - example: 14762070468292kw2fuqty55yp2b2/0/bw.png + - description: The ID of the media file. + example: bw.png explode: false in: path name: mediaId @@ -7226,8 +7226,8 @@ components: type: string style: simple mediaId: - description: Media ID to retrieve. - example: 14762070468292kw2fuqty55yp2b2/0/bw.png + description: The ID of the media file. + example: bw.png explode: false in: path name: mediaId diff --git a/bandwidth.yml b/bandwidth.yml index 4b88b45..53949fe 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -8237,8 +8237,8 @@ components: in: path name: mediaId required: true - description: Media ID to retrieve. - example: 14762070468292kw2fuqty55yp2b2/0/bw.png + description: The ID of the media file. + example: bw.png schema: type: string contentType: diff --git a/docs/MediaApi.md b/docs/MediaApi.md index c0aabd0..76ba4b0 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -41,7 +41,7 @@ namespace Example var apiInstance = new MediaApi(config); var 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.** - var mediaId = 14762070468292kw2fuqty55yp2b2/0/bw.png; // string | Media ID to retrieve. + var mediaId = bw.png; // string | The ID of the media file. try { @@ -81,7 +81,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **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.** | | -| **mediaId** | **string** | Media ID to retrieve. | | +| **mediaId** | **string** | The ID of the media file. | | ### Return type @@ -144,7 +144,7 @@ namespace Example var apiInstance = new MediaApi(config); var 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.** - var mediaId = 14762070468292kw2fuqty55yp2b2/0/bw.png; // string | Media ID to retrieve. + var mediaId = bw.png; // string | The ID of the media file. try { @@ -188,7 +188,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **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.** | | -| **mediaId** | **string** | Media ID to retrieve. | | +| **mediaId** | **string** | The ID of the media file. | | ### Return type @@ -358,7 +358,7 @@ namespace Example var apiInstance = new MediaApi(config); var 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.** - var mediaId = 14762070468292kw2fuqty55yp2b2/0/bw.png; // string | Media ID to retrieve. + var mediaId = bw.png; // string | The ID of the media file. var body = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | var contentType = audio/wav; // string | The media type of the entity-body. (optional) var 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. (optional) @@ -401,7 +401,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **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.** | | -| **mediaId** | **string** | Media ID to retrieve. | | +| **mediaId** | **string** | The ID of the media file. | | | **body** | **System.IO.Stream****System.IO.Stream** | | | | **contentType** | **string** | The media type of the entity-body. | [optional] | | **cacheControl** | **string** | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. | [optional] | diff --git a/src/Bandwidth.Standard/Api/MediaApi.cs b/src/Bandwidth.Standard/Api/MediaApi.cs index b5e44f0..ec4c852 100644 --- a/src/Bandwidth.Standard/Api/MediaApi.cs +++ b/src/Bandwidth.Standard/Api/MediaApi.cs @@ -36,7 +36,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// void DeleteMedia(string accountId, string mediaId, int operationIndex = 0); @@ -49,7 +49,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// ApiResponse of Object(void) ApiResponse DeleteMediaWithHttpInfo(string accountId, string mediaId, int operationIndex = 0); @@ -61,7 +61,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// System.IO.Stream System.IO.Stream GetMedia(string accountId, string mediaId, int operationIndex = 0); @@ -74,7 +74,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// ApiResponse of System.IO.Stream ApiResponse GetMediaWithHttpInfo(string accountId, string mediaId, int operationIndex = 0); @@ -111,7 +111,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -127,7 +127,7 @@ public interface IMediaApiSync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -151,7 +151,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void @@ -165,7 +165,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse @@ -178,7 +178,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream @@ -192,7 +192,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) @@ -232,7 +232,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -249,7 +249,7 @@ public interface IMediaApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -382,7 +382,7 @@ public Bandwidth.Standard.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// public void DeleteMedia(string accountId, string mediaId, int operationIndex = 0) @@ -395,7 +395,7 @@ public void DeleteMedia(string accountId, string mediaId, int operationIndex = 0 /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// ApiResponse of Object(void) public Bandwidth.Standard.Client.ApiResponse DeleteMediaWithHttpInfo(string accountId, string mediaId, int operationIndex = 0) @@ -482,7 +482,7 @@ public Bandwidth.Standard.Client.ApiResponse DeleteMediaWithHttpInfo(str /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void @@ -496,7 +496,7 @@ public Bandwidth.Standard.Client.ApiResponse DeleteMediaWithHttpInfo(str /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse @@ -586,7 +586,7 @@ public Bandwidth.Standard.Client.ApiResponse DeleteMediaWithHttpInfo(str /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// System.IO.Stream public System.IO.Stream GetMedia(string accountId, string mediaId, int operationIndex = 0) @@ -600,7 +600,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// ApiResponse of System.IO.Stream public Bandwidth.Standard.Client.ApiResponse GetMediaWithHttpInfo(string accountId, string mediaId, int operationIndex = 0) @@ -688,7 +688,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of System.IO.Stream @@ -703,7 +703,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (System.IO.Stream) @@ -994,7 +994,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -1010,7 +1010,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -1163,7 +1163,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) @@ -1180,7 +1180,7 @@ public System.IO.Stream GetMedia(string accountId, string mediaId, int operation /// /// Thrown when fails to make API call /// 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.** - /// Media ID to retrieve. + /// The ID of the media file. /// /// The media type of the entity-body. (optional) /// General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)