diff --git a/services/preview/resources/mgmt/2019-11-01/managementgroups/client.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/client.go index 7f29da8e61eb..48e59294f710 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/client.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/client.go @@ -117,7 +117,6 @@ func (client BaseClient) CheckNameAvailabilitySender(req *http.Request) (*http.R func (client BaseClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -184,7 +183,6 @@ func (client BaseClient) StartTenantBackfillSender(req *http.Request) (*http.Res func (client BaseClient) StartTenantBackfillResponder(resp *http.Response) (result TenantBackfillStatusResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -251,7 +249,6 @@ func (client BaseClient) TenantBackfillStatusSender(req *http.Request) (*http.Re func (client BaseClient) TenantBackfillStatusResponder(resp *http.Response) (result TenantBackfillStatusResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/resources/mgmt/2019-11-01/managementgroups/entities.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/entities.go index 46fcff7712e2..646c23ecc8de 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/entities.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/entities.go @@ -164,7 +164,6 @@ func (client EntitiesClient) ListSender(req *http.Request) (*http.Response, erro func (client EntitiesClient) ListResponder(resp *http.Response) (result EntityListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/resources/mgmt/2019-11-01/managementgroups/managementgroups.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/managementgroups.go index 511000ba1fb2..c2217a8d0f09 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/managementgroups.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/managementgroups.go @@ -121,7 +121,6 @@ func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpd func (client Client) CreateOrUpdateResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -202,7 +201,6 @@ func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err e func (client Client) DeleteResponder(resp *http.Response) (result OperationResults, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -298,7 +296,6 @@ func (client Client) GetSender(req *http.Request) (*http.Response, error) { func (client Client) GetResponder(resp *http.Response) (result ManagementGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -382,7 +379,6 @@ func (client Client) GetDescendantsSender(req *http.Request) (*http.Response, er func (client Client) GetDescendantsResponder(resp *http.Response) (result DescendantListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -502,7 +498,6 @@ func (client Client) ListSender(req *http.Request) (*http.Response, error) { func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -623,7 +618,6 @@ func (client Client) UpdateSender(req *http.Request) (*http.Response, error) { func (client Client) UpdateResponder(resp *http.Response) (result ManagementGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/resources/mgmt/2019-11-01/managementgroups/operations.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/operations.go index 775e5286407d..d2bf9399ca19 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/operations.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/operations.go @@ -103,7 +103,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/resources/mgmt/2019-11-01/managementgroups/subscriptions.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/subscriptions.go index 0707d514d8c4..94dc263afe65 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/subscriptions.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/subscriptions.go @@ -118,7 +118,6 @@ func (client SubscriptionsClient) CreateSender(req *http.Request) (*http.Respons func (client SubscriptionsClient) CreateResponder(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 @@ -200,7 +199,6 @@ func (client SubscriptionsClient) DeleteSender(req *http.Request) (*http.Respons func (client SubscriptionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/preview/resources/mgmt/2019-11-01/managementgroups/version.go b/services/preview/resources/mgmt/2019-11-01/managementgroups/version.go index cf92d4e2e6b9..0c18b9d7d7de 100644 --- a/services/preview/resources/mgmt/2019-11-01/managementgroups/version.go +++ b/services/preview/resources/mgmt/2019-11-01/managementgroups/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 + " managementgroups/2019-11-01" + return "Azure-SDK-For-Go/" + Version() + " managementgroups/2019-11-01" } // Version returns the semantic version (see http://semver.org) of the client.