diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go index 2808bda72389..bdafb7cefd01 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go @@ -1025,7 +1025,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"` @@ -1041,6 +1041,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 } @@ -2472,7 +2475,7 @@ type PrivateEndpointConnection 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"` @@ -2490,6 +2493,9 @@ func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error) { if pec.PrivateEndpointConnectionProperties != nil { objectMap["properties"] = pec.PrivateEndpointConnectionProperties } + if pec.Identity != nil { + objectMap["identity"] = pec.Identity + } if pec.Location != nil { objectMap["location"] = pec.Location } @@ -2607,7 +2613,7 @@ type PrivateLinkResource 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"` @@ -2625,6 +2631,9 @@ func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { if plr.PrivateLinkResourceProperties != nil { objectMap["properties"] = plr.PrivateLinkResourceProperties } + if plr.Identity != nil { + objectMap["identity"] = plr.Identity + } if plr.Location != nil { objectMap["location"] = plr.Location } @@ -2785,7 +2794,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"` @@ -2800,6 +2809,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 } @@ -3324,7 +3336,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"` @@ -3342,6 +3354,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/2020-01-01/machinelearningservices/version.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/version.go index 6966a98ed560..ab993413ace4 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/version.go +++ b/services/machinelearningservices/mgmt/2020-01-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/2020-01-01" + return "Azure-SDK-For-Go/" + Version() + " machinelearningservices/2020-01-01" } // Version returns the semantic version (see http://semver.org) of the client.