diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go index 4baf032dd4e3..9a91b12a7de9 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go @@ -116,8 +116,7 @@ func (client BaseClient) CheckServiceProviderAvailabilityPreparer(ctx context.Co // CheckServiceProviderAvailabilitySender sends the CheckServiceProviderAvailability request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) CheckServiceProviderAvailabilitySender(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)) } // CheckServiceProviderAvailabilityResponder handles the response to the CheckServiceProviderAvailability request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go index 03bf7c3cd55a..858f5436f80c 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go @@ -102,8 +102,7 @@ func (client LegacyPeeringsClient) ListPreparer(ctx context.Context, peeringLoca // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client LegacyPeeringsClient) ListSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go index 548cdf35fb20..acbe12d8e280 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go @@ -104,8 +104,7 @@ func (client LocationsClient) ListPreparer(ctx context.Context, kind string, dir // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client LocationsClient) ListSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go index bbf47ea3d27d..51f5ab838d5d 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go @@ -1689,7 +1689,7 @@ func NewServiceListResultPage(getNextPage func(context.Context, ServiceListResul return ServiceListResultPage{fn: getNextPage} } -// ServiceLocation peeringService location +// ServiceLocation the peering service location. type ServiceLocation struct { // ServiceLocationProperties - The properties that define a peering service location. *ServiceLocationProperties `json:"properties,omitempty"` @@ -2402,7 +2402,7 @@ type ServiceProviderProperties struct { // Sku the SKU that defines the tier and kind of the peering. type Sku struct { - // Name - The name of the peering SKU. Possible values include: 'BasicExchangeFree', 'BasicDirectFree', 'PremiumDirectFree', 'PremiumExchangeMetered', 'PremiumDirectMetered', 'PremiumDirectUnlimited' + // Name - The name of the peering SKU. Possible values include: 'BasicExchangeFree', 'BasicDirectFree', 'PremiumExchangeMetered', 'PremiumDirectFree', 'PremiumDirectMetered', 'PremiumDirectUnlimited' Name Name `json:"name,omitempty"` // Tier - The tier of the peering SKU. Possible values include: 'Basic', 'Premium' Tier Tier `json:"tier,omitempty"` diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go index 8d5ad4e0b230..4c20ac61b54e 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/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/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go index 3088d4dbb816..d2048316d0b5 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go @@ -103,8 +103,7 @@ func (client PeerAsnsClient) CreateOrUpdatePreparer(ctx context.Context, peerAsn // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client PeerAsnsClient) 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 @@ -178,8 +177,7 @@ func (client PeerAsnsClient) DeletePreparer(ctx context.Context, peerAsnName str // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client PeerAsnsClient) 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 @@ -252,8 +250,7 @@ func (client PeerAsnsClient) GetPreparer(ctx context.Context, peerAsnName string // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client PeerAsnsClient) 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 @@ -325,8 +322,7 @@ func (client PeerAsnsClient) ListBySubscriptionPreparer(ctx context.Context) (*h // ListBySubscriptionSender sends the ListBySubscription request. The method will close the // http.Response Body if it receives an error. func (client PeerAsnsClient) ListBySubscriptionSender(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)) } // ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go index a98e9e4b4ebd..5a7f62888a6b 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go @@ -113,8 +113,7 @@ func (client PeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourc // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) 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 @@ -190,8 +189,7 @@ func (client PeeringsClient) DeletePreparer(ctx context.Context, resourceGroupNa // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) 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 @@ -266,8 +264,7 @@ func (client PeeringsClient) GetPreparer(ctx context.Context, resourceGroupName // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) 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 @@ -342,8 +339,7 @@ func (client PeeringsClient) ListByResourceGroupPreparer(ctx context.Context, re // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) 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 @@ -452,8 +448,7 @@ func (client PeeringsClient) ListBySubscriptionPreparer(ctx context.Context) (*h // ListBySubscriptionSender sends the ListBySubscription request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) ListBySubscriptionSender(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)) } // ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always @@ -569,8 +564,7 @@ func (client PeeringsClient) UpdatePreparer(ctx context.Context, resourceGroupNa // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client PeeringsClient) 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/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go index f76cd7a42b64..5521c3936f4c 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go @@ -107,8 +107,7 @@ func (client PrefixesClient) CreateOrUpdatePreparer(ctx context.Context, resourc // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client PrefixesClient) 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 @@ -187,8 +186,7 @@ func (client PrefixesClient) DeletePreparer(ctx context.Context, resourceGroupNa // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client PrefixesClient) 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 @@ -270,8 +268,7 @@ func (client PrefixesClient) GetPreparer(ctx context.Context, resourceGroupName // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client PrefixesClient) 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 @@ -352,8 +349,7 @@ func (client PrefixesClient) ListByPeeringServicePreparer(ctx context.Context, r // ListByPeeringServiceSender sends the ListByPeeringService request. The method will close the // http.Response Body if it receives an error. func (client PrefixesClient) ListByPeeringServiceSender(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)) } // ListByPeeringServiceResponder handles the response to the ListByPeeringService request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go index 4cfd55a7270f..78e8c2a6ede8 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go @@ -42,7 +42,7 @@ func NewServiceLocationsClientWithBaseURI(baseURI string, subscriptionID string) return ServiceLocationsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// List lists all of the available peering service locations for the specified kind of peering. +// List lists all of the available locations for peering service. func (client ServiceLocationsClient) List(ctx context.Context) (result ServiceLocationListResultPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ServiceLocationsClient.List") @@ -98,8 +98,7 @@ func (client ServiceLocationsClient) 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 ServiceLocationsClient) ListSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go index dfb1a548d27a..abea8490489f 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go @@ -98,8 +98,7 @@ func (client ServiceProvidersClient) 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 ServiceProvidersClient) ListSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) } // ListResponder handles the response to the List request. The method always diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go index c79edeb57b49..055355c93220 100644 --- a/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go +++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go @@ -112,8 +112,7 @@ func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourc // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) 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 ServicesClient) DeletePreparer(ctx context.Context, resourceGroupNa // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) 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 @@ -265,8 +263,7 @@ func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) 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 @@ -341,8 +338,7 @@ func (client ServicesClient) ListByResourceGroupPreparer(ctx context.Context, re // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) 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 @@ -451,8 +447,7 @@ func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*h // ListBySubscriptionSender sends the ListBySubscription request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) ListBySubscriptionSender(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)) } // ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always @@ -568,8 +563,7 @@ func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupNa // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client ServicesClient) 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