NetworkExtensions.GetServiceGateways Method

Definition

Overloads

Name Description
GetServiceGateways(ResourceGroupResource)

Gets a collection of ServiceGateways in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetServiceGateways() instead. </item>

GetServiceGateways(SubscriptionResource, CancellationToken)

Gets all the service gateways in a subscription. <item> Mocking. To mock this method, please mock GetServiceGateways(CancellationToken) instead. </item>

GetServiceGateways(ResourceGroupResource)

Source:
NetworkExtensions.cs

Gets a collection of ServiceGateways in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetServiceGateways() instead. </item>

public static Azure.ResourceManager.Network.ServiceGatewayCollection GetServiceGateways(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetServiceGateways : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.ServiceGatewayCollection
<Extension()>
Public Function GetServiceGateways (resourceGroupResource As ResourceGroupResource) As ServiceGatewayCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of ServiceGateways and their operations over a ServiceGatewayResource.

Exceptions

resourceGroupResource is null.

Applies to

GetServiceGateways(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs

Gets all the service gateways in a subscription. <item> Mocking. To mock this method, please mock GetServiceGateways(CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Network.ServiceGatewayResource> GetServiceGateways(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceGateways : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.ServiceGatewayResource>
<Extension()>
Public Function GetServiceGateways (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceGatewayResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ServiceGatewayResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to