ApiKeyAuth Model
ApiKeyAuth Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| InlineSecret | Pointer to NullableString | Secret stored directly in GoodMem (mutually exclusive with secretRef) | [optional] |
| SecretRef | Pointer to SecretReference | [optional] | |
| HeaderName | Pointer to NullableString | Desired HTTP header to carry the credential (defaults to Authorization) | [optional] |
| Prefix | Pointer to NullableString | Optional prefix prepended to the secret (e.g., "Bearer ") | [optional] |
Methods
NewApiKeyAuth
func NewApiKeyAuth() *ApiKeyAuth
NewApiKeyAuth instantiates a new ApiKeyAuth 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
NewApiKeyAuthWithDefaults
func NewApiKeyAuthWithDefaults() *ApiKeyAuth
NewApiKeyAuthWithDefaults instantiates a new ApiKeyAuth 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
GetInlineSecret
func (o *ApiKeyAuth) GetInlineSecret() string
GetInlineSecret returns the InlineSecret field if non-nil, zero value otherwise.
GetInlineSecretOk
func (o *ApiKeyAuth) GetInlineSecretOk() (*string, bool)
GetInlineSecretOk returns a tuple with the InlineSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetInlineSecret
func (o *ApiKeyAuth) SetInlineSecret(v string)
SetInlineSecret sets InlineSecret field to given value.
HasInlineSecret
func (o *ApiKeyAuth) HasInlineSecret() bool
HasInlineSecret returns a boolean if a field has been set.
SetInlineSecretNil
func (o *ApiKeyAuth) SetInlineSecretNil(b bool)
SetInlineSecretNil sets the value for InlineSecret to be an explicit nil
UnsetInlineSecret
func (o *ApiKeyAuth) UnsetInlineSecret()
UnsetInlineSecret ensures that no value is present for InlineSecret, not even an explicit nil
GetSecretRef
func (o *ApiKeyAuth) GetSecretRef() SecretReference
GetSecretRef returns the SecretRef field if non-nil, zero value otherwise.
GetSecretRefOk
func (o *ApiKeyAuth) GetSecretRefOk() (*SecretReference, bool)
GetSecretRefOk returns a tuple with the SecretRef field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSecretRef
func (o *ApiKeyAuth) SetSecretRef(v SecretReference)
SetSecretRef sets SecretRef field to given value.
HasSecretRef
func (o *ApiKeyAuth) HasSecretRef() bool
HasSecretRef returns a boolean if a field has been set.
GetHeaderName
func (o *ApiKeyAuth) GetHeaderName() string
GetHeaderName returns the HeaderName field if non-nil, zero value otherwise.
GetHeaderNameOk
func (o *ApiKeyAuth) GetHeaderNameOk() (*string, bool)
GetHeaderNameOk returns a tuple with the HeaderName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetHeaderName
func (o *ApiKeyAuth) SetHeaderName(v string)
SetHeaderName sets HeaderName field to given value.
HasHeaderName
func (o *ApiKeyAuth) HasHeaderName() bool
HasHeaderName returns a boolean if a field has been set.
SetHeaderNameNil
func (o *ApiKeyAuth) SetHeaderNameNil(b bool)
SetHeaderNameNil sets the value for HeaderName to be an explicit nil
UnsetHeaderName
func (o *ApiKeyAuth) UnsetHeaderName()
UnsetHeaderName ensures that no value is present for HeaderName, not even an explicit nil
GetPrefix
func (o *ApiKeyAuth) GetPrefix() string
GetPrefix returns the Prefix field if non-nil, zero value otherwise.
GetPrefixOk
func (o *ApiKeyAuth) GetPrefixOk() (*string, bool)
GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPrefix
func (o *ApiKeyAuth) SetPrefix(v string)
SetPrefix sets Prefix field to given value.
HasPrefix
func (o *ApiKeyAuth) HasPrefix() bool
HasPrefix returns a boolean if a field has been set.
SetPrefixNil
func (o *ApiKeyAuth) SetPrefixNil(b bool)
SetPrefixNil sets the value for Prefix to be an explicit nil
UnsetPrefix
func (o *ApiKeyAuth) UnsetPrefix()
UnsetPrefix ensures that no value is present for Prefix, not even an explicit nil