diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go index 49920e02edcf..cacf67d14875 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/cassandraresources.go @@ -120,9 +120,8 @@ func (client CassandraResourcesClient) CreateUpdateCassandraKeyspacePreparer(ctx // CreateUpdateCassandraKeyspaceSender sends the CreateUpdateCassandraKeyspace request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) CreateUpdateCassandraKeyspaceSender(req *http.Request) (future CassandraResourcesCreateUpdateCassandraKeyspaceFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -222,9 +221,8 @@ func (client CassandraResourcesClient) CreateUpdateCassandraTablePreparer(ctx co // CreateUpdateCassandraTableSender sends the CreateUpdateCassandraTable request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) CreateUpdateCassandraTableSender(req *http.Request) (future CassandraResourcesCreateUpdateCassandraTableFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -313,9 +311,8 @@ func (client CassandraResourcesClient) DeleteCassandraKeyspacePreparer(ctx conte // DeleteCassandraKeyspaceSender sends the DeleteCassandraKeyspace request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) DeleteCassandraKeyspaceSender(req *http.Request) (future CassandraResourcesDeleteCassandraKeyspaceFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -405,9 +402,8 @@ func (client CassandraResourcesClient) DeleteCassandraTablePreparer(ctx context. // DeleteCassandraTableSender sends the DeleteCassandraTable request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) DeleteCassandraTableSender(req *http.Request) (future CassandraResourcesDeleteCassandraTableFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -502,8 +498,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspacePreparer(ctx context. // GetCassandraKeyspaceSender sends the GetCassandraKeyspace request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) GetCassandraKeyspaceSender(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)) } // GetCassandraKeyspaceResponder handles the response to the GetCassandraKeyspace request. The method always @@ -594,8 +589,7 @@ func (client CassandraResourcesClient) GetCassandraKeyspaceThroughputPreparer(ct // GetCassandraKeyspaceThroughputSender sends the GetCassandraKeyspaceThroughput request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) GetCassandraKeyspaceThroughputSender(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)) } // GetCassandraKeyspaceThroughputResponder handles the response to the GetCassandraKeyspaceThroughput request. The method always @@ -687,8 +681,7 @@ func (client CassandraResourcesClient) GetCassandraTablePreparer(ctx context.Con // GetCassandraTableSender sends the GetCassandraTable request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) GetCassandraTableSender(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)) } // GetCassandraTableResponder handles the response to the GetCassandraTable request. The method always @@ -781,8 +774,7 @@ func (client CassandraResourcesClient) GetCassandraTableThroughputPreparer(ctx c // GetCassandraTableThroughputSender sends the GetCassandraTableThroughput request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) GetCassandraTableThroughputSender(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)) } // GetCassandraTableThroughputResponder handles the response to the GetCassandraTableThroughput request. The method always @@ -870,8 +862,7 @@ func (client CassandraResourcesClient) ListCassandraKeyspacesPreparer(ctx contex // ListCassandraKeyspacesSender sends the ListCassandraKeyspaces request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) ListCassandraKeyspacesSender(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)) } // ListCassandraKeyspacesResponder handles the response to the ListCassandraKeyspaces request. The method always @@ -961,8 +952,7 @@ func (client CassandraResourcesClient) ListCassandraTablesPreparer(ctx context.C // ListCassandraTablesSender sends the ListCassandraTables request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) ListCassandraTablesSender(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)) } // ListCassandraTablesResponder handles the response to the ListCassandraTables request. The method always @@ -1055,9 +1045,8 @@ func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughputPreparer // UpdateCassandraKeyspaceThroughputSender sends the UpdateCassandraKeyspaceThroughput request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) UpdateCassandraKeyspaceThroughputSender(req *http.Request) (future CassandraResourcesUpdateCassandraKeyspaceThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1157,9 +1146,8 @@ func (client CassandraResourcesClient) UpdateCassandraTableThroughputPreparer(ct // UpdateCassandraTableThroughputSender sends the UpdateCassandraTableThroughput request. The method will close the // http.Response Body if it receives an error. func (client CassandraResourcesClient) UpdateCassandraTableThroughputSender(req *http.Request) (future CassandraResourcesUpdateCassandraTableThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go index 74ec68cb0cc9..d36deaf81efe 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collection.go @@ -118,8 +118,7 @@ func (client CollectionClient) ListMetricDefinitionsPreparer(ctx context.Context // ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the // http.Response Body if it receives an error. func (client CollectionClient) ListMetricDefinitionsSender(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)) } // ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always @@ -215,8 +214,7 @@ func (client CollectionClient) ListMetricsPreparer(ctx context.Context, resource // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client CollectionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always @@ -313,8 +311,7 @@ func (client CollectionClient) ListUsagesPreparer(ctx context.Context, resourceG // ListUsagesSender sends the ListUsages request. The method will close the // http.Response Body if it receives an error. func (client CollectionClient) ListUsagesSender(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)) } // ListUsagesResponder handles the response to the ListUsages request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go index 7a813b06279d..cd991a2b0c0e 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartition.go @@ -123,8 +123,7 @@ func (client CollectionPartitionClient) ListMetricsPreparer(ctx context.Context, // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client CollectionPartitionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always @@ -221,8 +220,7 @@ func (client CollectionPartitionClient) ListUsagesPreparer(ctx context.Context, // ListUsagesSender sends the ListUsages request. The method will close the // http.Response Body if it receives an error. func (client CollectionPartitionClient) ListUsagesSender(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)) } // ListUsagesResponder handles the response to the ListUsages request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go index 249a5c4c7c8c..802442d243ca 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionpartitionregion.go @@ -126,8 +126,7 @@ func (client CollectionPartitionRegionClient) ListMetricsPreparer(ctx context.Co // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client CollectionPartitionRegionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go index ea8247250b8e..30fba6b398e1 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/collectionregion.go @@ -126,8 +126,7 @@ func (client CollectionRegionClient) ListMetricsPreparer(ctx context.Context, re // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client CollectionRegionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go index 42318e085862..502fb2d6e6af 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/database.go @@ -116,8 +116,7 @@ func (client DatabaseClient) ListMetricDefinitionsPreparer(ctx context.Context, // ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the // http.Response Body if it receives an error. func (client DatabaseClient) ListMetricDefinitionsSender(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)) } // ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always @@ -211,8 +210,7 @@ func (client DatabaseClient) ListMetricsPreparer(ctx context.Context, resourceGr // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client DatabaseClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always @@ -307,8 +305,7 @@ func (client DatabaseClient) ListUsagesPreparer(ctx context.Context, resourceGro // ListUsagesSender sends the ListUsages request. The method will close the // http.Response Body if it receives an error. func (client DatabaseClient) ListUsagesSender(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)) } // ListUsagesResponder handles the response to the ListUsages request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go index f0f1e226d4d5..3a1fc6bac8d8 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccountregion.go @@ -121,8 +121,7 @@ func (client DatabaseAccountRegionClient) ListMetricsPreparer(ctx context.Contex // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountRegionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go index b22489682a26..26566425c949 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/databaseaccounts.go @@ -109,8 +109,7 @@ func (client DatabaseAccountsClient) CheckNameExistsPreparer(ctx context.Context // CheckNameExistsSender sends the CheckNameExists request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) CheckNameExistsSender(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...)) } // CheckNameExistsResponder handles the response to the CheckNameExists request. The method always @@ -210,9 +209,8 @@ func (client DatabaseAccountsClient) CreateOrUpdatePreparer(ctx context.Context, // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) CreateOrUpdateSender(req *http.Request) (future DatabaseAccountsCreateOrUpdateFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -299,9 +297,8 @@ func (client DatabaseAccountsClient) DeletePreparer(ctx context.Context, resourc // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) DeleteSender(req *http.Request) (future DatabaseAccountsDeleteFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -394,9 +391,8 @@ func (client DatabaseAccountsClient) FailoverPriorityChangePreparer(ctx context. // FailoverPriorityChangeSender sends the FailoverPriorityChange request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) FailoverPriorityChangeSender(req *http.Request) (future DatabaseAccountsFailoverPriorityChangeFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -488,8 +484,7 @@ func (client DatabaseAccountsClient) GetPreparer(ctx context.Context, resourceGr // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) 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 @@ -577,8 +572,7 @@ func (client DatabaseAccountsClient) GetReadOnlyKeysPreparer(ctx context.Context // GetReadOnlyKeysSender sends the GetReadOnlyKeys request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) GetReadOnlyKeysSender(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)) } // GetReadOnlyKeysResponder handles the response to the GetReadOnlyKeys request. The method always @@ -649,8 +643,7 @@ func (client DatabaseAccountsClient) ListPreparer(ctx context.Context) (*http.Re // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) 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 @@ -732,8 +725,7 @@ func (client DatabaseAccountsClient) ListByResourceGroupPreparer(ctx context.Con // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListByResourceGroupSender(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)) } // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always @@ -821,8 +813,7 @@ func (client DatabaseAccountsClient) ListConnectionStringsPreparer(ctx context.C // ListConnectionStringsSender sends the ListConnectionStrings request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListConnectionStringsSender(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)) } // ListConnectionStringsResponder handles the response to the ListConnectionStrings request. The method always @@ -910,8 +901,7 @@ func (client DatabaseAccountsClient) ListKeysPreparer(ctx context.Context, resou // ListKeysSender sends the ListKeys request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListKeysSender(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)) } // ListKeysResponder handles the response to the ListKeys request. The method always @@ -999,8 +989,7 @@ func (client DatabaseAccountsClient) ListMetricDefinitionsPreparer(ctx context.C // ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListMetricDefinitionsSender(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)) } // ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always @@ -1092,8 +1081,7 @@ func (client DatabaseAccountsClient) ListMetricsPreparer(ctx context.Context, re // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always @@ -1181,8 +1169,7 @@ func (client DatabaseAccountsClient) ListReadOnlyKeysPreparer(ctx context.Contex // ListReadOnlyKeysSender sends the ListReadOnlyKeys request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListReadOnlyKeysSender(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)) } // ListReadOnlyKeysResponder handles the response to the ListReadOnlyKeys request. The method always @@ -1275,8 +1262,7 @@ func (client DatabaseAccountsClient) ListUsagesPreparer(ctx context.Context, res // ListUsagesSender sends the ListUsages request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) ListUsagesSender(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)) } // ListUsagesResponder handles the response to the ListUsages request. The method always @@ -1363,9 +1349,8 @@ func (client DatabaseAccountsClient) OfflineRegionPreparer(ctx context.Context, // OfflineRegionSender sends the OfflineRegion request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) OfflineRegionSender(req *http.Request) (future DatabaseAccountsOfflineRegionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1456,9 +1441,8 @@ func (client DatabaseAccountsClient) OnlineRegionPreparer(ctx context.Context, r // OnlineRegionSender sends the OnlineRegion request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) OnlineRegionSender(req *http.Request) (future DatabaseAccountsOnlineRegionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1547,9 +1531,8 @@ func (client DatabaseAccountsClient) RegenerateKeyPreparer(ctx context.Context, // RegenerateKeySender sends the RegenerateKey request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) RegenerateKeySender(req *http.Request) (future DatabaseAccountsRegenerateKeyFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1638,9 +1621,8 @@ func (client DatabaseAccountsClient) UpdatePreparer(ctx context.Context, resourc // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client DatabaseAccountsClient) UpdateSender(req *http.Request) (future DatabaseAccountsUpdateFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go index 4e0a34151cb3..fb44b2063a95 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/gremlinresources.go @@ -120,9 +120,8 @@ func (client GremlinResourcesClient) CreateUpdateGremlinDatabasePreparer(ctx con // CreateUpdateGremlinDatabaseSender sends the CreateUpdateGremlinDatabase request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) CreateUpdateGremlinDatabaseSender(req *http.Request) (future GremlinResourcesCreateUpdateGremlinDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -229,9 +228,8 @@ func (client GremlinResourcesClient) CreateUpdateGremlinGraphPreparer(ctx contex // CreateUpdateGremlinGraphSender sends the CreateUpdateGremlinGraph request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) CreateUpdateGremlinGraphSender(req *http.Request) (future GremlinResourcesCreateUpdateGremlinGraphFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -320,9 +318,8 @@ func (client GremlinResourcesClient) DeleteGremlinDatabasePreparer(ctx context.C // DeleteGremlinDatabaseSender sends the DeleteGremlinDatabase request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) DeleteGremlinDatabaseSender(req *http.Request) (future GremlinResourcesDeleteGremlinDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -412,9 +409,8 @@ func (client GremlinResourcesClient) DeleteGremlinGraphPreparer(ctx context.Cont // DeleteGremlinGraphSender sends the DeleteGremlinGraph request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) DeleteGremlinGraphSender(req *http.Request) (future GremlinResourcesDeleteGremlinGraphFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -509,8 +505,7 @@ func (client GremlinResourcesClient) GetGremlinDatabasePreparer(ctx context.Cont // GetGremlinDatabaseSender sends the GetGremlinDatabase request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) GetGremlinDatabaseSender(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)) } // GetGremlinDatabaseResponder handles the response to the GetGremlinDatabase request. The method always @@ -601,8 +596,7 @@ func (client GremlinResourcesClient) GetGremlinDatabaseThroughputPreparer(ctx co // GetGremlinDatabaseThroughputSender sends the GetGremlinDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) GetGremlinDatabaseThroughputSender(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)) } // GetGremlinDatabaseThroughputResponder handles the response to the GetGremlinDatabaseThroughput request. The method always @@ -694,8 +688,7 @@ func (client GremlinResourcesClient) GetGremlinGraphPreparer(ctx context.Context // GetGremlinGraphSender sends the GetGremlinGraph request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) GetGremlinGraphSender(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)) } // GetGremlinGraphResponder handles the response to the GetGremlinGraph request. The method always @@ -788,8 +781,7 @@ func (client GremlinResourcesClient) GetGremlinGraphThroughputPreparer(ctx conte // GetGremlinGraphThroughputSender sends the GetGremlinGraphThroughput request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) GetGremlinGraphThroughputSender(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)) } // GetGremlinGraphThroughputResponder handles the response to the GetGremlinGraphThroughput request. The method always @@ -877,8 +869,7 @@ func (client GremlinResourcesClient) ListGremlinDatabasesPreparer(ctx context.Co // ListGremlinDatabasesSender sends the ListGremlinDatabases request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) ListGremlinDatabasesSender(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)) } // ListGremlinDatabasesResponder handles the response to the ListGremlinDatabases request. The method always @@ -968,8 +959,7 @@ func (client GremlinResourcesClient) ListGremlinGraphsPreparer(ctx context.Conte // ListGremlinGraphsSender sends the ListGremlinGraphs request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) ListGremlinGraphsSender(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)) } // ListGremlinGraphsResponder handles the response to the ListGremlinGraphs request. The method always @@ -1062,9 +1052,8 @@ func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughputPreparer(ctx // UpdateGremlinDatabaseThroughputSender sends the UpdateGremlinDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) UpdateGremlinDatabaseThroughputSender(req *http.Request) (future GremlinResourcesUpdateGremlinDatabaseThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1163,9 +1152,8 @@ func (client GremlinResourcesClient) UpdateGremlinGraphThroughputPreparer(ctx co // UpdateGremlinGraphThroughputSender sends the UpdateGremlinGraphThroughput request. The method will close the // http.Response Body if it receives an error. func (client GremlinResourcesClient) UpdateGremlinGraphThroughputSender(req *http.Request) (future GremlinResourcesUpdateGremlinGraphThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go index 230837f29bef..b873fe6e0e6e 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/mongodbresources.go @@ -122,9 +122,8 @@ func (client MongoDBResourcesClient) CreateUpdateMongoDBCollectionPreparer(ctx c // CreateUpdateMongoDBCollectionSender sends the CreateUpdateMongoDBCollection request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) CreateUpdateMongoDBCollectionSender(req *http.Request) (future MongoDBResourcesCreateUpdateMongoDBCollectionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -222,9 +221,8 @@ func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabasePreparer(ctx con // CreateUpdateMongoDBDatabaseSender sends the CreateUpdateMongoDBDatabase request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) CreateUpdateMongoDBDatabaseSender(req *http.Request) (future MongoDBResourcesCreateUpdateMongoDBDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -315,9 +313,8 @@ func (client MongoDBResourcesClient) DeleteMongoDBCollectionPreparer(ctx context // DeleteMongoDBCollectionSender sends the DeleteMongoDBCollection request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) DeleteMongoDBCollectionSender(req *http.Request) (future MongoDBResourcesDeleteMongoDBCollectionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -405,9 +402,8 @@ func (client MongoDBResourcesClient) DeleteMongoDBDatabasePreparer(ctx context.C // DeleteMongoDBDatabaseSender sends the DeleteMongoDBDatabase request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) DeleteMongoDBDatabaseSender(req *http.Request) (future MongoDBResourcesDeleteMongoDBDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -503,8 +499,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionPreparer(ctx context.Co // GetMongoDBCollectionSender sends the GetMongoDBCollection request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) GetMongoDBCollectionSender(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)) } // GetMongoDBCollectionResponder handles the response to the GetMongoDBCollection request. The method always @@ -597,8 +592,7 @@ func (client MongoDBResourcesClient) GetMongoDBCollectionThroughputPreparer(ctx // GetMongoDBCollectionThroughputSender sends the GetMongoDBCollectionThroughput request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) GetMongoDBCollectionThroughputSender(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)) } // GetMongoDBCollectionThroughputResponder handles the response to the GetMongoDBCollectionThroughput request. The method always @@ -689,8 +683,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabasePreparer(ctx context.Cont // GetMongoDBDatabaseSender sends the GetMongoDBDatabase request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) GetMongoDBDatabaseSender(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)) } // GetMongoDBDatabaseResponder handles the response to the GetMongoDBDatabase request. The method always @@ -781,8 +774,7 @@ func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughputPreparer(ctx co // GetMongoDBDatabaseThroughputSender sends the GetMongoDBDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) GetMongoDBDatabaseThroughputSender(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)) } // GetMongoDBDatabaseThroughputResponder handles the response to the GetMongoDBDatabaseThroughput request. The method always @@ -872,8 +864,7 @@ func (client MongoDBResourcesClient) ListMongoDBCollectionsPreparer(ctx context. // ListMongoDBCollectionsSender sends the ListMongoDBCollections request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) ListMongoDBCollectionsSender(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)) } // ListMongoDBCollectionsResponder handles the response to the ListMongoDBCollections request. The method always @@ -961,8 +952,7 @@ func (client MongoDBResourcesClient) ListMongoDBDatabasesPreparer(ctx context.Co // ListMongoDBDatabasesSender sends the ListMongoDBDatabases request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) ListMongoDBDatabasesSender(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)) } // ListMongoDBDatabasesResponder handles the response to the ListMongoDBDatabases request. The method always @@ -1057,9 +1047,8 @@ func (client MongoDBResourcesClient) UpdateMongoDBCollectionThroughputPreparer(c // UpdateMongoDBCollectionThroughputSender sends the UpdateMongoDBCollectionThroughput request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) UpdateMongoDBCollectionThroughputSender(req *http.Request) (future MongoDBResourcesUpdateMongoDBCollectionThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1157,9 +1146,8 @@ func (client MongoDBResourcesClient) UpdateMongoDBDatabaseThroughputPreparer(ctx // UpdateMongoDBDatabaseThroughputSender sends the UpdateMongoDBDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client MongoDBResourcesClient) UpdateMongoDBDatabaseThroughputSender(req *http.Request) (future MongoDBResourcesUpdateMongoDBDatabaseThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go index 99ce65a864e2..e269ee99a422 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/operations.go @@ -93,8 +93,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 diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go index d86355f2ce91..e1d641a90662 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeid.go @@ -125,8 +125,7 @@ func (client PartitionKeyRangeIDClient) ListMetricsPreparer(ctx context.Context, // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client PartitionKeyRangeIDClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go index 9dc8d3151ee5..e18638b68c4a 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/partitionkeyrangeidregion.go @@ -127,8 +127,7 @@ func (client PartitionKeyRangeIDRegionClient) ListMetricsPreparer(ctx context.Co // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client PartitionKeyRangeIDRegionClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go index bbd45db1bdc5..cb43554c2176 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentile.go @@ -119,8 +119,7 @@ func (client PercentileClient) ListMetricsPreparer(ctx context.Context, resource // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client PercentileClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go index d78a3ba089dd..34c7d35f7653 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentilesourcetarget.go @@ -126,8 +126,7 @@ func (client PercentileSourceTargetClient) ListMetricsPreparer(ctx context.Conte // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client PercentileSourceTargetClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go index 42c6101f2d1d..d08daa8c56de 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/percentiletarget.go @@ -123,8 +123,7 @@ func (client PercentileTargetClient) ListMetricsPreparer(ctx context.Context, re // ListMetricsSender sends the ListMetrics request. The method will close the // http.Response Body if it receives an error. func (client PercentileTargetClient) ListMetricsSender(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)) } // ListMetricsResponder handles the response to the ListMetrics request. The method always diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go index 2b52801d89ea..99339e0b4f34 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/sqlresources.go @@ -128,9 +128,8 @@ func (client SQLResourcesClient) CreateUpdateSQLContainerPreparer(ctx context.Co // CreateUpdateSQLContainerSender sends the CreateUpdateSQLContainer request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) CreateUpdateSQLContainerSender(req *http.Request) (future SQLResourcesCreateUpdateSQLContainerFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -228,9 +227,8 @@ func (client SQLResourcesClient) CreateUpdateSQLDatabasePreparer(ctx context.Con // CreateUpdateSQLDatabaseSender sends the CreateUpdateSQLDatabase request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) CreateUpdateSQLDatabaseSender(req *http.Request) (future SQLResourcesCreateUpdateSQLDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -332,9 +330,8 @@ func (client SQLResourcesClient) CreateUpdateSQLStoredProcedurePreparer(ctx cont // CreateUpdateSQLStoredProcedureSender sends the CreateUpdateSQLStoredProcedure request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) CreateUpdateSQLStoredProcedureSender(req *http.Request) (future SQLResourcesCreateUpdateSQLStoredProcedureFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -436,9 +433,8 @@ func (client SQLResourcesClient) CreateUpdateSQLTriggerPreparer(ctx context.Cont // CreateUpdateSQLTriggerSender sends the CreateUpdateSQLTrigger request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) CreateUpdateSQLTriggerSender(req *http.Request) (future SQLResourcesCreateUpdateSQLTriggerFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -541,9 +537,8 @@ func (client SQLResourcesClient) CreateUpdateSQLUserDefinedFunctionPreparer(ctx // CreateUpdateSQLUserDefinedFunctionSender sends the CreateUpdateSQLUserDefinedFunction request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) CreateUpdateSQLUserDefinedFunctionSender(req *http.Request) (future SQLResourcesCreateUpdateSQLUserDefinedFunctionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -634,9 +629,8 @@ func (client SQLResourcesClient) DeleteSQLContainerPreparer(ctx context.Context, // DeleteSQLContainerSender sends the DeleteSQLContainer request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) DeleteSQLContainerSender(req *http.Request) (future SQLResourcesDeleteSQLContainerFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -724,9 +718,8 @@ func (client SQLResourcesClient) DeleteSQLDatabasePreparer(ctx context.Context, // DeleteSQLDatabaseSender sends the DeleteSQLDatabase request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) DeleteSQLDatabaseSender(req *http.Request) (future SQLResourcesDeleteSQLDatabaseFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -818,9 +811,8 @@ func (client SQLResourcesClient) DeleteSQLStoredProcedurePreparer(ctx context.Co // DeleteSQLStoredProcedureSender sends the DeleteSQLStoredProcedure request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) DeleteSQLStoredProcedureSender(req *http.Request) (future SQLResourcesDeleteSQLStoredProcedureFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -912,9 +904,8 @@ func (client SQLResourcesClient) DeleteSQLTriggerPreparer(ctx context.Context, r // DeleteSQLTriggerSender sends the DeleteSQLTrigger request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) DeleteSQLTriggerSender(req *http.Request) (future SQLResourcesDeleteSQLTriggerFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1006,9 +997,8 @@ func (client SQLResourcesClient) DeleteSQLUserDefinedFunctionPreparer(ctx contex // DeleteSQLUserDefinedFunctionSender sends the DeleteSQLUserDefinedFunction request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) DeleteSQLUserDefinedFunctionSender(req *http.Request) (future SQLResourcesDeleteSQLUserDefinedFunctionFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -1104,8 +1094,7 @@ func (client SQLResourcesClient) GetSQLContainerPreparer(ctx context.Context, re // GetSQLContainerSender sends the GetSQLContainer request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLContainerSender(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)) } // GetSQLContainerResponder handles the response to the GetSQLContainer request. The method always @@ -1198,8 +1187,7 @@ func (client SQLResourcesClient) GetSQLContainerThroughputPreparer(ctx context.C // GetSQLContainerThroughputSender sends the GetSQLContainerThroughput request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLContainerThroughputSender(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)) } // GetSQLContainerThroughputResponder handles the response to the GetSQLContainerThroughput request. The method always @@ -1289,8 +1277,7 @@ func (client SQLResourcesClient) GetSQLDatabasePreparer(ctx context.Context, res // GetSQLDatabaseSender sends the GetSQLDatabase request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLDatabaseSender(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)) } // GetSQLDatabaseResponder handles the response to the GetSQLDatabase request. The method always @@ -1381,8 +1368,7 @@ func (client SQLResourcesClient) GetSQLDatabaseThroughputPreparer(ctx context.Co // GetSQLDatabaseThroughputSender sends the GetSQLDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLDatabaseThroughputSender(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)) } // GetSQLDatabaseThroughputResponder handles the response to the GetSQLDatabaseThroughput request. The method always @@ -1476,8 +1462,7 @@ func (client SQLResourcesClient) GetSQLStoredProcedurePreparer(ctx context.Conte // GetSQLStoredProcedureSender sends the GetSQLStoredProcedure request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLStoredProcedureSender(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)) } // GetSQLStoredProcedureResponder handles the response to the GetSQLStoredProcedure request. The method always @@ -1571,8 +1556,7 @@ func (client SQLResourcesClient) GetSQLTriggerPreparer(ctx context.Context, reso // GetSQLTriggerSender sends the GetSQLTrigger request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLTriggerSender(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)) } // GetSQLTriggerResponder handles the response to the GetSQLTrigger request. The method always @@ -1666,8 +1650,7 @@ func (client SQLResourcesClient) GetSQLUserDefinedFunctionPreparer(ctx context.C // GetSQLUserDefinedFunctionSender sends the GetSQLUserDefinedFunction request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) GetSQLUserDefinedFunctionSender(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)) } // GetSQLUserDefinedFunctionResponder handles the response to the GetSQLUserDefinedFunction request. The method always @@ -1757,8 +1740,7 @@ func (client SQLResourcesClient) ListSQLContainersPreparer(ctx context.Context, // ListSQLContainersSender sends the ListSQLContainers request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) ListSQLContainersSender(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)) } // ListSQLContainersResponder handles the response to the ListSQLContainers request. The method always @@ -1846,8 +1828,7 @@ func (client SQLResourcesClient) ListSQLDatabasesPreparer(ctx context.Context, r // ListSQLDatabasesSender sends the ListSQLDatabases request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) ListSQLDatabasesSender(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)) } // ListSQLDatabasesResponder handles the response to the ListSQLDatabases request. The method always @@ -1939,8 +1920,7 @@ func (client SQLResourcesClient) ListSQLStoredProceduresPreparer(ctx context.Con // ListSQLStoredProceduresSender sends the ListSQLStoredProcedures request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) ListSQLStoredProceduresSender(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)) } // ListSQLStoredProceduresResponder handles the response to the ListSQLStoredProcedures request. The method always @@ -2032,8 +2012,7 @@ func (client SQLResourcesClient) ListSQLTriggersPreparer(ctx context.Context, re // ListSQLTriggersSender sends the ListSQLTriggers request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) ListSQLTriggersSender(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)) } // ListSQLTriggersResponder handles the response to the ListSQLTriggers request. The method always @@ -2125,8 +2104,7 @@ func (client SQLResourcesClient) ListSQLUserDefinedFunctionsPreparer(ctx context // ListSQLUserDefinedFunctionsSender sends the ListSQLUserDefinedFunctions request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) ListSQLUserDefinedFunctionsSender(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)) } // ListSQLUserDefinedFunctionsResponder handles the response to the ListSQLUserDefinedFunctions request. The method always @@ -2220,9 +2198,8 @@ func (client SQLResourcesClient) UpdateSQLContainerThroughputPreparer(ctx contex // UpdateSQLContainerThroughputSender sends the UpdateSQLContainerThroughput request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) UpdateSQLContainerThroughputSender(req *http.Request) (future SQLResourcesUpdateSQLContainerThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -2319,9 +2296,8 @@ func (client SQLResourcesClient) UpdateSQLDatabaseThroughputPreparer(ctx context // UpdateSQLDatabaseThroughputSender sends the UpdateSQLDatabaseThroughput request. The method will close the // http.Response Body if it receives an error. func (client SQLResourcesClient) UpdateSQLDatabaseThroughputSender(req *http.Request) (future SQLResourcesUpdateSQLDatabaseThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } diff --git a/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go b/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go index 996ea017b73e..39e09cf9445d 100644 --- a/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go +++ b/services/cosmos-db/mgmt/2019-08-01/documentdb/tableresources.go @@ -119,9 +119,8 @@ func (client TableResourcesClient) CreateUpdateTablePreparer(ctx context.Context // CreateUpdateTableSender sends the CreateUpdateTable request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) CreateUpdateTableSender(req *http.Request) (future TableResourcesCreateUpdateTableFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -210,9 +209,8 @@ func (client TableResourcesClient) DeleteTablePreparer(ctx context.Context, reso // DeleteTableSender sends the DeleteTable request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) DeleteTableSender(req *http.Request) (future TableResourcesDeleteTableFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return } @@ -306,8 +304,7 @@ func (client TableResourcesClient) GetTablePreparer(ctx context.Context, resourc // GetTableSender sends the GetTable request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) GetTableSender(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)) } // GetTableResponder handles the response to the GetTable request. The method always @@ -398,8 +395,7 @@ func (client TableResourcesClient) GetTableThroughputPreparer(ctx context.Contex // GetTableThroughputSender sends the GetTableThroughput request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) GetTableThroughputSender(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)) } // GetTableThroughputResponder handles the response to the GetTableThroughput request. The method always @@ -487,8 +483,7 @@ func (client TableResourcesClient) ListTablesPreparer(ctx context.Context, resou // ListTablesSender sends the ListTables request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) ListTablesSender(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)) } // ListTablesResponder handles the response to the ListTables request. The method always @@ -580,9 +575,8 @@ func (client TableResourcesClient) UpdateTableThroughputPreparer(ctx context.Con // UpdateTableThroughputSender sends the UpdateTableThroughput request. The method will close the // http.Response Body if it receives an error. func (client TableResourcesClient) UpdateTableThroughputSender(req *http.Request) (future TableResourcesUpdateTableThroughputFuture, err error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) var resp *http.Response - resp, err = autorest.SendWithSender(client, req, sd...) + resp, err = client.Send(req, azure.DoRetryWithRegistration(client.Client)) if err != nil { return }