diff --git a/CHANGELOG.md b/CHANGELOG.md index b4800f5c9..556a21a25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,11 @@ - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` - `auditlog`: [v0.1.1](services/auditlog/CHANGELOG.md#v011) - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` -- `authorization`: [v0.9.1](services/authorization/CHANGELOG.md#v091) - - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` +- `authorization`: + - [v0.10.0](services/authorization/CHANGELOG.md#v0100) + - Add `Etag` field to `Role` model struct + - [v0.9.1](services/authorization/CHANGELOG.md#v091) + - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` - `cdn`: [v2.1.1](services/cdn/CHANGELOG.md#v211) - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` - `certificates`: [v1.1.2](services/certificates/CHANGELOG.md#v112) diff --git a/services/authorization/CHANGELOG.md b/services/authorization/CHANGELOG.md index 60373a336..de7866be1 100644 --- a/services/authorization/CHANGELOG.md +++ b/services/authorization/CHANGELOG.md @@ -1,5 +1,8 @@ +## v0.10.0 +- Add `Etag` field to `Role` model struct + ## v0.9.1 - - Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` +- Bump STACKIT SDK core module from `v0.19.0` to `v0.20.0` ## v0.9.0 - **Feature:** Add support for assignable subjects diff --git a/services/authorization/VERSION b/services/authorization/VERSION index 7f7306b3c..bf057dbfd 100644 --- a/services/authorization/VERSION +++ b/services/authorization/VERSION @@ -1 +1 @@ -v0.9.1 \ No newline at end of file +v0.10.0 diff --git a/services/authorization/model_role.go b/services/authorization/model_role.go index f4a89ec3e..d3b60ab55 100644 --- a/services/authorization/model_role.go +++ b/services/authorization/model_role.go @@ -38,6 +38,27 @@ func setRoleGetDescriptionAttributeType(arg *RoleGetDescriptionAttributeType, va type RoleGetDescriptionArgType = string type RoleGetDescriptionRetType = string +/* + types and functions for etag +*/ + +// isNotNullableString +type RoleGetEtagAttributeType = *string + +func getRoleGetEtagAttributeTypeOk(arg RoleGetEtagAttributeType) (ret RoleGetEtagRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setRoleGetEtagAttributeType(arg *RoleGetEtagAttributeType, val RoleGetEtagRetType) { + *arg = &val +} + +type RoleGetEtagArgType = string +type RoleGetEtagRetType = string + /* types and functions for id */ @@ -104,6 +125,7 @@ func setRoleGetPermissionsAttributeType(arg *RoleGetPermissionsAttributeType, va type Role struct { // REQUIRED Description RoleGetDescriptionAttributeType `json:"description" required:"true"` + Etag RoleGetEtagAttributeType `json:"etag,omitempty"` Id RoleGetIdAttributeType `json:"id,omitempty"` // REQUIRED Name RoleGetNameAttributeType `json:"name" required:"true"` @@ -150,6 +172,29 @@ func (o *Role) SetDescription(v RoleGetDescriptionRetType) { setRoleGetDescriptionAttributeType(&o.Description, v) } +// GetEtag returns the Etag field value if set, zero value otherwise. +func (o *Role) GetEtag() (res RoleGetEtagRetType) { + res, _ = o.GetEtagOk() + return +} + +// GetEtagOk returns a tuple with the Etag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetEtagOk() (ret RoleGetEtagRetType, ok bool) { + return getRoleGetEtagAttributeTypeOk(o.Etag) +} + +// HasEtag returns a boolean if a field has been set. +func (o *Role) HasEtag() bool { + _, ok := o.GetEtagOk() + return ok +} + +// SetEtag gets a reference to the given string and assigns it to the Etag field. +func (o *Role) SetEtag(v RoleGetEtagRetType) { + setRoleGetEtagAttributeType(&o.Etag, v) +} + // GetId returns the Id field value if set, zero value otherwise. func (o *Role) GetId() (res RoleGetIdRetType) { res, _ = o.GetIdOk() @@ -212,6 +257,9 @@ func (o Role) ToMap() (map[string]interface{}, error) { if val, ok := getRoleGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } + if val, ok := getRoleGetEtagAttributeTypeOk(o.Etag); ok { + toSerialize["Etag"] = val + } if val, ok := getRoleGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val }