diff --git a/services/cognitiveservices/v3.0/customvision/training/client.go b/services/cognitiveservices/v3.0/customvision/training/client.go index bb73f81c15bc..fbeb6c254f4a 100644 --- a/services/cognitiveservices/v3.0/customvision/training/client.go +++ b/services/cognitiveservices/v3.0/customvision/training/client.go @@ -113,8 +113,7 @@ func (client BaseClient) CreateImageRegionsPreparer(ctx context.Context, project // CreateImageRegionsSender sends the CreateImageRegions request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImageRegionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImageRegionsResponder handles the response to the CreateImageRegions request. The method always @@ -210,8 +209,7 @@ func (client BaseClient) CreateImagesFromDataPreparer(ctx context.Context, proje // CreateImagesFromDataSender sends the CreateImagesFromData request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImagesFromDataSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImagesFromDataResponder handles the response to the CreateImagesFromData request. The method always @@ -287,8 +285,7 @@ func (client BaseClient) CreateImagesFromFilesPreparer(ctx context.Context, proj // CreateImagesFromFilesSender sends the CreateImagesFromFiles request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImagesFromFilesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImagesFromFilesResponder handles the response to the CreateImagesFromFiles request. The method always @@ -364,8 +361,7 @@ func (client BaseClient) CreateImagesFromPredictionsPreparer(ctx context.Context // CreateImagesFromPredictionsSender sends the CreateImagesFromPredictions request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImagesFromPredictionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImagesFromPredictionsResponder handles the response to the CreateImagesFromPredictions request. The method always @@ -441,8 +437,7 @@ func (client BaseClient) CreateImagesFromUrlsPreparer(ctx context.Context, proje // CreateImagesFromUrlsSender sends the CreateImagesFromUrls request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImagesFromUrlsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImagesFromUrlsResponder handles the response to the CreateImagesFromUrls request. The method always @@ -517,8 +512,7 @@ func (client BaseClient) CreateImageTagsPreparer(ctx context.Context, projectID // CreateImageTagsSender sends the CreateImageTags request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateImageTagsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateImageTagsResponder handles the response to the CreateImageTags request. The method always @@ -607,8 +601,7 @@ func (client BaseClient) CreateProjectPreparer(ctx context.Context, name string, // CreateProjectSender sends the CreateProject request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateProjectSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateProjectResponder handles the response to the CreateProject request. The method always @@ -694,8 +687,7 @@ func (client BaseClient) CreateTagPreparer(ctx context.Context, projectID uuid.U // CreateTagSender sends the CreateTag request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CreateTagSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateTagResponder handles the response to the CreateTag request. The method always @@ -782,8 +774,7 @@ func (client BaseClient) DeleteImageRegionsPreparer(ctx context.Context, project // DeleteImageRegionsSender sends the DeleteImageRegions request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteImageRegionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteImageRegionsResponder handles the response to the DeleteImageRegions request. The method always @@ -869,8 +860,7 @@ func (client BaseClient) DeleteImagesPreparer(ctx context.Context, projectID uui // DeleteImagesSender sends the DeleteImages request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteImagesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteImagesResponder handles the response to the DeleteImages request. The method always @@ -963,8 +953,7 @@ func (client BaseClient) DeleteImageTagsPreparer(ctx context.Context, projectID // DeleteImageTagsSender sends the DeleteImageTags request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteImageTagsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteImageTagsResponder handles the response to the DeleteImageTags request. The method always @@ -1037,8 +1026,7 @@ func (client BaseClient) DeleteIterationPreparer(ctx context.Context, projectID // DeleteIterationSender sends the DeleteIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteIterationResponder handles the response to the DeleteIteration request. The method always @@ -1124,8 +1112,7 @@ func (client BaseClient) DeletePredictionPreparer(ctx context.Context, projectID // DeletePredictionSender sends the DeletePrediction request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeletePredictionSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeletePredictionResponder handles the response to the DeletePrediction request. The method always @@ -1196,8 +1183,7 @@ func (client BaseClient) DeleteProjectPreparer(ctx context.Context, projectID uu // DeleteProjectSender sends the DeleteProject request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteProjectSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteProjectResponder handles the response to the DeleteProject request. The method always @@ -1270,8 +1256,7 @@ func (client BaseClient) DeleteTagPreparer(ctx context.Context, projectID uuid.U // DeleteTagSender sends the DeleteTag request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) DeleteTagSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // DeleteTagResponder handles the response to the DeleteTag request. The method always @@ -1354,8 +1339,7 @@ func (client BaseClient) ExportIterationPreparer(ctx context.Context, projectID // ExportIterationSender sends the ExportIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) ExportIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // ExportIterationResponder handles the response to the ExportIteration request. The method always @@ -1427,8 +1411,7 @@ func (client BaseClient) GetDomainPreparer(ctx context.Context, domainID uuid.UU // GetDomainSender sends the GetDomain request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetDomainSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetDomainResponder handles the response to the GetDomain request. The method always @@ -1494,8 +1477,7 @@ func (client BaseClient) GetDomainsPreparer(ctx context.Context) (*http.Request, // GetDomainsSender sends the GetDomains request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetDomainsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetDomainsResponder handles the response to the GetDomains request. The method always @@ -1569,8 +1551,7 @@ func (client BaseClient) GetExportsPreparer(ctx context.Context, projectID uuid. // GetExportsSender sends the GetExports request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetExportsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetExportsResponder handles the response to the GetExports request. The method always @@ -1653,8 +1634,7 @@ func (client BaseClient) GetImagePerformanceCountPreparer(ctx context.Context, p // GetImagePerformanceCountSender sends the GetImagePerformanceCount request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetImagePerformanceCountSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetImagePerformanceCountResponder handles the response to the GetImagePerformanceCount request. The method always @@ -1769,8 +1749,7 @@ func (client BaseClient) GetImagePerformancesPreparer(ctx context.Context, proje // GetImagePerformancesSender sends the GetImagePerformances request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetImagePerformancesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetImagePerformancesResponder handles the response to the GetImagePerformances request. The method always @@ -1845,8 +1824,7 @@ func (client BaseClient) GetImageRegionProposalsPreparer(ctx context.Context, pr // GetImageRegionProposalsSender sends the GetImageRegionProposals request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetImageRegionProposalsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetImageRegionProposalsResponder handles the response to the GetImageRegionProposals request. The method always @@ -1940,8 +1918,7 @@ func (client BaseClient) GetImagesByIdsPreparer(ctx context.Context, projectID u // GetImagesByIdsSender sends the GetImagesByIds request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetImagesByIdsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetImagesByIdsResponder handles the response to the GetImagesByIds request. The method always @@ -2015,8 +1992,7 @@ func (client BaseClient) GetIterationPreparer(ctx context.Context, projectID uui // GetIterationSender sends the GetIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetIterationResponder handles the response to the GetIteration request. The method always @@ -2101,8 +2077,7 @@ func (client BaseClient) GetIterationPerformancePreparer(ctx context.Context, pr // GetIterationPerformanceSender sends the GetIterationPerformance request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetIterationPerformanceSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetIterationPerformanceResponder handles the response to the GetIterationPerformance request. The method always @@ -2174,8 +2149,7 @@ func (client BaseClient) GetIterationsPreparer(ctx context.Context, projectID uu // GetIterationsSender sends the GetIterations request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetIterationsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetIterationsResponder handles the response to the GetIterations request. The method always @@ -2247,8 +2221,7 @@ func (client BaseClient) GetProjectPreparer(ctx context.Context, projectID uuid. // GetProjectSender sends the GetProject request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetProjectSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetProjectResponder handles the response to the GetProject request. The method always @@ -2314,8 +2287,7 @@ func (client BaseClient) GetProjectsPreparer(ctx context.Context) (*http.Request // GetProjectsSender sends the GetProjects request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetProjectsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetProjectsResponder handles the response to the GetProjects request. The method always @@ -2396,8 +2368,7 @@ func (client BaseClient) GetTagPreparer(ctx context.Context, projectID uuid.UUID // GetTagSender sends the GetTag request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetTagSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetTagResponder handles the response to the GetTag request. The method always @@ -2482,8 +2453,7 @@ func (client BaseClient) GetTaggedImageCountPreparer(ctx context.Context, projec // GetTaggedImageCountSender sends the GetTaggedImageCount request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetTaggedImageCountSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetTaggedImageCountResponder handles the response to the GetTaggedImageCount request. The method always @@ -2600,8 +2570,7 @@ func (client BaseClient) GetTaggedImagesPreparer(ctx context.Context, projectID // GetTaggedImagesSender sends the GetTaggedImages request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetTaggedImagesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetTaggedImagesResponder handles the response to the GetTaggedImages request. The method always @@ -2680,8 +2649,7 @@ func (client BaseClient) GetTagsPreparer(ctx context.Context, projectID uuid.UUI // GetTagsSender sends the GetTags request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetTagsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetTagsResponder handles the response to the GetTags request. The method always @@ -2762,8 +2730,7 @@ func (client BaseClient) GetUntaggedImageCountPreparer(ctx context.Context, proj // GetUntaggedImageCountSender sends the GetUntaggedImageCount request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetUntaggedImageCountSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetUntaggedImageCountResponder handles the response to the GetUntaggedImageCount request. The method always @@ -2869,8 +2836,7 @@ func (client BaseClient) GetUntaggedImagesPreparer(ctx context.Context, projectI // GetUntaggedImagesSender sends the GetUntaggedImages request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) GetUntaggedImagesSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetUntaggedImagesResponder handles the response to the GetUntaggedImages request. The method always @@ -2952,8 +2918,7 @@ func (client BaseClient) PublishIterationPreparer(ctx context.Context, projectID // PublishIterationSender sends the PublishIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) PublishIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // PublishIterationResponder handles the response to the PublishIteration request. The method always @@ -3028,8 +2993,7 @@ func (client BaseClient) QueryPredictionsPreparer(ctx context.Context, projectID // QueryPredictionsSender sends the QueryPredictions request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) QueryPredictionsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // QueryPredictionsResponder handles the response to the QueryPredictions request. The method always @@ -3115,8 +3079,7 @@ func (client BaseClient) QuickTestImagePreparer(ctx context.Context, projectID u // QuickTestImageSender sends the QuickTestImage request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) QuickTestImageSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // QuickTestImageResponder handles the response to the QuickTestImage request. The method always @@ -3205,8 +3168,7 @@ func (client BaseClient) QuickTestImageURLPreparer(ctx context.Context, projectI // QuickTestImageURLSender sends the QuickTestImageURL request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) QuickTestImageURLSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // QuickTestImageURLResponder handles the response to the QuickTestImageURL request. The method always @@ -3301,8 +3263,7 @@ func (client BaseClient) TrainProjectPreparer(ctx context.Context, projectID uui // TrainProjectSender sends the TrainProject request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) TrainProjectSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // TrainProjectResponder handles the response to the TrainProject request. The method always @@ -3376,8 +3337,7 @@ func (client BaseClient) UnpublishIterationPreparer(ctx context.Context, project // UnpublishIterationSender sends the UnpublishIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) UnpublishIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // UnpublishIterationResponder handles the response to the UnpublishIteration request. The method always @@ -3467,8 +3427,7 @@ func (client BaseClient) UpdateIterationPreparer(ctx context.Context, projectID // UpdateIterationSender sends the UpdateIteration request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) UpdateIterationSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // UpdateIterationResponder handles the response to the UpdateIteration request. The method always @@ -3548,8 +3507,7 @@ func (client BaseClient) UpdateProjectPreparer(ctx context.Context, projectID uu // UpdateProjectSender sends the UpdateProject request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) UpdateProjectSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // UpdateProjectResponder handles the response to the UpdateProject request. The method always @@ -3628,8 +3586,7 @@ func (client BaseClient) UpdateTagPreparer(ctx context.Context, projectID uuid.U // UpdateTagSender sends the UpdateTag request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) UpdateTagSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // UpdateTagResponder handles the response to the UpdateTag request. The method always diff --git a/services/cognitiveservices/v3.0/customvision/training/version.go b/services/cognitiveservices/v3.0/customvision/training/version.go index fb83282937c9..d4b4faed7c1a 100644 --- a/services/cognitiveservices/v3.0/customvision/training/version.go +++ b/services/cognitiveservices/v3.0/customvision/training/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 + " training/3.0" + return "Azure-SDK-For-Go/" + Version() + " training/3.0" } // Version returns the semantic version (see http://semver.org) of the client.