Skip to content

Commit 2817d37

Browse files
committed
chore: auto update client api apecloud/apecloud@559b8de
1 parent c69cd9e commit 2817d37

File tree

9 files changed

+69
-235
lines changed

9 files changed

+69
-235
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21015,14 +21015,6 @@ components:
2101521015
enum:
2101621016
- current
2101721017
- original
21018-
engineMaturityLevel:
21019-
type: string
21020-
description: engine maturity level
21021-
enum:
21022-
- stable
21023-
- beta
21024-
- experimental
21025-
- deprecated
2102621018
componentOption:
2102721019
type: object
2102821020
required:
@@ -21952,7 +21944,8 @@ components:
2195221944
engineName:
2195321945
type: string
2195421946
maturityLevel:
21955-
$ref: '#/components/schemas/engineMaturityLevel'
21947+
type: string
21948+
description: engine maturity level
2195621949
title:
2195721950
type: string
2195821951
description:
@@ -22242,7 +22235,9 @@ components:
2224222235
items:
2224322236
type: string
2224422237
maturityLevel:
22245-
$ref: '#/components/schemas/engineMaturityLevel'
22238+
title: maturityLevel
22239+
type: string
22240+
description: engine maturity level
2224622241
engineList:
2224722242
items:
2224822243
$ref: '#/components/schemas/engine'

.generator/schemas/openapi.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15417,14 +15417,6 @@ components:
1541715417
- Failed
1541815418
- Enabling
1541915419
- Disabling
15420-
engineMaturityLevel:
15421-
type: string
15422-
description: engine maturity level
15423-
enum:
15424-
- stable
15425-
- beta
15426-
- experimental
15427-
- deprecated
1542815420
engine:
1542915421
type: object
1543015422
properties:
@@ -15481,7 +15473,9 @@ components:
1548115473
items:
1548215474
type: string
1548315475
maturityLevel:
15484-
$ref: '#/components/schemas/engineMaturityLevel'
15476+
title: maturityLevel
15477+
type: string
15478+
description: engine maturity level
1548515479
engineList:
1548615480
items:
1548715481
$ref: '#/components/schemas/engine'
@@ -16425,7 +16419,8 @@ components:
1642516419
engineName:
1642616420
type: string
1642716421
maturityLevel:
16428-
$ref: '#/components/schemas/engineMaturityLevel'
16422+
type: string
16423+
description: engine maturity level
1642916424
title:
1643016425
type: string
1643116426
description:

apecloud

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

