Share via


WorkloadNetworkSegmentCollection Class

Definition

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

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

Constructors

WorkloadNetworkSegmentCollection()

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

Create a WorkloadNetworkSegment

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_CreateSegments
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
CreateOrUpdateAsync(WaitUntil, String, WorkloadNetworkSegmentData, CancellationToken)

Create a WorkloadNetworkSegment

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_CreateSegments
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
Get(String, CancellationToken)

Get a WorkloadNetworkSegment

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
GetAll(CancellationToken)

List WorkloadNetworkSegment resources by WorkloadNetwork

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments
  • Operation Id: WorkloadNetworks_ListSegments
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
GetAllAsync(CancellationToken)

List WorkloadNetworkSegment resources by WorkloadNetwork

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments
  • Operation Id: WorkloadNetworks_ListSegments
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
GetAsync(String, CancellationToken)

Get a WorkloadNetworkSegment

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}
  • Operation Id: WorkloadNetworks_GetSegment
  • Default Api Version: 2023-09-01
  • Resource: WorkloadNetworkSegmentResource
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<WorkloadNetworkSegmentResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<WorkloadNetworkSegmentResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to