From 882ff2cd8a61a0aab981bd97d624f7e0b77c7906 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 15 Jul 2020 02:32:29 +0000 Subject: [PATCH] Generated from 47fe478b6b258e1f94cf38c8e2226d0ce3380e87 Start enum values with uppercase like it is actually defined in RP --- services/cdn/mgmt/2015-06-01/cdn/customdomains.go | 5 ----- services/cdn/mgmt/2015-06-01/cdn/endpoints.go | 10 ---------- services/cdn/mgmt/2015-06-01/cdn/nameavailability.go | 1 - services/cdn/mgmt/2015-06-01/cdn/operations.go | 1 - services/cdn/mgmt/2015-06-01/cdn/origins.go | 5 ----- services/cdn/mgmt/2015-06-01/cdn/profiles.go | 7 ------- services/cdn/mgmt/2015-06-01/cdn/version.go | 2 +- 7 files changed, 1 insertion(+), 30 deletions(-) diff --git a/services/cdn/mgmt/2015-06-01/cdn/customdomains.go b/services/cdn/mgmt/2015-06-01/cdn/customdomains.go index db66bb16f41c..1364f3a9fff5 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/customdomains.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01/cdn/endpoints.go b/services/cdn/mgmt/2015-06-01/cdn/endpoints.go index 062271113c8e..470baf339026 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/endpoints.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01/cdn/nameavailability.go b/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go index 9525a08abc09..046fe581d461 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/nameavailability.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01/cdn/operations.go b/services/cdn/mgmt/2015-06-01/cdn/operations.go index fb2dff98317f..87d503ee737f 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/operations.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01/cdn/origins.go b/services/cdn/mgmt/2015-06-01/cdn/origins.go index fc0f908f72ab..11500334daa2 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/origins.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01/cdn/profiles.go b/services/cdn/mgmt/2015-06-01/cdn/profiles.go index e197a58f20ef..cf572bda8011 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/profiles.go +++ b/services/cdn/mgmt/2015-06-01/cdn/profiles.go @@ -121,7 +121,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()) @@ -197,7 +196,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 @@ -272,7 +270,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()) @@ -348,7 +345,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()) @@ -422,7 +418,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()) @@ -493,7 +488,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()) @@ -572,7 +566,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/2015-06-01/cdn/version.go b/services/cdn/mgmt/2015-06-01/cdn/version.go index cd3941e3a64e..67af42e2c6df 100644 --- a/services/cdn/mgmt/2015-06-01/cdn/version.go +++ b/services/cdn/mgmt/2015-06-01/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/2015-06-01" + return "Azure-SDK-For-Go/" + Version() + " cdn/2015-06-01" } // Version returns the semantic version (see http://semver.org) of the client.