diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go index 148fff5ab3d0..65f476c663b2 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/caches.go @@ -127,7 +127,6 @@ func (client CachesClient) CreateSender(req *http.Request) (future CachesCreateF func (client CachesClient) CreateResponder(resp *http.Response) (result Cache, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -209,7 +208,6 @@ func (client CachesClient) DeleteSender(req *http.Request) (future CachesDeleteF func (client CachesClient) DeleteResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -292,7 +290,6 @@ func (client CachesClient) FlushSender(req *http.Request) (future CachesFlushFut func (client CachesClient) FlushResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -374,7 +371,6 @@ func (client CachesClient) GetSender(req *http.Request) (*http.Response, error) func (client CachesClient) GetResponder(resp *http.Response) (result Cache, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -446,7 +442,6 @@ func (client CachesClient) ListSender(req *http.Request) (*http.Response, error) func (client CachesClient) ListResponder(resp *http.Response) (result CachesListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -558,7 +553,6 @@ func (client CachesClient) ListByResourceGroupSender(req *http.Request) (*http.R func (client CachesClient) ListByResourceGroupResponder(resp *http.Response) (result CachesListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -677,7 +671,6 @@ func (client CachesClient) StartSender(req *http.Request) (future CachesStartFut func (client CachesClient) StartResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -759,7 +752,6 @@ func (client CachesClient) StopSender(req *http.Request) (future CachesStopFutur func (client CachesClient) StopResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -851,7 +843,6 @@ func (client CachesClient) UpdateSender(req *http.Request) (*http.Response, erro func (client CachesClient) UpdateResponder(resp *http.Response) (result Cache, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -933,7 +924,6 @@ func (client CachesClient) UpgradeFirmwareSender(req *http.Request) (future Cach func (client CachesClient) UpgradeFirmwareResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go index 1a446dec36ce..20d1bd33f979 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/operations.go @@ -102,7 +102,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result APIOperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go index 8b4ead2b5080..ce62738bd6ef 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/skus.go @@ -106,7 +106,6 @@ func (client SkusClient) ListSender(req *http.Request) (*http.Response, error) { func (client SkusClient) ListResponder(resp *http.Response) (result ResourceSkusResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go index abc8aee7aa79..a8683764874f 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/storagetargets.go @@ -141,7 +141,6 @@ func (client StorageTargetsClient) CreateSender(req *http.Request) (future Stora func (client StorageTargetsClient) CreateResponder(resp *http.Response) (result StorageTarget, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -228,7 +227,6 @@ func (client StorageTargetsClient) DeleteSender(req *http.Request) (future Stora func (client StorageTargetsClient) DeleteResponder(resp *http.Response) (result SetObject, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -314,7 +312,6 @@ func (client StorageTargetsClient) GetSender(req *http.Request) (*http.Response, func (client StorageTargetsClient) GetResponder(resp *http.Response) (result StorageTarget, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -397,7 +394,6 @@ func (client StorageTargetsClient) ListByCacheSender(req *http.Request) (*http.R func (client StorageTargetsClient) ListByCacheResponder(resp *http.Response) (result StorageTargetsResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -530,7 +526,6 @@ func (client StorageTargetsClient) UpdateSender(req *http.Request) (*http.Respon func (client StorageTargetsClient) UpdateResponder(resp *http.Response) (result StorageTarget, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go index b1a30e71db00..f9d7d934d972 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/usagemodels.go @@ -106,7 +106,6 @@ func (client UsageModelsClient) ListSender(req *http.Request) (*http.Response, e func (client UsageModelsClient) ListResponder(resp *http.Response) (result UsageModelsResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/version.go b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/version.go index 2d84fa9642e6..89266a0fada2 100644 --- a/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/version.go +++ b/services/preview/storagecache/mgmt/2019-08-01-preview/storagecache/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 + " storagecache/2019-08-01-preview" + return "Azure-SDK-For-Go/" + Version() + " storagecache/2019-08-01-preview" } // Version returns the semantic version (see http://semver.org) of the client.