42 lines
1.3 KiB
Go
42 lines
1.3 KiB
Go
// Code generated by "make api"; DO NOT EDIT.
|
|
package authtokens
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/hashicorp/watchtower/api/info"
|
|
)
|
|
|
|
type AuthToken struct {
|
|
|
|
// The ID of the AuthToken
|
|
// Output only.
|
|
Id string `json:"id,omitempty"`
|
|
// Scope information for this resource
|
|
// Output only.
|
|
Scope info.Scope `json:"scope,omitempty"`
|
|
// The token value, which will only be populated after authentication and is
|
|
// only ever visible to the end user whose login request resulted in this
|
|
// auth token being created.
|
|
// Output only.
|
|
Token string `json:"token,omitempty"`
|
|
// The id of the user of this AuthToken.
|
|
// Output only.
|
|
UserId string `json:"user_id,omitempty"`
|
|
// The id of the user of this AuthToken.
|
|
// Output only.
|
|
AuthMethodId string `json:"auth_method_id,omitempty"`
|
|
// The time this resource was created
|
|
// Output only.
|
|
CreatedTime time.Time `json:"created_time,omitempty"`
|
|
// The time this resource was last updated.
|
|
// Output only.
|
|
UpdatedTime time.Time `json:"updated_time,omitempty"`
|
|
// The approximate time this AuthToken was last used.
|
|
// Output only.
|
|
ApproximateLastUsedTime time.Time `json:"approximate_last_used_time,omitempty"`
|
|
// The time this AuthToken expires.
|
|
// Output only.
|
|
ExpirationTime time.Time `json:"expiration_time,omitempty"`
|
|
}
|