GoodMem
ReferenceClient SDKsGo SDKModels

ApiKeyResponse Model

ApiKeyResponse Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
ApiKeyIdPointer to stringUnique identifier for the API key.[optional]
UserIdPointer to stringID of the user that owns this API key.[optional]
KeyPrefixPointer to NullableStringFirst few characters of the key for display/identification purposes.[optional]
StatusPointer to stringCurrent status of the API key: ACTIVE, INACTIVE, or STATUS_UNSPECIFIED.[optional]
LabelsPointer to map[string]stringUser-defined labels for organization and filtering.[optional]
ExpiresAtPointer to NullableInt64Expiration timestamp in milliseconds since epoch. If not provided, the key does not expire.[optional]
LastUsedAtPointer to NullableInt64Last time this API key was used, in milliseconds since epoch.[optional]
CreatedAtPointer to int64When the API key was created, in milliseconds since epoch.[optional]
UpdatedAtPointer to int64When the API key was last updated, in milliseconds since epoch.[optional]
CreatedByIdPointer to stringID of the user that created this API key.[optional]
UpdatedByIdPointer to stringID of the user that last updated this API key.[optional]

Methods

NewApiKeyResponse

func NewApiKeyResponse() *ApiKeyResponse

NewApiKeyResponse instantiates a new ApiKeyResponse 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

NewApiKeyResponseWithDefaults

func NewApiKeyResponseWithDefaults() *ApiKeyResponse

NewApiKeyResponseWithDefaults instantiates a new ApiKeyResponse 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

GetApiKeyId

func (o *ApiKeyResponse) GetApiKeyId() string

GetApiKeyId returns the ApiKeyId field if non-nil, zero value otherwise.

GetApiKeyIdOk

func (o *ApiKeyResponse) GetApiKeyIdOk() (*string, bool)

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

SetApiKeyId

func (o *ApiKeyResponse) SetApiKeyId(v string)

SetApiKeyId sets ApiKeyId field to given value.

HasApiKeyId

func (o *ApiKeyResponse) HasApiKeyId() bool

HasApiKeyId returns a boolean if a field has been set.

GetUserId

func (o *ApiKeyResponse) GetUserId() string

GetUserId returns the UserId field if non-nil, zero value otherwise.

GetUserIdOk

func (o *ApiKeyResponse) GetUserIdOk() (*string, bool)

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

SetUserId

func (o *ApiKeyResponse) SetUserId(v string)

SetUserId sets UserId field to given value.

HasUserId

func (o *ApiKeyResponse) HasUserId() bool

HasUserId returns a boolean if a field has been set.

GetKeyPrefix

func (o *ApiKeyResponse) GetKeyPrefix() string

GetKeyPrefix returns the KeyPrefix field if non-nil, zero value otherwise.

GetKeyPrefixOk

func (o *ApiKeyResponse) GetKeyPrefixOk() (*string, bool)

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

SetKeyPrefix

func (o *ApiKeyResponse) SetKeyPrefix(v string)

SetKeyPrefix sets KeyPrefix field to given value.

HasKeyPrefix

func (o *ApiKeyResponse) HasKeyPrefix() bool

HasKeyPrefix returns a boolean if a field has been set.

SetKeyPrefixNil

func (o *ApiKeyResponse) SetKeyPrefixNil(b bool)

SetKeyPrefixNil sets the value for KeyPrefix to be an explicit nil

UnsetKeyPrefix

func (o *ApiKeyResponse) UnsetKeyPrefix()

UnsetKeyPrefix ensures that no value is present for KeyPrefix, not even an explicit nil

GetStatus

func (o *ApiKeyResponse) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *ApiKeyResponse) GetStatusOk() (*string, bool)

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

SetStatus

func (o *ApiKeyResponse) SetStatus(v string)

SetStatus sets Status field to given value.

HasStatus

