diff --git a/services/search/mgmt/2015-02-28/search/adminkeys.go b/services/search/mgmt/2015-02-28/search/adminkeys.go index e6ef0e13de77..692bedf1ac90 100644 --- a/services/search/mgmt/2015-02-28/search/adminkeys.go +++ b/services/search/mgmt/2015-02-28/search/adminkeys.go @@ -109,7 +109,6 @@ func (client AdminKeysClient) ListSender(req *http.Request) (*http.Response, err func (client AdminKeysClient) ListResponder(resp *http.Response) (result AdminKeyResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/search/mgmt/2015-02-28/search/querykeys.go b/services/search/mgmt/2015-02-28/search/querykeys.go index a01eb2ac72b2..59b1f25373d0 100644 --- a/services/search/mgmt/2015-02-28/search/querykeys.go +++ b/services/search/mgmt/2015-02-28/search/querykeys.go @@ -109,7 +109,6 @@ func (client QueryKeysClient) ListSender(req *http.Request) (*http.Response, err func (client QueryKeysClient) ListResponder(resp *http.Response) (result ListQueryKeysResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/search/mgmt/2015-02-28/search/services.go b/services/search/mgmt/2015-02-28/search/services.go index 2cb6b608ff1b..8292628e6cea 100644 --- a/services/search/mgmt/2015-02-28/search/services.go +++ b/services/search/mgmt/2015-02-28/search/services.go @@ -113,7 +113,6 @@ func (client ServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Resp func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -189,7 +188,6 @@ func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, er func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), autorest.ByClosing()) result.Response = resp @@ -262,7 +260,6 @@ func (client ServicesClient) ListSender(req *http.Request) (*http.Response, erro func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/search/mgmt/2015-02-28/search/version.go b/services/search/mgmt/2015-02-28/search/version.go index 991aa8075eb0..0c485dc55961 100644 --- a/services/search/mgmt/2015-02-28/search/version.go +++ b/services/search/mgmt/2015-02-28/search/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 + " search/2015-02-28" + return "Azure-SDK-For-Go/" + Version() + " search/2015-02-28" } // Version returns the semantic version (see http://semver.org) of the client.