Skip to content

Commit 90f43fa

Browse files
mafgegithub-actions[bot]
authored andcommitted
Update Csharp SDK
1 parent 4cec633 commit 90f43fa

File tree

22 files changed

+845
-94
lines changed

22 files changed

+845
-94
lines changed

csharp/sdk/software.amzn.spapi.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "software.amzn.spapi", "src\software.amzn.spapi\software.amzn.spapi.csproj", "{BCA24C0D-F0A3-4E51-9CFB-9F56407A98D1}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "software.amzn.spapi", "src\software.amzn.spapi\software.amzn.spapi.csproj", "{5F4E6270-0306-4CE0-A21F-5C5A6BF1F8FD}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "software.amzn.spapi.Test", "src\software.amzn.spapi.Test\software.amzn.spapi.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{BCA24C0D-F0A3-4E51-9CFB-9F56407A98D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{BCA24C0D-F0A3-4E51-9CFB-9F56407A98D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{BCA24C0D-F0A3-4E51-9CFB-9F56407A98D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{BCA24C0D-F0A3-4E51-9CFB-9F56407A98D1}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{5F4E6270-0306-4CE0-A21F-5C5A6BF1F8FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{5F4E6270-0306-4CE0-A21F-5C5A6BF1F8FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{5F4E6270-0306-4CE0-A21F-5C5A6BF1F8FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{5F4E6270-0306-4CE0-A21F-5C5A6BF1F8FD}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

csharp/sdk/src/software.amzn.spapi.Test/Api.feeds.v2021_06_30/FeedsApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void GetFeedDocumentTest()
136136
string feedDocumentId = fixture.Create<string>();
137137

138138

139-
var response = api.GetFeedDocumentWithHttpInfo(feedDocumentId);
139+
var response = api.GetFeedDocumentWithHttpInfo(feedDocumentId, null);
140140

141141
Assert.Equal(200, (int) response.StatusCode);
142142
AssertValidResponsePayload(200, response.Content);

csharp/sdk/src/software.amzn.spapi.Test/Api.reports.v2021_06_30/ReportsApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void GetReportDocumentTest()
151151
string reportDocumentId = fixture.Create<string>();
152152

153153

154-
var response = api.GetReportDocumentWithHttpInfo(reportDocumentId);
154+
var response = api.GetReportDocumentWithHttpInfo(reportDocumentId, null);
155155

156156
Assert.Equal(200, (int) response.StatusCode);
157157
AssertValidResponsePayload(200, response.Content);

csharp/sdk/src/software.amzn.spapi/Api.feeds.v2021_06_30/FeedsApi.cs

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ public interface IFeedsApi : IApiAccessor
117117
/// </remarks>
118118
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
119119
/// <param name="feedDocumentId">The identifier of the feed document.</param>
120+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
120121
/// <returns>FeedDocument</returns>
121-
FeedDocument GetFeedDocument (string feedDocumentId);
122+
FeedDocument GetFeedDocument (string feedDocumentId, bool? enableContentEncodingUrlHeader = null);
122123

123124
/// <summary>
124125
///
@@ -128,8 +129,9 @@ public interface IFeedsApi : IApiAccessor
128129
/// </remarks>
129130
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
130131
/// <param name="feedDocumentId">The identifier of the feed document.</param>
132+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
131133
/// <returns>ApiResponse of FeedDocument</returns>
132-
ApiResponse<FeedDocument> GetFeedDocumentWithHttpInfo (string feedDocumentId);
134+
ApiResponse<FeedDocument> GetFeedDocumentWithHttpInfo (string feedDocumentId, bool? enableContentEncodingUrlHeader = null);
133135
/// <summary>
134136
///
135137
/// </summary>
@@ -257,8 +259,9 @@ public interface IFeedsApi : IApiAccessor
257259
/// </remarks>
258260
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
259261
/// <param name="feedDocumentId">The identifier of the feed document.</param>
262+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
260263
/// <returns>Task of FeedDocument</returns>
261-
System.Threading.Tasks.Task<FeedDocument> GetFeedDocumentAsync (string feedDocumentId);
264+
System.Threading.Tasks.Task<FeedDocument> GetFeedDocumentAsync (string feedDocumentId, bool? enableContentEncodingUrlHeader = null);
262265

