@@ -56,6 +56,8 @@ type Environment struct {
5656 // Architecture of the environment data plane nodes (arm64, amd64, or multiarch for multiple architectures)
5757 Architecture * EnvironmentArchitecture `json:"architecture,omitempty"`
5858 Dns * Dns `json:"dns,omitempty"`
59+ // whether to enable calculate the cluster SLA for the environment
60+ SlaEnabled * bool `json:"slaEnabled,omitempty"`
5961 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
6062 UnparsedObject map [string ]interface {} `json:"-"`
6163 AdditionalProperties map [string ]interface {} `json:"-"`
@@ -83,6 +85,8 @@ func NewEnvironment(provider string, region string, availabilityZones []string,
8385 this .DeletePolicy = & deletePolicy
8486 var clusterValidationPolicy ClusterValidationPolicy = ClusterValidationPolicyValidateOnly
8587 this .ClusterValidationPolicy = & clusterValidationPolicy
88+ var slaEnabled bool = false
89+ this .SlaEnabled = & slaEnabled
8690 return & this
8791}
8892
@@ -95,6 +99,8 @@ func NewEnvironmentWithDefaults() *Environment {
9599 this .DeletePolicy = & deletePolicy
96100 var clusterValidationPolicy ClusterValidationPolicy = ClusterValidationPolicyValidateOnly
97101 this .ClusterValidationPolicy = & clusterValidationPolicy
102+ var slaEnabled bool = false
103+ this .SlaEnabled = & slaEnabled
98104 return & this
99105}
100106
@@ -654,6 +660,34 @@ func (o *Environment) SetDns(v Dns) {
654660 o .Dns = & v
655661}
656662
663+ // GetSlaEnabled returns the SlaEnabled field value if set, zero value otherwise.
664+ func (o * Environment ) GetSlaEnabled () bool {
665+ if o == nil || o .SlaEnabled == nil {
666+ var ret bool
667+ return ret
668+ }
669+ return * o .SlaEnabled
670+ }
671+
672+ // GetSlaEnabledOk returns a tuple with the SlaEnabled field value if set, nil otherwise
673+ // and a boolean to check if the value has been set.
674+ func (o * Environment ) GetSlaEnabledOk () (* bool , bool ) {
675+ if o == nil || o .SlaEnabled == nil {
676+ return nil , false
677+ }
678+ return o .SlaEnabled , true
679+ }
680+
681+ // HasSlaEnabled returns a boolean if a field has been set.
682+ func (o * Environment ) HasSlaEnabled () bool {
683+ return o != nil && o .SlaEnabled != nil
684+ }
685+
686+ // SetSlaEnabled gets a reference to the given bool and assigns it to the SlaEnabled field.
687+ func (o * Environment ) SetSlaEnabled (v bool ) {
688+ o .SlaEnabled = & v
689+ }
690+
657691// MarshalJSON serializes the struct using spec logic.
658692func (o Environment ) MarshalJSON () ([]byte , error ) {
659693 toSerialize := map [string ]interface {}{}
@@ -710,6 +744,9 @@ func (o Environment) MarshalJSON() ([]byte, error) {
710744 if o .Dns != nil {
711745 toSerialize ["dns" ] = o .Dns
712746 }
747+ if o .SlaEnabled != nil {
748+ toSerialize ["slaEnabled" ] = o .SlaEnabled
749+ }
713750
714751 for key , value := range o .AdditionalProperties {
715752 toSerialize [key ] = value
@@ -742,6 +779,7 @@ func (o *Environment) UnmarshalJSON(bytes []byte) (err error) {
742779 ClusterValidationPolicy * ClusterValidationPolicy `json:"clusterValidationPolicy,omitempty"`
743780 Architecture * EnvironmentArchitecture `json:"architecture,omitempty"`
744781 Dns * Dns `json:"dns,omitempty"`
782+ SlaEnabled * bool `json:"slaEnabled,omitempty"`
745783 }{}
746784 if err = common .Unmarshal (bytes , & all ); err != nil {
747785 return err
@@ -784,7 +822,7 @@ func (o *Environment) UnmarshalJSON(bytes []byte) (err error) {
784822 }
785823 additionalProperties := make (map [string ]interface {})
786824 if err = common .Unmarshal (bytes , & additionalProperties ); err == nil {
787- common .DeleteKeys (additionalProperties , & []string {"provider" , "region" , "availabilityZones" , "schedulingConfig" , "networkConfig" , "description" , "displayName" , "id" , "name" , "organizations" , "metricsMonitorEnabled" , "state" , "type" , "provisionConfig" , "autohealingConfig" , "createdAt" , "updatedAt" , "extraInfo" , "deletePolicy" , "clusterValidationPolicy" , "architecture" , "dns" })
825+ common .DeleteKeys (additionalProperties , & []string {"provider" , "region" , "availabilityZones" , "schedulingConfig" , "networkConfig" , "description" , "displayName" , "id" , "name" , "organizations" , "metricsMonitorEnabled" , "state" , "type" , "provisionConfig" , "autohealingConfig" , "createdAt" , "updatedAt" , "extraInfo" , "deletePolicy" , "clusterValidationPolicy" , "architecture" , "dns" , "slaEnabled" })
788826 } else {
789827 return err
790828 }
@@ -847,6 +885,7 @@ func (o *Environment) UnmarshalJSON(bytes []byte) (err error) {
847885 hasInvalidField = true
848886 }
849887 o .Dns = all .Dns
888+ o .SlaEnabled = all .SlaEnabled
850889
851890 if len (additionalProperties ) > 0 {
852891 o .AdditionalProperties = additionalProperties
0 commit comments