From 195ad2a6f6dc6cac9146ccb4463c4f4f926b8a76 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 22 Jul 2020 02:36:22 +0000 Subject: [PATCH] Generated from 5350975fc2fb24332f7a48ce618dfb9d9b049e34 Integrating delete changes --- .../machinelearningservices/client.go | 1 - .../machinelearningcompute.go | 7 --- .../machinelearningservicesapi/interfaces.go | 2 +- .../machinelearningservices/models.go | 48 +++++++++++++++++-- .../machinelearningservices/operations.go | 1 - .../privateendpointconnections.go | 3 -- .../privatelinkresources.go | 1 - .../machinelearningservices/quotas.go | 2 - .../machinelearningservices/usages.go | 1 - .../machinelearningservices/version.go | 2 +- .../virtualmachinesizes.go | 1 - .../workspacefeatures.go | 1 - .../machinelearningservices/workspaces.go | 36 ++++++-------- 13 files changed, 59 insertions(+), 47 deletions(-) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go index d559fe21a7ee..0918d83cb7b2 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go @@ -119,7 +119,6 @@ func (client BaseClient) ListSkusSender(req *http.Request) (*http.Response, erro func (client BaseClient) ListSkusResponder(resp *http.Response) (result SkuListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go index 244a8226279c..182d7386a62b 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2020-01-01/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()) @@ -198,7 +197,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 @@ -276,7 +274,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()) @@ -357,7 +354,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()) @@ -472,7 +468,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()) @@ -550,7 +545,6 @@ func (client MachineLearningComputeClient) ListNodesSender(req *http.Request) (* func (client MachineLearningComputeClient) ListNodesResponder(resp *http.Response) (result AmlComputeNodesInformation, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -632,7 +626,6 @@ func (client MachineLearningComputeClient) UpdateSender(req *http.Request) (futu func (client MachineLearningComputeClient) UpdateResponder(resp *http.Response) (result ComputeResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go index 590204f7b946..24f0a9ef3e2f 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go @@ -41,7 +41,7 @@ var _ OperationsClientAPI = (*machinelearningservices.OperationsClient)(nil) // WorkspacesClientAPI contains the set of methods on the WorkspacesClient type. type WorkspacesClientAPI interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, parameters machinelearningservices.Workspace) (result machinelearningservices.WorkspacesCreateOrUpdateFuture, err error) - Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error) + Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.WorkspacesDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.Workspace, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string, skiptoken string) (result machinelearningservices.WorkspaceListResultPage, err error) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, skiptoken string) (result machinelearningservices.WorkspaceListResultIterator, err error) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go index 2808bda72389..e67a0b838c1a 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 } @@ -3655,6 +3670,29 @@ func (future *WorkspacesCreateOrUpdateFuture) Result(client WorkspacesClient) (w return } +// WorkspacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type WorkspacesDeleteFuture struct { + azure.Future +} + +// Result returns the result of the asynchronous operation. +// If the operation has not completed it will return an error. +func (future *WorkspacesDeleteFuture) Result(client WorkspacesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesDeleteFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + err = azure.NewAsyncOpIncompleteError("machinelearningservices.WorkspacesDeleteFuture") + return + } + ar.Response = future.Response() + return +} + // WorkspaceSku describes Workspace Sku details and features type WorkspaceSku struct { // Locations - READ-ONLY; The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go index 47fca7a88a71..99acc6c57ca8 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2020-01-01/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/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go index a8ba78e0859f..42d7bcdeb2b1 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go @@ -114,7 +114,6 @@ func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) ( func (client PrivateEndpointConnectionsClient) 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 @@ -191,7 +190,6 @@ func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*ht func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -279,7 +277,6 @@ func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (*ht func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go index fd192cf77b07..b952c47f8181 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go @@ -111,7 +111,6 @@ func (client PrivateLinkResourcesClient) ListByWorkspaceSender(req *http.Request func (client PrivateLinkResourcesClient) ListByWorkspaceResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go index 4a320e89f401..dcea0edb61e8 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go @@ -115,7 +115,6 @@ func (client QuotasClient) ListSender(req *http.Request) (*http.Response, error) func (client QuotasClient) ListResponder(resp *http.Response) (result ListWorkspaceQuotas, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -235,7 +234,6 @@ func (client QuotasClient) UpdateSender(req *http.Request) (*http.Response, erro func (client QuotasClient) UpdateResponder(resp *http.Response) (result UpdateWorkspaceQuotasResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go index 4b8fadceada7..1f3a6093e433 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go @@ -115,7 +115,6 @@ func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error) func (client UsagesClient) ListResponder(resp *http.Response) (result ListUsagesResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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. diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go index 978ed78d8452..d785d11a6b9b 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go @@ -116,7 +116,6 @@ func (client VirtualMachineSizesClient) ListSender(req *http.Request) (*http.Res func (client VirtualMachineSizesClient) ListResponder(resp *http.Response) (result VirtualMachineSizeListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go index ef3f6679cc8d..3d66725fbf92 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go @@ -111,7 +111,6 @@ func (client WorkspaceFeaturesClient) ListSender(req *http.Request) (*http.Respo func (client WorkspaceFeaturesClient) ListResponder(resp *http.Response) (result ListAmlUserFeatureResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go index 7f3520de126a..92ad252a3a4c 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go @@ -126,7 +126,6 @@ func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (future W func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -138,13 +137,13 @@ func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (res // Parameters: // resourceGroupName - name of the resource group in which workspace is located. // workspaceName - name of Azure Machine Learning workspace. -func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error) { +func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result WorkspacesDeleteFuture, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/WorkspacesClient.Delete") defer func() { sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode + if result.Response() != nil { + sc = result.Response().StatusCode } tracing.EndSpan(ctx, sc, err) }() @@ -155,18 +154,12 @@ func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName str return } - resp, err := client.DeleteSender(req) + result, err = client.DeleteSender(req) if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Delete", resp, "Failure sending request") + err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Delete", result.Response(), "Failure sending request") return } - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "Delete", resp, "Failure responding to request") - } - return } @@ -193,8 +186,14 @@ func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroup // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. -func (client WorkspacesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +func (client WorkspacesClient) DeleteSender(req *http.Request) (future WorkspacesDeleteFuture, err error) { + var resp *http.Response + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) + if err != nil { + return + } + future.Future, err = azure.NewFutureFromResponse(resp) + return } // DeleteResponder handles the response to the Delete request. The method always @@ -202,8 +201,7 @@ 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), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return @@ -277,7 +275,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()) @@ -356,7 +353,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()) @@ -470,7 +466,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()) @@ -584,7 +579,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()) @@ -661,7 +655,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 @@ -739,7 +732,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())