Skip to content

Commit 90e4c25

Browse files
[.NET SDK] Upgrades OpenAPI Generator from 7.12.0 to 7.26.0 (#581)
2 parents 9088e48 + 24f2da4 commit 90e4c25

91 files changed

Lines changed: 1753 additions & 928 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎sdks/dotnet/.github/workflows/github-actions.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
- name: Setup .NET
6262
uses: actions/setup-dotnet@v3
6363
with:
64-
dotnet-version: 8.0.x
64+
dotnet-version: |
65+
8.0.x
66+
10.0.x
6567
6668
- name: Restore dependencies
6769
run: dotnet restore ${SOLUTION}.sln

‎sdks/dotnet/README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This C# SDK is automatically generated by the [OpenAPI Generator](https://openap
2424

2525
- API version: 3.0.0
2626
- SDK version: 2.2-dev
27-
- Generator version: 7.12.0
27+
- Generator version: 7.26.0
2828
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
2929

3030
### Building
@@ -45,6 +45,9 @@ this command.
4545

4646
<a id="frameworks-supported"></a>
4747
## Frameworks supported
48+
- .NET 8.0 or later (the package includes `net8.0` and `net10.0` builds)
49+
50+
Building the SDK from source works with the .NET 8 SDK (`net8.0` build) or the .NET 10 SDK (`net8.0` and `net10.0` builds).
4851

4952
<a id="dependencies"></a>
5053
## Dependencies

‎sdks/dotnet/bin/dotnet‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ docker run --rm \
1212
-v "${ROOT_DIR}:${WORKING_DIR}" \
1313
-w "${WORKING_DIR}" \
1414
-u root:root \
15-
mcr.microsoft.com/dotnet/sdk:8.0 "$@"
15+
"${DOTNET_IMAGE:-mcr.microsoft.com/dotnet/sdk:10.0}" "$@"

‎sdks/dotnet/openapi-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ additionalProperties:
1010
packageTitle: Dropbox Sign .Net SDK
1111
sortModelPropertiesByRequiredFlag: true
1212
optionalEmitDefaultValues: true
13-
targetFramework: net8.0
13+
targetFramework: net8.0;net10.0
1414
library: restsharp
1515
packageGuid: "{F8C8232D-7020-4603-8E04-18D060AE530B}"
1616
legacyDiscriminatorBehavior: true

‎sdks/dotnet/run-build‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# see https://github.com/OpenAPITools/openapi-generator/tree/v7.12.0/modules/openapi-generator/src/main/resources/csharp
3+
# see https://github.com/OpenAPITools/openapi-generator/tree/v7.26.0/modules/openapi-generator/src/main/resources/csharp
44

55
set -e
66

@@ -18,7 +18,7 @@ rm -f "${DIR}/src/Dropbox.Sign/Model/"*.cs
1818

1919
docker run --rm \
2020
-v "${DIR}/:/local" \
21-
openapitools/openapi-generator-cli:v7.12.0 generate \
21+
openapitools/openapi-generator-cli:v7.26.0 generate \
2222
-i "/local/openapi-sdk.yaml" \
2323
-c "/local/openapi-config.yaml" \
2424
-t "/local/templates" \
@@ -58,7 +58,10 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then
5858
find "${DIR}/src/" -type f -exec chmod 644 {} \;
5959
fi
6060

61-
printf "Running tests ...\n"
62-
bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/
61+
printf "Running tests (net10.0) ...\n"
62+
bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ -f net10.0
63+
64+
printf "Running tests (net8.0) ...\n"
65+
DOTNET_IMAGE="mcr.microsoft.com/dotnet/sdk:8.0" bash "${DIR}/bin/dotnet" dotnet test src/Dropbox.Sign.Test/ -p:TargetFrameworks=net8.0
6366

6467
printf "Success!\n"

‎sdks/dotnet/src/Dropbox.Sign.Test/Dropbox.Sign.Test.csproj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<PropertyGroup>
44
<AssemblyName>Dropbox.Sign.Test</AssemblyName>
55
<RootNamespace>Dropbox.Sign.Test</RootNamespace>
6-
<TargetFramework>net8.0</TargetFramework>
6+
<TargetFrameworks>net8.0</TargetFrameworks>
7+
<TargetFrameworks Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(NETCoreSdkVersion)', '10.0'))">net8.0;net10.0</TargetFrameworks>
78
<IsPackable>false</IsPackable>
89
<PackageId>Dropbox.Sign.Test</PackageId>
910
</PropertyGroup>

‎sdks/dotnet/src/Dropbox.Sign/Api/AccountApi.cs‎

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

‎sdks/dotnet/src/Dropbox.Sign/Api/ApiAppApi.cs‎

Lines changed: 24 additions & 24 deletions
Large diffs are not rendered by default.

‎sdks/dotnet/src/Dropbox.Sign/Api/BulkSendJobApi.cs‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
4040
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
4141
/// <param name="operationIndex">Index associated with the operation.</param>
4242
/// <returns>BulkSendJobGetResponse</returns>
43-
BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
43+
BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0);
4444

