Share via


DiagnosticSettingsCategoryCollection Class

Definition

A class representing a collection of DiagnosticSettingsCategoryResource and their operations. Each DiagnosticSettingsCategoryResource in the collection will belong to the same instance of ArmResource. To get a DiagnosticSettingsCategoryCollection instance call the GetDiagnosticSettingsCategories method from an instance of ArmResource.

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

Constructors

DiagnosticSettingsCategoryCollection()

Initializes a new instance of the DiagnosticSettingsCategoryCollection 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(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
Get(String, CancellationToken)

Gets the diagnostic settings category for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetAll(CancellationToken)

Lists the diagnostic settings categories for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories
  • Operation Id: DiagnosticSettingsCategory_List
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetAllAsync(CancellationToken)

Lists the diagnostic settings categories for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories
  • Operation Id: DiagnosticSettingsCategory_List
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetAsync(String, CancellationToken)

Gets the diagnostic settings category for the specified resource.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}
  • Operation Id: DiagnosticSettingsCategory_Get
  • Default Api Version: 2021-05-01-preview
  • Resource: DiagnosticSettingsCategoryResource
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<DiagnosticSettingsCategoryResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DiagnosticSettingsCategoryResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to