Skip to content

Commit 1fabc1a

Browse files
committed
✨ Automatic changes -> ✨ New server autogenerated files [ci skip]
1 parent a636e01 commit 1fabc1a

File tree

9 files changed

+145
-76
lines changed

9 files changed

+145
-76
lines changed

changes/20251118153320.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_service_account.go

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

client/docs/ServiceAccessTokenCollection.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ SPDX-License-Identifier: Apache-2.0
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**Embedded** | Pointer to [**EmbeddedServiceAccessTokenItem**](EmbeddedServiceAccessTokenItem.md) | | [optional]
12-
**Links** | [**NullableHalOnlyEmbeddableCollectionLinks**](HalOnlyEmbeddableCollectionLinks.md) | |
13-
**Metadata** | [**NullableCollectionMetadata**](CollectionMetadata.md) | |
12+
**Links** | [**NullableHalCollectionLinks**](HalCollectionLinks.md) | |
13+
**Metadata** | [**NullablePagingMetadata**](PagingMetadata.md) | |
1414
**Name** | **string** | ID of the Collection. | [readonly]
1515
**Title** | **string** | Human readable title of the collection. | [readonly]
1616

1717
## Methods
1818

1919
### NewServiceAccessTokenCollection
2020

21-
`func NewServiceAccessTokenCollection(links NullableHalOnlyEmbeddableCollectionLinks, metadata NullableCollectionMetadata, name string, title string, ) *ServiceAccessTokenCollection`
21+
`func NewServiceAccessTokenCollection(links NullableHalCollectionLinks, metadata NullablePagingMetadata, name string, title string, ) *ServiceAccessTokenCollection`
2222

2323
NewServiceAccessTokenCollection instantiates a new ServiceAccessTokenCollection object
2424
This constructor will assign default values to properties that have it defined,
@@ -60,20 +60,20 @@ HasEmbedded returns a boolean if a field has been set.
6060

6161
### GetLinks
6262

63-
`func (o *ServiceAccessTokenCollection) GetLinks() HalOnlyEmbeddableCollectionLinks`
63+
`func (o *ServiceAccessTokenCollection) GetLinks() HalCollectionLinks`
6464

6565
GetLinks returns the Links field if non-nil, zero value otherwise.
6666

6767
### GetLinksOk
6868

69-
`func (o *ServiceAccessTokenCollection) GetLinksOk() (*HalOnlyEmbeddableCollectionLinks, bool)`
69+
`func (o *ServiceAccessTokenCollection) GetLinksOk() (*HalCollectionLinks, bool)`
7070

7171
GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise
7272
and a boolean to check if the value has been set.
7373

7474
### SetLinks
7575

76-
`func (o *ServiceAccessTokenCollection) SetLinks(v HalOnlyEmbeddableCollectionLinks)`
76+
`func (o *ServiceAccessTokenCollection) SetLinks(v HalCollectionLinks)`
7777

7878
SetLinks sets Links field to given value.
7979

@@ -90,20 +90,20 @@ SetLinks sets Links field to given value.
9090
UnsetLinks ensures that no value is present for Links, not even an explicit nil
9191
### GetMetadata
9292

93-
`func (o *ServiceAccessTokenCollection) GetMetadata() CollectionMetadata`
93+
`func (o *ServiceAccessTokenCollection) GetMetadata() PagingMetadata`
9494

9595
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
9696

9797
### GetMetadataOk
9898

99-
`func (o *ServiceAccessTokenCollection) GetMetadataOk() (*CollectionMetadata, bool)`
99+
`func (o *ServiceAccessTokenCollection) GetMetadataOk() (*PagingMetadata, bool)`
100100

101101
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise
102102
and a boolean to check if the value has been set.
103103

104104
### SetMetadata
105105

106-
`func (o *ServiceAccessTokenCollection) SetMetadata(v CollectionMetadata)`
106+
`func (o *ServiceAccessTokenCollection) SetMetadata(v PagingMetadata)`
107107

108108
SetMetadata sets Metadata field to given value.
109109

client/docs/ServiceAccountAPI.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Name | Type | Description | Notes
531531

532532
## ListSATs
533533

534-
> ServiceAccessTokenCollection ListSATs(ctx, serviceAccountName).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Execute()
534+
> ServiceAccessTokenCollection ListSATs(ctx, serviceAccountName).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Limit(limit).Offset(offset).Execute()
535535
536536
List all access tokens for the service account
537537

@@ -554,10 +554,12 @@ func main() {
554554
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)
555555
embed := false // bool | Embedding: The whether or not to embed resources into the collection (rather than return links). (optional) (default to false)
556556
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)
557+
limit := int32(20) // int32 | Paging: The maximum number of items to return in a resource. (optional) (default to 20)
558+
offset := int32(0) // int32 | Paging: The index of the first item to return in the resource. (optional) (default to 0)
557559

558560
configuration := openapiclient.NewConfiguration()
559561
apiClient := openapiclient.NewAPIClient(configuration)
560-
resp, r, err := apiClient.ServiceAccountAPI.ListSATs(context.Background(), serviceAccountName).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Execute()
562+
resp, r, err := apiClient.ServiceAccountAPI.ListSATs(context.Background(), serviceAccountName).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Limit(limit).Offset(offset).Execute()
561563
if err != nil {
562564
fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountAPI.ListSATs``: %v\n", err)
563565
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -586,6 +588,8 @@ Name | Type | Description | Notes
586588
**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. |
587589
**embed** | **bool** | Embedding: The whether or not to embed resources into the collection (rather than return links). | [default to false]
588590
**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. |
591+
**limit** | **int32** | Paging: The maximum number of items to return in a resource. | [default to 20]
592+
**offset** | **int32** | Paging: The index of the first item to return in the resource. | [default to 0]
589593

590594
### Return type
591595

client/extension_entities.gen.go

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

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.133.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.133.0 h1:NOPxzK8/5iNQPio1cHtfYi3rsotkveFxOqZ+60BXyl4=
2-
github.com/ARM-software/golang-utils/utils v1.133.0/go.mod h1:ynwC5TEgfV/Nhz6VqVxKx0Ty7f/E7wtiesOHJ91Q/yM=
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=

client/model_service_access_token_collection.go

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

0 commit comments

Comments
 (0)