From 675b04e135f84f0341d64932773526b702c80e1e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 16 Oct 2024 07:54:28 +0000 Subject: [PATCH] feat: update generated APIs --- api/iam/v1alpha1/iam_sdk.go | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/api/iam/v1alpha1/iam_sdk.go b/api/iam/v1alpha1/iam_sdk.go index 0c686faf..b8c6fa85 100644 --- a/api/iam/v1alpha1/iam_sdk.go +++ b/api/iam/v1alpha1/iam_sdk.go @@ -788,6 +788,33 @@ func (enum *UserType) UnmarshalJSON(data []byte) error { return nil } +// JWT: jwt. +type JWT struct { + // Jti: jWT ID. + Jti string `json:"jti"` + + // IssuerID: ID of the user who issued the JWT. + IssuerID string `json:"issuer_id"` + + // AudienceID: ID of the user targeted by the JWT. + AudienceID string `json:"audience_id"` + + // CreatedAt: creation date of the JWT. + CreatedAt *time.Time `json:"created_at"` + + // UpdatedAt: last update date of the JWT. + UpdatedAt *time.Time `json:"updated_at"` + + // ExpiresAt: expiration date of the JWT. + ExpiresAt *time.Time `json:"expires_at"` + + // IP: IP address used during the creation of the JWT. + IP net.IP `json:"ip"` + + // UserAgent: user-agent used during the creation of the JWT. + UserAgent string `json:"user_agent"` +} + // RuleSpecs: rule specs. type RuleSpecs struct { // PermissionSetNames: names of permission sets bound to the rule. @@ -820,33 +847,6 @@ type CreateUserRequestMember struct { Password string `json:"password"` } -// JWT: jwt. -type JWT struct { - // Jti: jWT ID. - Jti string `json:"jti"` - - // IssuerID: ID of the user who issued the JWT. - IssuerID string `json:"issuer_id"` - - // AudienceID: ID of the user targeted by the JWT. - AudienceID string `json:"audience_id"` - - // CreatedAt: creation date of the JWT. - CreatedAt *time.Time `json:"created_at"` - - // UpdatedAt: last update date of the JWT. - UpdatedAt *time.Time `json:"updated_at"` - - // ExpiresAt: expiration date of the JWT. - ExpiresAt *time.Time `json:"expires_at"` - - // IP: IP address used during the creation of the JWT. - IP net.IP `json:"ip"` - - // UserAgent: user-agent used during the creation of the JWT. - UserAgent string `json:"user_agent"` -} - // APIKey: api key. type APIKey struct { // AccessKey: access key of the API key.