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 7e45f49a24f4..22eb553e2867 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 @@ -110,7 +110,6 @@ func (client AccountsClient) GetSender(req *http.Request) (*http.Response, error func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -183,7 +182,6 @@ func (client AccountsClient) ListSender(req *http.Request) (*http.Response, erro func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -296,7 +294,6 @@ func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpd func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go index 522506d018de..88271853f083 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/addresses.go @@ -102,7 +102,6 @@ func (client AddressesClient) ValidateSender(req *http.Request) (*http.Response, func (client AddressesClient) ValidateResponder(resp *http.Response) (result ValidateAddressResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 325a98b4b203..ff8d458f558f 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 @@ -112,7 +112,6 @@ func (client AgreementsClient) GetSender(req *http.Request) (*http.Response, err func (client AgreementsClient) GetResponder(resp *http.Response) (result Agreement, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -190,7 +189,6 @@ func (client AgreementsClient) ListByBillingAccountNameSender(req *http.Request) func (client AgreementsClient) ListByBillingAccountNameResponder(resp *http.Response) (result AgreementListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go index 097e4b49bbac..e07180d36044 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/availablebalances.go @@ -109,7 +109,6 @@ func (client AvailableBalancesClient) GetByBillingProfileSender(req *http.Reques func (client AvailableBalancesClient) GetByBillingProfileResponder(resp *http.Response) (result AvailableBalance, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 16115ef10b3e..7f249e3f6909 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 @@ -112,7 +112,6 @@ func (client CustomersClient) GetSender(req *http.Request) (*http.Response, erro func (client CustomersClient) GetResponder(resp *http.Response) (result Customer, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -197,7 +196,6 @@ func (client CustomersClient) ListByBillingAccountNameSender(req *http.Request) func (client CustomersClient) ListByBillingAccountNameResponder(resp *http.Response) (result CustomerListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 160442f419a3..0731197e4c9c 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 @@ -117,7 +117,6 @@ func (client DepartmentsClient) GetSender(req *http.Request) (*http.Response, er func (client DepartmentsClient) GetResponder(resp *http.Response) (result Department, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -200,7 +199,6 @@ func (client DepartmentsClient) ListByBillingAccountNameSender(req *http.Request func (client DepartmentsClient) ListByBillingAccountNameResponder(resp *http.Response) (result DepartmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 6340a69052bc..71a194f1b410 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 @@ -118,7 +118,6 @@ func (client EnrollmentAccountsClient) GetByEnrollmentAccountIDSender(req *http. func (client EnrollmentAccountsClient) GetByEnrollmentAccountIDResponder(resp *http.Response) (result EnrollmentAccount, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -201,7 +200,6 @@ func (client EnrollmentAccountsClient) ListByBillingAccountNameSender(req *http. func (client EnrollmentAccountsClient) ListByBillingAccountNameResponder(resp *http.Response) (result EnrollmentAccountListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 8190bc070578..affe1d06b29f 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 @@ -110,7 +110,6 @@ func (client InvoicesClient) GetSender(req *http.Request) (*http.Response, error func (client InvoicesClient) GetResponder(resp *http.Response) (result InvoiceSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -188,7 +187,6 @@ func (client InvoicesClient) ListByBillingAccountNameSender(req *http.Request) ( func (client InvoicesClient) ListByBillingAccountNameResponder(resp *http.Response) (result InvoiceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -305,7 +303,6 @@ func (client InvoicesClient) ListByBillingProfileSender(req *http.Request) (*htt func (client InvoicesClient) ListByBillingProfileResponder(resp *http.Response) (result InvoiceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 5c6d9271cb0e..5076752e8269 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 @@ -109,7 +109,6 @@ func (client InvoiceSectionsClient) CreateSender(req *http.Request) (future Invo func (client InvoiceSectionsClient) CreateResponder(resp *http.Response) (result InvoiceSection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -178,7 +177,6 @@ func (client InvoiceSectionsClient) ElevateToBillingProfileSender(req *http.Requ func (client InvoiceSectionsClient) ElevateToBillingProfileResponder(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 @@ -256,7 +254,6 @@ func (client InvoiceSectionsClient) GetSender(req *http.Request) (*http.Response func (client InvoiceSectionsClient) GetResponder(resp *http.Response) (result InvoiceSection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -333,7 +330,6 @@ func (client InvoiceSectionsClient) ListByBillingAccountNameSender(req *http.Req func (client InvoiceSectionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result InvoiceSectionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -409,7 +405,6 @@ func (client InvoiceSectionsClient) ListByBillingProfileNameSender(req *http.Req func (client InvoiceSectionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result InvoiceSectionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -524,7 +519,6 @@ func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionSender(req func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionResponder(resp *http.Response) (result InvoiceSectionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -639,7 +633,6 @@ func (client InvoiceSectionsClient) UpdateSender(req *http.Request) (future Invo func (client InvoiceSectionsClient) UpdateResponder(resp *http.Response) (result InvoiceSection, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go index 510e07b3c04b..2fb93f37adfe 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/lineofcredits.go @@ -104,7 +104,6 @@ func (client LineOfCreditsClient) GetSender(req *http.Request) (*http.Response, func (client LineOfCreditsClient) GetResponder(resp *http.Response) (result LineOfCredit, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -179,7 +178,6 @@ func (client LineOfCreditsClient) UpdateSender(req *http.Request) (future LineOf func (client LineOfCreditsClient) UpdateResponder(resp *http.Response) (result LineOfCredit, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 e144794c4a5f..d06ca7717f73 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 @@ -101,7 +101,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/paymentmethods.go index c74e4b004519..7543525198da 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 @@ -107,7 +107,6 @@ func (client PaymentMethodsClient) ListByBillingAccountNameSender(req *http.Requ func (client PaymentMethodsClient) ListByBillingAccountNameResponder(resp *http.Response) (result PaymentMethodsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -220,7 +219,6 @@ func (client PaymentMethodsClient) ListByBillingProfileNameSender(req *http.Requ func (client PaymentMethodsClient) ListByBillingProfileNameResponder(resp *http.Response) (result PaymentMethodsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go index 457349532861..e069c8f3189c 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/permissions.go @@ -106,7 +106,6 @@ func (client PermissionsClient) ListByBillingAccountSender(req *http.Request) (* func (client PermissionsClient) ListByBillingAccountResponder(resp *http.Response) (result PermissionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -181,7 +180,6 @@ func (client PermissionsClient) ListByBillingProfileSender(req *http.Request) (* func (client PermissionsClient) ListByBillingProfileResponder(resp *http.Response) (result PermissionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -256,7 +254,6 @@ func (client PermissionsClient) ListByCustomersSender(req *http.Request) (*http. func (client PermissionsClient) ListByCustomersResponder(resp *http.Response) (result PermissionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -331,7 +328,6 @@ func (client PermissionsClient) ListByInvoiceSectionsSender(req *http.Request) ( func (client PermissionsClient) ListByInvoiceSectionsResponder(resp *http.Response) (result PermissionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go index e9b8ef9b8b28..5cff396ddb7d 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/policies.go @@ -108,7 +108,6 @@ func (client PoliciesClient) GetByBillingProfileNameSender(req *http.Request) (* func (client PoliciesClient) GetByBillingProfileNameResponder(resp *http.Response) (result Policy, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -186,7 +185,6 @@ func (client PoliciesClient) UpdateSender(req *http.Request) (*http.Response, er func (client PoliciesClient) UpdateResponder(resp *http.Response) (result Policy, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/pricesheet.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/pricesheet.go index 3ca337e4884c..424d0162d141 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/pricesheet.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/pricesheet.go @@ -108,7 +108,6 @@ func (client PriceSheetClient) DownloadSender(req *http.Request) (future PriceSh func (client PriceSheetClient) DownloadResponder(resp *http.Response) (result DownloadURL, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 d3b1abb579a9..2172adbe2ce5 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 @@ -110,7 +110,6 @@ func (client ProductsClient) GetSender(req *http.Request) (*http.Response, error func (client ProductsClient) GetResponder(resp *http.Response) (result ProductSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -190,7 +189,6 @@ func (client ProductsClient) ListByBillingAccountNameSender(req *http.Request) ( func (client ProductsClient) ListByBillingAccountNameResponder(resp *http.Response) (result ProductsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -309,7 +307,6 @@ func (client ProductsClient) ListByInvoiceSectionNameSender(req *http.Request) ( func (client ProductsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result ProductsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -426,7 +423,6 @@ func (client ProductsClient) TransferSender(req *http.Request) (*http.Response, func (client ProductsClient) TransferResponder(resp *http.Response) (result ProductSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -504,7 +500,6 @@ func (client ProductsClient) UpdateAutoRenewByBillingAccountNameSender(req *http func (client ProductsClient) UpdateAutoRenewByBillingAccountNameResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -584,7 +579,6 @@ func (client ProductsClient) UpdateAutoRenewByInvoiceSectionNameSender(req *http func (client ProductsClient) UpdateAutoRenewByInvoiceSectionNameResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -658,7 +652,6 @@ func (client ProductsClient) ValidateTransferSender(req *http.Request) (*http.Re func (client ProductsClient) ValidateTransferResponder(resp *http.Response) (result ValidateProductTransferEligibilityResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 f74672e110cc..24b7a3509a5a 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 @@ -109,7 +109,6 @@ func (client ProfilesClient) CreateSender(req *http.Request) (future ProfilesCre func (client ProfilesClient) CreateResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -188,7 +187,6 @@ func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -266,7 +264,6 @@ func (client ProfilesClient) ListByBillingAccountNameSender(req *http.Request) ( func (client ProfilesClient) ListByBillingAccountNameResponder(resp *http.Response) (result ProfileListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -381,7 +378,6 @@ func (client ProfilesClient) UpdateSender(req *http.Request) (future ProfilesUpd func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go index 42da47a47a4d..5ec35800aded 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/property.go @@ -104,7 +104,6 @@ func (client PropertyClient) GetSender(req *http.Request) (*http.Response, error func (client PropertyClient) GetResponder(resp *http.Response) (result Property, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 4cc54cef18bf..550889bd9e48 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 @@ -104,7 +104,6 @@ func (client RecipientTransfersClient) AcceptSender(req *http.Request) (*http.Re func (client RecipientTransfersClient) AcceptResponder(resp *http.Response) (result RecipientTransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -171,7 +170,6 @@ func (client RecipientTransfersClient) DeclineSender(req *http.Request) (*http.R func (client RecipientTransfersClient) DeclineResponder(resp *http.Response) (result RecipientTransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -238,7 +236,6 @@ func (client RecipientTransfersClient) GetSender(req *http.Request) (*http.Respo func (client RecipientTransfersClient) GetResponder(resp *http.Response) (result RecipientTransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -300,7 +297,6 @@ func (client RecipientTransfersClient) ListSender(req *http.Request) (*http.Resp func (client RecipientTransfersClient) ListResponder(resp *http.Response) (result RecipientTransferDetailsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go index ec1744d3cf1f..c354eb4fdd1b 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/roleassignments.go @@ -109,7 +109,6 @@ func (client RoleAssignmentsClient) AddByBillingAccountNameSender(req *http.Requ func (client RoleAssignmentsClient) AddByBillingAccountNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -187,7 +186,6 @@ func (client RoleAssignmentsClient) AddByBillingProfileNameSender(req *http.Requ func (client RoleAssignmentsClient) AddByBillingProfileNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -265,7 +263,6 @@ func (client RoleAssignmentsClient) AddByInvoiceSectionNameSender(req *http.Requ func (client RoleAssignmentsClient) AddByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -340,7 +337,6 @@ func (client RoleAssignmentsClient) DeleteByBillingAccountNameSender(req *http.R func (client RoleAssignmentsClient) DeleteByBillingAccountNameResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -417,7 +413,6 @@ func (client RoleAssignmentsClient) DeleteByBillingProfileNameSender(req *http.R func (client RoleAssignmentsClient) DeleteByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -494,7 +489,6 @@ func (client RoleAssignmentsClient) DeleteByInvoiceSectionNameSender(req *http.R func (client RoleAssignmentsClient) DeleteByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -569,7 +563,6 @@ func (client RoleAssignmentsClient) GetByBillingAccountSender(req *http.Request) func (client RoleAssignmentsClient) GetByBillingAccountResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -646,7 +639,6 @@ func (client RoleAssignmentsClient) GetByBillingProfileNameSender(req *http.Requ func (client RoleAssignmentsClient) GetByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -723,7 +715,6 @@ func (client RoleAssignmentsClient) GetByInvoiceSectionNameSender(req *http.Requ func (client RoleAssignmentsClient) GetByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -796,7 +787,6 @@ func (client RoleAssignmentsClient) ListByBillingAccountNameSender(req *http.Req func (client RoleAssignmentsClient) ListByBillingAccountNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -871,7 +861,6 @@ func (client RoleAssignmentsClient) ListByBillingProfileNameSender(req *http.Req func (client RoleAssignmentsClient) ListByBillingProfileNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -946,7 +935,6 @@ func (client RoleAssignmentsClient) ListByInvoiceSectionNameSender(req *http.Req func (client RoleAssignmentsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go index 11874b3293de..04f959262492 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/roledefinitions.go @@ -108,7 +108,6 @@ func (client RoleDefinitionsClient) GetByBillingAccountNameSender(req *http.Requ func (client RoleDefinitionsClient) GetByBillingAccountNameResponder(resp *http.Response) (result RoleDefinition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -185,7 +184,6 @@ func (client RoleDefinitionsClient) GetByBillingProfileNameSender(req *http.Requ func (client RoleDefinitionsClient) GetByBillingProfileNameResponder(resp *http.Response) (result RoleDefinition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -262,7 +260,6 @@ func (client RoleDefinitionsClient) GetByInvoiceSectionNameSender(req *http.Requ func (client RoleDefinitionsClient) GetByInvoiceSectionNameResponder(resp *http.Response) (result RoleDefinition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -335,7 +332,6 @@ func (client RoleDefinitionsClient) ListByBillingAccountNameSender(req *http.Req func (client RoleDefinitionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -410,7 +406,6 @@ func (client RoleDefinitionsClient) ListByBillingProfileNameSender(req *http.Req func (client RoleDefinitionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -485,7 +480,6 @@ func (client RoleDefinitionsClient) ListByInvoiceSectionNameSender(req *http.Req func (client RoleDefinitionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 ee3257ce043b..a98ea5d1709d 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 @@ -110,7 +110,6 @@ func (client SubscriptionsClient) GetSender(req *http.Request) (*http.Response, func (client SubscriptionsClient) GetResponder(resp *http.Response) (result SubscriptionSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -187,7 +186,6 @@ func (client SubscriptionsClient) GetByCustomerNameSender(req *http.Request) (*h func (client SubscriptionsClient) GetByCustomerNameResponder(resp *http.Response) (result SubscriptionSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -261,7 +259,6 @@ func (client SubscriptionsClient) ListByBillingAccountNameSender(req *http.Reque func (client SubscriptionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result SubscriptionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -374,7 +371,6 @@ func (client SubscriptionsClient) ListByBillingProfileNameSender(req *http.Reque func (client SubscriptionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result SubscriptionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -487,7 +483,6 @@ func (client SubscriptionsClient) ListByCustomerNameSender(req *http.Request) (* func (client SubscriptionsClient) ListByCustomerNameResponder(resp *http.Response) (result SubscriptionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -600,7 +595,6 @@ func (client SubscriptionsClient) ListByInvoiceSectionNameSender(req *http.Reque func (client SubscriptionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result SubscriptionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -711,7 +705,6 @@ func (client SubscriptionsClient) TransferSender(req *http.Request) (future Subs func (client SubscriptionsClient) TransferResponder(resp *http.Response) (result TransferBillingSubscriptionResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -785,7 +778,6 @@ func (client SubscriptionsClient) ValidateTransferSender(req *http.Request) (*ht func (client SubscriptionsClient) ValidateTransferResponder(resp *http.Response) (result ValidateSubscriptionTransferEligibilityResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 52fb4a41829f..98ee86fa2456 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 @@ -117,7 +117,6 @@ func (client TransactionsClient) ListByBillingAccountNameSender(req *http.Reques func (client TransactionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result TransactionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -240,7 +239,6 @@ func (client TransactionsClient) ListByBillingProfileNameSender(req *http.Reques func (client TransactionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result TransactionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -363,7 +361,6 @@ func (client TransactionsClient) ListByCustomerNameSender(req *http.Request) (*h func (client TransactionsClient) ListByCustomerNameResponder(resp *http.Response) (result TransactionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -486,7 +483,6 @@ func (client TransactionsClient) ListByInvoiceSectionNameSender(req *http.Reques func (client TransactionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result TransactionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) 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 6069cf78d4e7..f3096ec8571f 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 @@ -104,7 +104,6 @@ func (client TransfersClient) CancelSender(req *http.Request) (*http.Response, e func (client TransfersClient) CancelResponder(resp *http.Response) (result TransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -175,7 +174,6 @@ func (client TransfersClient) GetSender(req *http.Request) (*http.Response, erro func (client TransfersClient) GetResponder(resp *http.Response) (result TransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -247,7 +245,6 @@ func (client TransfersClient) InitiateSender(req *http.Request) (*http.Response, func (client TransfersClient) InitiateResponder(resp *http.Response) (result TransferDetails, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -317,7 +314,6 @@ func (client TransfersClient) ListSender(req *http.Request) (*http.Response, err func (client TransfersClient) ListResponder(resp *http.Response) (result TransferDetailsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/billing/mgmt/2018-11-01-preview/billing/version.go b/services/preview/billing/mgmt/2018-11-01-preview/billing/version.go index 5fbcfa882646..98a7492457ed 100644 --- a/services/preview/billing/mgmt/2018-11-01-preview/billing/version.go +++ b/services/preview/billing/mgmt/2018-11-01-preview/billing/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 + " billing/2018-11-01-preview" + return "Azure-SDK-For-Go/" + Version() + " billing/2018-11-01-preview" } // Version returns the semantic version (see http://semver.org) of the client.