diff --git a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go index 95b87bd82091..604fb2fe8e96 100644 --- a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go +++ b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/registries.go @@ -117,7 +117,6 @@ func (client RegistriesClient) CheckNameAvailabilitySender(req *http.Request) (* func (client RegistriesClient) CheckNameAvailabilityResponder(resp *http.Response) (result RegistryNameStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -207,7 +206,6 @@ func (client RegistriesClient) CreateOrUpdateSender(req *http.Request) (*http.Re func (client RegistriesClient) CreateOrUpdateResponder(resp *http.Response) (result Registry, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -283,7 +281,6 @@ func (client RegistriesClient) DeleteSender(req *http.Request) (*http.Response, func (client RegistriesClient) 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 @@ -358,7 +355,6 @@ func (client RegistriesClient) GetCredentialsSender(req *http.Request) (*http.Re func (client RegistriesClient) GetCredentialsResponder(resp *http.Response) (result RegistryCredentials, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -434,7 +430,6 @@ func (client RegistriesClient) GetPropertiesSender(req *http.Request) (*http.Res func (client RegistriesClient) GetPropertiesResponder(resp *http.Response) (result Registry, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -506,7 +501,6 @@ func (client RegistriesClient) ListSender(req *http.Request) (*http.Response, er func (client RegistriesClient) ListResponder(resp *http.Response) (result RegistryListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -618,7 +612,6 @@ func (client RegistriesClient) ListByResourceGroupSender(req *http.Request) (*ht func (client RegistriesClient) ListByResourceGroupResponder(resp *http.Response) (result RegistryListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -731,7 +724,6 @@ func (client RegistriesClient) RegenerateCredentialsSender(req *http.Request) (* func (client RegistriesClient) RegenerateCredentialsResponder(resp *http.Response) (result RegistryCredentials, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -810,7 +802,6 @@ func (client RegistriesClient) UpdateSender(req *http.Request) (*http.Response, func (client RegistriesClient) UpdateResponder(resp *http.Response) (result Registry, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/version.go b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/version.go index f2b47878baf9..7e763b28697c 100644 --- a/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/version.go +++ b/services/preview/containerregistry/mgmt/2016-06-27-preview/containerregistry/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 + " containerregistry/2016-06-27-preview" + return "Azure-SDK-For-Go/" + Version() + " containerregistry/2016-06-27-preview" } // Version returns the semantic version (see http://semver.org) of the client.