func (o *ApiKeyResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

GetLabels

func (o *ApiKeyResponse) GetLabels() map[string]string

GetLabels returns the Labels field if non-nil, zero value otherwise.

GetLabelsOk

func (o *ApiKeyResponse) GetLabelsOk() (*map[string]string, bool)

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

SetLabels

func (o *ApiKeyResponse) SetLabels(v map[string]string)

SetLabels sets Labels field to given value.

HasLabels

func (o *ApiKeyResponse) HasLabels() bool

HasLabels returns a boolean if a field has been set.

SetLabelsNil

func (o *ApiKeyResponse) SetLabelsNil(b bool)

SetLabelsNil sets the value for Labels to be an explicit nil

UnsetLabels

func (o *ApiKeyResponse) UnsetLabels()

UnsetLabels ensures that no value is present for Labels, not even an explicit nil

GetExpiresAt

func (o *ApiKeyResponse) GetExpiresAt() int64

GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.

GetExpiresAtOk

func (o *ApiKeyResponse) GetExpiresAtOk() (*int64, 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.

SetExpiresAt

func (o *ApiKeyResponse) SetExpiresAt(v int64)

SetExpiresAt sets ExpiresAt field to given value.

HasExpiresAt

func (o *ApiKeyResponse) HasExpiresAt() bool

HasExpiresAt returns a boolean if a field has been set.

SetExpiresAtNil

func (o *ApiKeyResponse) SetExpiresAtNil(b bool)

SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil

UnsetExpiresAt

func (o *ApiKeyResponse) UnsetExpiresAt()

UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil

GetLastUsedAt

func (o *ApiKeyResponse) GetLastUsedAt() int64

GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise.

GetLastUsedAtOk

func (o *ApiKeyResponse) GetLastUsedAtOk() (*int64, bool)

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

SetLastUsedAt

func (o *ApiKeyResponse) SetLastUsedAt(v int64)

SetLastUsedAt sets LastUsedAt field to given value.

HasLastUsedAt

func (o *ApiKeyResponse) HasLastUsedAt() bool

HasLastUsedAt returns a boolean if a field has been set.

SetLastUsedAtNil

func (o *ApiKeyResponse) SetLastUsedAtNil(b bool)

SetLastUsedAtNil sets the value for LastUsedAt to be an explicit nil

UnsetLastUsedAt

func (o *ApiKeyResponse) UnsetLastUsedAt()

UnsetLastUsedAt ensures that no value is present for LastUsedAt, not even an explicit nil

GetCreatedAt

func (o *ApiKeyResponse) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *ApiKeyResponse) GetCreatedAtOk() (*int64, bool)

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

SetCreatedAt

func (o *ApiKeyResponse) SetCreatedAt(v int64)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *ApiKeyResponse) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetUpdatedAt

func (o *ApiKeyResponse) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *ApiKeyResponse) GetUpdatedAtOk() (*int64, bool)

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

SetUpdatedAt

func (o *ApiKeyResponse) SetUpdatedAt(v int64)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *ApiKeyResponse) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

GetCreatedById

func (o *ApiKeyResponse) GetCreatedById() string

GetCreatedById returns the CreatedById field if non-nil, zero value otherwise.

GetCreatedByIdOk

func (o *ApiKeyResponse) GetCreatedByIdOk() (*string, bool)

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

SetCreatedById

func (o *ApiKeyResponse) SetCreatedById(v string)

SetCreatedById sets CreatedById field to given value.

HasCreatedById

func (o *ApiKeyResponse) HasCreatedById() bool

HasCreatedById returns a boolean if a field has been set.

GetUpdatedById

func (o *ApiKeyResponse) GetUpdatedById() string

GetUpdatedById returns the UpdatedById field if non-nil, zero value otherwise.

GetUpdatedByIdOk

func (o *ApiKeyResponse) GetUpdatedByIdOk() (*string, bool)

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

SetUpdatedById

func (o *ApiKeyResponse) SetUpdatedById(v string)

SetUpdatedById sets UpdatedById field to given value.

HasUpdatedById

func (o *ApiKeyResponse) HasUpdatedById() bool

HasUpdatedById returns a boolean if a field has been set.

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK