From 6f8218513c2c56c830bfc7495481afbb2fb7a31e Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 24 Jul 2020 02:14:20 +0000 Subject: [PATCH] Generated from 117420fd4bbfcce940ff2e57bb359c9b21810899 remove premium SKU requirement for patch schedules --- services/redis/mgmt/2016-04-01/redis/firewallrule.go | 3 --- services/redis/mgmt/2016-04-01/redis/firewallrules.go | 1 - services/redis/mgmt/2016-04-01/redis/operations.go | 1 - .../redis/mgmt/2016-04-01/redis/patchschedules.go | 3 --- services/redis/mgmt/2016-04-01/redis/redis.go | 11 ----------- services/redis/mgmt/2016-04-01/redis/version.go | 2 +- 6 files changed, 1 insertion(+), 20 deletions(-) diff --git a/services/redis/mgmt/2016-04-01/redis/firewallrule.go b/services/redis/mgmt/2016-04-01/redis/firewallrule.go index cd7d59a308f6..0571ccaba418 100644 --- a/services/redis/mgmt/2016-04-01/redis/firewallrule.go +++ b/services/redis/mgmt/2016-04-01/redis/firewallrule.go @@ -127,7 +127,6 @@ func (client FirewallRuleClient) CreateOrUpdateSender(req *http.Request) (*http. func (client FirewallRuleClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -205,7 +204,6 @@ func (client FirewallRuleClient) DeleteSender(req *http.Request) (*http.Response func (client FirewallRuleClient) 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 FirewallRuleClient) GetSender(req *http.Request) (*http.Response, e func (client FirewallRuleClient) GetResponder(resp *http.Response) (result FirewallRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/redis/mgmt/2016-04-01/redis/firewallrules.go b/services/redis/mgmt/2016-04-01/redis/firewallrules.go index 66c1aa8fa3c2..4f8c95f895df 100644 --- a/services/redis/mgmt/2016-04-01/redis/firewallrules.go +++ b/services/redis/mgmt/2016-04-01/redis/firewallrules.go @@ -110,7 +110,6 @@ func (client FirewallRulesClient) ListSender(req *http.Request) (*http.Response, func (client FirewallRulesClient) ListResponder(resp *http.Response) (result FirewallRuleListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/redis/mgmt/2016-04-01/redis/operations.go b/services/redis/mgmt/2016-04-01/redis/operations.go index 6d763df09401..712a076b235f 100644 --- a/services/redis/mgmt/2016-04-01/redis/operations.go +++ b/services/redis/mgmt/2016-04-01/redis/operations.go @@ -101,7 +101,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/redis/mgmt/2016-04-01/redis/patchschedules.go b/services/redis/mgmt/2016-04-01/redis/patchschedules.go index a960584cd270..6f0981964cf4 100644 --- a/services/redis/mgmt/2016-04-01/redis/patchschedules.go +++ b/services/redis/mgmt/2016-04-01/redis/patchschedules.go @@ -124,7 +124,6 @@ func (client PatchSchedulesClient) CreateOrUpdateSender(req *http.Request) (*htt func (client PatchSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result PatchSchedule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -200,7 +199,6 @@ func (client PatchSchedulesClient) DeleteSender(req *http.Request) (*http.Respon func (client PatchSchedulesClient) 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 @@ -275,7 +273,6 @@ func (client PatchSchedulesClient) GetSender(req *http.Request) (*http.Response, func (client PatchSchedulesClient) GetResponder(resp *http.Response) (result PatchSchedule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/redis/mgmt/2016-04-01/redis/redis.go b/services/redis/mgmt/2016-04-01/redis/redis.go index a50db6a181bb..2c473db664bb 100644 --- a/services/redis/mgmt/2016-04-01/redis/redis.go +++ b/services/redis/mgmt/2016-04-01/redis/redis.go @@ -122,7 +122,6 @@ func (client Client) CreateSender(req *http.Request) (future CreateFuture, err e func (client Client) CreateResponder(resp *http.Response) (result ResourceType, 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 Client) DeleteSender(req *http.Request) (future DeleteFuture, err e func (client Client) 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 @@ -283,7 +281,6 @@ func (client Client) ExportDataSender(req *http.Request) (future ExportDataFutur func (client Client) ExportDataResponder(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 @@ -362,7 +359,6 @@ func (client Client) ForceRebootSender(req *http.Request) (*http.Response, error func (client Client) ForceRebootResponder(resp *http.Response) (result ForceRebootResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -438,7 +434,6 @@ func (client Client) GetSender(req *http.Request) (*http.Response, error) { func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -523,7 +518,6 @@ func (client Client) ImportDataSender(req *http.Request) (future ImportDataFutur func (client Client) ImportDataResponder(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 @@ -594,7 +588,6 @@ func (client Client) ListSender(req *http.Request) (*http.Response, error) { func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -706,7 +699,6 @@ func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Respons func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -819,7 +811,6 @@ func (client Client) ListKeysSender(req *http.Request) (*http.Response, error) { func (client Client) ListKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -898,7 +889,6 @@ func (client Client) RegenerateKeySender(req *http.Request) (*http.Response, err func (client Client) RegenerateKeyResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -977,7 +967,6 @@ func (client Client) UpdateSender(req *http.Request) (*http.Response, error) { func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/redis/mgmt/2016-04-01/redis/version.go b/services/redis/mgmt/2016-04-01/redis/version.go index b4f0d2900201..3a5497d29e73 100644 --- a/services/redis/mgmt/2016-04-01/redis/version.go +++ b/services/redis/mgmt/2016-04-01/redis/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 + " redis/2016-04-01" + return "Azure-SDK-For-Go/" + Version() + " redis/2016-04-01" } // Version returns the semantic version (see http://semver.org) of the client.