Skip to content

Commit e8e5de7

Browse files
committed
✨ Automatic changes -> ✨ New server autogenerated files [ci skip]
1 parent 9a8646b commit e8e5de7

5 files changed

Lines changed: 58 additions & 60 deletions

File tree

changes/20251020222021.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated client due to schema changes

client/api_workspace.go

Lines changed: 32 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/docs/WorkspaceAPI.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ Name | Type | Description | Notes
845845

846846
## GetWorkspaceArchiveContent
847847

848-
> ArtefactManagerItem GetWorkspaceArchiveContent(ctx, workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).IfNoneMatch(ifNoneMatch).Execute()
848+
> ArtefactManagerItem GetWorkspaceArchiveContent(ctx, workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).XHTTPMethodOverride(xHTTPMethodOverride).IfNoneMatch(ifNoneMatch).Execute()
849849
850850
Get the manager of the archive file containing the workspace content.
851851

@@ -867,11 +867,12 @@ func main() {
867867
workspaceName := "workspaceName_example" // string | Unique ID of the Workspace.
868868
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
869869
tusResumable := "1.0.0" // string | Version of the Tus protocol being used. (optional)
870+
xHTTPMethodOverride := "HEAD" // string | Verb tunnelling when some methods are not supported. (optional)
870871
ifNoneMatch := "ifNoneMatch_example" // string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. (optional)
871872

872873
configuration := openapiclient.NewConfiguration()
873874
apiClient := openapiclient.NewAPIClient(configuration)
874-
resp, r, err := apiClient.WorkspaceAPI.GetWorkspaceArchiveContent(context.Background(), workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).IfNoneMatch(ifNoneMatch).Execute()
875+
resp, r, err := apiClient.WorkspaceAPI.GetWorkspaceArchiveContent(context.Background(), workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).XHTTPMethodOverride(xHTTPMethodOverride).IfNoneMatch(ifNoneMatch).Execute()
875876
if err != nil {
876877
fmt.Fprintf(os.Stderr, "Error when calling `WorkspaceAPI.GetWorkspaceArchiveContent``: %v\n", err)
877878
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -899,6 +900,7 @@ Name | Type | Description | Notes
899900

900901
**acceptVersion** | **string** | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
901902
**tusResumable** | **string** | Version of the Tus protocol being used. |
903+
**xHTTPMethodOverride** | **string** | Verb tunnelling when some methods are not supported. |
902904
**ifNoneMatch** | **string** | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. |
903905

904906
### Return type
@@ -1069,7 +1071,7 @@ Name | Type | Description | Notes
10691071

10701072
## GetWorkspaceIncrementalChunk
10711073

1072-
> ArtefactManagerItem GetWorkspaceIncrementalChunk(ctx, workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).IfNoneMatch(ifNoneMatch).Execute()
1074+
> ArtefactManagerItem GetWorkspaceIncrementalChunk(ctx, workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).XHTTPMethodOverride(xHTTPMethodOverride).IfNoneMatch(ifNoneMatch).Execute()
10731075
10741076
Get the manager of the file containing the chunked workspace content.
10751077

@@ -1091,11 +1093,12 @@ func main() {
10911093
workspaceName := "workspaceName_example" // string | Unique ID of the Workspace.
10921094
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
10931095
tusResumable := "1.0.0" // string | Version of the Tus protocol being used. (optional)
1096+
xHTTPMethodOverride := "HEAD" // string | Verb tunnelling when some methods are not supported. (optional)
10941097
ifNoneMatch := "ifNoneMatch_example" // string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. (optional)
10951098

10961099
configuration := openapiclient.NewConfiguration()
10971100
apiClient := openapiclient.NewAPIClient(configuration)
1098-
resp, r, err := apiClient.WorkspaceAPI.GetWorkspaceIncrementalChunk(context.Background(), workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).IfNoneMatch(ifNoneMatch).Execute()
1101+
resp, r, err := apiClient.WorkspaceAPI.GetWorkspaceIncrementalChunk(context.Background(), workspaceName).AcceptVersion(acceptVersion).TusResumable(tusResumable).XHTTPMethodOverride(xHTTPMethodOverride).IfNoneMatch(ifNoneMatch).Execute()
10991102
if err != nil {
11001103
fmt.Fprintf(os.Stderr, "Error when calling `WorkspaceAPI.GetWorkspaceIncrementalChunk``: %v\n", err)
11011104
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1123,6 +1126,7 @@ Name | Type | Description | Notes
11231126

11241127
**acceptVersion** | **string** | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
11251128
**tusResumable** | **string** | Version of the Tus protocol being used. |
1129+
**xHTTPMethodOverride** | **string** | Verb tunnelling when some methods are not supported. |
11261130
**ifNoneMatch** | **string** | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. |
11271131

11281132
### Return type
@@ -1453,7 +1457,7 @@ Name | Type | Description | Notes
14531457

14541458
## UploadWorkspaceIncrementalChunk
14551459

1456-
> UploadWorkspaceIncrementalChunk(ctx, workspaceName).TusResumable(tusResumable).AcceptVersion(acceptVersion).UploadChecksum(uploadChecksum).UploadOffset(uploadOffset).Execute()
1460+
> UploadWorkspaceIncrementalChunk(ctx, workspaceName).TusResumable(tusResumable).Body(body).AcceptVersion(acceptVersion).UploadChecksum(uploadChecksum).UploadOffset(uploadOffset).Execute()
14571461
14581462
Upload part of a workspace.
14591463

@@ -1474,13 +1478,14 @@ import (
14741478
func main() {
14751479
workspaceName := "workspaceName_example" // string | Unique ID of the Workspace.
14761480
tusResumable := "1.0.0" // string | Version of the Tus protocol being used.
1481+
body := os.NewFile(1234, "some_file") // *os.File |
14771482
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
14781483
uploadChecksum := "uploadChecksum_example" // string | Information about the checksum of the current body payload. (optional)
14791484
uploadOffset := int64(789) // int64 | The byte offset within a resource. (optional)
14801485

14811486
configuration := openapiclient.NewConfiguration()
14821487
apiClient := openapiclient.NewAPIClient(configuration)
1483-
r, err := apiClient.WorkspaceAPI.UploadWorkspaceIncrementalChunk(context.Background(), workspaceName).TusResumable(tusResumable).AcceptVersion(acceptVersion).UploadChecksum(uploadChecksum).UploadOffset(uploadOffset).Execute()
1488+
r, err := apiClient.WorkspaceAPI.UploadWorkspaceIncrementalChunk(context.Background(), workspaceName).TusResumable(tusResumable).Body(body).AcceptVersion(acceptVersion).UploadChecksum(uploadChecksum).UploadOffset(uploadOffset).Execute()
14841489
if err != nil {
14851490
fmt.Fprintf(os.Stderr, "Error when calling `WorkspaceAPI.UploadWorkspaceIncrementalChunk``: %v\n", err)
14861491
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -1505,6 +1510,7 @@ Name | Type | Description | Notes
15051510
------------- | ------------- | ------------- | -------------
15061511

15071512
**tusResumable** | **string** | Version of the Tus protocol being used. |
1513+
**body** | ***os.File** | |
15081514
**acceptVersion** | **string** | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
15091515
**uploadChecksum** | **string** | Information about the checksum of the current body payload. |
15101516
**uploadOffset** | **int64** | The byte offset within a resource. |
@@ -1519,7 +1525,7 @@ Name | Type | Description | Notes
15191525

15201526
### HTTP request headers
15211527

1522-
- **Content-Type**: Not defined
1528+
- **Content-Type**: application/offset+octet-stream
15231529
- **Accept**: application/json
15241530

15251531
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)

client/go.mod

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
module github.com/ARM-software/embedded-development-services-client/client
22

3-
go 1.25
3+
go 1.23
44

55
require (
6-
github.com/ARM-software/golang-utils/utils v1.129.0
7-
github.com/stretchr/testify v1.11.1
8-
)
9-
10-
require (
11-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
12-
github.com/deckarep/golang-set/v2 v2.8.0 // indirect
13-
github.com/go-faker/faker/v4 v4.6.1 // indirect
14-
github.com/hashicorp/errwrap v1.0.0 // indirect
15-
github.com/hashicorp/go-multierror v1.1.1 // indirect
16-
github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe // indirect
17-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
18-
github.com/sasha-s/go-deadlock v0.3.6 // indirect
19-
go.uber.org/atomic v1.11.0 // indirect
20-
golang.org/x/sync v0.16.0 // indirect
21-
golang.org/x/text v0.28.0 // indirect
22-
gopkg.in/yaml.v3 v3.0.1 // indirect
236
)

client/go.sum

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
1-
github.com/ARM-software/golang-utils/utils v1.129.0 h1:dUGro1vQf/T+u95sts3bAHe9oNvk9SNimld29vhnxPM=
2-
github.com/ARM-software/golang-utils/utils v1.129.0/go.mod h1:VmB1bgsNOJ5gF7qqKddjpEpfZKi+nkHX3LGmFoY7VFc=
3-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
4-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5-
github.com/deckarep/golang-set/v2 v2.8.0 h1:swm0rlPCmdWn9mESxKOjWk8hXSqoxOp+ZlfuyaAdFlQ=
6-
github.com/deckarep/golang-set/v2 v2.8.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4=
7-
github.com/go-faker/faker/v4 v4.6.1 h1:xUyVpAjEtB04l6XFY0V/29oR332rOSPWV4lU8RwDt4k=
8-
github.com/go-faker/faker/v4 v4.6.1/go.mod h1:arSdxNCSt7mOhdk8tEolvHeIJ7eX4OX80wXjKKvkKBY=
9-
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
10-
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
11-
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
12-
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
13-
github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe h1:vHpqOnPlnkba8iSxU4j/CvDSS9J4+F4473esQsYLGoE=
14-
github.com/petermattis/goid v0.0.0-20250813065127-a731cc31b4fe/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
15-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
16-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
17-
github.com/sasha-s/go-deadlock v0.3.6 h1:TR7sfOnZ7x00tWPfD397Peodt57KzMDo+9Ae9rMiUmw=
18-
github.com/sasha-s/go-deadlock v0.3.6/go.mod h1:CUqNyyvMxTyjFqDT7MRg9mb4Dv/btmGTqSR+rky/UXo=
19-
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
20-
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
21-
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
22-
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
23-
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
24-
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
25-
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
26-
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
27-
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
28-
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
29-
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
30-
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
31-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
32-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
33-
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
34-
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
1+
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
2+
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
3+
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
4+
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
5+
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
6+
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
7+
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
8+
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
9+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
10+
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
11+
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=

0 commit comments

Comments
 (0)