CreateApiKeyRequest
CreateApiKeyRequest documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Labels | Pointer to map[string]string | Key-value pairs of metadata associated with the API key. Used for organization and filtering. | [optional] |
| ExpiresAt | Pointer to NullableInt64 | Expiration timestamp in milliseconds since epoch. If not provided, the key does not expire. | [optional] |
| ApiKeyId | Pointer to NullableString | Optional client-provided UUID for idempotent creation. If not provided, server generates a new UUID. Returns ALREADY_EXISTS if ID is already in use. | [optional] |
Methods
NewCreateApiKeyRequest
func NewCreateApiKeyRequest() *CreateApiKeyRequest
NewCreateApiKeyRequest instantiates a new CreateApiKeyRequest 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
NewCreateApiKeyRequestWithDefaults
func NewCreateApiKeyRequestWithDefaults() *CreateApiKeyRequest
NewCreateApiKeyRequestWithDefaults instantiates a new CreateApiKeyRequest 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
GetLabels
func (o *CreateApiKeyRequest) GetLabels() map[string]string
GetLabels returns the Labels field if non-nil, zero value otherwise.
GetLabelsOk
func (o *CreateApiKeyRequest) 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 *CreateApiKeyRequest) SetLabels(v map[string]string)
SetLabels sets Labels field to given value.
HasLabels
func (o *CreateApiKeyRequest) HasLabels() bool
HasLabels returns a boolean if a field has been set.
SetLabelsNil
func (o *CreateApiKeyRequest) SetLabelsNil(b bool)
SetLabelsNil sets the value for Labels to be an explicit nil
UnsetLabels
func (o *CreateApiKeyRequest) UnsetLabels()
UnsetLabels ensures that no value is present for Labels, not even an explicit nil
GetExpiresAt
func (o *CreateApiKeyRequest) GetExpiresAt() int64
GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise.
GetExpiresAtOk
func (o *CreateApiKeyRequest) 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 *CreateApiKeyRequest) SetExpiresAt(v int64)
SetExpiresAt sets ExpiresAt field to given value.
HasExpiresAt
func (o *CreateApiKeyRequest) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
SetExpiresAtNil
func (o *CreateApiKeyRequest) SetExpiresAtNil(b bool)
SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil
UnsetExpiresAt
func (o *CreateApiKeyRequest) UnsetExpiresAt()
UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil
GetApiKeyId
func (o *CreateApiKeyRequest) GetApiKeyId() string
GetApiKeyId returns the ApiKeyId field if non-nil, zero value otherwise.
GetApiKeyIdOk
func (o *CreateApiKeyRequest) 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 *CreateApiKeyRequest) SetApiKeyId(v string)
SetApiKeyId sets ApiKeyId field to given value.
HasApiKeyId
func (o *CreateApiKeyRequest) HasApiKeyId() bool
HasApiKeyId returns a boolean if a field has been set.
SetApiKeyIdNil
func (o *CreateApiKeyRequest) SetApiKeyIdNil(b bool)
SetApiKeyIdNil sets the value for ApiKeyId to be an explicit nil
UnsetApiKeyId
func (o *CreateApiKeyRequest) UnsetApiKeyId()
UnsetApiKeyId ensures that no value is present for ApiKeyId, not even an explicit nil