Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update generated APIs #2256

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions api/iam/v1alpha1/iam_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down