Skip to content

Commit 7943946

Browse files
feat(serverless): add token description (#1406)
Co-authored-by: Rémy Léone <[email protected]>
1 parent be8e35f commit 7943946

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ type Token struct {
798798
Status TokenStatus `json:"status"`
799799

800800
ExpiresAt *time.Time `json:"expires_at"`
801+
802+
Description *string `json:"description"`
801803
}
802804

803805
// Service API
@@ -1978,6 +1980,8 @@ type CreateTokenRequest struct {
19781980
NamespaceID *string `json:"namespace_id,omitempty"`
19791981

19801982
ExpiresAt *time.Time `json:"expires_at"`
1983+
1984+
Description *string `json:"description"`
19811985
}
19821986

19831987
func (s *API) CreateToken(req *CreateTokenRequest, opts ...scw.RequestOption) (*Token, error) {

api/function/v1beta1/function_sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,8 @@ type Token struct {
899899
Status TokenStatus `json:"status"`
900900

901901
ExpiresAt *time.Time `json:"expires_at"`
902+
903+
Description *string `json:"description"`
902904
}
903905

904906
// UploadURL: upload url
@@ -2207,6 +2209,8 @@ type CreateTokenRequest struct {
22072209
NamespaceID *string `json:"namespace_id,omitempty"`
22082210

22092211
ExpiresAt *time.Time `json:"expires_at"`
2212+
2213+
Description *string `json:"description"`
22102214
}
22112215

22122216
func (s *API) CreateToken(req *CreateTokenRequest, opts ...scw.RequestOption) (*Token, error) {

0 commit comments

Comments
 (0)