Skip to content

Commit 0ec7eb0

Browse files
committed
✨ Automatic changes -> ✨ New server autogenerated files [ci skip]
1 parent c3fd3de commit 0ec7eb0

File tree

8 files changed

+288
-79
lines changed

8 files changed

+288
-79
lines changed

changes/20251112115120.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/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ Class | Method | HTTP request | Description
222222
*ServiceAccountAPI* | [**DeleteSAT**](docs/ServiceAccountAPI.md#deletesat) | **Delete** /service-accounts/{serviceAccountName}/tokens/{accessTokenName} | Delete the service access token for the service account
223223
*ServiceAccountAPI* | [**DeleteServiceAccount**](docs/ServiceAccountAPI.md#deleteserviceaccount) | **Delete** /service-accounts/{serviceAccountName} | Delete a service account
224224
*ServiceAccountAPI* | [**EditServiceAccount**](docs/ServiceAccountAPI.md#editserviceaccount) | **Put** /service-accounts/{serviceAccountName} | Update a service account
225+
*ServiceAccountAPI* | [**GetSAT**](docs/ServiceAccountAPI.md#getsat) | **Get** /service-accounts/{serviceAccountName}/tokens/{accessTokenName} | Get a service access token.
225226
*ServiceAccountAPI* | [**GetServiceAccount**](docs/ServiceAccountAPI.md#getserviceaccount) | **Get** /service-accounts/{serviceAccountName} | Get a service account
226227
*ServiceAccountAPI* | [**ListSATs**](docs/ServiceAccountAPI.md#listsats) | **Get** /service-accounts/{serviceAccountName}/tokens | List all access tokens for the service account
227228
*ServiceAccountAPI* | [**ListServiceAccounts**](docs/ServiceAccountAPI.md#listserviceaccounts) | **Get** /service-accounts/ | List all service accounts

client/api_service_account.go

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

client/docs/ServiceAccessTokenItem.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Name | Type | Description | Notes
1414
**LastUsed** | **time.Time** | When this token was last used to authenticate a request. | [readonly]
1515
**Name** | **string** | Unique ID of the service access token. | [readonly]
1616
**Secret** | Pointer to **string** | The access token. This field will only be returned by the service upon creation and the secret will not be re-retrievable. | [optional] [readonly]
17-
**SecretSuffix** | **string** | The four character suffix of the access token secret. | [readonly]
17+
**SecretHint** | **string** | The four character hint of the access token secret. | [readonly]
1818
**Title** | **string** | Human readable name of the service access token. |
1919

2020
## Methods
2121

2222
### NewServiceAccessTokenItem
2323

24-
`func NewServiceAccessTokenItem(links NullableAccessTokenItemLinks, metadata NullableCommonMetadata, createdBy string, lastUsed time.Time, name string, secretSuffix string, title string, ) *ServiceAccessTokenItem`
24+
`func NewServiceAccessTokenItem(links NullableAccessTokenItemLinks, metadata NullableCommonMetadata, createdBy string, lastUsed time.Time, name string, secretHint string, title string, ) *ServiceAccessTokenItem`
2525

2626
NewServiceAccessTokenItem instantiates a new ServiceAccessTokenItem object
2727
This constructor will assign default values to properties that have it defined,
@@ -181,24 +181,24 @@ SetSecret sets Secret field to given value.
181181

182182
HasSecret returns a boolean if a field has been set.
183183

184-
### GetSecretSuffix
184+
### GetSecretHint
185185

186-
`func (o *ServiceAccessTokenItem) GetSecretSuffix() string`
186+
`func (o *ServiceAccessTokenItem) GetSecretHint() string`
187187

188-
GetSecretSuffix returns the SecretSuffix field if non-nil, zero value otherwise.
188+
GetSecretHint returns the SecretHint field if non-nil, zero value otherwise.
189189

190-
### GetSecretSuffixOk
190+
### GetSecretHintOk
191191

192-
`func (o *ServiceAccessTokenItem) GetSecretSuffixOk() (*string, bool)`
192+
`func (o *ServiceAccessTokenItem) GetSecretHintOk() (*string, bool)`
193193

194-
GetSecretSuffixOk returns a tuple with the SecretSuffix field if it's non-nil, zero value otherwise
194+
GetSecretHintOk returns a tuple with the SecretHint field if it's non-nil, zero value otherwise
195195
and a boolean to check if the value has been set.
196196

197-
### SetSecretSuffix
197+
### SetSecretHint
198198

199-
`func (o *ServiceAccessTokenItem) SetSecretSuffix(v string)`
199+
`func (o *ServiceAccessTokenItem) SetSecretHint(v string)`
200200

201-
SetSecretSuffix sets SecretSuffix field to given value.
201+
SetSecretHint sets SecretHint field to given value.
202202

203203

204204
### GetTitle

client/docs/ServiceAccountAPI.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Method | HTTP request | Description
1313
[**DeleteSAT**](ServiceAccountAPI.md#DeleteSAT) | **Delete** /service-accounts/{serviceAccountName}/tokens/{accessTokenName} | Delete the service access token for the service account
1414
[**DeleteServiceAccount**](ServiceAccountAPI.md#DeleteServiceAccount) | **Delete** /service-accounts/{serviceAccountName} | Delete a service account
1515
[**EditServiceAccount**](ServiceAccountAPI.md#EditServiceAccount) | **Put** /service-accounts/{serviceAccountName} | Update a service account
16+
[**GetSAT**](ServiceAccountAPI.md#GetSAT) | **Get** /service-accounts/{serviceAccountName}/tokens/{accessTokenName} | Get a service access token.
1617
[**GetServiceAccount**](ServiceAccountAPI.md#GetServiceAccount) | **Get** /service-accounts/{serviceAccountName} | Get a service account
1718
[**ListSATs**](ServiceAccountAPI.md#ListSATs) | **Get** /service-accounts/{serviceAccountName}/tokens | List all access tokens for the service account
1819
[**ListServiceAccounts**](ServiceAccountAPI.md#ListServiceAccounts) | **Get** /service-accounts/ | List all service accounts
@@ -42,7 +43,7 @@ import (
4243

4344
func main() {
4445
serviceAccountName := "serviceAccountName_example" // string | Unique ID of the service account.
45-
serviceAccessTokenItem := *openapiclient.NewServiceAccessTokenItem("TODO", "TODO", "CreatedBy_example", time.Now(), "88a6137e-1d99-4cde-8db8-015312f7d5e6", "SecretSuffix_example", "My token") // ServiceAccessTokenItem | Data required to create a new token.
46+
serviceAccessTokenItem := *openapiclient.NewServiceAccessTokenItem("TODO", "TODO", "CreatedBy_example", time.Now(), "88a6137e-1d99-4cde-8db8-015312f7d5e6", "SecretHint_example", "My token") // ServiceAccessTokenItem | Data required to create a new token.
4647
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)
4748

4849
configuration := openapiclient.NewConfiguration()
@@ -381,6 +382,81 @@ Name | Type | Description | Notes
381382
[[Back to README]](../README.md)
382383

383384

385+
## GetSAT
386+
387+
> ServiceAccessTokenItem GetSAT(ctx, accessTokenName, serviceAccountName).AcceptVersion(acceptVersion).Execute()
388+
389+
Get a service access token.
390+
391+
392+
393+
### Example
394+
395+
```go
396+
package main
397+
398+
import (
399+
"context"
400+
"fmt"
401+
"os"
402+
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
403+
)
404+
405+
func main() {
406+
accessTokenName := "accessTokenName_example" // string | Unique ID of the access token.
407+
serviceAccountName := "serviceAccountName_example" // string | Unique ID of the service account.
408+
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)
409+
410+
configuration := openapiclient.NewConfiguration()
411+
apiClient := openapiclient.NewAPIClient(configuration)
412+
resp, r, err := apiClient.ServiceAccountAPI.GetSAT(context.Background(), accessTokenName, serviceAccountName).AcceptVersion(acceptVersion).Execute()
413+
if err != nil {
414+
fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountAPI.GetSAT``: %v\n", err)
415+
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
416+
}
417+
// response from `GetSAT`: ServiceAccessTokenItem
418+
fmt.Fprintf(os.Stdout, "Response from `ServiceAccountAPI.GetSAT`: %v\n", resp)
419+
}
420+
```
421+
422+
### Path Parameters
423+
424+
425+
Name | Type | Description | Notes
426+
------------- | ------------- | ------------- | -------------
427+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
428+
**accessTokenName** | **string** | Unique ID of the access token. |
429+
**serviceAccountName** | **string** | Unique ID of the service account. |
430+
431+
### Other Parameters
432+
433+
Other parameters are passed through a pointer to a apiGetSATRequest struct via the builder pattern
434+
435+
436+
Name | Type | Description | Notes
437+
------------- | ------------- | ------------- | -------------
438+
439+
440+
**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. |
441+
442+
### Return type
443+
444+
[**ServiceAccessTokenItem**](ServiceAccessTokenItem.md)
445+
446+
### Authorization
447+
448+
[TokenAuth](../README.md#TokenAuth)
449+
450+
### HTTP request headers
451+
452+
- **Content-Type**: Not defined
453+
- **Accept**: application/json
454+
455+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
456+
[[Back to Model list]](../README.md#documentation-for-models)
457+
[[Back to README]](../README.md)
458+
459+
384460
## GetServiceAccount
385461

386462
> ServiceAccountItem GetServiceAccount(ctx, serviceAccountName).AcceptVersion(acceptVersion).Execute()

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.132.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
)

0 commit comments

Comments
 (0)