diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go index 984f3c81f780..89e15e196efa 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/machinelearningcompute.go @@ -117,7 +117,6 @@ func (client MachineLearningComputeClient) CreateOrUpdateSender(req *http.Reques func (client MachineLearningComputeClient) CreateOrUpdateResponder(resp *http.Response) (result ComputeResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -195,7 +194,6 @@ func (client MachineLearningComputeClient) DeleteSender(req *http.Request) (futu func (client MachineLearningComputeClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -273,7 +271,6 @@ func (client MachineLearningComputeClient) GetSender(req *http.Request) (*http.R func (client MachineLearningComputeClient) GetResponder(resp *http.Response) (result ComputeResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -354,7 +351,6 @@ func (client MachineLearningComputeClient) ListByWorkspaceSender(req *http.Reque func (client MachineLearningComputeClient) ListByWorkspaceResponder(resp *http.Response) (result PaginatedComputeResourcesList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -469,7 +465,6 @@ func (client MachineLearningComputeClient) ListKeysSender(req *http.Request) (*h func (client MachineLearningComputeClient) ListKeysResponder(resp *http.Response) (result ComputeSecretsModel, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -547,7 +542,6 @@ func (client MachineLearningComputeClient) SystemUpdateSender(req *http.Request) func (client MachineLearningComputeClient) SystemUpdateResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go index a05fb91588fe..018b3666ab3d 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/models.go @@ -524,7 +524,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"` @@ -538,6 +538,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 } @@ -1207,7 +1210,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"` @@ -1220,6 +1223,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 } @@ -1421,7 +1427,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"` @@ -1437,6 +1443,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/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go index f5b905c68135..dacd3f85d605 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/operations.go @@ -100,7 +100,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/version.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/version.go index d19384f0009a..1189a7508fde 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/version.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/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/2018-03-01-preview" + return "Azure-SDK-For-Go/" + Version() + " machinelearningservices/2018-03-01-preview" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go index bcf14e23f864..fd80faed69ae 100644 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go +++ b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/workspaces.go @@ -112,7 +112,6 @@ func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (*http.Re func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -188,7 +187,6 @@ func (client WorkspacesClient) DeleteSender(req *http.Request) (*http.Response, func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -263,7 +261,6 @@ func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, err func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -342,7 +339,6 @@ func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*ht func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -456,7 +452,6 @@ func (client WorkspacesClient) ListBySubscriptionSender(req *http.Request) (*htt func (client WorkspacesClient) ListBySubscriptionResponder(resp *http.Response) (result WorkspaceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -570,7 +565,6 @@ func (client WorkspacesClient) ListKeysSender(req *http.Request) (*http.Response func (client WorkspacesClient) ListKeysResponder(resp *http.Response) (result ListWorkspaceKeysResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -647,7 +641,6 @@ func (client WorkspacesClient) ResyncKeysSender(req *http.Request) (*http.Respon func (client WorkspacesClient) ResyncKeysResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -725,7 +718,6 @@ func (client WorkspacesClient) UpdateSender(req *http.Request) (*http.Response, func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing())