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] |
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