Skip to content

Commit 83815d0

Browse files
committed
chore: auto update client api apecloud/apecloud@2d7dc1a
1 parent b37f447 commit 83815d0

5 files changed

Lines changed: 3 additions & 79 deletions

File tree

.generator/schemas/adminapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26322,9 +26322,6 @@ components:
2632226322
user:
2632326323
type: string
2632426324
description: Redis ACL user bound to the datasource.
26325-
aclRules:
26326-
type: string
26327-
description: Raw ACL rule text returned by Redis ACL LIST/GETUSER when available.
2632826325
keyPatterns:
2632926326
type: array
2633026327
description: Key patterns the datasource ACL user is allowed to access.

.generator/schemas/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28502,9 +28502,6 @@ components:
2850228502
user:
2850328503
type: string
2850428504
description: Redis ACL user bound to the datasource.
28505-
aclRules:
28506-
type: string
28507-
description: Raw ACL rule text returned by Redis ACL LIST/GETUSER when available.
2850828505
keyPatterns:
2850928506
type: array
2851028507
description: Key patterns the datasource ACL user is allowed to access.

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit c6d8422ad9bacefee8c04877c561f9dc9737cc62
1+
Subproject commit 2d7dc1a53e51ee7ce7234d57f70ff1d4c525d144

api/kbcloud/admin/model_redis_acl_context.go

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import "github.com/apecloud/kb-cloud-client-go/api/common"
99
type 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.
9969
func (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) {
211178
func (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

api/kbcloud/model_redis_acl_context.go

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import "github.com/apecloud/kb-cloud-client-go/api/common"
99
type 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.
9969
func (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) {
211178
func (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

Comments
 (0)