From b3dce9004b71eeaedf9f8d1b3cffc7f5eec699be Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 27 Feb 2020 01:30:27 +0000 Subject: [PATCH] Generated from 65a829591d3c9b82c32455e2b743a6f5482e767f Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into getSubscription_IncludeTags --- .../mgmt/2019-01-01/policy/assignments.go | 27 ++++++----------- .../mgmt/2019-01-01/policy/definitions.go | 30 +++++++------------ .../mgmt/2019-01-01/policy/setdefinitions.go | 30 +++++++------------ 3 files changed, 29 insertions(+), 58 deletions(-) diff --git a/services/resources/mgmt/2019-01-01/policy/assignments.go b/services/resources/mgmt/2019-01-01/policy/assignments.go index 3787aa8f9d4c..66b686aaf6cc 100644 --- a/services/resources/mgmt/2019-01-01/policy/assignments.go +++ b/services/resources/mgmt/2019-01-01/policy/assignments.go @@ -121,8 +121,7 @@ func (client AssignmentsClient) CreatePreparer(ctx context.Context, scope string // CreateSender sends the Create request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) CreateSender(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...)) } // CreateResponder handles the response to the Create request. The method always @@ -216,8 +215,7 @@ func (client AssignmentsClient) CreateByIDPreparer(ctx context.Context, policyAs // CreateByIDSender sends the CreateByID request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) CreateByIDSender(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...)) } // CreateByIDResponder handles the response to the CreateByID request. The method always @@ -298,8 +296,7 @@ func (client AssignmentsClient) DeletePreparer(ctx context.Context, scope string // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) DeleteSender(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...)) } // DeleteResponder handles the response to the Delete request. The method always @@ -379,8 +376,7 @@ func (client AssignmentsClient) DeleteByIDPreparer(ctx context.Context, policyAs // DeleteByIDSender sends the DeleteByID request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) DeleteByIDSender(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...)) } // DeleteByIDResponder handles the response to the DeleteByID request. The method always @@ -459,8 +455,7 @@ func (client AssignmentsClient) GetPreparer(ctx context.Context, scope string, p // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) GetSender(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...)) } // GetResponder handles the response to the Get request. The method always @@ -539,8 +534,7 @@ func (client AssignmentsClient) GetByIDPreparer(ctx context.Context, policyAssig // GetByIDSender sends the GetByID request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) 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 @@ -625,8 +619,7 @@ func (client AssignmentsClient) ListPreparer(ctx context.Context, filter string) // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) 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 @@ -778,8 +771,7 @@ func (client AssignmentsClient) ListForResourcePreparer(ctx context.Context, res // ListForResourceSender sends the ListForResource request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) ListForResourceSender(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)) } // ListForResourceResponder handles the response to the ListForResource request. The method always @@ -912,8 +904,7 @@ func (client AssignmentsClient) ListForResourceGroupPreparer(ctx context.Context // ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client AssignmentsClient) ListForResourceGroupSender(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)) } // ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always diff --git a/services/resources/mgmt/2019-01-01/policy/definitions.go b/services/resources/mgmt/2019-01-01/policy/definitions.go index 287b2c2eb5ca..c576c2976749 100644 --- a/services/resources/mgmt/2019-01-01/policy/definitions.go +++ b/services/resources/mgmt/2019-01-01/policy/definitions.go @@ -106,8 +106,7 @@ func (client DefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, poli // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) 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 @@ -189,8 +188,7 @@ func (client DefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx cont // CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) CreateOrUpdateAtManagementGroupSender(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...)) } // CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always @@ -264,8 +262,7 @@ func (client DefinitionsClient) DeletePreparer(ctx context.Context, policyDefini // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) 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 @@ -340,8 +337,7 @@ func (client DefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.Cont // DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) DeleteAtManagementGroupSender(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...)) } // DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always @@ -414,8 +410,7 @@ func (client DefinitionsClient) GetPreparer(ctx context.Context, policyDefinitio // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) 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 @@ -491,8 +486,7 @@ func (client DefinitionsClient) GetAtManagementGroupPreparer(ctx context.Context // GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) GetAtManagementGroupSender(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...)) } // GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always @@ -565,8 +559,7 @@ func (client DefinitionsClient) GetBuiltInPreparer(ctx context.Context, policyDe // GetBuiltInSender sends the GetBuiltIn request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) GetBuiltInSender(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...)) } // GetBuiltInResponder handles the response to the GetBuiltIn request. The method always @@ -638,8 +631,7 @@ func (client DefinitionsClient) 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 DefinitionsClient) 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 @@ -744,8 +736,7 @@ func (client DefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*http. // ListBuiltInSender sends the ListBuiltIn request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) ListBuiltInSender(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...)) } // ListBuiltInResponder handles the response to the ListBuiltIn request. The method always @@ -856,8 +847,7 @@ func (client DefinitionsClient) ListByManagementGroupPreparer(ctx context.Contex // ListByManagementGroupSender sends the ListByManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client DefinitionsClient) ListByManagementGroupSender(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...)) } // ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always diff --git a/services/resources/mgmt/2019-01-01/policy/setdefinitions.go b/services/resources/mgmt/2019-01-01/policy/setdefinitions.go index 74ab9663087b..516a8731fa8c 100644 --- a/services/resources/mgmt/2019-01-01/policy/setdefinitions.go +++ b/services/resources/mgmt/2019-01-01/policy/setdefinitions.go @@ -115,8 +115,7 @@ func (client SetDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, p // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) 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 @@ -205,8 +204,7 @@ func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx c // CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupSender(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...)) } // CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always @@ -280,8 +278,7 @@ func (client SetDefinitionsClient) DeletePreparer(ctx context.Context, policySet // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) 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 @@ -356,8 +353,7 @@ func (client SetDefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.C // DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) DeleteAtManagementGroupSender(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...)) } // DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always @@ -430,8 +426,7 @@ func (client SetDefinitionsClient) GetPreparer(ctx context.Context, policySetDef // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) 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 @@ -507,8 +502,7 @@ func (client SetDefinitionsClient) GetAtManagementGroupPreparer(ctx context.Cont // GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) GetAtManagementGroupSender(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...)) } // GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always @@ -581,8 +575,7 @@ func (client SetDefinitionsClient) GetBuiltInPreparer(ctx context.Context, polic // GetBuiltInSender sends the GetBuiltIn request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) GetBuiltInSender(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...)) } // GetBuiltInResponder handles the response to the GetBuiltIn request. The method always @@ -654,8 +647,7 @@ func (client SetDefinitionsClient) ListPreparer(ctx context.Context) (*http.Requ // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) 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 @@ -760,8 +752,7 @@ func (client SetDefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*ht // ListBuiltInSender sends the ListBuiltIn request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) ListBuiltInSender(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...)) } // ListBuiltInResponder handles the response to the ListBuiltIn request. The method always @@ -873,8 +864,7 @@ func (client SetDefinitionsClient) ListByManagementGroupPreparer(ctx context.Con // ListByManagementGroupSender sends the ListByManagementGroup request. The method will close the // http.Response Body if it receives an error. func (client SetDefinitionsClient) ListByManagementGroupSender(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...)) } // ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always