Name | Type | Description | Notes |
---|---|---|---|
Secret | string | The token used for authentication. | |
Username | Pointer to string | This property was deprecated in Unleash v5. Prefer the `tokenName` property instead. | [optional] |
TokenName | string | A unique name for this particular token | |
Type | string | The type of API token | |
Environment | Pointer to string | The environment the token has access to. `*` if it has access to all environments. | [optional] |
Project | string | The project this token belongs to. | |
Projects | []string | The list of projects this token has access to. If the token has access to specific projects they will be listed here. If the token has access to all projects it will be represented as `[*]` | |
ExpiresAt | Pointer to NullableTime | The token's expiration date. NULL if the token doesn't have an expiration set. | [optional] |
CreatedAt | time.Time | When the token was created. | |
SeenAt | Pointer to NullableTime | When the token was last seen/used to authenticate with. NULL if the token has not yet been used for authentication. | [optional] |
Alias | Pointer to NullableString | Alias is no longer in active use and will often be NULL. It's kept around as a way of allowing old proxy tokens created with the old metadata format to keep working. | [optional] |
func NewApiTokenSchema(secret string, tokenName string, type_ string, project string, projects []string, createdAt time.Time, ) *ApiTokenSchema
NewApiTokenSchema instantiates a new ApiTokenSchema object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewApiTokenSchemaWithDefaults() *ApiTokenSchema
NewApiTokenSchemaWithDefaults instantiates a new ApiTokenSchema object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ApiTokenSchema) GetSecret() string
GetSecret returns the Secret field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetSecretOk() (*string, bool)
GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetSecret(v string)
SetSecret sets Secret field to given value.
func (o *ApiTokenSchema) GetUsername() string
GetUsername returns the Username field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetUsernameOk() (*string, bool)
GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetUsername(v string)
SetUsername sets Username field to given value.
func (o *ApiTokenSchema) HasUsername() bool
HasUsername returns a boolean if a field has been set.
func (o *ApiTokenSchema) GetTokenName() string
GetTokenName returns the TokenName field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetTokenNameOk() (*string, bool)
GetTokenNameOk returns a tuple with the TokenName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetTokenName(v string)
SetTokenName sets TokenName field to given value.
func (o *ApiTokenSchema) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetType(v string)
SetType sets Type field to given value.
func (o *ApiTokenSchema) GetEnvironment() string
GetEnvironment returns the Environment field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetEnvironmentOk() (*string, bool)
GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetEnvironment(v string)
SetEnvironment sets Environment field to given value.
func (o *ApiTokenSchema) HasEnvironment() bool
HasEnvironment returns a boolean if a field has been set.
func (o *ApiTokenSchema) GetProject() string
GetProject returns the Project field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetProjectOk() (*string, bool)
GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetProject(v string)
SetProject sets Project field to given value.
func (o *ApiTokenSchema) GetProjects() []string
GetProjects returns the Projects field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetProjectsOk() (*[]string, bool)
GetProjectsOk returns a tuple with the Projects field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetProjects(v []string)
SetProjects sets Projects field to given value.
func (o *ApiTokenSchema) GetExpiresAt() time.Time
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetExpiresAtOk() (*time.Time, bool)
GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetExpiresAt(v time.Time)
SetExpiresAt sets ExpiresAt field to given value.
func (o *ApiTokenSchema) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
func (o *ApiTokenSchema) SetExpiresAtNil(b bool)
SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil
func (o *ApiTokenSchema) UnsetExpiresAt()
UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil
func (o *ApiTokenSchema) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *ApiTokenSchema) GetSeenAt() time.Time
GetSeenAt returns the SeenAt field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetSeenAtOk() (*time.Time, bool)
GetSeenAtOk returns a tuple with the SeenAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetSeenAt(v time.Time)
SetSeenAt sets SeenAt field to given value.
func (o *ApiTokenSchema) HasSeenAt() bool
HasSeenAt returns a boolean if a field has been set.
func (o *ApiTokenSchema) SetSeenAtNil(b bool)
SetSeenAtNil sets the value for SeenAt to be an explicit nil
func (o *ApiTokenSchema) UnsetSeenAt()
UnsetSeenAt ensures that no value is present for SeenAt, not even an explicit nil
func (o *ApiTokenSchema) GetAlias() string
GetAlias returns the Alias field if non-nil, zero value otherwise.
func (o *ApiTokenSchema) GetAliasOk() (*string, bool)
GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ApiTokenSchema) SetAlias(v string)
SetAlias sets Alias field to given value.
func (o *ApiTokenSchema) HasAlias() bool
HasAlias returns a boolean if a field has been set.
func (o *ApiTokenSchema) SetAliasNil(b bool)
SetAliasNil sets the value for Alias to be an explicit nil
func (o *ApiTokenSchema) UnsetAlias()
UnsetAlias ensures that no value is present for Alias, not even an explicit nil