4545
/// <summary>
4646
/// Get Bulk Send Job
@@ -55,7 +55,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
5555
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
5656
/// <param name="operationIndex">Index associated with the operation.</param>
5757
/// <returns>ApiResponse of BulkSendJobGetResponse</returns>
58-
ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
58+
ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0);
5959
/// <summary>
6060
/// List Bulk Send Jobs
6161
/// </summary>
@@ -68,7 +68,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
6868
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
6969
/// <param name="operationIndex">Index associated with the operation.</param>
7070
/// <returns>BulkSendJobListResponse</returns>
71-
BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
71+
BulkSendJobListResponse BulkSendJobList(int? page = default, int? pageSize = default, int operationIndex = 0);
7272

7373
/// <summary>
7474
/// List Bulk Send Jobs
@@ -82,7 +82,7 @@ public interface IBulkSendJobApiSync : IApiAccessor
8282
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
8383
/// <param name="operationIndex">Index associated with the operation.</param>
8484
/// <returns>ApiResponse of BulkSendJobListResponse</returns>
85-
ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0);
85+
ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default, int? pageSize = default, int operationIndex = 0);
8686
#endregion Synchronous Operations
8787
}
8888

@@ -106,7 +106,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
106106
/// <param name="operationIndex">Index associated with the operation.</param>
107107
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
108108
/// <returns>Task of BulkSendJobGetResponse</returns>
109-
System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
109+
System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
110110

111111
/// <summary>
112112
/// Get Bulk Send Job
@@ -122,7 +122,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
122122
/// <param name="operationIndex">Index associated with the operation.</param>
123123
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
124124
/// <returns>Task of ApiResponse (BulkSendJobGetResponse)</returns>
125-
System.Threading.Tasks.Task<ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
125+
System.Threading.Tasks.Task<ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
126126
/// <summary>
127127
/// List Bulk Send Jobs
128128
/// </summary>
@@ -136,7 +136,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
136136
/// <param name="operationIndex">Index associated with the operation.</param>
137137
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
138138
/// <returns>Task of BulkSendJobListResponse</returns>
139-
System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
139+
System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
140140

141141
/// <summary>
142142
/// List Bulk Send Jobs
@@ -151,7 +151,7 @@ public interface IBulkSendJobApiAsync : IApiAccessor
151151
/// <param name="operationIndex">Index associated with the operation.</param>
152152
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
153153
/// <returns>Task of ApiResponse (BulkSendJobListResponse)</returns>
154-
System.Threading.Tasks.Task<ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
154+
System.Threading.Tasks.Task<ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
155155
#endregion Asynchronous Operations
156156
}
157157

