Share via


WorkloadNetworkCollection Class

Definition

A class representing a collection of WorkloadNetworkResource and their operations. Each WorkloadNetworkResource in the collection will belong to the same instance of AvsPrivateCloudResource. To get a WorkloadNetworkCollection instance call the GetWorkloadNetworks method from an instance of AvsPrivateCloudResource.

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

Constructors

WorkloadNetworkCollection()

Initializes a new instance of the WorkloadNetworkCollection 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

Exists(WorkloadNetworkName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
ExistsAsync(WorkloadNetworkName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
Get(WorkloadNetworkName, CancellationToken)

Get a private cloud workload network.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
GetAll(CancellationToken)

List of workload networks in a private cloud.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks
  • Operation Id: WorkloadNetworks_List
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
GetAllAsync(CancellationToken)

List of workload networks in a private cloud.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks
  • Operation Id: WorkloadNetworks_List
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
GetAsync(WorkloadNetworkName, CancellationToken)

Get a private cloud workload network.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
GetIfExists(WorkloadNetworkName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
GetIfExistsAsync(WorkloadNetworkName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}
  • Operation Id: WorkloadNetworks_Get
  • Default Api Version: 2023-03-01
  • Resource: WorkloadNetworkResource
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<WorkloadNetworkResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<WorkloadNetworkResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to