diff --git a/services/resources/mgmt/2016-12-01/policy/assignments.go b/services/resources/mgmt/2016-12-01/policy/assignments.go index ceabff50c81d..45638cb4800a 100644 --- a/services/resources/mgmt/2016-12-01/policy/assignments.go +++ b/services/resources/mgmt/2016-12-01/policy/assignments.go @@ -115,7 +115,6 @@ func (client AssignmentsClient) CreateSender(req *http.Request) (*http.Response, func (client AssignmentsClient) CreateResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -198,7 +197,6 @@ func (client AssignmentsClient) CreateByIDSender(req *http.Request) (*http.Respo func (client AssignmentsClient) CreateByIDResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -273,7 +271,6 @@ func (client AssignmentsClient) DeleteSender(req *http.Request) (*http.Response, func (client AssignmentsClient) DeleteResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -350,7 +347,6 @@ func (client AssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Respo func (client AssignmentsClient) DeleteByIDResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -425,7 +421,6 @@ func (client AssignmentsClient) GetSender(req *http.Request) (*http.Response, er func (client AssignmentsClient) GetResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -502,7 +497,6 @@ func (client AssignmentsClient) GetByIDSender(req *http.Request) (*http.Response func (client AssignmentsClient) GetByIDResponder(resp *http.Response) (result Assignment, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -579,7 +573,6 @@ func (client AssignmentsClient) ListSender(req *http.Request) (*http.Response, e func (client AssignmentsClient) ListResponder(resp *http.Response) (result AssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -711,7 +704,6 @@ func (client AssignmentsClient) ListForResourceSender(req *http.Request) (*http. func (client AssignmentsClient) ListForResourceResponder(resp *http.Response) (result AssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -835,7 +827,6 @@ func (client AssignmentsClient) ListForResourceGroupSender(req *http.Request) (* func (client AssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result AssignmentListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/resources/mgmt/2016-12-01/policy/definitions.go b/services/resources/mgmt/2016-12-01/policy/definitions.go index 5081323f5521..7ba3b3d53edc 100644 --- a/services/resources/mgmt/2016-12-01/policy/definitions.go +++ b/services/resources/mgmt/2016-12-01/policy/definitions.go @@ -113,7 +113,6 @@ func (client DefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.R func (client DefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result Definition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -193,7 +192,6 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroupSender(req *http. func (client DefinitionsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result Definition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -267,7 +265,6 @@ func (client DefinitionsClient) DeleteSender(req *http.Request) (*http.Response, func (client DefinitionsClient) 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 @@ -341,7 +338,6 @@ func (client DefinitionsClient) DeleteAtManagementGroupSender(req *http.Request) func (client DefinitionsClient) DeleteAtManagementGroupResponder(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 @@ -414,7 +410,6 @@ func (client DefinitionsClient) GetSender(req *http.Request) (*http.Response, er func (client DefinitionsClient) GetResponder(resp *http.Response) (result Definition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -489,7 +484,6 @@ func (client DefinitionsClient) GetAtManagementGroupSender(req *http.Request) (* func (client DefinitionsClient) GetAtManagementGroupResponder(resp *http.Response) (result Definition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -562,7 +556,6 @@ func (client DefinitionsClient) GetBuiltInSender(req *http.Request) (*http.Respo func (client DefinitionsClient) GetBuiltInResponder(resp *http.Response) (result Definition, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -634,7 +627,6 @@ func (client DefinitionsClient) ListSender(req *http.Request) (*http.Response, e func (client DefinitionsClient) ListResponder(resp *http.Response) (result DefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -739,7 +731,6 @@ func (client DefinitionsClient) ListBuiltInSender(req *http.Request) (*http.Resp func (client DefinitionsClient) ListBuiltInResponder(resp *http.Response) (result DefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -850,7 +841,6 @@ func (client DefinitionsClient) ListByManagementGroupSender(req *http.Request) ( func (client DefinitionsClient) ListByManagementGroupResponder(resp *http.Response) (result DefinitionListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/resources/mgmt/2016-12-01/policy/version.go b/services/resources/mgmt/2016-12-01/policy/version.go index a7f47e4d482c..f7009ee54ae5 100644 --- a/services/resources/mgmt/2016-12-01/policy/version.go +++ b/services/resources/mgmt/2016-12-01/policy/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 + " policy/2016-12-01" + return "Azure-SDK-For-Go/" + Version() + " policy/2016-12-01" } // Version returns the semantic version (see http://semver.org) of the client.