Name | Type | Description | Notes |
---|---|---|---|
ExpiresAt | Pointer to time.Time | The time when this token should expire. | [optional] |
Type | string | A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive). | |
Environment | Pointer to string | The environment that the token should be valid for. Defaults to "default" | [optional] |
Project | Pointer to string | The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. | [optional] |
Projects | Pointer to []string | A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. | [optional] |
TokenName | string | The name of the token. |
func NewCreateApiTokenSchemaOneOf2(type_ string, tokenName string, ) *CreateApiTokenSchemaOneOf2
NewCreateApiTokenSchemaOneOf2 instantiates a new CreateApiTokenSchemaOneOf2 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 NewCreateApiTokenSchemaOneOf2WithDefaults() *CreateApiTokenSchemaOneOf2
NewCreateApiTokenSchemaOneOf2WithDefaults instantiates a new CreateApiTokenSchemaOneOf2 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 *CreateApiTokenSchemaOneOf2) GetExpiresAt() time.Time
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetExpiresAt(v time.Time)
SetExpiresAt sets ExpiresAt field to given value.
func (o *CreateApiTokenSchemaOneOf2) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
func (o *CreateApiTokenSchemaOneOf2) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetType(v string)
SetType sets Type field to given value.
func (o *CreateApiTokenSchemaOneOf2) GetEnvironment() string
GetEnvironment returns the Environment field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetEnvironment(v string)
SetEnvironment sets Environment field to given value.
func (o *CreateApiTokenSchemaOneOf2) HasEnvironment() bool
HasEnvironment returns a boolean if a field has been set.
func (o *CreateApiTokenSchemaOneOf2) GetProject() string
GetProject returns the Project field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetProject(v string)
SetProject sets Project field to given value.
func (o *CreateApiTokenSchemaOneOf2) HasProject() bool
HasProject returns a boolean if a field has been set.
func (o *CreateApiTokenSchemaOneOf2) GetProjects() []string
GetProjects returns the Projects field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetProjects(v []string)
SetProjects sets Projects field to given value.
func (o *CreateApiTokenSchemaOneOf2) HasProjects() bool
HasProjects returns a boolean if a field has been set.
func (o *CreateApiTokenSchemaOneOf2) GetTokenName() string
GetTokenName returns the TokenName field if non-nil, zero value otherwise.
func (o *CreateApiTokenSchemaOneOf2) 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 *CreateApiTokenSchemaOneOf2) SetTokenName(v string)
SetTokenName sets TokenName field to given value.