diff --git a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go
index 94f3c1de4b8c..9fde745e7826 100644
--- a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go
+++ b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go
@@ -117,8 +117,7 @@ func (client DeploymentOperationsClient) GetPreparer(ctx context.Context, resour
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) 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
@@ -206,8 +205,7 @@ func (client DeploymentOperationsClient) GetAtManagementGroupScopePreparer(ctx c
// GetAtManagementGroupScopeSender sends the GetAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) GetAtManagementGroupScopeSender(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...))
}
// GetAtManagementGroupScopeResponder handles the response to the GetAtManagementGroupScope request. The method always
@@ -291,8 +289,7 @@ func (client DeploymentOperationsClient) GetAtSubscriptionScopePreparer(ctx cont
// GetAtSubscriptionScopeSender sends the GetAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) GetAtSubscriptionScopeSender(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))
}
// GetAtSubscriptionScopeResponder handles the response to the GetAtSubscriptionScope request. The method always
@@ -385,8 +382,7 @@ func (client DeploymentOperationsClient) ListPreparer(ctx context.Context, resou
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) 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
@@ -514,8 +510,7 @@ func (client DeploymentOperationsClient) ListAtManagementGroupScopePreparer(ctx
// ListAtManagementGroupScopeSender sends the ListAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) ListAtManagementGroupScopeSender(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...))
}
// ListAtManagementGroupScopeResponder handles the response to the ListAtManagementGroupScope request. The method always
@@ -639,8 +634,7 @@ func (client DeploymentOperationsClient) ListAtSubscriptionScopePreparer(ctx con
// ListAtSubscriptionScopeSender sends the ListAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentOperationsClient) ListAtSubscriptionScopeSender(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))
}
// ListAtSubscriptionScopeResponder handles the response to the ListAtSubscriptionScope request. The method always
diff --git a/services/resources/mgmt/2019-05-01/resources/deployments.go b/services/resources/mgmt/2019-05-01/resources/deployments.go
index 0137bbacaf5c..caf1fc792d45 100644
--- a/services/resources/mgmt/2019-05-01/resources/deployments.go
+++ b/services/resources/mgmt/2019-05-01/resources/deployments.go
@@ -97,8 +97,7 @@ func (client DeploymentsClient) CalculateTemplateHashPreparer(ctx context.Contex
// CalculateTemplateHashSender sends the CalculateTemplateHash request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CalculateTemplateHashSender(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...))
}
// CalculateTemplateHashResponder handles the response to the CalculateTemplateHash request. The method always
@@ -188,8 +187,7 @@ func (client DeploymentsClient) CancelPreparer(ctx context.Context, resourceGrou
// CancelSender sends the Cancel request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CancelSender(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))
}
// CancelResponder handles the response to the Cancel request. The method always
@@ -276,8 +274,7 @@ func (client DeploymentsClient) CancelAtManagementGroupScopePreparer(ctx context
// CancelAtManagementGroupScopeSender sends the CancelAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CancelAtManagementGroupScopeSender(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...))
}
// CancelAtManagementGroupScopeResponder handles the response to the CancelAtManagementGroupScope request. The method always
@@ -360,8 +357,7 @@ func (client DeploymentsClient) CancelAtSubscriptionScopePreparer(ctx context.Co
// CancelAtSubscriptionScopeSender sends the CancelAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CancelAtSubscriptionScopeSender(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))
}
// CancelAtSubscriptionScopeResponder handles the response to the CancelAtSubscriptionScope request. The method always
@@ -449,8 +445,7 @@ func (client DeploymentsClient) CheckExistencePreparer(ctx context.Context, reso
// CheckExistenceSender sends the CheckExistence request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CheckExistenceSender(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))
}
// CheckExistenceResponder handles the response to the CheckExistence request. The method always
@@ -535,8 +530,7 @@ func (client DeploymentsClient) CheckExistenceAtManagementGroupScopePreparer(ctx
// CheckExistenceAtManagementGroupScopeSender sends the CheckExistenceAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CheckExistenceAtManagementGroupScopeSender(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...))
}
// CheckExistenceAtManagementGroupScopeResponder handles the response to the CheckExistenceAtManagementGroupScope request. The method always
@@ -617,8 +611,7 @@ func (client DeploymentsClient) CheckExistenceAtSubscriptionScopePreparer(ctx co
// CheckExistenceAtSubscriptionScopeSender sends the CheckExistenceAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CheckExistenceAtSubscriptionScopeSender(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))
}
// CheckExistenceAtSubscriptionScopeResponder handles the response to the CheckExistenceAtSubscriptionScope request. The method always
@@ -710,9 +703,8 @@ func (client DeploymentsClient) CreateOrUpdatePreparer(ctx context.Context, reso
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CreateOrUpdateSender(req *http.Request) (future DeploymentsCreateOrUpdateFuture, 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
}
@@ -808,9 +800,8 @@ func (client DeploymentsClient) CreateOrUpdateAtManagementGroupScopePreparer(ctx
// CreateOrUpdateAtManagementGroupScopeSender sends the CreateOrUpdateAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CreateOrUpdateAtManagementGroupScopeSender(req *http.Request) (future DeploymentsCreateOrUpdateAtManagementGroupScopeFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
+ resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if err != nil {
return
}
@@ -902,9 +893,8 @@ func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopePreparer(ctx co
// CreateOrUpdateAtSubscriptionScopeSender sends the CreateOrUpdateAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) CreateOrUpdateAtSubscriptionScopeSender(req *http.Request) (future DeploymentsCreateOrUpdateAtSubscriptionScopeFuture, 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
}
@@ -998,9 +988,8 @@ func (client DeploymentsClient) DeletePreparer(ctx context.Context, resourceGrou
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) DeleteSender(req *http.Request) (future DeploymentsDeleteFuture, 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
}
@@ -1089,9 +1078,8 @@ func (client DeploymentsClient) DeleteAtManagementGroupScopePreparer(ctx context
// DeleteAtManagementGroupScopeSender sends the DeleteAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) DeleteAtManagementGroupScopeSender(req *http.Request) (future DeploymentsDeleteAtManagementGroupScopeFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
+ resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if err != nil {
return
}
@@ -1176,9 +1164,8 @@ func (client DeploymentsClient) DeleteAtSubscriptionScopePreparer(ctx context.Co
// DeleteAtSubscriptionScopeSender sends the DeleteAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) DeleteAtSubscriptionScopeSender(req *http.Request) (future DeploymentsDeleteAtSubscriptionScopeFuture, 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
}
@@ -1270,8 +1257,7 @@ func (client DeploymentsClient) ExportTemplatePreparer(ctx context.Context, reso
// ExportTemplateSender sends the ExportTemplate request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ExportTemplateSender(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))
}
// ExportTemplateResponder handles the response to the ExportTemplate request. The method always
@@ -1357,8 +1343,7 @@ func (client DeploymentsClient) ExportTemplateAtManagementGroupScopePreparer(ctx
// ExportTemplateAtManagementGroupScopeSender sends the ExportTemplateAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ExportTemplateAtManagementGroupScopeSender(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...))
}
// ExportTemplateAtManagementGroupScopeResponder handles the response to the ExportTemplateAtManagementGroupScope request. The method always
@@ -1440,8 +1425,7 @@ func (client DeploymentsClient) ExportTemplateAtSubscriptionScopePreparer(ctx co
// ExportTemplateAtSubscriptionScopeSender sends the ExportTemplateAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ExportTemplateAtSubscriptionScopeSender(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))
}
// ExportTemplateAtSubscriptionScopeResponder handles the response to the ExportTemplateAtSubscriptionScope request. The method always
@@ -1529,8 +1513,7 @@ func (client DeploymentsClient) GetPreparer(ctx context.Context, resourceGroupNa
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) 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
@@ -1616,8 +1599,7 @@ func (client DeploymentsClient) GetAtManagementGroupScopePreparer(ctx context.Co
// GetAtManagementGroupScopeSender sends the GetAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) GetAtManagementGroupScopeSender(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...))
}
// GetAtManagementGroupScopeResponder handles the response to the GetAtManagementGroupScope request. The method always
@@ -1699,8 +1681,7 @@ func (client DeploymentsClient) GetAtSubscriptionScopePreparer(ctx context.Conte
// GetAtSubscriptionScopeSender sends the GetAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) GetAtSubscriptionScopeSender(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))
}
// GetAtSubscriptionScopeResponder handles the response to the GetAtSubscriptionScope request. The method always
@@ -1790,8 +1771,7 @@ func (client DeploymentsClient) ListAtManagementGroupScopePreparer(ctx context.C
// ListAtManagementGroupScopeSender sends the ListAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ListAtManagementGroupScopeSender(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...))
}
// ListAtManagementGroupScopeResponder handles the response to the ListAtManagementGroupScope request. The method always
@@ -1910,8 +1890,7 @@ func (client DeploymentsClient) ListAtSubscriptionScopePreparer(ctx context.Cont
// ListAtSubscriptionScopeSender sends the ListAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ListAtSubscriptionScopeSender(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))
}
// ListAtSubscriptionScopeResponder handles the response to the ListAtSubscriptionScope request. The method always
@@ -2041,8 +2020,7 @@ func (client DeploymentsClient) ListByResourceGroupPreparer(ctx context.Context,
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) 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
@@ -2179,8 +2157,7 @@ func (client DeploymentsClient) ValidatePreparer(ctx context.Context, resourceGr
// ValidateSender sends the Validate request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ValidateSender(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))
}
// ValidateResponder handles the response to the Validate request. The method always
@@ -2277,8 +2254,7 @@ func (client DeploymentsClient) ValidateAtManagementGroupScopePreparer(ctx conte
// ValidateAtManagementGroupScopeSender sends the ValidateAtManagementGroupScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ValidateAtManagementGroupScopeSender(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...))
}
// ValidateAtManagementGroupScopeResponder handles the response to the ValidateAtManagementGroupScope request. The method always
@@ -2371,8 +2347,7 @@ func (client DeploymentsClient) ValidateAtSubscriptionScopePreparer(ctx context.
// ValidateAtSubscriptionScopeSender sends the ValidateAtSubscriptionScope request. The method will close the
// http.Response Body if it receives an error.
func (client DeploymentsClient) ValidateAtSubscriptionScopeSender(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))
}
// ValidateAtSubscriptionScopeResponder handles the response to the ValidateAtSubscriptionScope request. The method always
diff --git a/services/resources/mgmt/2019-05-01/resources/groups.go b/services/resources/mgmt/2019-05-01/resources/groups.go
index 261ded458da8..f2f44fd6360f 100644
--- a/services/resources/mgmt/2019-05-01/resources/groups.go
+++ b/services/resources/mgmt/2019-05-01/resources/groups.go
@@ -108,8 +108,7 @@ func (client GroupsClient) CheckExistencePreparer(ctx context.Context, resourceG
// CheckExistenceSender sends the CheckExistence request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) CheckExistenceSender(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))
}
// CheckExistenceResponder handles the response to the CheckExistence request. The method always
@@ -200,8 +199,7 @@ func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceG
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) CreateOrUpdateSender(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))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
@@ -278,9 +276,8 @@ func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteFuture, 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
}
@@ -369,8 +366,7 @@ func (client GroupsClient) ExportTemplatePreparer(ctx context.Context, resourceG
// ExportTemplateSender sends the ExportTemplate request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) ExportTemplateSender(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))
}
// ExportTemplateResponder handles the response to the ExportTemplate request. The method always
@@ -452,8 +448,7 @@ func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName st
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) 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
@@ -535,8 +530,7 @@ func (client GroupsClient) ListPreparer(ctx context.Context, filter string, top
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) 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
@@ -659,8 +653,7 @@ func (client GroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client GroupsClient) UpdateSender(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))
}
// UpdateResponder handles the response to the Update request. The method always
diff --git a/services/resources/mgmt/2019-05-01/resources/models.go b/services/resources/mgmt/2019-05-01/resources/models.go
index 89c032785eab..06ed98731124 100644
--- a/services/resources/mgmt/2019-05-01/resources/models.go
+++ b/services/resources/mgmt/2019-05-01/resources/models.go
@@ -895,6 +895,68 @@ func (gr GenericResource) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
+// GenericResourceExpanded resource information.
+type GenericResourceExpanded struct {
+ // CreatedTime - READ-ONLY; The created time of the resource. This is only present if requested via the $expand query parameter.
+ CreatedTime *date.Time `json:"createdTime,omitempty"`
+ // ChangedTime - READ-ONLY; The changed time of the resource. This is only present if requested via the $expand query parameter.
+ ChangedTime *date.Time `json:"changedTime,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the resource. This is only present if requested via the $expand query parameter.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // Plan - The plan of the resource.
+ Plan *Plan `json:"plan,omitempty"`
+ // Properties - The resource properties.
+ Properties interface{} `json:"properties,omitempty"`
+ // Kind - The kind of the resource.
+ Kind *string `json:"kind,omitempty"`
+ // ManagedBy - ID of the resource that manages this resource.
+ ManagedBy *string `json:"managedBy,omitempty"`
+ // Sku - The SKU of the resource.
+ Sku *Sku `json:"sku,omitempty"`
+ // Identity - The identity of the resource.
+ Identity *Identity `json:"identity,omitempty"`
+ // ID - READ-ONLY; Resource ID
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for GenericResourceExpanded.
+func (gre GenericResourceExpanded) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if gre.Plan != nil {
+ objectMap["plan"] = gre.Plan
+ }
+ if gre.Properties != nil {
+ objectMap["properties"] = gre.Properties
+ }
+ if gre.Kind != nil {
+ objectMap["kind"] = gre.Kind
+ }
+ if gre.ManagedBy != nil {
+ objectMap["managedBy"] = gre.ManagedBy
+ }
+ if gre.Sku != nil {
+ objectMap["sku"] = gre.Sku
+ }
+ if gre.Identity != nil {
+ objectMap["identity"] = gre.Identity
+ }
+ if gre.Location != nil {
+ objectMap["location"] = gre.Location
+ }
+ if gre.Tags != nil {
+ objectMap["tags"] = gre.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
// GenericResourceFilter resource filter.
type GenericResourceFilter struct {
// ResourceType - The resource type.
@@ -1205,12 +1267,12 @@ type IdentityUserAssignedIdentitiesValue struct {
type ListResult struct {
autorest.Response `json:"-"`
// Value - An array of resources.
- Value *[]GenericResource `json:"value,omitempty"`
+ Value *[]GenericResourceExpanded `json:"value,omitempty"`
// NextLink - READ-ONLY; The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
}
-// ListResultIterator provides access to a complete listing of GenericResource values.
+// ListResultIterator provides access to a complete listing of GenericResourceExpanded values.
type ListResultIterator struct {
i int
page ListResultPage
@@ -1261,9 +1323,9 @@ func (iter ListResultIterator) Response() ListResult {
// Value returns the current value or a zero-initialized value if the
// iterator has advanced beyond the end of the collection.
-func (iter ListResultIterator) Value() GenericResource {
+func (iter ListResultIterator) Value() GenericResourceExpanded {
if !iter.page.NotDone() {
- return GenericResource{}
+ return GenericResourceExpanded{}
}
return iter.page.Values()[iter.i]
}
@@ -1290,7 +1352,7 @@ func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, err
autorest.WithBaseURL(to.String(lr.NextLink)))
}
-// ListResultPage contains a page of GenericResource values.
+// ListResultPage contains a page of GenericResourceExpanded values.
type ListResultPage struct {
fn func(context.Context, ListResult) (ListResult, error)
lr ListResult
@@ -1335,7 +1397,7 @@ func (page ListResultPage) Response() ListResult {
}
// Values returns the slice of values for the current page or nil if there are no values.
-func (page ListResultPage) Values() []GenericResource {
+func (page ListResultPage) Values() []GenericResourceExpanded {
if page.lr.IsEmpty() {
return nil
}
diff --git a/services/resources/mgmt/2019-05-01/resources/operations.go b/services/resources/mgmt/2019-05-01/resources/operations.go
index 36fd2b95f271..9f4e03f39485 100644
--- a/services/resources/mgmt/2019-05-01/resources/operations.go
+++ b/services/resources/mgmt/2019-05-01/resources/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/resources/mgmt/2019-05-01/resources/providers.go b/services/resources/mgmt/2019-05-01/resources/providers.go
index b5c835c8f07b..66a08a11207e 100644
--- a/services/resources/mgmt/2019-05-01/resources/providers.go
+++ b/services/resources/mgmt/2019-05-01/resources/providers.go
@@ -104,8 +104,7 @@ func (client ProvidersClient) GetPreparer(ctx context.Context, resourceProviderN
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ProvidersClient) 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
@@ -188,8 +187,7 @@ func (client ProvidersClient) ListPreparer(ctx context.Context, top *int32, expa
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client ProvidersClient) 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
@@ -300,8 +298,7 @@ func (client ProvidersClient) RegisterPreparer(ctx context.Context, resourceProv
// RegisterSender sends the Register request. The method will close the
// http.Response Body if it receives an error.
func (client ProvidersClient) RegisterSender(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))
}
// RegisterResponder handles the response to the Register request. The method always
@@ -375,8 +372,7 @@ func (client ProvidersClient) UnregisterPreparer(ctx context.Context, resourcePr
// UnregisterSender sends the Unregister request. The method will close the
// http.Response Body if it receives an error.
func (client ProvidersClient) UnregisterSender(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))
}
// UnregisterResponder handles the response to the Unregister request. The method always
diff --git a/services/resources/mgmt/2019-05-01/resources/resources.go b/services/resources/mgmt/2019-05-01/resources/resources.go
index a287bbf02dc9..222f3ef79a27 100644
--- a/services/resources/mgmt/2019-05-01/resources/resources.go
+++ b/services/resources/mgmt/2019-05-01/resources/resources.go
@@ -117,8 +117,7 @@ func (client Client) CheckExistencePreparer(ctx context.Context, resourceGroupNa
// CheckExistenceSender sends the CheckExistence request. The method will close the
// http.Response Body if it receives an error.
func (client Client) CheckExistenceSender(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))
}
// CheckExistenceResponder handles the response to the CheckExistence request. The method always
@@ -192,8 +191,7 @@ func (client Client) CheckExistenceByIDPreparer(ctx context.Context, resourceID
// CheckExistenceByIDSender sends the CheckExistenceByID request. The method will close the
// http.Response Body if it receives an error.
func (client Client) CheckExistenceByIDSender(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...))
}
// CheckExistenceByIDResponder handles the response to the CheckExistenceByID request. The method always
@@ -282,9 +280,8 @@ func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupNa
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client Client) CreateOrUpdateSender(req *http.Request) (future CreateOrUpdateFuture, 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
}
@@ -368,9 +365,8 @@ func (client Client) CreateOrUpdateByIDPreparer(ctx context.Context, resourceID
// CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the
// http.Response Body if it receives an error.
func (client Client) CreateOrUpdateByIDSender(req *http.Request) (future CreateOrUpdateByIDFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
+ resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if err != nil {
return
}
@@ -460,9 +456,8 @@ func (client Client) DeletePreparer(ctx context.Context, resourceGroupName strin
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, 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
}
@@ -535,9 +530,8 @@ func (client Client) DeleteByIDPreparer(ctx context.Context, resourceID string,
// DeleteByIDSender sends the DeleteByID request. The method will close the
// http.Response Body if it receives an error.
func (client Client) DeleteByIDSender(req *http.Request) (future DeleteByIDFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
+ resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if err != nil {
return
}
@@ -632,8 +626,7 @@ func (client Client) GetPreparer(ctx context.Context, resourceGroupName string,
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client Client) 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
@@ -708,8 +701,7 @@ func (client Client) GetByIDPreparer(ctx context.Context, resourceID string, API
// GetByIDSender sends the GetByID request. The method will close the
// http.Response Body if it receives an error.
func (client Client) GetByIDSender(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...))
}
// GetByIDResponder handles the response to the GetByID request. The method always
@@ -738,8 +730,8 @@ func (client Client) GetByIDResponder(resp *http.Response) (result GenericResour
// use $filter=tagName eq 'tag1' and tagValue eq 'Value1'
You can use some properties together when
// filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and
// plan/name, identity and identity/principalId.
-// expand - the $expand query parameter. You can expand createdTime and changedTime. For example, to expand
-// both properties, use $expand=changedTime,createdTime
+// expand - comma-separated list of additional properties to be included in the response. Valid values include
+// `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
// top - the number of results to return. If null is passed, returns all resource groups.
func (client Client) List(ctx context.Context, filter string, expand string, top *int32) (result ListResultPage, err error) {
if tracing.IsEnabled() {
@@ -805,8 +797,7 @@ func (client Client) ListPreparer(ctx context.Context, filter string, expand str
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client Client) 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
@@ -873,8 +864,8 @@ func (client Client) ListComplete(ctx context.Context, filter string, expand str
// use $filter=tagName eq 'tag1' and tagValue eq 'Value1'
You can use some properties together when
// filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and
// plan/name, identity and identity/principalId.
-// expand - the $expand query parameter. You can expand createdTime and changedTime. For example, to expand
-// both properties, use $expand=changedTime,createdTime
+// expand - comma-separated list of additional properties to be included in the response. Valid values include
+// `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`.
// top - the number of results to return. If null is passed, returns all resources.
func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result ListResultPage, err error) {
if tracing.IsEnabled() {
@@ -949,8 +940,7 @@ func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGr
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client Client) 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
@@ -1068,9 +1058,8 @@ func (client Client) MoveResourcesPreparer(ctx context.Context, sourceResourceGr
// MoveResourcesSender sends the MoveResources request. The method will close the
// http.Response Body if it receives an error.
func (client Client) MoveResourcesSender(req *http.Request) (future MoveResourcesFuture, 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
}
@@ -1161,9 +1150,8 @@ func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName strin
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client Client) UpdateSender(req *http.Request) (future UpdateFuture, 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
}
@@ -1240,9 +1228,8 @@ func (client Client) UpdateByIDPreparer(ctx context.Context, resourceID string,
// UpdateByIDSender sends the UpdateByID request. The method will close the
// http.Response Body if it receives an error.
func (client Client) UpdateByIDSender(req *http.Request) (future UpdateByIDFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
+ resp, err = client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
if err != nil {
return
}
@@ -1330,9 +1317,8 @@ func (client Client) ValidateMoveResourcesPreparer(ctx context.Context, sourceRe
// ValidateMoveResourcesSender sends the ValidateMoveResources request. The method will close the
// http.Response Body if it receives an error.
func (client Client) ValidateMoveResourcesSender(req *http.Request) (future ValidateMoveResourcesFuture, 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/resources/mgmt/2019-05-01/resources/tags.go b/services/resources/mgmt/2019-05-01/resources/tags.go
index 625e800a28f4..b7cda5d9d657 100644
--- a/services/resources/mgmt/2019-05-01/resources/tags.go
+++ b/services/resources/mgmt/2019-05-01/resources/tags.go
@@ -100,8 +100,7 @@ func (client TagsClient) CreateOrUpdatePreparer(ctx context.Context, tagName str
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client TagsClient) CreateOrUpdateSender(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))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
@@ -177,8 +176,7 @@ func (client TagsClient) CreateOrUpdateValuePreparer(ctx context.Context, tagNam
// CreateOrUpdateValueSender sends the CreateOrUpdateValue request. The method will close the
// http.Response Body if it receives an error.
func (client TagsClient) CreateOrUpdateValueSender(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))
}
// CreateOrUpdateValueResponder handles the response to the CreateOrUpdateValue request. The method always
@@ -252,8 +250,7 @@ func (client TagsClient) DeletePreparer(ctx context.Context, tagName string) (*h
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client TagsClient) DeleteSender(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))
}
// DeleteResponder handles the response to the Delete request. The method always
@@ -328,8 +325,7 @@ func (client TagsClient) DeleteValuePreparer(ctx context.Context, tagName string
// DeleteValueSender sends the DeleteValue request. The method will close the
// http.Response Body if it receives an error.
func (client TagsClient) DeleteValueSender(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))
}
// DeleteValueResponder handles the response to the DeleteValue request. The method always
@@ -400,8 +396,7 @@ func (client TagsClient) ListPreparer(ctx context.Context) (*http.Request, error
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client TagsClient) 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