diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go index 69fb397ab105..f81e4d3eb20c 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/models.go @@ -858,7 +858,7 @@ type ComputeResource struct { ID *string `json:"id,omitempty"` // Name - READ-ONLY; Specifies the name of the resource. Name *string `json:"name,omitempty"` - // Identity - READ-ONLY; The identity of the resource. + // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Location - Specifies the location of the resource. Location *string `json:"location,omitempty"` @@ -872,6 +872,9 @@ type ComputeResource struct { func (cr ComputeResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) objectMap["properties"] = cr.Properties + if cr.Identity != nil { + objectMap["identity"] = cr.Identity + } if cr.Location != nil { objectMap["location"] = cr.Location } @@ -1981,7 +1984,7 @@ type Resource struct { ID *string `json:"id,omitempty"` // Name - READ-ONLY; Specifies the name of the resource. Name *string `json:"name,omitempty"` - // Identity - READ-ONLY; The identity of the resource. + // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Location - Specifies the location of the resource. Location *string `json:"location,omitempty"` @@ -1994,6 +1997,9 @@ type Resource struct { // MarshalJSON is the custom marshaler for Resource. func (r Resource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) + if r.Identity != nil { + objectMap["identity"] = r.Identity + } if r.Location != nil { objectMap["location"] = r.Location } @@ -2279,7 +2285,7 @@ type Workspace struct { ID *string `json:"id,omitempty"` // Name - READ-ONLY; Specifies the name of the resource. Name *string `json:"name,omitempty"` - // Identity - READ-ONLY; The identity of the resource. + // Identity - The identity of the resource. Identity *Identity `json:"identity,omitempty"` // Location - Specifies the location of the resource. Location *string `json:"location,omitempty"` @@ -2295,6 +2301,9 @@ func (w Workspace) MarshalJSON() ([]byte, error) { if w.WorkspaceProperties != nil { objectMap["properties"] = w.WorkspaceProperties } + if w.Identity != nil { + objectMap["identity"] = w.Identity + } if w.Location != nil { objectMap["location"] = w.Location } diff --git a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/version.go b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/version.go index 4491bce97688..b67b0ea57ca8 100644 --- a/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/version.go +++ b/services/machinelearningservices/mgmt/2019-05-01/machinelearningservices/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " machinelearningservices/2019-05-01" + return "Azure-SDK-For-Go/" + Version() + " machinelearningservices/2019-05-01" } // Version returns the semantic version (see http://semver.org) of the client.