Skip to content

Latest commit

 

History

History
254 lines (137 loc) · 6.79 KB

CreateKey.md

File metadata and controls

254 lines (137 loc) · 6.79 KB

CreateKey

Properties

Name Type Description Notes
Alg string Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096]
CustomerFrgId Pointer to string The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) [optional]
DeleteProtection Pointer to string Protection from accidental deletion of this item [optional]
Metadata Pointer to string Metadata about the key [optional]
Name string Key name
SplitLevel Pointer to int64 The number of fragments that the item will be split into (not includes customer fragment) [optional] [default to 2]
Tag Pointer to []string List of the tags attached to this 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

NewCreateKey

func NewCreateKey(alg string, name string, ) *CreateKey

NewCreateKey instantiates a new CreateKey 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

NewCreateKeyWithDefaults

func NewCreateKeyWithDefaults() *CreateKey

NewCreateKeyWithDefaults instantiates a new CreateKey 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 *CreateKey) GetAlg() string

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

GetAlgOk

func (o *CreateKey) 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 *CreateKey) SetAlg(v string)

SetAlg sets Alg field to given value.

GetCustomerFrgId

func (o *CreateKey) GetCustomerFrgId() string

GetCustomerFrgId returns the CustomerFrgId field if non-nil, zero value otherwise.

GetCustomerFrgIdOk

func (o *CreateKey) GetCustomerFrgIdOk() (*string, bool)

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

SetCustomerFrgId

func (o *CreateKey) SetCustomerFrgId(v string)

SetCustomerFrgId sets CustomerFrgId field to given value.

HasCustomerFrgId

func (o *CreateKey) HasCustomerFrgId() bool

HasCustomerFrgId returns a boolean if a field has been set.

GetDeleteProtection

func (o *CreateKey) GetDeleteProtection() string

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

GetDeleteProtectionOk

func (o *CreateKey) 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 *CreateKey) SetDeleteProtection(v string)

SetDeleteProtection sets DeleteProtection field to given value.

HasDeleteProtection

func (o *CreateKey) HasDeleteProtection() bool

HasDeleteProtection returns a boolean if a field has been set.

GetMetadata

func (o *CreateKey) GetMetadata() string

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

GetMetadataOk

func (o *CreateKey) 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 *CreateKey) SetMetadata(v string)

SetMetadata sets Metadata field to given value.

HasMetadata

func (o *CreateKey) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

GetName

func (o *CreateKey) GetName() string

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

GetNameOk

func (o *CreateKey) 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 *CreateKey) SetName(v string)

SetName sets Name field to given value.

GetSplitLevel

func (o *CreateKey) GetSplitLevel() int64

GetSplitLevel returns the SplitLevel field if non-nil, zero value otherwise.

GetSplitLevelOk

func (o *CreateKey) GetSplitLevelOk() (*int64, bool)

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

SetSplitLevel

func (o *CreateKey) SetSplitLevel(v int64)

SetSplitLevel sets SplitLevel field to given value.

HasSplitLevel

func (o *CreateKey) HasSplitLevel() bool

HasSplitLevel returns a boolean if a field has been set.

GetTag

func (o *CreateKey) GetTag() []string

GetTag returns the Tag field if non-nil, zero value otherwise.

GetTagOk

func (o *CreateKey) GetTagOk() (*[]string, bool)

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

SetTag

func (o *CreateKey) SetTag(v []string)

SetTag sets Tag field to given value.

HasTag

func (o *CreateKey) HasTag() bool

HasTag returns a boolean if a field has been set.

GetToken

func (o *CreateKey) GetToken() string

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

GetTokenOk

func (o *CreateKey) 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 *CreateKey) SetToken(v string)

SetToken sets Token field to given value.

HasToken

func (o *CreateKey) HasToken() bool

HasToken returns a boolean if a field has been set.

GetUidToken

func (o *CreateKey) GetUidToken() string

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

GetUidTokenOk

func (o *CreateKey) 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 *CreateKey) SetUidToken(v string)

SetUidToken sets UidToken field to given value.

HasUidToken

func (o *CreateKey) HasUidToken() bool

HasUidToken returns a boolean if a field has been set.

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