@@ -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.
508508func (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