Skip to content

Latest commit

 

History

History
280 lines (151 loc) · 7.82 KB

CreateClassicKey.md

File metadata and controls

280 lines (151 loc) · 7.82 KB

CreateClassicKey

Properties

Name Type Description Notes
Alg string Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384]
CertFileData Pointer to string Certificate in a PEM format. [optional]
DeleteProtection Pointer to string Protection from accidental deletion of this item [optional]
KeyData Pointer to string Base64-encoded classic key value [optional]
Metadata Pointer to string Metadata about the classic key [optional]
Name string ClassicKey name
ProtectionKeyName Pointer to string The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) [optional]
Tags Pointer to []string List of the tags attached to this classic key [optional]
Token Pointer to string Authentication token (see `/auth` and `/configure`) [optional]
UidToken Pointer to string The universal identity token, Required only for universal_identity authentication [optional]

Methods

NewCreateClassicKey

func NewCreateClassicKey(alg string, name string, ) *CreateClassicKey

NewCreateClassicKey instantiates a new CreateClassicKey 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

NewCreateClassicKeyWithDefaults

func NewCreateClassicKeyWithDefaults() *CreateClassicKey

NewCreateClassicKeyWithDefaults instantiates a new CreateClassicKey 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

GetAlg

func (o *CreateClassicKey) GetAlg() string

GetAlg returns the Alg field if non-nil, zero value otherwise.

GetAlgOk

func (o *CreateClassicKey) GetAlgOk() (*string, bool)

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

SetAlg

func (o *CreateClassicKey) SetAlg(v string)

SetAlg sets Alg field to given value.

GetCertFileData

func (o *CreateClassicKey) GetCertFileData() string

GetCertFileData returns the CertFileData field if non-nil, zero value otherwise.

GetCertFileDataOk

func (o *CreateClassicKey) GetCertFileDataOk() (*string, bool)

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

SetCertFileData

func (o *CreateClassicKey) SetCertFileData(v string)

SetCertFileData sets CertFileData field to given value.

HasCertFileData

func (o *CreateClassicKey) HasCertFileData() bool

HasCertFileData returns a boolean if a field has been set.

GetDeleteProtection

func (o *CreateClassicKey) GetDeleteProtection() string

GetDeleteProtection returns the DeleteProtection field if non-nil, zero value otherwise.

GetDeleteProtectionOk

func (o *CreateClassicKey) GetDeleteProtectionOk() (*string, bool)

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

SetDeleteProtection

func (o *CreateClassicKey) SetDeleteProtection(v string)

SetDeleteProtection sets DeleteProtection field to given value.

HasDeleteProtection

func (o *CreateClassicKey) HasDeleteProtection() bool

HasDeleteProtection returns a boolean if a field has been set.

GetKeyData

func (o *CreateClassicKey) GetKeyData() string

GetKeyData returns the KeyData field if non-nil, zero value otherwise.

GetKeyDataOk

func (o *CreateClassicKey) GetKeyDataOk() (*string, bool)

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

SetKeyData

func (o *CreateClassicKey) SetKeyData(v string)

SetKeyData sets KeyData field to given value.

HasKeyData

func (o *CreateClassicKey) HasKeyData() bool

HasKeyData returns a boolean if a field has been set.

GetMetadata

func (o *CreateClassicKey) GetMetadata() string

GetMetadata returns the Metadata field if non-nil, zero value otherwise.

GetMetadataOk

func (o *CreateClassicKey) GetMetadataOk() (*string, bool)

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

SetMetadata

func (o *CreateClassicKey) SetMetadata(v string)

SetMetadata sets Metadata field to given value.

HasMetadata

func (o *CreateClassicKey) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

GetName

func (o *CreateClassicKey) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CreateClassicKey) GetNameOk() (*string, bool)

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

SetName

func (o *CreateClassicKey) SetName(v string)

SetName sets Name field to given value.

GetProtectionKeyName

func (o *CreateClassicKey) GetProtectionKeyName() string

GetProtectionKeyName returns the ProtectionKeyName field if non-nil, zero value otherwise.

GetProtectionKeyNameOk

func (o *CreateClassicKey) GetProtectionKeyNameOk() (*string, bool)

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

SetProtectionKeyName

func (o *CreateClassicKey) SetProtectionKeyName(v string)

SetProtectionKeyName sets ProtectionKeyName field to given value.

HasProtectionKeyName

func (o *CreateClassicKey) HasProtectionKeyName() bool

HasProtectionKeyName returns a boolean if a field has been set.

GetTags

func (o *CreateClassicKey) GetTags() []string

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *CreateClassicKey) GetTagsOk() (*[]string, bool)

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

SetTags

func (o *CreateClassicKey) SetTags(v []string)

SetTags sets Tags field to given value.

HasTags

func (o *CreateClassicKey) HasTags() bool

HasTags returns a boolean if a field has been set.

GetToken

func (o *CreateClassicKey) GetToken() string

GetToken returns the Token field if non-nil, zero value otherwise.

GetTokenOk

func (o *CreateClassicKey) GetTokenOk() (*string, bool)

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

SetToken

func (o *CreateClassicKey) SetToken(v string)

SetToken sets Token field to given value.

HasToken

func (o *CreateClassicKey) HasToken() bool

HasToken returns a boolean if a field has been set.

GetUidToken

func (o *CreateClassicKey) GetUidToken() string

GetUidToken returns the UidToken field if non-nil, zero value otherwise.

GetUidTokenOk

func (o *CreateClassicKey) GetUidTokenOk() (*string, bool)

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

SetUidToken

func (o *CreateClassicKey) SetUidToken(v string)

SetUidToken sets UidToken field to given value.

HasUidToken

func (o *CreateClassicKey) HasUidToken() bool

HasUidToken returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]