Share via


EasmLabelCollection Class

Definition

A class representing a collection of EasmLabelResource and their operations. Each EasmLabelResource in the collection will belong to the same instance of EasmWorkspaceResource. To get an EasmLabelCollection instance call the GetEasmLabels method from an instance of EasmWorkspaceResource.

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

Constructors

EasmLabelCollection()

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

Create or update a Label.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_CreateAndUpdate
CreateOrUpdateAsync(WaitUntil, String, EasmLabelData, CancellationToken)

Create or update a Label.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_CreateAndUpdate
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
Get(String, CancellationToken)

Returns a label in the given workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
GetAll(CancellationToken)

Returns a list of labels in the given workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels
  • Operation Id: Labels_ListByWorkspace
GetAllAsync(CancellationToken)

Returns a list of labels in the given workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels
  • Operation Id: Labels_ListByWorkspace
GetAsync(String, CancellationToken)

Returns a label in the given workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}
  • Operation Id: Labels_GetByWorkspace
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<EasmLabelResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<EasmLabelResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to