Skip to content

Commit 4304148

Browse files
fix(openapi): correct the auth scopes for the monitoring API (#1573)
This ensures that the generated clients include the correct headers. Also updates the instructions for generating the clients. The client sources have been regenerated and their version bumped. --------- Co-authored-by: Benoît Cortier <[email protected]>
1 parent b336964 commit 4304148

File tree

102 files changed

+715
-169
lines changed

Some content is hidden

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

102 files changed

+715
-169
lines changed

crates/devolutions-pedm/openapi/pedm-api.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ components:
365365
$ref: '#/components/schemas/Error'
366366
Win32Error:
367367
type: integer
368-
format: int32
368+
format: uint32
369369
minimum: 0.0
370370
GetProfilesMeResponse:
371371
description: |-
@@ -408,11 +408,11 @@ components:
408408
$ref: '#/components/schemas/JitElevationLogRow'
409409
TotalPages:
410410
type: integer
411-
format: int32
411+
format: uint32
412412
minimum: 0.0
413413
TotalRecords:
414414
type: integer
415-
format: int32
415+
format: uint32
416416
minimum: 0.0
417417
JitElevationLogQueryOptions:
418418
type: object
@@ -429,11 +429,11 @@ components:
429429
format: int64
430430
PageNumber:
431431
type: integer
432-
format: int32
432+
format: uint32
433433
minimum: 0.0
434434
PageSize:
435435
type: integer
436-
format: int32
436+
format: uint32
437437
minimum: 0.0
438438
SortColumn:
439439
type: string
@@ -492,7 +492,7 @@ components:
492492
nullable: true
493493
CreationFlags:
494494
type: integer
495-
format: int32
495+
format: uint32
496496
minimum: 0.0
497497
ExecutablePath:
498498
type: string
@@ -511,11 +511,11 @@ components:
511511
properties:
512512
ProcessId:
513513
type: integer
514-
format: int32
514+
format: uint32
515515
minimum: 0.0
516516
ThreadId:
517517
type: integer
518-
format: int32
518+
format: uint32
519519
minimum: 0.0
520520
PathIdParameter:
521521
type: object
@@ -588,47 +588,47 @@ components:
588588
nullable: true
589589
FillAttribute:
590590
type: integer
591-
format: int32
591+
format: uint32
592592
minimum: 0.0
593593
Flags:
594594
type: integer
595-
format: int32
595+
format: uint32
596596
minimum: 0.0
597597
ParentPid:
598598
type: integer
599-
format: int32
599+
format: uint32
600600
minimum: 0.0
601601
nullable: true
602602
ShowWindow:
603603
type: integer
604-
format: int32
604+
format: uint16
605605
minimum: 0.0
606606
Title:
607607
type: string
608608
nullable: true
609609
X:
610610
type: integer
611-
format: int32
611+
format: uint32
612612
minimum: 0.0
613613
XCountChars:
614614
type: integer
615-
format: int32
615+
format: uint32
616616
minimum: 0.0
617617
XSize:
618618
type: integer
619-
format: int32
619+
format: uint32
620620
minimum: 0.0
621621
Y:
622622
type: integer
623-
format: int32
623+
format: uint32
624624
minimum: 0.0
625625
YCountChars:
626626
type: integer
627-
format: int32
627+
format: uint32
628628
minimum: 0.0
629629
YSize:
630630
type: integer
631-
format: int32
631+
format: uint32
632632
minimum: 0.0
633633
User:
634634
type: object

devolutions-gateway/openapi/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Code is generated using [OpenAPI Generator](https://openapi-generator.tech/) and
1414
npm install @openapitools/openapi-generator-cli
1515
```
1616

17-
3. Bump versions appropriately in `config.json` files
17+
3. Ensure you have a [JDK](https://adoptium.net/) on your path (required by openapi-generator-cli).
1818

19-
4. Run `./generate_clients.ps1` script.
19+
4. Bump versions appropriately in `config.json` files
2020

21-
Note: script `./generate_all.ps1` will do both 1 and 4 at once.
21+
5. Run `./generate_clients.ps1` script.
22+
23+
Note: script `./generate_all.ps1` will generate both the OpenAPI documents and the clients at once.

devolutions-gateway/openapi/doc/index.adoc

Lines changed: 47 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

devolutions-gateway/openapi/dotnet-client/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ docs/SessionInfo.md
4848
docs/SessionTokenContentType.md
4949
docs/SessionTokenSignRequest.md
5050
docs/SessionsApi.md
51+
docs/SetConfigResponse.md
5152
docs/SubProvisionerKey.md
5253
docs/Subscriber.md
5354
docs/TrafficApi.md
@@ -124,6 +125,7 @@ src/Devolutions.Gateway.Client/Model/PubKeyFormat.cs
124125
src/Devolutions.Gateway.Client/Model/SessionInfo.cs
125126
src/Devolutions.Gateway.Client/Model/SessionTokenContentType.cs
126127
src/Devolutions.Gateway.Client/Model/SessionTokenSignRequest.cs
128+
src/Devolutions.Gateway.Client/Model/SetConfigResponse.cs
127129
src/Devolutions.Gateway.Client/Model/SubProvisionerKey.cs
128130
src/Devolutions.Gateway.Client/Model/Subscriber.cs
129131
src/Devolutions.Gateway.Client/Model/TrafficEventResponse.cs

devolutions-gateway/openapi/dotnet-client/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Protocol-aware fine-grained relay server
44

55
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

7-
- API version: 2025.2.3
8-
- SDK version: 2025.9.8
7+
- API version: 2025.3.2
8+
- SDK version: 2025.11.12
99
- Generator version: 7.9.0
1010
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
1111

@@ -206,6 +206,7 @@ Class | Method | HTTP request | Description
206206
- [Model.SessionInfo](docs/SessionInfo.md)
207207
- [Model.SessionTokenContentType](docs/SessionTokenContentType.md)
208208
- [Model.SessionTokenSignRequest](docs/SessionTokenSignRequest.md)
209+
- [Model.SetConfigResponse](docs/SetConfigResponse.md)
209210
- [Model.SubProvisionerKey](docs/SubProvisionerKey.md)
210211
- [Model.Subscriber](docs/Subscriber.md)
211212
- [Model.TrafficEventResponse](docs/TrafficEventResponse.md)
@@ -247,3 +248,8 @@ Authentication schemes defined for the API:
247248

248249
- **Type**: Bearer Authentication
249250

251+
252+
## Generating
253+
254+
For instructions on regenerating the source code of this library, see the
255+
[README for /devolutions-gateway/openapi](../README.md).

devolutions-gateway/openapi/dotnet-client/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packageAuthors": "Devolutions Inc.",
33
"packageName": "Devolutions.Gateway.Client",
44
"packageTitle": "Devolutions Gateway REST API Client",
5-
"packageVersion": "2025.9.8",
5+
"packageVersion": "2025.11.12",
66
"packageDescription": "Client for Devolutions Gateway REST API",
77
"packageGuid": "EF1E8A60-F71D-4F02-A779-B113740FF5CC",
88
"packageCopyright": "© Devolutions Inc. All rights reserved.",
@@ -13,4 +13,4 @@
1313
"targetFramework": "net8.0",
1414
"library": "httpclient",
1515
"excludeTests": true
16-
}
16+
}

devolutions-gateway/openapi/dotnet-client/docs/NetworkMonitoringApi.md

Lines changed: 19 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)