@@ -9,8 +9,6 @@ import "github.com/apecloud/kb-cloud-client-go/api/common"
99type RedisACLContext struct {
1010 // Redis ACL user bound to the datasource.
1111 User * string `json:"user,omitempty"`
12- // Raw ACL rule text returned by Redis ACL LIST/GETUSER when available.
13- AclRules * string `json:"aclRules,omitempty"`
1412 // Key patterns the datasource ACL user is allowed to access.
1513 KeyPatterns []string `json:"keyPatterns,omitempty"`
1614 // Pub/Sub channel patterns the datasource ACL user is allowed to access.
@@ -67,34 +65,6 @@ func (o *RedisACLContext) SetUser(v string) {
6765 o .User = & v
6866}
6967
70- // GetAclRules returns the AclRules field value if set, zero value otherwise.
71- func (o * RedisACLContext ) GetAclRules () string {
72- if o == nil || o .AclRules == nil {
73- var ret string
74- return ret
75- }
76- return * o .AclRules
77- }
78-
79- // GetAclRulesOk returns a tuple with the AclRules field value if set, nil otherwise
80- // and a boolean to check if the value has been set.
81- func (o * RedisACLContext ) GetAclRulesOk () (* string , bool ) {
82- if o == nil || o .AclRules == nil {
83- return nil , false
84- }
85- return o .AclRules , true
86- }
87-
88- // HasAclRules returns a boolean if a field has been set.
89- func (o * RedisACLContext ) HasAclRules () bool {
90- return o != nil && o .AclRules != nil
91- }
92-
93- // SetAclRules gets a reference to the given string and assigns it to the AclRules field.
94- func (o * RedisACLContext ) SetAclRules (v string ) {
95- o .AclRules = & v
96- }
97-
9868// GetKeyPatterns returns the KeyPatterns field value if set, zero value otherwise.
9969func (o * RedisACLContext ) GetKeyPatterns () []string {
10070 if o == nil || o .KeyPatterns == nil {
@@ -188,9 +158,6 @@ func (o RedisACLContext) MarshalJSON() ([]byte, error) {
188158 if o .User != nil {
189159 toSerialize ["user" ] = o .User
190160 }
191- if o .AclRules != nil {
192- toSerialize ["aclRules" ] = o .AclRules
193- }
194161 if o .KeyPatterns != nil {
195162 toSerialize ["keyPatterns" ] = o .KeyPatterns
196163 }
@@ -211,7 +178,6 @@ func (o RedisACLContext) MarshalJSON() ([]byte, error) {
211178func (o * RedisACLContext ) UnmarshalJSON (bytes []byte ) (err error ) {
212179 all := struct {
213180 User * string `json:"user,omitempty"`
214- AclRules * string `json:"aclRules,omitempty"`
215181 KeyPatterns []string `json:"keyPatterns,omitempty"`
216182 ChannelPatterns []string `json:"channelPatterns,omitempty"`
217183 CommandRules []string `json:"commandRules,omitempty"`
@@ -221,12 +187,11 @@ func (o *RedisACLContext) UnmarshalJSON(bytes []byte) (err error) {
221187 }
222188 additionalProperties := make (map [string ]interface {})
223189 if err = common .Unmarshal (bytes , & additionalProperties ); err == nil {
224- common .DeleteKeys (additionalProperties , & []string {"user" , "aclRules" , " keyPatterns" , "channelPatterns" , "commandRules" })
190+ common .DeleteKeys (additionalProperties , & []string {"user" , "keyPatterns" , "channelPatterns" , "commandRules" })
225191 } else {
226192 return err
227193 }
228194 o .User = all .User
229- o .AclRules = all .AclRules
230195 o .KeyPatterns = all .KeyPatterns
231196 o .ChannelPatterns = all .ChannelPatterns
232197 o .CommandRules = all .CommandRules
0 commit comments