| Name | Type | Description | Notes |
|---|---|---|---|
| Name | string | Name for the token | |
| Preset | Pointer to NullableString | Preset scope bundle | [optional] |
| Scopes | Pointer to []string | Individual scopes (mutually exclusive with preset) | [optional] |
| Projects | Pointer to []int32 | Project IDs to restrict this token to | [optional] |
| ExpiresIn | Pointer to NullableString | Token expiration period | [optional] |
func NewTokensCreateRequest(name string, ) *TokensCreateRequest
NewTokensCreateRequest instantiates a new TokensCreateRequest 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 NewTokensCreateRequestWithDefaults() *TokensCreateRequest
NewTokensCreateRequestWithDefaults instantiates a new TokensCreateRequest 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 *TokensCreateRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *TokensCreateRequest) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokensCreateRequest) SetName(v string)
SetName sets Name field to given value.
func (o *TokensCreateRequest) GetPreset() string
GetPreset returns the Preset field if non-nil, zero value otherwise.
func (o *TokensCreateRequest) GetPresetOk() (*string, bool)
GetPresetOk returns a tuple with the Preset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokensCreateRequest) SetPreset(v string)
SetPreset sets Preset field to given value.
func (o *TokensCreateRequest) HasPreset() bool
HasPreset returns a boolean if a field has been set.
func (o *TokensCreateRequest) SetPresetNil(b bool)
SetPresetNil sets the value for Preset to be an explicit nil
func (o *TokensCreateRequest) UnsetPreset()
UnsetPreset ensures that no value is present for Preset, not even an explicit nil
func (o *TokensCreateRequest) GetScopes() []string
GetScopes returns the Scopes field if non-nil, zero value otherwise.
func (o *TokensCreateRequest) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokensCreateRequest) SetScopes(v []string)
SetScopes sets Scopes field to given value.
func (o *TokensCreateRequest) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o *TokensCreateRequest) SetScopesNil(b bool)
SetScopesNil sets the value for Scopes to be an explicit nil
func (o *TokensCreateRequest) UnsetScopes()
UnsetScopes ensures that no value is present for Scopes, not even an explicit nil
func (o *TokensCreateRequest) GetProjects() []int32
GetProjects returns the Projects field if non-nil, zero value otherwise.
func (o *TokensCreateRequest) GetProjectsOk() (*[]int32, 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 *TokensCreateRequest) SetProjects(v []int32)
SetProjects sets Projects field to given value.
func (o *TokensCreateRequest) HasProjects() bool
HasProjects returns a boolean if a field has been set.
func (o *TokensCreateRequest) SetProjectsNil(b bool)
SetProjectsNil sets the value for Projects to be an explicit nil
func (o *TokensCreateRequest) UnsetProjects()
UnsetProjects ensures that no value is present for Projects, not even an explicit nil
func (o *TokensCreateRequest) GetExpiresIn() string
GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.
func (o *TokensCreateRequest) GetExpiresInOk() (*string, bool)
GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TokensCreateRequest) SetExpiresIn(v string)
SetExpiresIn sets ExpiresIn field to given value.
func (o *TokensCreateRequest) HasExpiresIn() bool
HasExpiresIn returns a boolean if a field has been set.
func (o *TokensCreateRequest) SetExpiresInNil(b bool)
SetExpiresInNil sets the value for ExpiresIn to be an explicit nil
func (o *TokensCreateRequest) UnsetExpiresIn()
UnsetExpiresIn ensures that no value is present for ExpiresIn, not even an explicit nil