Skip to content

Commit

Permalink
feat(Context-based Restrictions): add service ref address location su…
Browse files Browse the repository at this point in the history
…pport

Signed-off-by: Stephen SooHoo <[email protected]>
  • Loading branch information
soohoowoohoo authored and padamstx committed Jul 28, 2022
1 parent 6b8440b commit 3d79112
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contextbasedrestrictionsv1/context_based_restrictions_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2449,6 +2449,9 @@ type ServiceRefValue struct {

// The service instance.
ServiceInstance *string `json:"service_instance,omitempty"`

// The location.
Location *string `json:"location,omitempty"`
}

// NewServiceRefValue : Instantiate ServiceRefValue (Generic Model Constructor)
Expand Down Expand Up @@ -2479,6 +2482,10 @@ func UnmarshalServiceRefValue(m map[string]json.RawMessage, result interface{})
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "location", &obj.Location)
if err != nil {
return
}
reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj))
return
}
Expand Down

0 comments on commit 3d79112

Please sign in to comment.