From 7a42583ec3d5354be2287faf0a8688d7cdd2bb00 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 23 Dec 2020 06:05:52 +0000 Subject: [PATCH] CodeGen from PR 12183 in Azure/azure-rest-api-specs add machinglearningservices track2 config (#12183) --- .../machinelearningservices/CHANGELOG.md | 8 -------- .../machinelearningservices/machinelearningcompute.go | 2 +- .../machinelearningservices/workspaces.go | 4 ++-- 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md diff --git a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md b/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md deleted file mode 100644 index 16e7da6f2c55..000000000000 --- a/services/preview/machinelearningservices/mgmt/2018-03-01-preview/machinelearningservices/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 - -Code generator @microsoft.azure/autorest.go@~2.1.161 - -## Breaking Changes - -- Function `NewPaginatedComputeResourcesListPage` parameter(s) have been changed from `(func(context.Context, PaginatedComputeResourcesList) (PaginatedComputeResourcesList, error))` to `(PaginatedComputeResourcesList, func(context.Context, PaginatedComputeResourcesList) (PaginatedComputeResourcesList, error))` -- Function `NewWorkspaceListResultPage` parameter(s) have been changed from `(func(context.Context, WorkspaceListResult) (WorkspaceListResult, error))` to `(WorkspaceListResult, func(context.Context, WorkspaceListResult) (WorkspaceListResult, error))` 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 a5331581a07c..7de1c5c4fedd 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 @@ -316,6 +316,7 @@ func (client MachineLearningComputeClient) ListByWorkspace(ctx context.Context, } if result.pcrl.hasNextLink() && result.pcrl.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -380,7 +381,6 @@ func (client MachineLearningComputeClient) listByWorkspaceNextResults(ctx contex result, err = client.ListByWorkspaceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.MachineLearningComputeClient", "listByWorkspaceNextResults", resp, "Failure responding to next results request") - return } return } 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 037c487f4203..1aefb87d7c2a 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 @@ -306,6 +306,7 @@ func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resource } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -369,7 +370,6 @@ func (client WorkspacesClient) listByResourceGroupNextResults(ctx context.Contex result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return } @@ -425,6 +425,7 @@ func (client WorkspacesClient) ListBySubscription(ctx context.Context, skiptoken } if result.wlr.hasNextLink() && result.wlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -487,7 +488,6 @@ func (client WorkspacesClient) listBySubscriptionNextResults(ctx context.Context result, err = client.ListBySubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - return } return }