@@ -44,6 +44,8 @@ type EnvironmentUpdate struct {
4444 DeletePolicy * EnvironmentDeletePolicy `json:"deletePolicy,omitempty"`
4545 // Cluster operation validation policy, such as create, hscale, vscale, etc.
4646 ClusterValidationPolicy * ClusterValidationPolicy `json:"clusterValidationPolicy,omitempty"`
47+ // Cloud Provider
48+ Provider common.NullableString `json:"provider,omitempty"`
4749 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
4850 UnparsedObject map [string ]interface {} `json:"-"`
4951 AdditionalProperties map [string ]interface {} `json:"-"`
@@ -654,6 +656,45 @@ func (o *EnvironmentUpdate) SetClusterValidationPolicy(v ClusterValidationPolicy
654656 o .ClusterValidationPolicy = & v
655657}
656658
659+ // GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null).
660+ func (o * EnvironmentUpdate ) GetProvider () string {
661+ if o == nil || o .Provider .Get () == nil {
662+ var ret string
663+ return ret
664+ }
665+ return * o .Provider .Get ()
666+ }
667+
668+ // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
669+ // and a boolean to check if the value has been set.
670+ // NOTE: If the value is an explicit nil, `nil, true` will be returned.
671+ func (o * EnvironmentUpdate ) GetProviderOk () (* string , bool ) {
672+ if o == nil {
673+ return nil , false
674+ }
675+ return o .Provider .Get (), o .Provider .IsSet ()
676+ }
677+
678+ // HasProvider returns a boolean if a field has been set.
679+ func (o * EnvironmentUpdate ) HasProvider () bool {
680+ return o != nil && o .Provider .IsSet ()
681+ }
682+
683+ // SetProvider gets a reference to the given common.NullableString and assigns it to the Provider field.
684+ func (o * EnvironmentUpdate ) SetProvider (v string ) {
685+ o .Provider .Set (& v )
686+ }
687+
688+ // SetProviderNil sets the value for Provider to be an explicit nil.
689+ func (o * EnvironmentUpdate ) SetProviderNil () {
690+ o .Provider .Set (nil )
691+ }
692+
693+ // UnsetProvider ensures that no value is present for Provider, not even an explicit nil.
694+ func (o * EnvironmentUpdate ) UnsetProvider () {
695+ o .Provider .Unset ()
696+ }
697+
657698// MarshalJSON serializes the struct using spec logic.
658699func (o EnvironmentUpdate ) MarshalJSON () ([]byte , error ) {
659700 toSerialize := map [string ]interface {}{}
@@ -711,6 +752,9 @@ func (o EnvironmentUpdate) MarshalJSON() ([]byte, error) {
711752 if o .ClusterValidationPolicy != nil {
712753 toSerialize ["clusterValidationPolicy" ] = o .ClusterValidationPolicy
713754 }
755+ if o .Provider .IsSet () {
756+ toSerialize ["provider" ] = o .Provider .Get ()
757+ }
714758
715759 for key , value := range o .AdditionalProperties {
716760 toSerialize [key ] = value
@@ -738,13 +782,14 @@ func (o *EnvironmentUpdate) UnmarshalJSON(bytes []byte) (err error) {
738782 NetworkModes []NetworkMode `json:"networkModes,omitempty"`
739783 DeletePolicy * EnvironmentDeletePolicy `json:"deletePolicy,omitempty"`
740784 ClusterValidationPolicy * ClusterValidationPolicy `json:"clusterValidationPolicy,omitempty"`
785+ Provider common.NullableString `json:"provider,omitempty"`
741786 }{}
742787 if err = common .Unmarshal (bytes , & all ); err != nil {
743788 return err
744789 }
745790 additionalProperties := make (map [string ]interface {})
746791 if err = common .Unmarshal (bytes , & additionalProperties ); err == nil {
747- common .DeleteKeys (additionalProperties , & []string {"description" , "displayName" , "type" , "organizations" , "namespaces" , "cpuOverCommitRatio" , "memoryOverCommitRatio" , "autohealingConfig" , "defaultStorageClass" , "podAntiAffinityEnabled" , "imageRegistry" , "nodePortEnabled" , "lbEnabled" , "internetLBEnabled" , "networkModes" , "deletePolicy" , "clusterValidationPolicy" })
792+ common .DeleteKeys (additionalProperties , & []string {"description" , "displayName" , "type" , "organizations" , "namespaces" , "cpuOverCommitRatio" , "memoryOverCommitRatio" , "autohealingConfig" , "defaultStorageClass" , "podAntiAffinityEnabled" , "imageRegistry" , "nodePortEnabled" , "lbEnabled" , "internetLBEnabled" , "networkModes" , "deletePolicy" , "clusterValidationPolicy" , "provider" })
748793 } else {
749794 return err
750795 }
@@ -782,6 +827,7 @@ func (o *EnvironmentUpdate) UnmarshalJSON(bytes []byte) (err error) {
782827 } else {
783828 o .ClusterValidationPolicy = all .ClusterValidationPolicy
784829 }
830+ o .Provider = all .Provider
785831
786832 if len (additionalProperties ) > 0 {
787833 o .AdditionalProperties = additionalProperties
0 commit comments