Share via


VirtualNetworkGatewayCollection Class

Definition

A class representing a collection of VirtualNetworkGatewayResource and their operations. Each VirtualNetworkGatewayResource in the collection will belong to the same instance of ResourceGroupResource. To get a VirtualNetworkGatewayCollection instance call the GetVirtualNetworkGateways method from an instance of ResourceGroupResource.

public class VirtualNetworkGatewayCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Network.VirtualNetworkGatewayResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.VirtualNetworkGatewayResource>
type VirtualNetworkGatewayCollection = class
    inherit ArmCollection
    interface seq<VirtualNetworkGatewayResource>
    interface IEnumerable
    interface IAsyncEnumerable<VirtualNetworkGatewayResource>
Public Class VirtualNetworkGatewayCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of VirtualNetworkGatewayResource), IEnumerable(Of VirtualNetworkGatewayResource)
Inheritance
VirtualNetworkGatewayCollection
Implements

Constructors

VirtualNetworkGatewayCollection()

Initializes a new instance of the VirtualNetworkGatewayCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, VirtualNetworkGatewayData, CancellationToken)

Creates or updates a virtual network gateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_CreateOrUpdate
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
CreateOrUpdateAsync(WaitUntil, String, VirtualNetworkGatewayData, CancellationToken)

Creates or updates a virtual network gateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_CreateOrUpdate
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
Get(String, CancellationToken)

Gets the specified virtual network gateway by resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
GetAll(CancellationToken)

Gets all virtual network gateways by resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways
  • Operation Id: VirtualNetworkGateways_List
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
GetAllAsync(CancellationToken)

Gets all virtual network gateways by resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways
  • Operation Id: VirtualNetworkGateways_List
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
GetAsync(String, CancellationToken)

Gets the specified virtual network gateway by resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}
  • Operation Id: VirtualNetworkGateways_Get
  • Default Api Version: 2023-09-01
  • Resource: VirtualNetworkGatewayResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<VirtualNetworkGatewayResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualNetworkGatewayResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to