diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md b/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md deleted file mode 100644 index 911ba19513e4..000000000000 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/CHANGELOG.md +++ /dev/null @@ -1,94 +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 `NewProductsListResultPage` parameter(s) have been changed from `(func(context.Context, ProductsListResult) (ProductsListResult, error))` to `(ProductsListResult, func(context.Context, ProductsListResult) (ProductsListResult, error))` -- Function `NewPermissionsListResultPage` parameter(s) have been changed from `(func(context.Context, PermissionsListResult) (PermissionsListResult, error))` to `(PermissionsListResult, func(context.Context, PermissionsListResult) (PermissionsListResult, error))` -- Function `NewInvoiceSectionListResultPage` parameter(s) have been changed from `(func(context.Context, InvoiceSectionListResult) (InvoiceSectionListResult, error))` to `(InvoiceSectionListResult, func(context.Context, InvoiceSectionListResult) (InvoiceSectionListResult, error))` -- Function `NewPoliciesClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` -- Function `NewPoliciesClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewAccountsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewProfilesClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewOperationsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewAgreementListResultPage` parameter(s) have been changed from `(func(context.Context, AgreementListResult) (AgreementListResult, error))` to `(AgreementListResult, func(context.Context, AgreementListResult) (AgreementListResult, error))` -- Function `NewTransactionListResultPage` parameter(s) have been changed from `(func(context.Context, TransactionListResult) (TransactionListResult, error))` to `(TransactionListResult, func(context.Context, TransactionListResult) (TransactionListResult, error))` -- Function `NewPermissionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewRoleDefinitionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewProductsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewCustomersClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewProfileListResultPage` parameter(s) have been changed from `(func(context.Context, ProfileListResult) (ProfileListResult, error))` to `(ProfileListResult, func(context.Context, ProfileListResult) (ProfileListResult, error))` -- Function `NewEnrollmentAccountsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewRoleDefinitionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewInstructionListResultPage` parameter(s) have been changed from `(func(context.Context, InstructionListResult) (InstructionListResult, error))` to `(InstructionListResult, func(context.Context, InstructionListResult) (InstructionListResult, error))` -- Function `NewProfilesClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewSubscriptionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewOperationsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewSubscriptionsListResultPage` parameter(s) have been changed from `(func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error))` to `(SubscriptionsListResult, func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error))` -- Function `NewAgreementsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewInvoiceListResultPage` parameter(s) have been changed from `(func(context.Context, InvoiceListResult) (InvoiceListResult, error))` to `(InvoiceListResult, func(context.Context, InvoiceListResult) (InvoiceListResult, error))` -- Function `NewRoleAssignmentsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewTransactionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewRoleAssignmentsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewSubscriptionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewTransactionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewEnrollmentAccountListResultPage` parameter(s) have been changed from `(func(context.Context, EnrollmentAccountListResult) (EnrollmentAccountListResult, error))` to `(EnrollmentAccountListResult, func(context.Context, EnrollmentAccountListResult) (EnrollmentAccountListResult, error))` -- Function `NewInvoiceSectionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewRoleAssignmentListResultPage` parameter(s) have been changed from `(func(context.Context, RoleAssignmentListResult) (RoleAssignmentListResult, error))` to `(RoleAssignmentListResult, func(context.Context, RoleAssignmentListResult) (RoleAssignmentListResult, error))` -- Function `NewPermissionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewEnrollmentAccountsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewAccountsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewInvoicesClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewCustomersClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewAvailableBalancesClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewRoleDefinitionListResultPage` parameter(s) have been changed from `(func(context.Context, RoleDefinitionListResult) (RoleDefinitionListResult, error))` to `(RoleDefinitionListResult, func(context.Context, RoleDefinitionListResult) (RoleDefinitionListResult, error))` -- Function `NewInvoiceSectionListWithCreateSubPermissionResultPage` parameter(s) have been changed from `(func(context.Context, InvoiceSectionListWithCreateSubPermissionResult) (InvoiceSectionListWithCreateSubPermissionResult, error))` to `(InvoiceSectionListWithCreateSubPermissionResult, func(context.Context, InvoiceSectionListWithCreateSubPermissionResult) (InvoiceSectionListWithCreateSubPermissionResult, error))` -- Function `NewAgreementsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewAvailableBalancesClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewPropertyClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `New` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewProductsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewInvoicesClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewPropertyClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewAddressClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewInstructionsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewPeriodsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewCustomerListResultPage` parameter(s) have been changed from `(func(context.Context, CustomerListResult) (CustomerListResult, error))` to `(CustomerListResult, func(context.Context, CustomerListResult) (CustomerListResult, error))` -- Function `NewAddressClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewPeriodsClient` parameter(s) have been changed from `(string, string)` to `(string)` -- Function `NewInstructionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewAccountListResultPage` parameter(s) have been changed from `(func(context.Context, AccountListResult) (AccountListResult, error))` to `(AccountListResult, func(context.Context, AccountListResult) (AccountListResult, error))` -- Function `NewInvoiceSectionsClientWithBaseURI` parameter(s) have been changed from `(string, string, string)` to `(string, string)` -- Function `NewPeriodsListResultPage` parameter(s) have been changed from `(func(context.Context, PeriodsListResult) (PeriodsListResult, error))` to `(PeriodsListResult, func(context.Context, PeriodsListResult) (PeriodsListResult, error))` -- Field `SubscriptionID1` of struct `BaseClient` has been removed - -## New Content - -- New const `InvoiceDocumentTypeInvoice` -- New const `InvoiceDocumentTypeCreditNote` -- New const `Void` -- New function `*InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture.Result(InvoicesClient) (DownloadURL, error)` -- New function `InvoicesClient.DownloadMultipleBillingProfileInvoicesResponder(*http.Response) (DownloadURL, error)` -- New function `InvoicesClient.DownloadMultipleBillingSubscriptionInvoicesPreparer(context.Context, []string) (*http.Request, error)` -- New function `InvoicesClient.DownloadMultipleBillingProfileInvoices(context.Context, string, []string) (InvoicesDownloadMultipleBillingProfileInvoicesFuture, error)` -- New function `InvoicesClient.DownloadMultipleBillingSubscriptionInvoicesResponder(*http.Response) (DownloadURL, error)` -- New function `InvoicesClient.DownloadMultipleBillingSubscriptionInvoices(context.Context, []string) (InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture, error)` -- New function `InvoicesClient.DownloadMultipleBillingSubscriptionInvoicesSender(*http.Request) (InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture, error)` -- New function `InvoicesClient.DownloadMultipleBillingProfileInvoicesSender(*http.Request) (InvoicesDownloadMultipleBillingProfileInvoicesFuture, error)` -- New function `InvoicesClient.DownloadMultipleBillingProfileInvoicesPreparer(context.Context, string, []string) (*http.Request, error)` -- New function `RebillDetails.MarshalJSON() ([]byte, error)` -- New function `InvoiceProperties.MarshalJSON() ([]byte, error)` -- New function `*InvoicesDownloadMultipleBillingProfileInvoicesFuture.Result(InvoicesClient) (DownloadURL, error)` -- New function `PossibleInvoiceDocumentTypeValues() []InvoiceDocumentType` -- New struct `ErrorSubDetailsItem` -- New struct `InvoicesDownloadMultipleBillingProfileInvoicesFuture` -- New struct `InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture` -- New struct `RebillDetails` -- New field `RebillDetails` in struct `InvoiceProperties` -- New field `BilledDocumentID` in struct `InvoiceProperties` -- New field `CreditForDocumentID` in struct `InvoiceProperties` -- New field `DocumentType` in struct `InvoiceProperties` -- New field `Details` in struct `ErrorDetails` diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go index 4e8aea4241c3..8ae3170d9fef 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/accounts.go +++ b/services/preview/billing/mgmt/2020-05-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 } @@ -269,6 +269,7 @@ func (client AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(c } if result.islwcspr.hasNextLink() && result.islwcspr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -328,7 +329,6 @@ func (client AccountsClient) listInvoiceSectionsByCreateSubscriptionPermissionNe result, err = client.ListInvoiceSectionsByCreateSubscriptionPermissionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AccountsClient", "listInvoiceSectionsByCreateSubscriptionPermissionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go index 97b676a59e74..89f63e6d1839 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/agreements.go @@ -156,6 +156,7 @@ func (client AgreementsClient) ListByBillingAccount(ctx context.Context, billing } if result.alr.hasNextLink() && result.alr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -218,7 +219,6 @@ func (client AgreementsClient) listByBillingAccountNextResults(ctx context.Conte result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.AgreementsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go index 24145efb3d7c..2f52a3029d4c 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/customers.go @@ -160,6 +160,7 @@ func (client CustomersClient) ListByBillingAccount(ctx context.Context, billingA } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -225,7 +226,6 @@ func (client CustomersClient) listByBillingAccountNextResults(ctx context.Contex result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -286,6 +286,7 @@ func (client CustomersClient) ListByBillingProfile(ctx context.Context, billingA } if result.clr.hasNextLink() && result.clr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -352,7 +353,6 @@ func (client CustomersClient) listByBillingProfileNextResults(ctx context.Contex result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.CustomersClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go index e99fbe68a0e8..1f74dce4ee6e 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/enrollmentaccounts.go @@ -148,6 +148,7 @@ func (client EnrollmentAccountsClient) List(ctx context.Context) (result Enrollm } if result.ealr.hasNextLink() && result.ealr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -203,7 +204,6 @@ func (client EnrollmentAccountsClient) listNextResults(ctx context.Context, last result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.EnrollmentAccountsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/enums.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/enums.go index cb726b1a1bf5..aaab0cacdef5 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/enums.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/enums.go @@ -539,18 +539,42 @@ func PossibleSubscriptionStatusTypeValues() []SubscriptionStatusType { type SubscriptionTransferValidationErrorCode string const ( + // SubscriptionTransferValidationErrorCodeBillingAccountInactive ... + SubscriptionTransferValidationErrorCodeBillingAccountInactive SubscriptionTransferValidationErrorCode = "BillingAccountInactive" // SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed ... SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed SubscriptionTransferValidationErrorCode = "CrossBillingAccountNotAllowed" + // SubscriptionTransferValidationErrorCodeDestinationBillingProfileInactive ... + SubscriptionTransferValidationErrorCodeDestinationBillingProfileInactive SubscriptionTransferValidationErrorCode = "DestinationBillingProfileInactive" + // SubscriptionTransferValidationErrorCodeDestinationBillingProfileNotFound ... + SubscriptionTransferValidationErrorCodeDestinationBillingProfileNotFound SubscriptionTransferValidationErrorCode = "DestinationBillingProfileNotFound" // SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue ... SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue SubscriptionTransferValidationErrorCode = "DestinationBillingProfilePastDue" + // SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionInactive ... + SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionInactive SubscriptionTransferValidationErrorCode = "DestinationInvoiceSectionInactive" + // SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionNotFound ... + SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionNotFound SubscriptionTransferValidationErrorCode = "DestinationInvoiceSectionNotFound" // SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination ... SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnDestination" // SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource ... SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnSource" + // SubscriptionTransferValidationErrorCodeInvalidDestination ... + SubscriptionTransferValidationErrorCodeInvalidDestination SubscriptionTransferValidationErrorCode = "InvalidDestination" // SubscriptionTransferValidationErrorCodeInvalidSource ... SubscriptionTransferValidationErrorCodeInvalidSource SubscriptionTransferValidationErrorCode = "InvalidSource" + // SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination ... + SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination SubscriptionTransferValidationErrorCode = "MarketplaceNotEnabledOnDestination" // SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket ... SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket SubscriptionTransferValidationErrorCode = "NotAvailableForDestinationMarket" + // SubscriptionTransferValidationErrorCodeProductInactive ... + SubscriptionTransferValidationErrorCodeProductInactive SubscriptionTransferValidationErrorCode = "ProductInactive" + // SubscriptionTransferValidationErrorCodeProductNotFound ... + SubscriptionTransferValidationErrorCodeProductNotFound SubscriptionTransferValidationErrorCode = "ProductNotFound" + // SubscriptionTransferValidationErrorCodeProductTypeNotSupported ... + SubscriptionTransferValidationErrorCodeProductTypeNotSupported SubscriptionTransferValidationErrorCode = "ProductTypeNotSupported" + // SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue ... + SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue SubscriptionTransferValidationErrorCode = "SourceBillingProfilePastDue" + // SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive ... + SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive SubscriptionTransferValidationErrorCode = "SourceInvoiceSectionInactive" // SubscriptionTransferValidationErrorCodeSubscriptionNotActive ... SubscriptionTransferValidationErrorCodeSubscriptionNotActive SubscriptionTransferValidationErrorCode = "SubscriptionNotActive" // SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported ... @@ -559,7 +583,7 @@ const ( // PossibleSubscriptionTransferValidationErrorCodeValues returns an array of possible values for the SubscriptionTransferValidationErrorCode const type. func PossibleSubscriptionTransferValidationErrorCodeValues() []SubscriptionTransferValidationErrorCode { - return []SubscriptionTransferValidationErrorCode{SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed, SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue, SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination, SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource, SubscriptionTransferValidationErrorCodeInvalidSource, SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket, SubscriptionTransferValidationErrorCodeSubscriptionNotActive, SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported} + return []SubscriptionTransferValidationErrorCode{SubscriptionTransferValidationErrorCodeBillingAccountInactive, SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed, SubscriptionTransferValidationErrorCodeDestinationBillingProfileInactive, SubscriptionTransferValidationErrorCodeDestinationBillingProfileNotFound, SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue, SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionInactive, SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionNotFound, SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination, SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource, SubscriptionTransferValidationErrorCodeInvalidDestination, SubscriptionTransferValidationErrorCodeInvalidSource, SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination, SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket, SubscriptionTransferValidationErrorCodeProductInactive, SubscriptionTransferValidationErrorCodeProductNotFound, SubscriptionTransferValidationErrorCodeProductTypeNotSupported, SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue, SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive, SubscriptionTransferValidationErrorCodeSubscriptionNotActive, SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported} } // TargetCloud enumerates the values for target cloud. diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go index d1e3f24fea7f..a110c884f4ef 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/instructions.go @@ -156,6 +156,7 @@ func (client InstructionsClient) ListByBillingProfile(ctx context.Context, billi } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -216,7 +217,6 @@ func (client InstructionsClient) listByBillingProfileNextResults(ctx context.Con result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InstructionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go index 4d8de4224ab8..554eb0d826d5 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoices.go @@ -620,6 +620,7 @@ func (client InvoicesClient) ListByBillingAccount(ctx context.Context, billingAc } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -681,7 +682,6 @@ func (client InvoicesClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -741,6 +741,7 @@ func (client InvoicesClient) ListByBillingProfile(ctx context.Context, billingAc } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -803,7 +804,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 } @@ -860,6 +860,7 @@ func (client InvoicesClient) ListByBillingSubscription(ctx context.Context, peri } if result.ilr.hasNextLink() && result.ilr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -921,7 +922,6 @@ func (client InvoicesClient) listByBillingSubscriptionNextResults(ctx context.Co result, err = client.ListByBillingSubscriptionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoicesClient", "listByBillingSubscriptionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go index 80c7a97c8bdd..241e8c9dbbf6 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/invoicesections.go @@ -236,6 +236,7 @@ func (client InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, bi } if result.islr.hasNextLink() && result.islr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -296,7 +297,6 @@ func (client InvoiceSectionsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.InvoiceSectionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go index 74ec3887f7a2..1e05fcc48ae2 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/models.go @@ -5536,7 +5536,7 @@ func (vpter ValidateProductTransferEligibilityResult) MarshalJSON() ([]byte, err // ValidateSubscriptionTransferEligibilityError error details of the transfer eligibility validation type ValidateSubscriptionTransferEligibilityError struct { - // Code - Error code for the product transfer validation. Possible values include: 'SubscriptionTransferValidationErrorCodeInvalidSource', 'SubscriptionTransferValidationErrorCodeSubscriptionNotActive', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination', 'SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue', 'SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported', 'SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed', 'SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket' + // Code - Error code for the product transfer validation. Possible values include: 'SubscriptionTransferValidationErrorCodeBillingAccountInactive', 'SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed', 'SubscriptionTransferValidationErrorCodeDestinationBillingProfileInactive', 'SubscriptionTransferValidationErrorCodeDestinationBillingProfileNotFound', 'SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue', 'SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionInactive', 'SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionNotFound', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource', 'SubscriptionTransferValidationErrorCodeInvalidDestination', 'SubscriptionTransferValidationErrorCodeInvalidSource', 'SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination', 'SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket', 'SubscriptionTransferValidationErrorCodeProductInactive', 'SubscriptionTransferValidationErrorCodeProductNotFound', 'SubscriptionTransferValidationErrorCodeProductTypeNotSupported', 'SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue', 'SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive', 'SubscriptionTransferValidationErrorCodeSubscriptionNotActive', 'SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported' Code SubscriptionTransferValidationErrorCode `json:"code,omitempty"` // Message - The error message. Message *string `json:"message,omitempty"` diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go index 97c88786820a..6d7ccbbc3495 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2020-05-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/2020-05-01-preview/billing/periods.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go index de1d8ec737f6..f402c0f0d873 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/periods.go @@ -168,6 +168,7 @@ func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken s } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -236,7 +237,6 @@ func (client PeriodsClient) listNextResults(ctx context.Context, lastResults Per result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PeriodsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go index 6f9328048e3d..e441a70cffbe 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/permissions.go @@ -76,6 +76,7 @@ func (client PermissionsClient) ListByBillingAccount(ctx context.Context, billin } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -135,7 +136,6 @@ func (client PermissionsClient) listByBillingAccountNextResults(ctx context.Cont result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -192,6 +192,7 @@ func (client PermissionsClient) ListByBillingProfile(ctx context.Context, billin } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -252,7 +253,6 @@ func (client PermissionsClient) listByBillingProfileNextResults(ctx context.Cont result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } @@ -309,6 +309,7 @@ func (client PermissionsClient) ListByCustomer(ctx context.Context, billingAccou } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -369,7 +370,6 @@ func (client PermissionsClient) listByCustomerNextResults(ctx context.Context, l result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") - return } return } @@ -427,6 +427,7 @@ func (client PermissionsClient) ListByInvoiceSections(ctx context.Context, billi } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -488,7 +489,6 @@ func (client PermissionsClient) listByInvoiceSectionsNextResults(ctx context.Con result, err = client.ListByInvoiceSectionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.PermissionsClient", "listByInvoiceSectionsNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go index edd8f2498d38..4594919d7931 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/products.go @@ -157,6 +157,7 @@ func (client ProductsClient) ListByBillingAccount(ctx context.Context, billingAc } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -219,7 +220,6 @@ func (client ProductsClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -281,6 +281,7 @@ func (client ProductsClient) ListByBillingProfile(ctx context.Context, billingAc } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -344,7 +345,6 @@ func (client ProductsClient) listByBillingProfileNextResults(ctx context.Context result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } @@ -402,6 +402,7 @@ func (client ProductsClient) ListByCustomer(ctx context.Context, billingAccountN } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -462,7 +463,6 @@ func (client ProductsClient) listByCustomerNextResults(ctx context.Context, last result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") - return } return } @@ -524,6 +524,7 @@ func (client ProductsClient) ListByInvoiceSection(ctx context.Context, billingAc } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -588,7 +589,6 @@ func (client ProductsClient) listByInvoiceSectionNextResults(ctx context.Context result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProductsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go index ad5d1b40222d..5d382d9eb901 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/profiles.go @@ -248,6 +248,7 @@ func (client ProfilesClient) ListByBillingAccount(ctx context.Context, billingAc } if result.plr.hasNextLink() && result.plr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -310,7 +311,6 @@ func (client ProfilesClient) listByBillingAccountNextResults(ctx context.Context result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.ProfilesClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go index de3b0eb726a1..12d8403665a7 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/roleassignments.go @@ -545,6 +545,7 @@ func (client RoleAssignmentsClient) ListByBillingAccount(ctx context.Context, bi } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -604,7 +605,6 @@ func (client RoleAssignmentsClient) listByBillingAccountNextResults(ctx context. result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -662,6 +662,7 @@ func (client RoleAssignmentsClient) ListByBillingProfile(ctx context.Context, bi } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -722,7 +723,6 @@ func (client RoleAssignmentsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } @@ -781,6 +781,7 @@ func (client RoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, bi } if result.ralr.hasNextLink() && result.ralr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -842,7 +843,6 @@ func (client RoleAssignmentsClient) listByInvoiceSectionNextResults(ctx context. result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleAssignmentsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go index 6c10bbb9f5ae..1fc9fa886a6e 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/roledefinitions.go @@ -311,6 +311,7 @@ func (client RoleDefinitionsClient) ListByBillingAccount(ctx context.Context, bi } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -370,7 +371,6 @@ func (client RoleDefinitionsClient) listByBillingAccountNextResults(ctx context. result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -428,6 +428,7 @@ func (client RoleDefinitionsClient) ListByBillingProfile(ctx context.Context, bi } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -488,7 +489,6 @@ func (client RoleDefinitionsClient) listByBillingProfileNextResults(ctx context. result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } @@ -547,6 +547,7 @@ func (client RoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, bi } if result.rdlr.hasNextLink() && result.rdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -608,7 +609,6 @@ func (client RoleDefinitionsClient) listByInvoiceSectionNextResults(ctx context. result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.RoleDefinitionsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go index 79addcd3bf6b..16fb1f41b67c 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/subscriptions.go @@ -153,6 +153,7 @@ func (client SubscriptionsClient) ListByBillingAccount(ctx context.Context, bill } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -212,7 +213,6 @@ func (client SubscriptionsClient) listByBillingAccountNextResults(ctx context.Co result, err = client.ListByBillingAccountResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingAccountNextResults", resp, "Failure responding to next results request") - return } return } @@ -270,6 +270,7 @@ func (client SubscriptionsClient) ListByBillingProfile(ctx context.Context, bill } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -330,7 +331,6 @@ func (client SubscriptionsClient) listByBillingProfileNextResults(ctx context.Co result, err = client.ListByBillingProfileResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByBillingProfileNextResults", resp, "Failure responding to next results request") - return } return } @@ -388,6 +388,7 @@ func (client SubscriptionsClient) ListByCustomer(ctx context.Context, billingAcc } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -448,7 +449,6 @@ func (client SubscriptionsClient) listByCustomerNextResults(ctx context.Context, result, err = client.ListByCustomerResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByCustomerNextResults", resp, "Failure responding to next results request") - return } return } @@ -507,6 +507,7 @@ func (client SubscriptionsClient) ListByInvoiceSection(ctx context.Context, bill } if result.slr.hasNextLink() && result.slr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -568,7 +569,6 @@ func (client SubscriptionsClient) listByInvoiceSectionNextResults(ctx context.Co result, err = client.ListByInvoiceSectionResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.SubscriptionsClient", "listByInvoiceSectionNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go b/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go index c9de9f93dd6f..f9f50ec3e341 100644 --- a/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go +++ b/services/preview/billing/mgmt/2020-05-01-preview/billing/transactions.go @@ -78,6 +78,7 @@ func (client TransactionsClient) ListByInvoice(ctx context.Context, billingAccou } if result.tlr.hasNextLink() && result.tlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -138,7 +139,6 @@ func (client TransactionsClient) listByInvoiceNextResults(ctx context.Context, l result, err = client.ListByInvoiceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "billing.TransactionsClient", "listByInvoiceNextResults", resp, "Failure responding to next results request") - return } return }