From b10a562ae5715f1243fff6018b1e5f2b6e00a378 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 19 Nov 2025 08:35:25 +0000 Subject: [PATCH] Generate authorization --- services/authorization/model_role.go | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) 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 }