From c3bb1287b25234a053b95d4578ef133a30a01d54 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 7 Jul 2020 02:34:16 +0000 Subject: [PATCH] Generated from 131ce16827ba7781af76787e8fd96643417d9b2a Fix typo --- services/cdn/mgmt/2016-04-02/cdn/customdomains.go | 5 ----- services/cdn/mgmt/2016-04-02/cdn/endpoints.go | 10 ---------- services/cdn/mgmt/2016-04-02/cdn/nameavailability.go | 1 - services/cdn/mgmt/2016-04-02/cdn/operations.go | 1 - services/cdn/mgmt/2016-04-02/cdn/origins.go | 5 ----- services/cdn/mgmt/2016-04-02/cdn/profiles.go | 7 ------- services/cdn/mgmt/2016-04-02/cdn/version.go | 2 +- 7 files changed, 1 insertion(+), 30 deletions(-) diff --git a/services/cdn/mgmt/2016-04-02/cdn/customdomains.go b/services/cdn/mgmt/2016-04-02/cdn/customdomains.go index eee2652b0ad3..8ab8f829e112 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/customdomains.go +++ b/services/cdn/mgmt/2016-04-02/cdn/customdomains.go @@ -124,7 +124,6 @@ func (client CustomDomainsClient) CreateSender(req *http.Request) (future Custom func (client CustomDomainsClient) CreateResponder(resp *http.Response) (result CustomDomain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -204,7 +203,6 @@ func (client CustomDomainsClient) DeleteIfExistsSender(req *http.Request) (futur func (client CustomDomainsClient) DeleteIfExistsResponder(resp *http.Response) (result CustomDomain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -284,7 +282,6 @@ func (client CustomDomainsClient) GetSender(req *http.Request) (*http.Response, func (client CustomDomainsClient) GetResponder(resp *http.Response) (result CustomDomain, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -362,7 +359,6 @@ func (client CustomDomainsClient) ListByEndpointSender(req *http.Request) (*http func (client CustomDomainsClient) ListByEndpointResponder(resp *http.Response) (result CustomDomainListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -445,7 +441,6 @@ func (client CustomDomainsClient) UpdateSender(req *http.Request) (*http.Respons func (client CustomDomainsClient) UpdateResponder(resp *http.Response) (result ErrorResponse, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/cdn/mgmt/2016-04-02/cdn/endpoints.go b/services/cdn/mgmt/2016-04-02/cdn/endpoints.go index e517ab6d480c..b3ea9ccbfabe 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/endpoints.go +++ b/services/cdn/mgmt/2016-04-02/cdn/endpoints.go @@ -123,7 +123,6 @@ func (client EndpointsClient) CreateSender(req *http.Request) (future EndpointsC func (client EndpointsClient) CreateResponder(resp *http.Response) (result Endpoint, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -201,7 +200,6 @@ func (client EndpointsClient) DeleteIfExistsSender(req *http.Request) (future En func (client EndpointsClient) DeleteIfExistsResponder(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 @@ -278,7 +276,6 @@ func (client EndpointsClient) GetSender(req *http.Request) (*http.Response, erro func (client EndpointsClient) GetResponder(resp *http.Response) (result Endpoint, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -354,7 +351,6 @@ func (client EndpointsClient) ListByProfileSender(req *http.Request) (*http.Resp func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (result EndpointListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -441,7 +437,6 @@ func (client EndpointsClient) LoadContentSender(req *http.Request) (future Endpo func (client EndpointsClient) LoadContentResponder(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 @@ -527,7 +522,6 @@ func (client EndpointsClient) PurgeContentSender(req *http.Request) (future Endp func (client EndpointsClient) PurgeContentResponder(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 @@ -604,7 +598,6 @@ func (client EndpointsClient) StartSender(req *http.Request) (future EndpointsSt func (client EndpointsClient) StartResponder(resp *http.Response) (result Endpoint, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -682,7 +675,6 @@ func (client EndpointsClient) StopSender(req *http.Request) (future EndpointsSto func (client EndpointsClient) StopResponder(resp *http.Response) (result Endpoint, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -763,7 +755,6 @@ func (client EndpointsClient) UpdateSender(req *http.Request) (future EndpointsU func (client EndpointsClient) UpdateResponder(resp *http.Response) (result Endpoint, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -850,7 +841,6 @@ func (client EndpointsClient) ValidateCustomDomainSender(req *http.Request) (*ht func (client EndpointsClient) ValidateCustomDomainResponder(resp *http.Response) (result ValidateCustomDomainOutput, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go b/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go index 1b4ad4b335e3..6965b5a7e3c7 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go +++ b/services/cdn/mgmt/2016-04-02/cdn/nameavailability.go @@ -113,7 +113,6 @@ func (client NameAvailabilityClient) CheckNameAvailabilitySender(req *http.Reque func (client NameAvailabilityClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/cdn/mgmt/2016-04-02/cdn/operations.go b/services/cdn/mgmt/2016-04-02/cdn/operations.go index 659bf5598c86..7ab45a727203 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/operations.go +++ b/services/cdn/mgmt/2016-04-02/cdn/operations.go @@ -100,7 +100,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/cdn/mgmt/2016-04-02/cdn/origins.go b/services/cdn/mgmt/2016-04-02/cdn/origins.go index 4685e93c2171..4ac74747e5fb 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/origins.go +++ b/services/cdn/mgmt/2016-04-02/cdn/origins.go @@ -124,7 +124,6 @@ func (client OriginsClient) CreateSender(req *http.Request) (future OriginsCreat func (client OriginsClient) CreateResponder(resp *http.Response) (result Origin, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -204,7 +203,6 @@ func (client OriginsClient) DeleteIfExistsSender(req *http.Request) (future Orig func (client OriginsClient) DeleteIfExistsResponder(resp *http.Response) (result Origin, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -284,7 +282,6 @@ func (client OriginsClient) GetSender(req *http.Request) (*http.Response, error) func (client OriginsClient) GetResponder(resp *http.Response) (result Origin, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -362,7 +359,6 @@ func (client OriginsClient) ListByEndpointSender(req *http.Request) (*http.Respo func (client OriginsClient) ListByEndpointResponder(resp *http.Response) (result OriginListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -445,7 +441,6 @@ func (client OriginsClient) UpdateSender(req *http.Request) (future OriginsUpdat func (client OriginsClient) UpdateResponder(resp *http.Response) (result Origin, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/cdn/mgmt/2016-04-02/cdn/profiles.go b/services/cdn/mgmt/2016-04-02/cdn/profiles.go index c0dce8e6be96..b96cc3055155 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/profiles.go +++ b/services/cdn/mgmt/2016-04-02/cdn/profiles.go @@ -120,7 +120,6 @@ func (client ProfilesClient) CreateSender(req *http.Request) (future ProfilesCre func (client ProfilesClient) CreateResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -196,7 +195,6 @@ func (client ProfilesClient) DeleteIfExistsSender(req *http.Request) (future Pro func (client ProfilesClient) DeleteIfExistsResponder(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 @@ -271,7 +269,6 @@ func (client ProfilesClient) GenerateSsoURISender(req *http.Request) (*http.Resp func (client ProfilesClient) GenerateSsoURIResponder(resp *http.Response) (result SsoURI, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -347,7 +344,6 @@ func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -421,7 +417,6 @@ func (client ProfilesClient) ListByResourceGroupSender(req *http.Request) (*http func (client ProfilesClient) ListByResourceGroupResponder(resp *http.Response) (result ProfileListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -492,7 +487,6 @@ func (client ProfilesClient) ListBySubscriptionIDSender(req *http.Request) (*htt func (client ProfilesClient) ListBySubscriptionIDResponder(resp *http.Response) (result ProfileListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -571,7 +565,6 @@ func (client ProfilesClient) UpdateSender(req *http.Request) (future ProfilesUpd func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/cdn/mgmt/2016-04-02/cdn/version.go b/services/cdn/mgmt/2016-04-02/cdn/version.go index c3b4f3dfea64..7adf7c3ea609 100644 --- a/services/cdn/mgmt/2016-04-02/cdn/version.go +++ b/services/cdn/mgmt/2016-04-02/cdn/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 + " cdn/2016-04-02" + return "Azure-SDK-For-Go/" + Version() + " cdn/2016-04-02" } // Version returns the semantic version (see http://semver.org) of the client.