263266
/// <summary>
264267
///
@@ -268,8 +271,9 @@ public interface IFeedsApi : IApiAccessor
268271
/// </remarks>
269272
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
270273
/// <param name="feedDocumentId">The identifier of the feed document.</param>
274+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
271275
/// <returns>Task of ApiResponse (FeedDocument)</returns>
272-
System.Threading.Tasks.Task<ApiResponse<FeedDocument>> GetFeedDocumentAsyncWithHttpInfo (string feedDocumentId);
276+
System.Threading.Tasks.Task<ApiResponse<FeedDocument>> GetFeedDocumentAsyncWithHttpInfo (string feedDocumentId, bool? enableContentEncodingUrlHeader = null);
273277
/// <summary>
274278
///
275279
/// </summary>
@@ -943,10 +947,11 @@ public async System.Threading.Tasks.Task<ApiResponse<Feed>> GetFeedAsyncWithHttp
943947
/// </summary>
944948
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
945949
/// <param name="feedDocumentId">The identifier of the feed document.</param>
950+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
946951
/// <returns>FeedDocument</returns>
947-
public FeedDocument GetFeedDocument (string feedDocumentId)
952+
public FeedDocument GetFeedDocument (string feedDocumentId, bool? enableContentEncodingUrlHeader = null)
948953
{
949-
ApiResponse<FeedDocument> localVarResponse = GetFeedDocumentWithHttpInfo(feedDocumentId);
954+
ApiResponse<FeedDocument> localVarResponse = GetFeedDocumentWithHttpInfo(feedDocumentId, enableContentEncodingUrlHeader);
950955
return localVarResponse.Data;
951956
}
952957

@@ -955,8 +960,9 @@ public FeedDocument GetFeedDocument (string feedDocumentId)
955960
/// </summary>
956961
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
957962
/// <param name="feedDocumentId">The identifier of the feed document.</param>
963+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
958964
/// <returns>ApiResponse of FeedDocument</returns>
959-
public ApiResponse< FeedDocument > GetFeedDocumentWithHttpInfo (string feedDocumentId)
965+
public ApiResponse< FeedDocument > GetFeedDocumentWithHttpInfo (string feedDocumentId, bool? enableContentEncodingUrlHeader = null)
960966
{
961967
// verify the required parameter 'feedDocumentId' is set
962968
if (feedDocumentId == null)
@@ -984,6 +990,7 @@ public ApiResponse< FeedDocument > GetFeedDocumentWithHttpInfo (string feedDocum
984990
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
985991

986992
if (feedDocumentId != null) localVarPathParams.Add("feedDocumentId", this.Configuration.ApiClient.ParameterToString(feedDocumentId)); // path parameter
993+
if (enableContentEncodingUrlHeader != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enableContentEncodingUrlHeader", enableContentEncodingUrlHeader)); // query parameter
987994

988995

989996
// make the HTTP request
@@ -1007,10 +1014,11 @@ public ApiResponse< FeedDocument > GetFeedDocumentWithHttpInfo (string feedDocum
10071014
/// </summary>
10081015
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
10091016
/// <param name="feedDocumentId">The identifier of the feed document.</param>
1017+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
10101018
/// <returns>Task of FeedDocument</returns>
1011-
public async System.Threading.Tasks.Task<FeedDocument> GetFeedDocumentAsync (string feedDocumentId)
1019+
public async System.Threading.Tasks.Task<FeedDocument> GetFeedDocumentAsync (string feedDocumentId, bool? enableContentEncodingUrlHeader = null)
10121020
{
1013-
ApiResponse<FeedDocument> localVarResponse = await GetFeedDocumentAsyncWithHttpInfo(feedDocumentId);
1021+
ApiResponse<FeedDocument> localVarResponse = await GetFeedDocumentAsyncWithHttpInfo(feedDocumentId, enableContentEncodingUrlHeader);
10141022
return localVarResponse.Data;
10151023

10161024
}
@@ -1020,8 +1028,9 @@ public async System.Threading.Tasks.Task<FeedDocument> GetFeedDocumentAsync (str
10201028
/// </summary>
10211029
/// <exception cref="software.amzn.spapi.Client.ApiException">Thrown when fails to make API call</exception>
10221030
/// <param name="feedDocumentId">The identifier of the feed document.</param>
1031+
/// <param name="enableContentEncodingUrlHeader">When &#x60;true&#x60;, the Content-Encoding header on the returned URL is set to &#x60;gzip&#x60; instead of the default &#x60;identity&#x60; when &#x60;compressionAlgorithm&#x60; is &#x60;GZIP&#x60;. This allows automatic decompression by HTTP clients. (optional)</param>
10231032
/// <returns>Task of ApiResponse (FeedDocument)</returns>
1024-
public async System.Threading.Tasks.Task<ApiResponse<FeedDocument>> GetFeedDocumentAsyncWithHttpInfo (string feedDocumentId)
1033+
public async System.Threading.Tasks.Task<ApiResponse<FeedDocument>> GetFeedDocumentAsyncWithHttpInfo (string feedDocumentId, bool? enableContentEncodingUrlHeader = null)
10251034
{
10261035
// verify the required parameter 'feedDocumentId' is set
10271036
if (feedDocumentId == null)
@@ -1049,6 +1058,7 @@ public async System.Threading.Tasks.Task<ApiResponse<FeedDocument>> GetFeedDocum
10491058
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
10501059

10511060
if (feedDocumentId != null) localVarPathParams.Add("feedDocumentId", this.Configuration.ApiClient.ParameterToString(feedDocumentId)); // path parameter
1061+
if (enableContentEncodingUrlHeader != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enableContentEncodingUrlHeader", enableContentEncodingUrlHeader)); // query parameter
10521062

10531063

10541064
// make the HTTP request

0 commit comments

Comments
 (0)