Skip to content

Commit c69cd9e

Browse files
committed
chore: auto update client api apecloud/apecloud@9f744a5
1 parent 29f8c32 commit c69cd9e

File tree

5 files changed

+79
-7
lines changed

5 files changed

+79
-7
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21274,6 +21274,8 @@ components:
2127421274
properties:
2127521275
enabled:
2127621276
type: boolean
21277+
databaseNamePattern:
21278+
type: string
2127721279
dmsOption:
2127821280
type: object
2127921281
required:

.generator/schemas/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15747,6 +15747,8 @@ components:
1574715747
properties:
1574815748
enabled:
1574915749
type: boolean
15750+
databaseNamePattern:
15751+
type: string
1575015752
dmsOption:
1575115753
type: object
1575215754
required:

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 438506feff67eaf6b75a53113e048643f4b5dc4c
1+
Subproject commit 9f744a5ed800c09aa3a1f52d95b2cfe93710d94a

api/kbcloud/admin/model_database_option.go

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
)
1212

1313
type DatabaseOption struct {
14-
Enabled bool `json:"enabled"`
14+
Enabled bool `json:"enabled"`
15+
DatabaseNamePattern *string `json:"databaseNamePattern,omitempty"`
1516
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1617
UnparsedObject map[string]interface{} `json:"-"`
1718
AdditionalProperties map[string]interface{} `json:"-"`
@@ -58,13 +59,44 @@ func (o *DatabaseOption) SetEnabled(v bool) {
5859
o.Enabled = v
5960
}
6061

62+
// GetDatabaseNamePattern returns the DatabaseNamePattern field value if set, zero value otherwise.
63+
func (o *DatabaseOption) GetDatabaseNamePattern() string {
64+
if o == nil || o.DatabaseNamePattern == nil {
65+
var ret string
66+
return ret
67+
}
68+
return *o.DatabaseNamePattern
69+
}
70+
71+
// GetDatabaseNamePatternOk returns a tuple with the DatabaseNamePattern field value if set, nil otherwise
72+
// and a boolean to check if the value has been set.
73+
func (o *DatabaseOption) GetDatabaseNamePatternOk() (*string, bool) {
74+
if o == nil || o.DatabaseNamePattern == nil {
75+
return nil, false
76+
}
77+
return o.DatabaseNamePattern, true
78+
}
79+
80+
// HasDatabaseNamePattern returns a boolean if a field has been set.
81+
func (o *DatabaseOption) HasDatabaseNamePattern() bool {
82+
return o != nil && o.DatabaseNamePattern != nil
83+
}
84+
85+
// SetDatabaseNamePattern gets a reference to the given string and assigns it to the DatabaseNamePattern field.
86+
func (o *DatabaseOption) SetDatabaseNamePattern(v string) {
87+
o.DatabaseNamePattern = &v
88+
}
89+
6190
// MarshalJSON serializes the struct using spec logic.
6291
func (o DatabaseOption) MarshalJSON() ([]byte, error) {
6392
toSerialize := map[string]interface{}{}
6493
if o.UnparsedObject != nil {
6594
return common.Marshal(o.UnparsedObject)
6695
}
6796
toSerialize["enabled"] = o.Enabled
97+
if o.DatabaseNamePattern != nil {
98+
toSerialize["databaseNamePattern"] = o.DatabaseNamePattern
99+
}
68100

69101
for key, value := range o.AdditionalProperties {
70102
toSerialize[key] = value
@@ -75,7 +107,8 @@ func (o DatabaseOption) MarshalJSON() ([]byte, error) {
75107
// UnmarshalJSON deserializes the given payload.
76108
func (o *DatabaseOption) UnmarshalJSON(bytes []byte) (err error) {
77109
all := struct {
78-
Enabled *bool `json:"enabled"`
110+
Enabled *bool `json:"enabled"`
111+
DatabaseNamePattern *string `json:"databaseNamePattern,omitempty"`
79112
}{}
80113
if err = common.Unmarshal(bytes, &all); err != nil {
81114
return err
@@ -85,11 +118,12 @@ func (o *DatabaseOption) UnmarshalJSON(bytes []byte) (err error) {
85118
}
86119
additionalProperties := make(map[string]interface{})
87120
if err = common.Unmarshal(bytes, &additionalProperties); err == nil {
88-
common.DeleteKeys(additionalProperties, &[]string{"enabled"})
121+
common.DeleteKeys(additionalProperties, &[]string{"enabled", "databaseNamePattern"})
89122
} else {
90123
return err
91124
}
92125
o.Enabled = *all.Enabled
126+
o.DatabaseNamePattern = all.DatabaseNamePattern
93127

94128
if len(additionalProperties) > 0 {
95129
o.AdditionalProperties = additionalProperties

api/kbcloud/model_database_option.go

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
)
1212

1313
type DatabaseOption struct {
14-
Enabled bool `json:"enabled"`
14+
Enabled bool `json:"enabled"`
15+
DatabaseNamePattern *string `json:"databaseNamePattern,omitempty"`
1516
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1617
UnparsedObject map[string]interface{} `json:"-"`
1718
AdditionalProperties map[string]interface{} `json:"-"`
@@ -58,13 +59,44 @@ func (o *DatabaseOption) SetEnabled(v bool) {
5859
o.Enabled = v
5960
}
6061

62+
// GetDatabaseNamePattern returns the DatabaseNamePattern field value if set, zero value otherwise.
63+
func (o *DatabaseOption) GetDatabaseNamePattern() string {
64+
if o == nil || o.DatabaseNamePattern == nil {
65+
var ret string
66+
return ret
67+
}
68+
return *o.DatabaseNamePattern
69+
}
70+
71+
// GetDatabaseNamePatternOk returns a tuple with the DatabaseNamePattern field value if set, nil otherwise
72+
// and a boolean to check if the value has been set.
73+
func (o *DatabaseOption) GetDatabaseNamePatternOk() (*string, bool) {
74+
if o == nil || o.DatabaseNamePattern == nil {
75+
return nil, false
76+
}
77+
return o.DatabaseNamePattern, true
78+
}
79+
80+
// HasDatabaseNamePattern returns a boolean if a field has been set.
81+
func (o *DatabaseOption) HasDatabaseNamePattern() bool {
82+
return o != nil && o.DatabaseNamePattern != nil
83+
}
84+
85+
// SetDatabaseNamePattern gets a reference to the given string and assigns it to the DatabaseNamePattern field.
86+
func (o *DatabaseOption) SetDatabaseNamePattern(v string) {
87+
o.DatabaseNamePattern = &v
88+
}
89+
6190
// MarshalJSON serializes the struct using spec logic.
6291
func (o DatabaseOption) MarshalJSON() ([]byte, error) {
6392
toSerialize := map[string]interface{}{}
6493
if o.UnparsedObject != nil {
6594
return common.Marshal(o.UnparsedObject)
6695
}
6796
toSerialize["enabled"] = o.Enabled
97+
if o.DatabaseNamePattern != nil {
98+
toSerialize["databaseNamePattern"] = o.DatabaseNamePattern
99+
}
68100

69101
for key, value := range o.AdditionalProperties {
70102
toSerialize[key] = value
@@ -75,7 +107,8 @@ func (o DatabaseOption) MarshalJSON() ([]byte, error) {
75107
// UnmarshalJSON deserializes the given payload.
76108
func (o *DatabaseOption) UnmarshalJSON(bytes []byte) (err error) {
77109
all := struct {
78-
Enabled *bool `json:"enabled"`
110+
Enabled *bool `json:"enabled"`
111+
DatabaseNamePattern *string `json:"databaseNamePattern,omitempty"`
79112
}{}
80113
if err = common.Unmarshal(bytes, &all); err != nil {
81114
return err
@@ -85,11 +118,12 @@ func (o *DatabaseOption) UnmarshalJSON(bytes []byte) (err error) {
85118
}
86119
additionalProperties := make(map[string]interface{})
87120
if err = common.Unmarshal(bytes, &additionalProperties); err == nil {
88-
common.DeleteKeys(additionalProperties, &[]string{"enabled"})
121+
common.DeleteKeys(additionalProperties, &[]string{"enabled", "databaseNamePattern"})
89122
} else {
90123
return err
91124
}
92125
o.Enabled = *all.Enabled
126+
o.DatabaseNamePattern = all.DatabaseNamePattern
93127

94128
if len(additionalProperties) > 0 {
95129
o.AdditionalProperties = additionalProperties

0 commit comments

Comments
 (0)