Поделиться через


DatabaseWatcherCollection Class

Definition

A class representing a collection of DatabaseWatcherResource and their operations. Each DatabaseWatcherResource in the collection will belong to the same instance of ResourceGroupResource. To get a DatabaseWatcherCollection instance call the GetDatabaseWatchers method from an instance of ResourceGroupResource.

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

Constructors

DatabaseWatcherCollection()

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

Create a Watcher

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_CreateOrUpdate
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
CreateOrUpdateAsync(WaitUntil, String, DatabaseWatcherData, CancellationToken)

Create a Watcher

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_CreateOrUpdate
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
Get(String, CancellationToken)

Get a Watcher

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
GetAll(CancellationToken)

List Watcher resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers
  • Operation Id: Watcher_ListByResourceGroup
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
GetAllAsync(CancellationToken)

List Watcher resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers
  • Operation Id: Watcher_ListByResourceGroup
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
GetAsync(String, CancellationToken)

Get a Watcher

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  • Operation Id: Watcher_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherResource
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<DatabaseWatcherResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DatabaseWatcherResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to