diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/backups.go b/services/recoveryservices/mgmt/2016-12-01/backup/backups.go index f887309cc63d..686486d702c9 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/backups.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/backups.go @@ -119,7 +119,6 @@ func (client BackupsClient) TriggerSender(req *http.Request) (*http.Response, er func (client BackupsClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/engines.go b/services/recoveryservices/mgmt/2016-12-01/backup/engines.go index 9ee3414d00cb..b27e62f011a7 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/engines.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/engines.go @@ -119,7 +119,6 @@ func (client EnginesClient) GetSender(req *http.Request) (*http.Response, error) func (client EnginesClient) GetResponder(resp *http.Response) (result EngineBaseResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -204,7 +203,6 @@ func (client EnginesClient) ListSender(req *http.Request) (*http.Response, error func (client EnginesClient) ListResponder(resp *http.Response) (result EngineBaseResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go b/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go index fb24b7f5b891..e9bed21fb440 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/itemlevelrecoveryconnections.go @@ -125,7 +125,6 @@ func (client ItemLevelRecoveryConnectionsClient) ProvisionSender(req *http.Reque func (client ItemLevelRecoveryConnectionsClient) ProvisionResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -211,7 +210,6 @@ func (client ItemLevelRecoveryConnectionsClient) RevokeSender(req *http.Request) func (client ItemLevelRecoveryConnectionsClient) RevokeResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go index 570b865f95f9..59fde50edef4 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/operationresults.go @@ -116,7 +116,6 @@ func (client OperationResultsClient) GetSender(req *http.Request) (*http.Respons func (client OperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go index 3f3627256b9e..08d9a06925c9 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/operationstatuses.go @@ -115,7 +115,6 @@ func (client OperationStatusesClient) GetSender(req *http.Request) (*http.Respon func (client OperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go index 848fbf5a46bb..c9208e7901ad 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectablecontainers.go @@ -116,7 +116,6 @@ func (client ProtectableContainersClient) ListSender(req *http.Request) (*http.R func (client ProtectableContainersClient) ListResponder(resp *http.Response) (result ProtectableContainerResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go index 832558603898..ba4775faa076 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectableitems.go @@ -120,7 +120,6 @@ func (client ProtectableItemsClient) ListSender(req *http.Request) (*http.Respon func (client ProtectableItemsClient) ListResponder(resp *http.Response) (result WorkloadProtectableItemResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go index 564cb83712fa..1012aef84cf1 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protecteditemoperationstatuses.go @@ -121,7 +121,6 @@ func (client ProtectedItemOperationStatusesClient) GetSender(req *http.Request) func (client ProtectedItemOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go index 7c681d77a383..498964e56236 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontaineroperationresults.go @@ -117,7 +117,6 @@ func (client ProtectionContainerOperationResultsClient) GetSender(req *http.Requ func (client ProtectionContainerOperationResultsClient) GetResponder(resp *http.Response) (result ProtectionContainerResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go index 2fad27def222..a9a203d05974 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainerrefreshoperationresults.go @@ -115,7 +115,6 @@ func (client ProtectionContainerRefreshOperationResultsClient) GetSender(req *ht func (client ProtectionContainerRefreshOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go index 19fcfe5eb11a..ec64be809ed7 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainers.go @@ -114,7 +114,6 @@ func (client ProtectionContainersClient) GetSender(req *http.Request) (*http.Res func (client ProtectionContainersClient) GetResponder(resp *http.Response) (result ProtectionContainerResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -198,7 +197,6 @@ func (client ProtectionContainersClient) InquireSender(req *http.Request) (*http func (client ProtectionContainersClient) InquireResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -281,7 +279,6 @@ func (client ProtectionContainersClient) RefreshSender(req *http.Request) (*http func (client ProtectionContainersClient) RefreshResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -365,7 +362,6 @@ func (client ProtectionContainersClient) RegisterSender(req *http.Request) (*htt func (client ProtectionContainersClient) RegisterResponder(resp *http.Response) (result ProtectionContainerResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -447,7 +443,6 @@ func (client ProtectionContainersClient) UnregisterSender(req *http.Request) (*h func (client ProtectionContainersClient) UnregisterResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go index 1e449347604a..9f1a1e6bc1a2 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectioncontainersgroup.go @@ -115,7 +115,6 @@ func (client ProtectionContainersGroupClient) ListSender(req *http.Request) (*ht func (client ProtectionContainersGroupClient) ListResponder(resp *http.Response) (result ProtectionContainerResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go index 467c7e9ac3f8..a45994c3c6ad 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicies.go @@ -114,7 +114,6 @@ func (client ProtectionPoliciesClient) DeleteSender(req *http.Request) (*http.Re func (client ProtectionPoliciesClient) 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/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go index e1662486e8b2..724bf928156a 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/protectionpolicyoperationstatuses.go @@ -118,7 +118,6 @@ func (client ProtectionPolicyOperationStatusesClient) GetSender(req *http.Reques func (client ProtectionPolicyOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go b/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go index 04f7519e2f8e..8993ab371e44 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/resourcestorageconfigs.go @@ -110,7 +110,6 @@ func (client ResourceStorageConfigsClient) GetSender(req *http.Request) (*http.R func (client ResourceStorageConfigsClient) GetResponder(resp *http.Response) (result ResourceConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -189,7 +188,6 @@ func (client ResourceStorageConfigsClient) PatchSender(req *http.Request) (*http func (client ResourceStorageConfigsClient) PatchResponder(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 @@ -267,7 +265,6 @@ func (client ResourceStorageConfigsClient) UpdateSender(req *http.Request) (*htt func (client ResourceStorageConfigsClient) UpdateResponder(resp *http.Response) (result ResourceConfigResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go b/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go index 8decfb977983..475f8c57a132 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/securitypins.go @@ -109,7 +109,6 @@ func (client SecurityPINsClient) GetSender(req *http.Request) (*http.Response, e func (client SecurityPINsClient) GetResponder(resp *http.Response) (result TokenInformation, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/version.go b/services/recoveryservices/mgmt/2016-12-01/backup/version.go index 6789f2a163ab..25935675cd92 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/version.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/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 + " backup/2016-12-01" + return "Azure-SDK-For-Go/" + Version() + " backup/2016-12-01" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go b/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go index 4572ca04e540..e0bbc14210c9 100644 --- a/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go +++ b/services/recoveryservices/mgmt/2016-12-01/backup/workloaditems.go @@ -124,7 +124,6 @@ func (client WorkloadItemsClient) ListSender(req *http.Request) (*http.Response, func (client WorkloadItemsClient) ListResponder(resp *http.Response) (result WorkloadItemResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing())