From 88d4fbd0a553b45c84ac3e0271f0b596620e92b6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 12 Jan 2021 00:59:46 +0000 Subject: [PATCH] CodeGen from PR 12275 in Azure/azure-rest-api-specs Added move validation enum values & fix S360 linting issues (#12275) * Added new move product validation error codes * Added integer formats to fix S360 swagger lint validation * Fixed ModelValidation errors for v2018-11-01-preview Co-authored-by: Braden Watkins --- .../2018-11-01-preview/billing/CHANGELOG.md | 21 ------------------- .../2018-11-01-preview/billing/accounts.go | 2 +- .../2018-11-01-preview/billing/agreements.go | 2 +- .../2018-11-01-preview/billing/customers.go | 2 +- .../2018-11-01-preview/billing/departments.go | 2 +- .../billing/enrollmentaccounts.go | 2 +- .../2018-11-01-preview/billing/invoices.go | 4 ++-- .../billing/invoicesections.go | 4 ++-- .../2018-11-01-preview/billing/operations.go | 2 +- .../billing/paymentmethods.go | 4 ++-- .../2018-11-01-preview/billing/products.go | 4 ++-- .../2018-11-01-preview/billing/profiles.go | 2 +- .../billing/recipienttransfers.go | 2 +- .../billing/subscriptions.go | 8 +++---- .../billing/transactions.go | 8 +++---- .../2018-11-01-preview/billing/transfers.go | 2 +- 16 files changed, 25 insertions(+), 46 deletions(-) delete mode 100644 services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md deleted file mode 100644 index b03fd0e7a1fb..000000000000 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/CHANGELOG.md +++ /dev/null @@ -1,21 +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 `NewRecipientTransferDetailsListResultPage` parameter(s) have been changed from `(func(context.Context, RecipientTransferDetailsListResult) (RecipientTransferDetailsListResult, error))` to `(RecipientTransferDetailsListResult, func(context.Context, RecipientTransferDetailsListResult) (RecipientTransferDetailsListResult, error))` -- Function `NewEnrollmentAccountListResultPage` parameter(s) have been changed from `(func(context.Context, EnrollmentAccountListResult) (EnrollmentAccountListResult, error))` to `(EnrollmentAccountListResult, func(context.Context, EnrollmentAccountListResult) (EnrollmentAccountListResult, error))` -- Function `NewProductsListResultPage` parameter(s) have been changed from `(func(context.Context, ProductsListResult) (ProductsListResult, error))` to `(ProductsListResult, func(context.Context, ProductsListResult) (ProductsListResult, error))` -- Function `NewDepartmentListResultPage` parameter(s) have been changed from `(func(context.Context, DepartmentListResult) (DepartmentListResult, error))` to `(DepartmentListResult, func(context.Context, DepartmentListResult) (DepartmentListResult, error))` -- Function `NewProfileListResultPage` parameter(s) have been changed from `(func(context.Context, ProfileListResult) (ProfileListResult, error))` to `(ProfileListResult, func(context.Context, ProfileListResult) (ProfileListResult, error))` -- Function `NewInvoiceSectionListResultPage` parameter(s) have been changed from `(func(context.Context, InvoiceSectionListResult) (InvoiceSectionListResult, error))` to `(InvoiceSectionListResult, func(context.Context, InvoiceSectionListResult) (InvoiceSectionListResult, error))` -- Function `NewPaymentMethodsListResultPage` parameter(s) have been changed from `(func(context.Context, PaymentMethodsListResult) (PaymentMethodsListResult, error))` to `(PaymentMethodsListResult, func(context.Context, PaymentMethodsListResult) (PaymentMethodsListResult, error))` -- Function `NewAccountListResultPage` parameter(s) have been changed from `(func(context.Context, AccountListResult) (AccountListResult, error))` to `(AccountListResult, func(context.Context, AccountListResult) (AccountListResult, error))` -- Function `NewCustomerListResultPage` parameter(s) have been changed from `(func(context.Context, CustomerListResult) (CustomerListResult, error))` to `(CustomerListResult, func(context.Context, CustomerListResult) (CustomerListResult, error))` -- Function `NewSubscriptionsListResultPage` parameter(s) have been changed from `(func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error))` to `(SubscriptionsListResult, func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error))` -- Function `NewTransactionsListResultPage` parameter(s) have been changed from `(func(context.Context, TransactionsListResult) (TransactionsListResult, error))` to `(TransactionsListResult, func(context.Context, TransactionsListResult) (TransactionsListResult, error))` -- Function `NewInvoiceListResultPage` parameter(s) have been changed from `(func(context.Context, InvoiceListResult) (InvoiceListResult, error))` to `(InvoiceListResult, func(context.Context, InvoiceListResult) (InvoiceListResult, error))` -- Function `NewTransferDetailsListResultPage` parameter(s) have been changed from `(func(context.Context, TransferDetailsListResult) (TransferDetailsListResult, error))` to `(TransferDetailsListResult, func(context.Context, TransferDetailsListResult) (TransferDetailsListResult, error))` -- Function `NewAgreementListResultPage` parameter(s) have been changed from `(func(context.Context, AgreementListResult) (AgreementListResult, error))` to `(AgreementListResult, func(context.Context, AgreementListResult) (AgreementListResult, error))` -- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go index f18472b539ae..dce2c090c98c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/accounts.go @@ -153,6 +153,7 @@ func (client AccountsClient) List(ctx context.Context, expand string) (result Ac } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -211,7 +212,6 @@ func (client AccountsClient) listNextResults(ctx context.Context, lastResults Ac result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go index fd58abb31e89..9bdaaa7c47e1 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/agreements.go @@ -156,6 +156,7 @@ func (client AgreementsClient) ListByBillingAccountName(ctx context.Context, bil } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -218,7 +219,6 @@ func (client AgreementsClient) listByBillingAccountNameNextResults(ctx context.C result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go index 598033dc1a9e..843ea6888f02 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/customers.go @@ -160,6 +160,7 @@ func (client CustomersClient) ListByBillingAccountName(ctx context.Context, bill } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -225,7 +226,6 @@ func (client CustomersClient) listByBillingAccountNameNextResults(ctx context.Co result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go index a8858db1c6e8..192c86d6d731 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/departments.go @@ -163,6 +163,7 @@ func (client DepartmentsClient) ListByBillingAccountName(ctx context.Context, bi } if result.dlr.hasNextLink() && result.dlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -228,7 +229,6 @@ func (client DepartmentsClient) listByBillingAccountNameNextResults(ctx context. result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.DepartmentsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go index ff283980d8db..bc1ea8ff2bc1 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/enrollmentaccounts.go @@ -164,6 +164,7 @@ func (client EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Cont } if result.ealr.hasNextLink() && result.ealr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -229,7 +230,6 @@ func (client EnrollmentAccountsClient) listByBillingAccountNameNextResults(ctx c result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go index acadc1daa99f..b1bb17f5d739 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoices.go @@ -155,6 +155,7 @@ func (client InvoicesClient) ListByBillingAccountName(ctx context.Context, billi } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -216,7 +217,6 @@ func (client InvoicesClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -275,6 +275,7 @@ func (client InvoicesClient) ListByBillingProfile(ctx context.Context, billingAc } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -337,7 +338,6 @@ func (client InvoicesClient) listByBillingProfileNextResults(ctx context.Context result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go index a9e429c8bfd7..c82574b41044 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/invoicesections.go @@ -376,6 +376,7 @@ func (client InvoiceSectionsClient) ListByBillingProfileName(ctx context.Context } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -436,7 +437,6 @@ func (client InvoiceSectionsClient) listByBillingProfileNameNextResults(ctx cont result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -493,6 +493,7 @@ func (client InvoiceSectionsClient) ListByCreateSubscriptionPermission(ctx conte } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -555,7 +556,6 @@ func (client InvoiceSectionsClient) listByCreateSubscriptionPermissionNextResult result, err = client.ListByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByCreateSubscriptionPermissionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go index eeb9e1ec5fad..142f6b5b046a 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -129,7 +130,6 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go index ff8aadbfda1c..ab0a8dfa2267 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go @@ -76,6 +76,7 @@ func (client PaymentMethodsClient) ListByBillingAccountName(ctx context.Context, } if result.pmlr.hasNextLink() && result.pmlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -135,7 +136,6 @@ func (client PaymentMethodsClient) listByBillingAccountNameNextResults(ctx conte result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -192,6 +192,7 @@ func (client PaymentMethodsClient) ListByBillingProfileName(ctx context.Context, } if result.pmlr.hasNextLink() && result.pmlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -252,7 +253,6 @@ func (client PaymentMethodsClient) listByBillingProfileNameNextResults(ctx conte result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PaymentMethodsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go index 9f0d5240a27e..f761d920884f 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/products.go @@ -156,6 +156,7 @@ func (client ProductsClient) ListByBillingAccountName(ctx context.Context, billi } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -218,7 +219,6 @@ func (client ProductsClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -278,6 +278,7 @@ func (client ProductsClient) ListByInvoiceSectionName(ctx context.Context, billi } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -341,7 +342,6 @@ func (client ProductsClient) listByInvoiceSectionNameNextResults(ctx context.Con result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go index bcb1009589e6..ee2a18848245 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/profiles.go @@ -231,6 +231,7 @@ func (client ProfilesClient) ListByBillingAccountName(ctx context.Context, billi } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -293,7 +294,6 @@ func (client ProfilesClient) listByBillingAccountNameNextResults(ctx context.Con result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go index 34bb42e59029..844121f81c6c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/recipienttransfers.go @@ -279,6 +279,7 @@ func (client RecipientTransfersClient) List(ctx context.Context) (result Recipie } if result.rtdlr.hasNextLink() && result.rtdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -328,7 +329,6 @@ func (client RecipientTransfersClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RecipientTransfersClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go index 70d6d910df7c..840483a74a4c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/subscriptions.go @@ -230,6 +230,7 @@ func (client SubscriptionsClient) ListByBillingAccountName(ctx context.Context, } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -289,7 +290,6 @@ func (client SubscriptionsClient) listByBillingAccountNameNextResults(ctx contex result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -346,6 +346,7 @@ func (client SubscriptionsClient) ListByBillingProfileName(ctx context.Context, } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -406,7 +407,6 @@ func (client SubscriptionsClient) listByBillingProfileNameNextResults(ctx contex result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -463,6 +463,7 @@ func (client SubscriptionsClient) ListByCustomerName(ctx context.Context, billin } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -523,7 +524,6 @@ func (client SubscriptionsClient) listByCustomerNameNextResults(ctx context.Cont result, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByCustomerNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -580,6 +580,7 @@ func (client SubscriptionsClient) ListByInvoiceSectionName(ctx context.Context, } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -640,7 +641,6 @@ func (client SubscriptionsClient) listByInvoiceSectionNameNextResults(ctx contex result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go index 1a7b4fa32380..b07f9cae51d5 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/transactions.go @@ -81,6 +81,7 @@ func (client TransactionsClient) ListByBillingAccountName(ctx context.Context, b } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -145,7 +146,6 @@ func (client TransactionsClient) listByBillingAccountNameNextResults(ctx context result, err = client.ListByBillingAccountNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByBillingAccountNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -207,6 +207,7 @@ func (client TransactionsClient) ListByBillingProfileName(ctx context.Context, b } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -272,7 +273,6 @@ func (client TransactionsClient) listByBillingProfileNameNextResults(ctx context result, err = client.ListByBillingProfileNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByBillingProfileNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -334,6 +334,7 @@ func (client TransactionsClient) ListByCustomerName(ctx context.Context, billing } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -399,7 +400,6 @@ func (client TransactionsClient) listByCustomerNameNextResults(ctx context.Conte result, err = client.ListByCustomerNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByCustomerNameNextResults", resp, "Failure responding to next results request") - return } return } @@ -461,6 +461,7 @@ func (client TransactionsClient) ListByInvoiceSectionName(ctx context.Context, b } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -526,7 +527,6 @@ func (client TransactionsClient) listByInvoiceSectionNameNextResults(ctx context result, err = client.ListByInvoiceSectionNameResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByInvoiceSectionNameNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go index 44d540c00434..64867e698b90 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/transfers.go @@ -291,6 +291,7 @@ func (client TransfersClient) List(ctx context.Context, billingAccountName strin } if result.tdlr.hasNextLink() && result.tdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -345,7 +346,6 @@ func (client TransfersClient) listNextResults(ctx context.Context, lastResults T result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransfersClient", "listNextResults", resp, "Failure responding to next results request") - return } return }