共用方式為


HubVirtualNetworkConnectionCollection Class

Definition

A class representing a collection of HubVirtualNetworkConnectionResource and their operations. Each HubVirtualNetworkConnectionResource in the collection will belong to the same instance of VirtualHubResource. To get a HubVirtualNetworkConnectionCollection instance call the GetHubVirtualNetworkConnections method from an instance of VirtualHubResource.

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

Constructors

HubVirtualNetworkConnectionCollection()

Initializes a new instance of the HubVirtualNetworkConnectionCollection 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, HubVirtualNetworkConnectionData, CancellationToken)

Creates a hub virtual network connection if it doesn't exist else updates the existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
CreateOrUpdateAsync(WaitUntil, String, HubVirtualNetworkConnectionData, CancellationToken)

Creates a hub virtual network connection if it doesn't exist else updates the existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
Get(String, CancellationToken)

Retrieves the details of a HubVirtualNetworkConnection.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
GetAll(CancellationToken)

Retrieves the details of all HubVirtualNetworkConnections.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections
  • Operation Id: HubVirtualNetworkConnections_List
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
GetAllAsync(CancellationToken)

Retrieves the details of all HubVirtualNetworkConnections.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections
  • Operation Id: HubVirtualNetworkConnections_List
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
GetAsync(String, CancellationToken)

Retrieves the details of a HubVirtualNetworkConnection.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}
  • Operation Id: HubVirtualNetworkConnections_Get
  • Default Api Version: 2024-03-01
  • Resource: HubVirtualNetworkConnectionResource
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<HubVirtualNetworkConnectionResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<HubVirtualNetworkConnectionResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to