Name | Type | Description | Notes |
---|---|---|---|
Id | string | The ID of the personal access token (to be used as the username for Basic Auth). | |
Secret | string | The secret of the personal access token (to be used as the password for Basic Auth). | |
Scope | []string | Scopes of the personal access token. | |
Name | string | The name of the personal access token. Cannot be the same as other personal access tokens owned by a user. | |
Owner | BaseReferenceDto | ||
Created | time.Time | The date and time, down to the millisecond, when this personal access token was created. |
func NewCreatePersonalAccessTokenResponse(id string, secret string, scope []string, name string, owner BaseReferenceDto, created time.Time, ) *CreatePersonalAccessTokenResponse
NewCreatePersonalAccessTokenResponse instantiates a new CreatePersonalAccessTokenResponse 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 NewCreatePersonalAccessTokenResponseWithDefaults() *CreatePersonalAccessTokenResponse
NewCreatePersonalAccessTokenResponseWithDefaults instantiates a new CreatePersonalAccessTokenResponse 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 *CreatePersonalAccessTokenResponse) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePersonalAccessTokenResponse) SetId(v string)
SetId sets Id field to given value.
func (o *CreatePersonalAccessTokenResponse) GetSecret() string
GetSecret returns the Secret field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) 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 *CreatePersonalAccessTokenResponse) SetSecret(v string)
SetSecret sets Secret field to given value.
func (o *CreatePersonalAccessTokenResponse) GetScope() []string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) GetScopeOk() (*[]string, bool)
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePersonalAccessTokenResponse) SetScope(v []string)
SetScope sets Scope field to given value.
func (o *CreatePersonalAccessTokenResponse) SetScopeNil(b bool)
SetScopeNil sets the value for Scope to be an explicit nil
func (o *CreatePersonalAccessTokenResponse) UnsetScope()
UnsetScope ensures that no value is present for Scope, not even an explicit nil
func (o *CreatePersonalAccessTokenResponse) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) 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 *CreatePersonalAccessTokenResponse) SetName(v string)
SetName sets Name field to given value.
func (o *CreatePersonalAccessTokenResponse) GetOwner() BaseReferenceDto
GetOwner returns the Owner field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) GetOwnerOk() (*BaseReferenceDto, bool)
GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePersonalAccessTokenResponse) SetOwner(v BaseReferenceDto)
SetOwner sets Owner field to given value.
func (o *CreatePersonalAccessTokenResponse) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *CreatePersonalAccessTokenResponse) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePersonalAccessTokenResponse) SetCreated(v time.Time)
SetCreated sets Created field to given value.