Skip to content

Latest commit

 

History

History
166 lines (89 loc) · 5.08 KB

CreatePersonalAccessTokenResponse.md

File metadata and controls

166 lines (89 loc) · 5.08 KB

CreatePersonalAccessTokenResponse

Properties

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.

Methods

NewCreatePersonalAccessTokenResponse

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

NewCreatePersonalAccessTokenResponseWithDefaults

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

GetId

func (o *CreatePersonalAccessTokenResponse) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

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.

SetId

func (o *CreatePersonalAccessTokenResponse) SetId(v string)

SetId sets Id field to given value.

GetSecret

func (o *CreatePersonalAccessTokenResponse) GetSecret() string

GetSecret returns the Secret field if non-nil, zero value otherwise.

GetSecretOk

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.

SetSecret

func (o *CreatePersonalAccessTokenResponse) SetSecret(v string)

SetSecret sets Secret field to given value.

GetScope

func (o *CreatePersonalAccessTokenResponse) GetScope() []string

GetScope returns the Scope field if non-nil, zero value otherwise.

GetScopeOk

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.

SetScope

func (o *CreatePersonalAccessTokenResponse) SetScope(v []string)

SetScope sets Scope field to given value.

SetScopeNil

func (o *CreatePersonalAccessTokenResponse) SetScopeNil(b bool)

SetScopeNil sets the value for Scope to be an explicit nil

UnsetScope

func (o *CreatePersonalAccessTokenResponse) UnsetScope()

UnsetScope ensures that no value is present for Scope, not even an explicit nil

GetName

func (o *CreatePersonalAccessTokenResponse) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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.

SetName

func (o *CreatePersonalAccessTokenResponse) SetName(v string)

SetName sets Name field to given value.

GetOwner

func (o *CreatePersonalAccessTokenResponse) GetOwner() BaseReferenceDto

GetOwner returns the Owner field if non-nil, zero value otherwise.

GetOwnerOk

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.

SetOwner

func (o *CreatePersonalAccessTokenResponse) SetOwner(v BaseReferenceDto)

SetOwner sets Owner field to given value.

GetCreated

func (o *CreatePersonalAccessTokenResponse) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

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.

SetCreated

func (o *CreatePersonalAccessTokenResponse) SetCreated(v time.Time)

SetCreated sets Created field to given value.

[Back to Model list] [Back to API list] [Back to README]