diff --git a/metric_ruleset/model_exception_rule.go b/metric_ruleset/model_exception_rule.go index 49bcd69..8e3da93 100644 --- a/metric_ruleset/model_exception_rule.go +++ b/metric_ruleset/model_exception_rule.go @@ -23,7 +23,7 @@ type ExceptionRule struct { // Finds the metric to reroute. Matcher DimensionMatcher `json:"matcher"` // Contains fields for the restoration job. The restoration job reroutes metrics from the archival route to the real-time route. - Restoration ExceptionRuleRestorationFields `json:"restoration,omitempty"` + Restoration *ExceptionRuleRestorationFields `json:"restoration,omitempty"` // Information about an exception rule. Description *string `json:"description,omitempty"` } @@ -129,7 +129,7 @@ func (o *ExceptionRule) GetRestoration() ExceptionRuleRestorationFields { return ret } - return o.Restoration + return *o.Restoration } // GetRestorationOk returns a tuple with the Restoration field value @@ -138,12 +138,21 @@ func (o *ExceptionRule) GetRestorationOk() (*ExceptionRuleRestorationFields, boo if o == nil { return nil, false } - return &o.Restoration, true + return o.Restoration, true +} + +// HasRestoration returns a boolean if a field has been set. +func (o *ExceptionRule) HasRestoration() bool { + if o != nil && !isNil(o.Restoration) { + return true + } + + return false } // SetRestoration sets field value func (o *ExceptionRule) SetRestoration(v ExceptionRuleRestorationFields) { - o.Restoration = v + o.Restoration = &v } // GetDescription returns the Description field value if set, zero value otherwise.