Skip to content

Commit 01588a8

Browse files
committed
chore: auto update client api apecloud/apecloud@da6f8cb
1 parent 7d907fc commit 01588a8

File tree

5 files changed

+5
-33
lines changed

5 files changed

+5
-33
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24175,6 +24175,7 @@ components:
2417524175
description: Engine name for sink/target database
2417624176
engineOption:
2417724177
type: object
24178+
additionalProperties: false
2417824179
required:
2417924180
- engineName
2418024181
- title

.generator/schemas/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18845,6 +18845,7 @@ components:
1884518845
description: Engine name for sink/target database
1884618846
engineOption:
1884718847
type: object
18848+
additionalProperties: false
1884818849
required:
1884918850
- engineName
1885018851
- title

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 28c8a822739e284d72240c6071e0dacf24bf57c5
1+
Subproject commit da6f8cb3fae3d431bef2748903014f9a077679d6

api/kbcloud/admin/model_engine_option.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ type EngineOption struct {
4747
DataReplication *DataReplicationOption `json:"dataReplication,omitempty"`
4848
Import *ImportOption `json:"import,omitempty"`
4949
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
50-
UnparsedObject map[string]interface{} `json:"-"`
51-
AdditionalProperties map[string]interface{} `json:"-"`
50+
UnparsedObject map[string]interface{} `json:"-"`
5251
}
5352

5453
// NewEngineOption instantiates a new EngineOption object.
@@ -999,10 +998,6 @@ func (o EngineOption) MarshalJSON() ([]byte, error) {
999998
if o.Import != nil {
1000999
toSerialize["import"] = o.Import
10011000
}
1002-
1003-
for key, value := range o.AdditionalProperties {
1004-
toSerialize[key] = value
1005-
}
10061001
return common.Marshal(toSerialize)
10071002
}
10081003

@@ -1097,12 +1092,6 @@ func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
10971092
if all.Parameters == nil {
10981093
return fmt.Errorf("required field parameters missing")
10991094
}
1100-
additionalProperties := make(map[string]interface{})
1101-
if err = common.Unmarshal(bytes, &additionalProperties); err == nil {
1102-
common.DeleteKeys(additionalProperties, &[]string{"engineName", "maturityLevel", "title", "status", "description", "versions", "components", "modes", "account", "database", "dms", "backup", "bench", "endpoints", "networkModes", "promote", "stop", "start", "restart", "hscale", "vscale", "license", "storageExpansion", "rebuildInstance", "upgrade", "metrics", "dashboards", "logs", "parameters", "disasterRecovery", "cdc", "dataReplication", "import"})
1103-
} else {
1104-
return err
1105-
}
11061095

11071096
hasInvalidField := false
11081097
o.EngineName = *all.EngineName
@@ -1176,10 +1165,6 @@ func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
11761165
}
11771166
o.Import = all.Import
11781167

1179-
if len(additionalProperties) > 0 {
1180-
o.AdditionalProperties = additionalProperties
1181-
}
1182-
11831168
if hasInvalidField {
11841169
return common.Unmarshal(bytes, &o.UnparsedObject)
11851170
}

api/kbcloud/model_engine_option.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ type EngineOption struct {
4747
DataReplication *DataReplicationOption `json:"dataReplication,omitempty"`
4848
Import *ImportOption `json:"import,omitempty"`
4949
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
50-
UnparsedObject map[string]interface{} `json:"-"`
51-
AdditionalProperties map[string]interface{} `json:"-"`
50+
UnparsedObject map[string]interface{} `json:"-"`
5251
}
5352

5453
// NewEngineOption instantiates a new EngineOption object.
@@ -999,10 +998,6 @@ func (o EngineOption) MarshalJSON() ([]byte, error) {
999998
if o.Import != nil {
1000999
toSerialize["import"] = o.Import
10011000
}
1002-
1003-
for key, value := range o.AdditionalProperties {
1004-
toSerialize[key] = value
1005-
}
10061001
return common.Marshal(toSerialize)
10071002
}
10081003

@@ -1097,12 +1092,6 @@ func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
10971092
if all.Parameters == nil {
10981093
return fmt.Errorf("required field parameters missing")
10991094
}
1100-
additionalProperties := make(map[string]interface{})
1101-
if err = common.Unmarshal(bytes, &additionalProperties); err == nil {
1102-
common.DeleteKeys(additionalProperties, &[]string{"engineName", "maturityLevel", "title", "status", "description", "versions", "components", "modes", "account", "database", "dms", "backup", "bench", "endpoints", "networkModes", "promote", "stop", "start", "restart", "hscale", "vscale", "license", "storageExpansion", "rebuildInstance", "upgrade", "metrics", "dashboards", "logs", "parameters", "disasterRecovery", "cdc", "dataReplication", "import"})
1103-
} else {
1104-
return err
1105-
}
11061095

11071096
hasInvalidField := false
11081097
o.EngineName = *all.EngineName
@@ -1176,10 +1165,6 @@ func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
11761165
}
11771166
o.Import = all.Import
11781167

1179-
if len(additionalProperties) > 0 {
1180-
o.AdditionalProperties = additionalProperties
1181-
}
1182-
11831168
if hasInvalidField {
11841169
return common.Unmarshal(bytes, &o.UnparsedObject)
11851170
}

0 commit comments

Comments
 (0)