@@ -282,7 +282,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
282282
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
283283
/// <param name="operationIndex">Index associated with the operation.</param>
284284
/// <returns>BulkSendJobGetResponse</returns>
285-
public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
285+
public BulkSendJobGetResponse BulkSendJobGet(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0)
286286
{
287287
Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> localVarResponse = BulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize);
288288
return localVarResponse.Data;
@@ -298,7 +298,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
298298
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
299299
/// <param name="operationIndex">Index associated with the operation.</param>
300300
/// <returns>ApiResponse of BulkSendJobGetResponse</returns>
301-
public Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
301+
public Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> BulkSendJobGetWithHttpInfo(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0)
302302
{
303303
// verify the required parameter 'bulkSendJobId' is set
304304
if (bulkSendJobId == null)
@@ -379,7 +379,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
379379
/// <param name="operationIndex">Index associated with the operation.</param>
380380
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
381381
/// <returns>Task of BulkSendJobGetResponse</returns>
382-
public async System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
382+
public async System.Threading.Tasks.Task<BulkSendJobGetResponse> BulkSendJobGetAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
383383
{
384384
Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse> localVarResponse = await BulkSendJobGetWithHttpInfoAsync(bulkSendJobId, page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false);
385385
return localVarResponse.Data;
@@ -396,7 +396,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
396396
/// <param name="operationIndex">Index associated with the operation.</param>
397397
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
398398
/// <returns>Task of ApiResponse (BulkSendJobGetResponse)</returns>
399-
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
399+
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobGetResponse>> BulkSendJobGetWithHttpInfoAsync(string bulkSendJobId, int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
400400
{
401401
// verify the required parameter 'bulkSendJobId' is set
402402
if (bulkSendJobId == null)
@@ -477,7 +477,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
477477
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
478478
/// <param name="operationIndex">Index associated with the operation.</param>
479479
/// <returns>BulkSendJobListResponse</returns>
480-
public BulkSendJobListResponse BulkSendJobList(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
480+
public BulkSendJobListResponse BulkSendJobList(int? page = default, int? pageSize = default, int operationIndex = 0)
481481
{
482482
Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> localVarResponse = BulkSendJobListWithHttpInfo(page, pageSize);
483483
return localVarResponse.Data;
@@ -492,7 +492,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
492492
/// <param name="pageSize">Number of objects to be returned per page. Must be between &#x60;1&#x60; and &#x60;100&#x60;. Default is 20. (optional, default to 20)</param>
493493
/// <param name="operationIndex">Index associated with the operation.</param>
494494
/// <returns>ApiResponse of BulkSendJobListResponse</returns>
495-
public Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0)
495+
public Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> BulkSendJobListWithHttpInfo(int? page = default, int? pageSize = default, int operationIndex = 0)
496496
{
497497
Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions();
498498

@@ -565,7 +565,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
565565
/// <param name="operationIndex">Index associated with the operation.</param>
566566
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
567567
/// <returns>Task of BulkSendJobListResponse</returns>
568-
public async System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
568+
public async System.Threading.Tasks.Task<BulkSendJobListResponse> BulkSendJobListAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
569569
{
570570
Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse> localVarResponse = await BulkSendJobListWithHttpInfoAsync(page, pageSize, operationIndex, cancellationToken).ConfigureAwait(false);
571571
return localVarResponse.Data;
@@ -581,7 +581,7 @@ public Dropbox.Sign.Client.ExceptionFactory ExceptionFactory
581581
/// <param name="operationIndex">Index associated with the operation.</param>
582582
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
583583
/// <returns>Task of ApiResponse (BulkSendJobListResponse)</returns>
584-
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default(int?), int? pageSize = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
584+
public async System.Threading.Tasks.Task<Dropbox.Sign.Client.ApiResponse<BulkSendJobListResponse>> BulkSendJobListWithHttpInfoAsync(int? page = default, int? pageSize = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
585585
{
586586

587587
Dropbox.Sign.Client.RequestOptions localVarRequestOptions = new Dropbox.Sign.Client.RequestOptions();

0 commit comments

Comments
 (0)