diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go index 2246b72033f9..2bf45c08610a 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alerts.go @@ -114,7 +114,6 @@ func (client AlertsClient) ChangeStateSender(req *http.Request) (*http.Response, func (client AlertsClient) ChangeStateResponder(resp *http.Response) (result Alert, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -265,7 +264,6 @@ func (client AlertsClient) GetAllSender(req *http.Request) (*http.Response, erro func (client AlertsClient) GetAllResponder(resp *http.Response) (result AlertsList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -381,7 +379,6 @@ func (client AlertsClient) GetByIDSender(req *http.Request) (*http.Response, err func (client AlertsClient) GetByIDResponder(resp *http.Response) (result Alert, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -461,7 +458,6 @@ func (client AlertsClient) GetHistorySender(req *http.Request) (*http.Response, func (client AlertsClient) GetHistoryResponder(resp *http.Response) (result AlertModification, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -584,7 +580,6 @@ func (client AlertsClient) GetSummarySender(req *http.Request) (*http.Response, func (client AlertsClient) GetSummaryResponder(resp *http.Response) (result AlertsSummary, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go index b276a16707c4..814a30966257 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/operations.go @@ -101,7 +101,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go index 36356733ccb1..173612087da1 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartdetectoralertrules.go @@ -127,7 +127,6 @@ func (client SmartDetectorAlertRulesClient) CreateOrUpdateSender(req *http.Reque func (client SmartDetectorAlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (result AlertRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -203,7 +202,6 @@ func (client SmartDetectorAlertRulesClient) DeleteSender(req *http.Request) (*ht func (client SmartDetectorAlertRulesClient) 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 @@ -282,7 +280,6 @@ func (client SmartDetectorAlertRulesClient) GetSender(req *http.Request) (*http. func (client SmartDetectorAlertRulesClient) GetResponder(resp *http.Response) (result AlertRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -354,7 +351,6 @@ func (client SmartDetectorAlertRulesClient) ListSender(req *http.Request) (*http func (client SmartDetectorAlertRulesClient) ListResponder(resp *http.Response) (result AlertRulesList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -466,7 +462,6 @@ func (client SmartDetectorAlertRulesClient) ListByResourceGroupSender(req *http. func (client SmartDetectorAlertRulesClient) ListByResourceGroupResponder(resp *http.Response) (result AlertRulesList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartgroups.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartgroups.go index 150e0db6f36a..6a805edf9e59 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartgroups.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/smartgroups.go @@ -109,7 +109,6 @@ func (client SmartGroupsClient) ChangeStateSender(req *http.Request) (*http.Resp func (client SmartGroupsClient) ChangeStateResponder(resp *http.Response) (result SmartGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -228,7 +227,6 @@ func (client SmartGroupsClient) GetAllSender(req *http.Request) (*http.Response, func (client SmartGroupsClient) GetAllResponder(resp *http.Response) (result SmartGroupsList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -302,7 +300,6 @@ func (client SmartGroupsClient) GetByIDSender(req *http.Request) (*http.Response func (client SmartGroupsClient) GetByIDResponder(resp *http.Response) (result SmartGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -376,7 +373,6 @@ func (client SmartGroupsClient) GetHistorySender(req *http.Request) (*http.Respo func (client SmartGroupsClient) GetHistoryResponder(resp *http.Response) (result SmartGroupModification, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/version.go b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/version.go index f2fd9aebf59a..5a593cab8f94 100644 --- a/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/version.go +++ b/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/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 + " alertsmanagement/2019-03-01" + return "Azure-SDK-For-Go/" + Version() + " alertsmanagement/2019-03-01" } // Version returns the semantic version (see http://semver.org) of the client.