api/kbcloud/admin/model_engine.go

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Engine struct {
3434
// clusterversion in the engines
3535
ClusterVersions []string `json:"clusterVersions,omitempty"`
3636
// engine maturity level
37-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
37+
MaturityLevel *string `json:"maturityLevel,omitempty"`
3838
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
3939
UnparsedObject map[string]interface{} `json:"-"`
4040
AdditionalProperties map[string]interface{} `json:"-"`
@@ -422,17 +422,17 @@ func (o *Engine) SetClusterVersions(v []string) {
422422
}
423423

424424
// GetMaturityLevel returns the MaturityLevel field value if set, zero value otherwise.
425-
func (o *Engine) GetMaturityLevel() EngineMaturityLevel {
425+
func (o *Engine) GetMaturityLevel() string {
426426
if o == nil || o.MaturityLevel == nil {
427-
var ret EngineMaturityLevel
427+
var ret string
428428
return ret
429429
}
430430
return *o.MaturityLevel
431431
}
432432

433433
// GetMaturityLevelOk returns a tuple with the MaturityLevel field value if set, nil otherwise
434434
// and a boolean to check if the value has been set.
435-
func (o *Engine) GetMaturityLevelOk() (*EngineMaturityLevel, bool) {
435+
func (o *Engine) GetMaturityLevelOk() (*string, bool) {
436436
if o == nil || o.MaturityLevel == nil {
437437
return nil, false
438438
}
@@ -444,8 +444,8 @@ func (o *Engine) HasMaturityLevel() bool {
444444
return o != nil && o.MaturityLevel != nil
445445
}
446446

447-
// SetMaturityLevel gets a reference to the given EngineMaturityLevel and assigns it to the MaturityLevel field.
448-
func (o *Engine) SetMaturityLevel(v EngineMaturityLevel) {
447+
// SetMaturityLevel gets a reference to the given string and assigns it to the MaturityLevel field.
448+
func (o *Engine) SetMaturityLevel(v string) {
449449
o.MaturityLevel = &v
450450
}
451451

@@ -507,20 +507,20 @@ func (o Engine) MarshalJSON() ([]byte, error) {
507507
// UnmarshalJSON deserializes the given payload.
508508
func (o *Engine) UnmarshalJSON(bytes []byte) (err error) {
509509
all := struct {
510-
Id *string `json:"id,omitempty"`
511-
Description *string `json:"description,omitempty"`
512-
Name *string `json:"name,omitempty"`
513-
Version *string `json:"version,omitempty"`
514-
KbVersionConstraint *string `json:"kbVersionConstraint,omitempty"`
515-
Type *EngineType `json:"type,omitempty"`
516-
Installed *bool `json:"installed,omitempty"`
517-
Provider *string `json:"provider,omitempty"`
518-
Status *EngineStatus `json:"status,omitempty"`
519-
AvailableVersion []string `json:"availableVersion,omitempty"`
520-
UpgradeHistory *string `json:"upgradeHistory,omitempty"`
521-
ErrMsg *string `json:"errMsg,omitempty"`
522-
ClusterVersions []string `json:"clusterVersions,omitempty"`
523-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
510+
Id *string `json:"id,omitempty"`
511+
Description *string `json:"description,omitempty"`
512+
Name *string `json:"name,omitempty"`
513+
Version *string `json:"version,omitempty"`
514+
KbVersionConstraint *string `json:"kbVersionConstraint,omitempty"`
515+
Type *EngineType `json:"type,omitempty"`
516+
Installed *bool `json:"installed,omitempty"`
517+
Provider *string `json:"provider,omitempty"`
518+
Status *EngineStatus `json:"status,omitempty"`
519+
AvailableVersion []string `json:"availableVersion,omitempty"`
520+
UpgradeHistory *string `json:"upgradeHistory,omitempty"`
521+
ErrMsg *string `json:"errMsg,omitempty"`
522+
ClusterVersions []string `json:"clusterVersions,omitempty"`
523+
MaturityLevel *string `json:"maturityLevel,omitempty"`
524524
}{}
525525
if err = common.Unmarshal(bytes, &all); err != nil {
526526
return err
@@ -554,11 +554,7 @@ func (o *Engine) UnmarshalJSON(bytes []byte) (err error) {
554554
o.UpgradeHistory = all.UpgradeHistory
555555
o.ErrMsg = all.ErrMsg
556556
o.ClusterVersions = all.ClusterVersions
557-
if all.MaturityLevel != nil && !all.MaturityLevel.IsValid() {
558-
hasInvalidField = true
559-
} else {
560-
o.MaturityLevel = all.MaturityLevel
561-
}
557+
o.MaturityLevel = all.MaturityLevel
562558

563559
if len(additionalProperties) > 0 {
564560
o.AdditionalProperties = additionalProperties

api/kbcloud/admin/model_engine_maturity_level.go

Lines changed: 0 additions & 70 deletions
This file was deleted.

api/kbcloud/admin/model_engine_option.go

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
type EngineOption struct {
1414
EngineName string `json:"engineName"`
1515
// engine maturity level
16-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
16+
MaturityLevel *string `json:"maturityLevel,omitempty"`
1717
Title string `json:"title"`
1818
Description LocalizedDescription `json:"description"`
1919
Versions []string `json:"versions"`
@@ -106,17 +106,17 @@ func (o *EngineOption) SetEngineName(v string) {
106106
}
107107

108108
// GetMaturityLevel returns the MaturityLevel field value if set, zero value otherwise.
109-
func (o *EngineOption) GetMaturityLevel() EngineMaturityLevel {
109+
func (o *EngineOption) GetMaturityLevel() string {
110110
if o == nil || o.MaturityLevel == nil {
111-
var ret EngineMaturityLevel
111+
var ret string
112112
return ret
113113
}
114114
return *o.MaturityLevel
115115
}
116116

117117
// GetMaturityLevelOk returns a tuple with the MaturityLevel field value if set, nil otherwise
118118
// and a boolean to check if the value has been set.
119-
func (o *EngineOption) GetMaturityLevelOk() (*EngineMaturityLevel, bool) {
119+
func (o *EngineOption) GetMaturityLevelOk() (*string, bool) {
120120
if o == nil || o.MaturityLevel == nil {
121121
return nil, false
122122
}
@@ -128,8 +128,8 @@ func (o *EngineOption) HasMaturityLevel() bool {
128128
return o != nil && o.MaturityLevel != nil
129129
}
130130

131-
// SetMaturityLevel gets a reference to the given EngineMaturityLevel and assigns it to the MaturityLevel field.
132-
func (o *EngineOption) SetMaturityLevel(v EngineMaturityLevel) {
131+
// SetMaturityLevel gets a reference to the given string and assigns it to the MaturityLevel field.
132+
func (o *EngineOption) SetMaturityLevel(v string) {
133133
o.MaturityLevel = &v
134134
}
135135

@@ -910,7 +910,7 @@ func (o EngineOption) MarshalJSON() ([]byte, error) {
910910
func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
911911
all := struct {
912912
EngineName *string `json:"engineName"`
913-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
913+
MaturityLevel *string `json:"maturityLevel,omitempty"`
914914
Title *string `json:"title"`
915915
Description *LocalizedDescription `json:"description"`
916916
Versions *[]string `json:"versions"`
@@ -1003,11 +1003,7 @@ func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error) {
10031003

10041004
hasInvalidField := false
10051005
o.EngineName = *all.EngineName
1006-
if all.MaturityLevel != nil && !all.MaturityLevel.IsValid() {
1007-
hasInvalidField = true
1008-
} else {
1009-
o.MaturityLevel = all.MaturityLevel
1010-
}
1006+
o.MaturityLevel = all.MaturityLevel
10111007
o.Title = *all.Title
10121008
if all.Description.UnparsedObject != nil && o.UnparsedObject == nil {
10131009
hasInvalidField = true

api/kbcloud/model_engine.go

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Engine struct {
3434
// clusterversion in the engines
3535
ClusterVersions []string `json:"clusterVersions,omitempty"`
3636
// engine maturity level
37-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
37+
MaturityLevel *string `json:"maturityLevel,omitempty"`
3838
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
3939
UnparsedObject map[string]interface{} `json:"-"`
4040
AdditionalProperties map[string]interface{} `json:"-"`
@@ -422,17 +422,17 @@ func (o *Engine) SetClusterVersions(v []string) {
422422
}
423423

424424
// GetMaturityLevel returns the MaturityLevel field value if set, zero value otherwise.
425-
func (o *Engine) GetMaturityLevel() EngineMaturityLevel {
425+
func (o *Engine) GetMaturityLevel() string {
426426
if o == nil || o.MaturityLevel == nil {
427-
var ret EngineMaturityLevel
427+
var ret string
428428
return ret
429429
}
430430
return *o.MaturityLevel
431431
}
432432

433433
// GetMaturityLevelOk returns a tuple with the MaturityLevel field value if set, nil otherwise
434434
// and a boolean to check if the value has been set.
435-
func (o *Engine) GetMaturityLevelOk() (*EngineMaturityLevel, bool) {
435+
func (o *Engine) GetMaturityLevelOk() (*string, bool) {
436436
if o == nil || o.MaturityLevel == nil {
437437
return nil, false
438438
}
@@ -444,8 +444,8 @@ func (o *Engine) HasMaturityLevel() bool {
444444
return o != nil && o.MaturityLevel != nil
445445
}
446446

447-
// SetMaturityLevel gets a reference to the given EngineMaturityLevel and assigns it to the MaturityLevel field.
448-
func (o *Engine) SetMaturityLevel(v EngineMaturityLevel) {
447+
// SetMaturityLevel gets a reference to the given string and assigns it to the MaturityLevel field.
448+
func (o *Engine) SetMaturityLevel(v string) {
449449
o.MaturityLevel = &v
450450
}
451451

@@ -507,20 +507,20 @@ func (o Engine) MarshalJSON() ([]byte, error) {
507507
// UnmarshalJSON deserializes the given payload.
508508
func (o *Engine) UnmarshalJSON(bytes []byte) (err error) {
509509
all := struct {
510-
Id *string `json:"id,omitempty"`
511-
Description *string `json:"description,omitempty"`
512-
Name *string `json:"name,omitempty"`
513-
Version *string `json:"version,omitempty"`
514-
KbVersionConstraint *string `json:"kbVersionConstraint,omitempty"`
515-
Type *EngineType `json:"type,omitempty"`
516-
Installed *bool `json:"installed,omitempty"`
517-
Provider *string `json:"provider,omitempty"`
518-
Status *EngineStatus `json:"status,omitempty"`
519-
AvailableVersion []string `json:"availableVersion,omitempty"`
520-
UpgradeHistory *string `json:"upgradeHistory,omitempty"`
521-
ErrMsg *string `json:"errMsg,omitempty"`
522-
ClusterVersions []string `json:"clusterVersions,omitempty"`
523-
MaturityLevel *EngineMaturityLevel `json:"maturityLevel,omitempty"`
510+
Id *string `json:"id,omitempty"`
511+
Description *string `json:"description,omitempty"`
512+
Name *string `json:"name,omitempty"`
513+
Version *string `json:"version,omitempty"`
514+
KbVersionConstraint *string `json:"kbVersionConstraint,omitempty"`
515+
Type *EngineType `json:"type,omitempty"`
516+
Installed *bool `json:"installed,omitempty"`
517+
Provider *string `json:"provider,omitempty"`
518+
Status *EngineStatus `json:"status,omitempty"`
519+
AvailableVersion []string `json:"availableVersion,omitempty"`
520+
UpgradeHistory *string `json:"upgradeHistory,omitempty"`
521+
ErrMsg *string `json:"errMsg,omitempty"`
522+
ClusterVersions []string `json:"clusterVersions,omitempty"`
523+
MaturityLevel *string `json:"maturityLevel,omitempty"`
524524
}{}
525525
if err = common.Unmarshal(bytes, &all); err != nil {
526526
return err
@@ -554,11 +554,7 @@ func (o *Engine) UnmarshalJSON(bytes []byte) (err error) {
554554
o.UpgradeHistory = all.UpgradeHistory
555555
o.ErrMsg = all.ErrMsg
556556
o.ClusterVersions = all.ClusterVersions
557-
if all.MaturityLevel != nil && !all.MaturityLevel.IsValid() {
558-
hasInvalidField = true
559-
} else {
560-
o.MaturityLevel = all.MaturityLevel
561-
}
557+
o.MaturityLevel = all.MaturityLevel
562558

563559
if len(additionalProperties) > 0 {
564560
o.AdditionalProperties = additionalProperties

0 commit comments

Comments
 (0)