Skip to content

Latest commit

 

History

History
149 lines (82 loc) · 3.9 KB

File metadata and controls

149 lines (82 loc) · 3.9 KB

PATItem

Properties

Name Type Description Notes
Links PATItemLinks
Metadata NullableCommonMetadata
LastUsed time.Time UTC date and time when the token was last used. [readonly]
Name string Unique ID of the personal access token. [readonly]
Title string Human readable name of the personal access token. [readonly]

Methods

NewPATItem

func NewPATItem(links PATItemLinks, metadata NullableCommonMetadata, lastUsed time.Time, name string, title string, ) *PATItem

NewPATItem instantiates a new PATItem 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

NewPATItemWithDefaults

func NewPATItemWithDefaults() *PATItem

NewPATItemWithDefaults instantiates a new PATItem 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

GetLinks

func (o *PATItem) GetLinks() PATItemLinks

GetLinks returns the Links field if non-nil, zero value otherwise.

GetLinksOk

func (o *PATItem) GetLinksOk() (*PATItemLinks, bool)

GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLinks

func (o *PATItem) SetLinks(v PATItemLinks)

SetLinks sets Links field to given value.

GetMetadata

func (o *PATItem) GetMetadata() CommonMetadata

GetMetadata returns the Metadata field if non-nil, zero value otherwise.

GetMetadataOk

func (o *PATItem) GetMetadataOk() (*CommonMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMetadata

func (o *PATItem) SetMetadata(v CommonMetadata)

SetMetadata sets Metadata field to given value.

SetMetadataNil

func (o *PATItem) SetMetadataNil(b bool)

SetMetadataNil sets the value for Metadata to be an explicit nil

UnsetMetadata

func (o *PATItem) UnsetMetadata()

UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil

GetLastUsed

func (o *PATItem) GetLastUsed() time.Time

GetLastUsed returns the LastUsed field if non-nil, zero value otherwise.

GetLastUsedOk

func (o *PATItem) GetLastUsedOk() (*time.Time, bool)

GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLastUsed

func (o *PATItem) SetLastUsed(v time.Time)

SetLastUsed sets LastUsed field to given value.

GetName

func (o *PATItem) GetName() string

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

GetNameOk

func (o *PATItem) 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 *PATItem) SetName(v string)

SetName sets Name field to given value.

GetTitle

func (o *PATItem) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *PATItem) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTitle

func (o *PATItem) SetTitle(v string)

SetTitle sets Title field to given value.

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