Skip to content

Commit

Permalink
Merge pull request #206 from dvonthenen/fix-create-key-ttl
Browse files Browse the repository at this point in the history
Fix CreateKey TTL Property
  • Loading branch information
davidvonthenen authored May 13, 2024
2 parents 4bd9b31 + dc1e99e commit 54c4b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/manage/v1/interfaces/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ type KeyCreateRequest struct {
Comment string `json:"comment,omitempty" url:"comment,omitempty"`
Scopes []string `json:"scopes,omitempty" url:"scopes,omitempty"`
ExpirationDate time.Time `json:"expiration_date,omitempty" url:"expiration_date,omitempty"`
TimeToLive int `json:"time_to_live,omitempty" url:"time_to_live,omitempty"`
TimeToLive int `json:"time_to_live_in_seconds,omitempty" url:"time_to_live_in_seconds,omitempty"`
Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/manage/v1/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *ManageClient) CreateKey(ctx context.Context, projectId string, key *api
Comment string `json:"comment"`
Scopes []string `json:"scopes"`
ExpirationDate string `json:"expiration_date,omitempty"`
TimeToLive int `json:"time_to_live,omitempty"`
TimeToLive int `json:"time_to_live_in_seconds,omitempty"`
// Tags []string `json:"tags"`
}
internalKey := InternalKeyCreateRequest{
Expand Down

0 comments on commit 54c4b00

Please sign in to comment.