chore: work save

This commit is contained in:
Marcel S. Henselin 2026-01-29 10:05:13 +01:00
parent 3e3f13d36d
commit 9752d63f7e
19 changed files with 1003 additions and 209 deletions

View file

@ -410,8 +410,7 @@ type Key struct {
// This date is set when a key is pending deletion and refers to the scheduled date of deletion
DeletionDate KeyGetDeletionDateAttributeType `json:"deletionDate,omitempty"`
// A user chosen description to distinguish multiple keys.
// REQUIRED
Description KeyGetDescriptionAttributeType `json:"description" required:"true"`
Description KeyGetDescriptionAttributeType `json:"description,omitempty"`
// The display name to distinguish multiple keys.
// REQUIRED
DisplayName KeyGetDisplayNameAttributeType `json:"displayName" required:"true"`
@ -439,13 +438,12 @@ type _Key Key
// 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
func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, backend KeyGetBackendArgType, createdAt KeyGetCreatedAtArgType, description KeyGetDescriptionArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, importOnly KeygetImportOnlyArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key {
func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, backend KeyGetBackendArgType, createdAt KeyGetCreatedAtArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, importOnly KeygetImportOnlyArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key {
this := Key{}
setKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope)
setKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm)
setKeyGetBackendAttributeType(&this.Backend, backend)
setKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt)
setKeyGetDescriptionAttributeType(&this.Description, description)
setKeyGetDisplayNameAttributeType(&this.DisplayName, displayName)
setKeyGetIdAttributeType(&this.Id, id)
setKeygetImportOnlyAttributeType(&this.ImportOnly, importOnly)
@ -562,19 +560,25 @@ func (o *Key) SetDeletionDate(v KeyGetDeletionDateRetType) {
setKeyGetDeletionDateAttributeType(&o.DeletionDate, v)
}
// GetDescription returns the Description field value
func (o *Key) GetDescription() (ret KeyGetDescriptionRetType) {
ret, _ = o.GetDescriptionOk()
return ret
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Key) GetDescription() (res KeyGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
}
// GetDescriptionOk returns a tuple with the Description field value
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Key) GetDescriptionOk() (ret KeyGetDescriptionRetType, ok bool) {
return getKeyGetDescriptionAttributeTypeOk(o.Description)
}
// SetDescription sets field value
// HasDescription returns a boolean if a field has been set.
func (o *Key) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *Key) SetDescription(v KeyGetDescriptionRetType) {
setKeyGetDescriptionAttributeType(&o.Description, v)
}