diff --git a/CHANGELOG.md b/CHANGELOG.md index 42e29480a..d19609799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,19 @@ - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` - [v0.1.0](services/logs/CHANGELOG.md#v010) - **New:** API for logs service +- `kms`: [v1.2.0](services/kms/CHANGELOG.md#v120) + - Set fields `Description` and `ImportOnly` to required in response struct `Key` + - **Breaking change:** Constructor `NewKey` has new parameters `description` and `importOnly` + - **Breaking change:** Remove methods `HasDescription` and `GetImportOnly` in `Key` model + - Set field `Description` to required in response struct `KeyRing` + - **Breaking change:** Constructor `NewKeyRing` has new parameter `description` + - **Breaking change:** Remove method `HasDescription` in `KeyRing` model + - Set field `Disabled` to required in response struct `Version` + - **Breaking change:** Constructor `NewVersion` has new parameter `disabled` + - **Breaking change:** Remove method `HasDisabled` in `Version` model + - Set fields `Description` and `PublicKey` to required in response struct `WrappingKey` + - **Breaking change:** Constructor `NewWrappingKey` has new parameters `description` and `publicKey` + - **Breaking change:** Remove methods `HasDescription` and `HasPublicKey` in `WrappingKey` model - `sqlserverflex`: [v1.4.0](services/sqlserverflex/CHANGELOG.md#v140) - **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing - `mongodbflex`: [v1.5.5](services/mongodbflex/CHANGELOG.md#v155) diff --git a/services/kms/CHANGELOG.md b/services/kms/CHANGELOG.md index 551709492..d74999a4c 100644 --- a/services/kms/CHANGELOG.md +++ b/services/kms/CHANGELOG.md @@ -1,3 +1,17 @@ +## v1.2.0 +- Set fields `Description` and `ImportOnly` to required in response struct `Key` + - **Breaking change:** Constructor `NewKey` has new parameters `description` and `importOnly` + - **Breaking change:** Remove methods `HasDescription` and `GetImportOnly` in `Key` model +- Set field `Description` to required in response struct `KeyRing` + - **Breaking change:** Constructor `NewKeyRing` has new parameter `description` + - **Breaking change:** Remove method `HasDescription` in `KeyRing` model +- Set field `Disabled` to required in response struct `Version` + - **Breaking change:** Constructor `NewVersion` has new parameter `disabled` + - **Breaking change:** Remove method `HasDisabled` in `Version` model +- Set fields `Description` and `PublicKey` to required in response struct `WrappingKey` + - **Breaking change:** Constructor `NewWrappingKey` has new parameters `description` and `publicKey` + - **Breaking change:** Remove methods `HasDescription` and `HasPublicKey` in `WrappingKey` model + ## v1.1.2 - Bump STACKIT SDK core module from `v0.20.0` to `v0.20.1` diff --git a/services/kms/VERSION b/services/kms/VERSION index efdb8b180..0408c30b4 100644 --- a/services/kms/VERSION +++ b/services/kms/VERSION @@ -1 +1 @@ -v1.1.2 \ No newline at end of file +v1.2.0 \ No newline at end of file diff --git a/services/kms/model_key.go b/services/kms/model_key.go index 91bc0489b..3e8600e7f 100644 --- a/services/kms/model_key.go +++ b/services/kms/model_key.go @@ -387,7 +387,8 @@ 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. - Description KeyGetDescriptionAttributeType `json:"description,omitempty"` + // REQUIRED + Description KeyGetDescriptionAttributeType `json:"description" required:"true"` // The display name to distinguish multiple keys. // REQUIRED DisplayName KeyGetDisplayNameAttributeType `json:"displayName" required:"true"` @@ -395,7 +396,8 @@ type Key struct { // REQUIRED Id KeyGetIdAttributeType `json:"id" required:"true"` // States whether versions can be created or only imported. - ImportOnly KeygetImportOnlyAttributeType `json:"importOnly,omitempty"` + // REQUIRED + ImportOnly KeygetImportOnlyAttributeType `json:"importOnly" required:"true"` // The unique id of the key ring this key is assigned to. // REQUIRED KeyRingId KeyGetKeyRingIdAttributeType `json:"keyRingId" required:"true"` @@ -414,13 +416,15 @@ 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, createdAt KeyGetCreatedAtArgType, displayName KeyGetDisplayNameArgType, id KeyGetIdArgType, keyRingId KeyGetKeyRingIdArgType, protection KeyGetProtectionArgType, purpose KeyGetPurposeArgType, state KeyGetStateArgType) *Key { +func NewKey(accessScope KeyGetAccessScopeArgType, algorithm KeyGetAlgorithmArgType, createdAt KeyGetCreatedAtArgType, description KeyGetDescriptionArgType, 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) setKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt) + setKeyGetDescriptionAttributeType(&this.Description, description) setKeyGetDisplayNameAttributeType(&this.DisplayName, displayName) setKeyGetIdAttributeType(&this.Id, id) + setKeygetImportOnlyAttributeType(&this.ImportOnly, importOnly) setKeyGetKeyRingIdAttributeType(&this.KeyRingId, keyRingId) setKeyGetProtectionAttributeType(&this.Protection, protection) setKeyGetPurposeAttributeType(&this.Purpose, purpose) @@ -514,25 +518,19 @@ func (o *Key) SetDeletionDate(v KeyGetDeletionDateRetType) { setKeyGetDeletionDateAttributeType(&o.DeletionDate, v) } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *Key) GetDescription() (res KeyGetDescriptionRetType) { - res, _ = o.GetDescriptionOk() - return +// GetDescription returns the Description field value +func (o *Key) GetDescription() (ret KeyGetDescriptionRetType) { + ret, _ = o.GetDescriptionOk() + return ret } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *Key) GetDescriptionOk() (ret KeyGetDescriptionRetType, ok bool) { return getKeyGetDescriptionAttributeTypeOk(o.Description) } -// 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. +// SetDescription sets field value func (o *Key) SetDescription(v KeyGetDescriptionRetType) { setKeyGetDescriptionAttributeType(&o.Description, v) } @@ -571,25 +569,19 @@ func (o *Key) SetId(v KeyGetIdRetType) { setKeyGetIdAttributeType(&o.Id, v) } -// GetImportOnly returns the ImportOnly field value if set, zero value otherwise. -func (o *Key) GetImportOnly() (res KeygetImportOnlyRetType) { - res, _ = o.GetImportOnlyOk() - return +// GetImportOnly returns the ImportOnly field value +func (o *Key) GetImportOnly() (ret KeygetImportOnlyRetType) { + ret, _ = o.GetImportOnlyOk() + return ret } -// GetImportOnlyOk returns a tuple with the ImportOnly field value if set, nil otherwise +// GetImportOnlyOk returns a tuple with the ImportOnly field value // and a boolean to check if the value has been set. func (o *Key) GetImportOnlyOk() (ret KeygetImportOnlyRetType, ok bool) { return getKeygetImportOnlyAttributeTypeOk(o.ImportOnly) } -// HasImportOnly returns a boolean if a field has been set. -func (o *Key) HasImportOnly() bool { - _, ok := o.GetImportOnlyOk() - return ok -} - -// SetImportOnly gets a reference to the given bool and assigns it to the ImportOnly field. +// SetImportOnly sets field value func (o *Key) SetImportOnly(v KeygetImportOnlyRetType) { setKeygetImportOnlyAttributeType(&o.ImportOnly, v) } diff --git a/services/kms/model_key_ring.go b/services/kms/model_key_ring.go index 222705063..c1f4e940e 100644 --- a/services/kms/model_key_ring.go +++ b/services/kms/model_key_ring.go @@ -234,7 +234,8 @@ type KeyRing struct { // REQUIRED CreatedAt KeyRingGetCreatedAtAttributeType `json:"createdAt" required:"true"` // A user chosen description to distinguish multiple key rings. - Description KeyRingGetDescriptionAttributeType `json:"description,omitempty"` + // REQUIRED + Description KeyRingGetDescriptionAttributeType `json:"description" required:"true"` // The display name to distinguish multiple key rings. // REQUIRED DisplayName KeyRingGetDisplayNameAttributeType `json:"displayName" required:"true"` @@ -252,9 +253,10 @@ type _KeyRing KeyRing // 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 NewKeyRing(createdAt KeyRingGetCreatedAtArgType, displayName KeyRingGetDisplayNameArgType, id KeyRingGetIdArgType, state KeyRingGetStateArgType) *KeyRing { +func NewKeyRing(createdAt KeyRingGetCreatedAtArgType, description KeyRingGetDescriptionArgType, displayName KeyRingGetDisplayNameArgType, id KeyRingGetIdArgType, state KeyRingGetStateArgType) *KeyRing { this := KeyRing{} setKeyRingGetCreatedAtAttributeType(&this.CreatedAt, createdAt) + setKeyRingGetDescriptionAttributeType(&this.Description, description) setKeyRingGetDisplayNameAttributeType(&this.DisplayName, displayName) setKeyRingGetIdAttributeType(&this.Id, id) setKeyRingGetStateAttributeType(&this.State, state) @@ -286,25 +288,19 @@ func (o *KeyRing) SetCreatedAt(v KeyRingGetCreatedAtRetType) { setKeyRingGetCreatedAtAttributeType(&o.CreatedAt, v) } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *KeyRing) GetDescription() (res KeyRingGetDescriptionRetType) { - res, _ = o.GetDescriptionOk() - return +// GetDescription returns the Description field value +func (o *KeyRing) GetDescription() (ret KeyRingGetDescriptionRetType) { + ret, _ = o.GetDescriptionOk() + return ret } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *KeyRing) GetDescriptionOk() (ret KeyRingGetDescriptionRetType, ok bool) { return getKeyRingGetDescriptionAttributeTypeOk(o.Description) } -// HasDescription returns a boolean if a field has been set. -func (o *KeyRing) HasDescription() bool { - _, ok := o.GetDescriptionOk() - return ok -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. +// SetDescription sets field value func (o *KeyRing) SetDescription(v KeyRingGetDescriptionRetType) { setKeyRingGetDescriptionAttributeType(&o.Description, v) } diff --git a/services/kms/model_version.go b/services/kms/model_version.go index 40aa13185..9d144d639 100644 --- a/services/kms/model_version.go +++ b/services/kms/model_version.go @@ -302,7 +302,8 @@ type Version struct { // The scheduled date when a version's key material will be erased completely from the backend DestroyDate VersionGetDestroyDateAttributeType `json:"destroyDate,omitempty"` // States whether versions is enabled or disabled. - Disabled VersiongetDisabledAttributeType `json:"disabled,omitempty"` + // REQUIRED + Disabled VersiongetDisabledAttributeType `json:"disabled" required:"true"` // The unique id of the key this version is assigned to. // REQUIRED KeyId VersionGetKeyIdAttributeType `json:"keyId" required:"true"` @@ -325,9 +326,10 @@ type _Version Version // 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 NewVersion(createdAt VersionGetCreatedAtArgType, keyId VersionGetKeyIdArgType, keyRingId VersionGetKeyRingIdArgType, number VersionGetNumberArgType, state VersionGetStateArgType) *Version { +func NewVersion(createdAt VersionGetCreatedAtArgType, disabled VersiongetDisabledArgType, keyId VersionGetKeyIdArgType, keyRingId VersionGetKeyRingIdArgType, number VersionGetNumberArgType, state VersionGetStateArgType) *Version { this := Version{} setVersionGetCreatedAtAttributeType(&this.CreatedAt, createdAt) + setVersiongetDisabledAttributeType(&this.Disabled, disabled) setVersionGetKeyIdAttributeType(&this.KeyId, keyId) setVersionGetKeyRingIdAttributeType(&this.KeyRingId, keyRingId) setVersionGetNumberAttributeType(&this.Number, number) @@ -385,25 +387,19 @@ func (o *Version) SetDestroyDate(v VersionGetDestroyDateRetType) { setVersionGetDestroyDateAttributeType(&o.DestroyDate, v) } -// GetDisabled returns the Disabled field value if set, zero value otherwise. -func (o *Version) GetDisabled() (res VersiongetDisabledRetType) { - res, _ = o.GetDisabledOk() - return +// GetDisabled returns the Disabled field value +func (o *Version) GetDisabled() (ret VersiongetDisabledRetType) { + ret, _ = o.GetDisabledOk() + return ret } -// GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise +// GetDisabledOk returns a tuple with the Disabled field value // and a boolean to check if the value has been set. func (o *Version) GetDisabledOk() (ret VersiongetDisabledRetType, ok bool) { return getVersiongetDisabledAttributeTypeOk(o.Disabled) } -// HasDisabled returns a boolean if a field has been set. -func (o *Version) HasDisabled() bool { - _, ok := o.GetDisabledOk() - return ok -} - -// SetDisabled gets a reference to the given bool and assigns it to the Disabled field. +// SetDisabled sets field value func (o *Version) SetDisabled(v VersiongetDisabledRetType) { setVersiongetDisabledAttributeType(&o.Disabled, v) } diff --git a/services/kms/model_wrapping_key.go b/services/kms/model_wrapping_key.go index a3b96bdf3..e12320124 100644 --- a/services/kms/model_wrapping_key.go +++ b/services/kms/model_wrapping_key.go @@ -384,7 +384,8 @@ type WrappingKey struct { // REQUIRED CreatedAt WrappingKeyGetCreatedAtAttributeType `json:"createdAt" required:"true"` // A user chosen description to distinguish multiple wrapping keys. - Description WrappingKeyGetDescriptionAttributeType `json:"description,omitempty"` + // REQUIRED + Description WrappingKeyGetDescriptionAttributeType `json:"description" required:"true"` // The display name to distinguish multiple wrapping keys. // REQUIRED DisplayName WrappingKeyGetDisplayNameAttributeType `json:"displayName" required:"true"` @@ -400,7 +401,7 @@ type WrappingKey struct { // REQUIRED Protection WrappingKeyGetProtectionAttributeType `json:"protection" required:"true"` // The public key of the wrapping key. - PublicKey WrappingKeyGetPublicKeyAttributeType `json:"publicKey,omitempty"` + PublicKey WrappingKeyGetPublicKeyAttributeType `json:"publicKey,omitempty" required:"true"` // REQUIRED Purpose WrappingKeyGetPurposeAttributeType `json:"purpose" required:"true"` // The current state of the wrapping key. @@ -414,16 +415,18 @@ type _WrappingKey WrappingKey // 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 NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, createdAt WrappingKeyGetCreatedAtArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, protection WrappingKeyGetProtectionArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey { +func NewWrappingKey(accessScope WrappingKeyGetAccessScopeArgType, algorithm WrappingKeyGetAlgorithmArgType, createdAt WrappingKeyGetCreatedAtArgType, description WrappingKeyGetDescriptionArgType, displayName WrappingKeyGetDisplayNameArgType, expiresAt WrappingKeyGetExpiresAtArgType, id WrappingKeyGetIdArgType, keyRingId WrappingKeyGetKeyRingIdArgType, protection WrappingKeyGetProtectionArgType, publicKey WrappingKeyGetPublicKeyArgType, purpose WrappingKeyGetPurposeArgType, state WrappingKeyGetStateArgType) *WrappingKey { this := WrappingKey{} setWrappingKeyGetAccessScopeAttributeType(&this.AccessScope, accessScope) setWrappingKeyGetAlgorithmAttributeType(&this.Algorithm, algorithm) setWrappingKeyGetCreatedAtAttributeType(&this.CreatedAt, createdAt) + setWrappingKeyGetDescriptionAttributeType(&this.Description, description) setWrappingKeyGetDisplayNameAttributeType(&this.DisplayName, displayName) setWrappingKeyGetExpiresAtAttributeType(&this.ExpiresAt, expiresAt) setWrappingKeyGetIdAttributeType(&this.Id, id) setWrappingKeyGetKeyRingIdAttributeType(&this.KeyRingId, keyRingId) setWrappingKeyGetProtectionAttributeType(&this.Protection, protection) + setWrappingKeyGetPublicKeyAttributeType(&this.PublicKey, publicKey) setWrappingKeyGetPurposeAttributeType(&this.Purpose, purpose) setWrappingKeyGetStateAttributeType(&this.State, state) return &this @@ -490,25 +493,19 @@ func (o *WrappingKey) SetCreatedAt(v WrappingKeyGetCreatedAtRetType) { setWrappingKeyGetCreatedAtAttributeType(&o.CreatedAt, v) } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *WrappingKey) GetDescription() (res WrappingKeyGetDescriptionRetType) { - res, _ = o.GetDescriptionOk() - return +// GetDescription returns the Description field value +func (o *WrappingKey) GetDescription() (ret WrappingKeyGetDescriptionRetType) { + ret, _ = o.GetDescriptionOk() + return ret } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *WrappingKey) GetDescriptionOk() (ret WrappingKeyGetDescriptionRetType, ok bool) { return getWrappingKeyGetDescriptionAttributeTypeOk(o.Description) } -// HasDescription returns a boolean if a field has been set. -func (o *WrappingKey) HasDescription() bool { - _, ok := o.GetDescriptionOk() - return ok -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. +// SetDescription sets field value func (o *WrappingKey) SetDescription(v WrappingKeyGetDescriptionRetType) { setWrappingKeyGetDescriptionAttributeType(&o.Description, v) } @@ -598,25 +595,19 @@ func (o *WrappingKey) SetProtection(v WrappingKeyGetProtectionRetType) { setWrappingKeyGetProtectionAttributeType(&o.Protection, v) } -// GetPublicKey returns the PublicKey field value if set, zero value otherwise. -func (o *WrappingKey) GetPublicKey() (res WrappingKeyGetPublicKeyRetType) { - res, _ = o.GetPublicKeyOk() - return +// GetPublicKey returns the PublicKey field value +func (o *WrappingKey) GetPublicKey() (ret WrappingKeyGetPublicKeyRetType) { + ret, _ = o.GetPublicKeyOk() + return ret } -// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// GetPublicKeyOk returns a tuple with the PublicKey field value // and a boolean to check if the value has been set. func (o *WrappingKey) GetPublicKeyOk() (ret WrappingKeyGetPublicKeyRetType, ok bool) { return getWrappingKeyGetPublicKeyAttributeTypeOk(o.PublicKey) } -// HasPublicKey returns a boolean if a field has been set. -func (o *WrappingKey) HasPublicKey() bool { - _, ok := o.GetPublicKeyOk() - return ok -} - -// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. +// SetPublicKey sets field value func (o *WrappingKey) SetPublicKey(v WrappingKeyGetPublicKeyRetType) { setWrappingKeyGetPublicKeyAttributeType(&o.PublicKey, v) }