ApiKeyResponse Model
ApiKeyResponse Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| ApiKeyId | string | Unique identifier for the API key. | |
| UserId | string | ID of the user that owns this API key. | |
| KeyPrefix | string | First few characters of the key for display/identification purposes. | |
| Status | string | Current status of the API key: ACTIVE, INACTIVE, or STATUS_UNSPECIFIED. | |
| Labels | map[string]string | User-defined labels for organization and filtering. | |
| ExpiresAt | Pointer to NullableInt64 | Expiration timestamp in milliseconds since epoch. If not provided, the key does not expire. | [optional] |
| LastUsedAt | Pointer to NullableInt64 | Last time this API key was used, in milliseconds since epoch. | [optional] |
| CreatedAt | int64 | When the API key was created, in milliseconds since epoch. | |
| UpdatedAt | int64 | When the API key was last updated, in milliseconds since epoch. | |
| CreatedById | string | ID of the user that created this API key. | |
| UpdatedById | string | ID of the user that last updated this API key. |
Methods
NewApiKeyResponse
func NewApiKeyResponse(apiKeyId string, userId string, keyPrefix string, status string, labels map[string]string, createdAt int64, updatedAt int64, createdById string, updatedById string, ) *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.
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.
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.
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.
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.
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.
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.
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.
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.