From 6f9701ef446b8cd5b26f16a15e78ea0446d45d0e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 30 Aug 2019 10:02:05 -0700 Subject: [PATCH] Generated from 111d1bc1666fe89cebb960135cf2f5336bbcb35a (#5615) Removed rogue file --- .../mgmt/2017-04-18/cognitiveservices/client.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go index a64fa4de7483..ba2be90e1e99 100644 --- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go +++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go @@ -99,6 +99,10 @@ func (client BaseClient) CheckDomainAvailability(ctx context.Context, parameters // CheckDomainAvailabilityPreparer prepares the CheckDomainAvailability request. func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, parameters CheckDomainAvailabilityParameter) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + const APIVersion = "2017-04-18" queryParameters := map[string]interface{}{ "api-version": APIVersion, @@ -108,7 +112,7 @@ func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, pa autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.CognitiveServices/checkDomainAvailability"), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) @@ -117,7 +121,7 @@ func (client BaseClient) CheckDomainAvailabilityPreparer(ctx context.Context, pa // CheckDomainAvailabilitySender sends the CheckDomainAvailability request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CheckDomainAvailabilitySender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) return autorest.SendWithSender(client, req, sd...) }