From 7571719e01febe9475d78eed5ba8c9fd053d9943 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 28 Feb 2020 03:45:06 +0000 Subject: [PATCH] Generated from 68960e5bbe42a27b38adccc1492c0bdb8e05748b Updated with review comments --- .../billing/mgmt/2017-02-27-preview/billing/invoices.go | 9 +++------ .../mgmt/2017-02-27-preview/billing/operations.go | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go b/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go index 4921904cdfb4..9ac4962235b6 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/invoices.go @@ -103,8 +103,7 @@ func (client InvoicesClient) GetPreparer(ctx context.Context, invoiceName string // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client InvoicesClient) GetSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // GetResponder handles the response to the Get request. The method always @@ -176,8 +175,7 @@ func (client InvoicesClient) GetLatestPreparer(ctx context.Context) (*http.Reque // GetLatestSender sends the GetLatest request. The method will close the // http.Response Body if it receives an error. func (client InvoicesClient) GetLatestSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // GetLatestResponder handles the response to the GetLatest request. The method always @@ -282,8 +280,7 @@ func (client InvoicesClient) ListPreparer(ctx context.Context, expand string, fi // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client InvoicesClient) ListSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always diff --git a/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go b/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go index 84efa7e89f74..2ae97e8b3562 100644 --- a/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go +++ b/services/preview/billing/mgmt/2017-02-27-preview/billing/operations.go @@ -95,8 +95,7 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client OperationsClient) ListSender(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...)) } // ListResponder handles the response to the List request. The method always