Condividi tramite


DatabaseAdvancedThreatProtectionCollection Class

Definition

A class representing a collection of DatabaseAdvancedThreatProtectionResource and their operations. Each DatabaseAdvancedThreatProtectionResource in the collection will belong to the same instance of SqlDatabaseResource. To get a DatabaseAdvancedThreatProtectionCollection instance call the GetDatabaseAdvancedThreatProtections method from an instance of SqlDatabaseResource.

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

Constructors

DatabaseAdvancedThreatProtectionCollection()

Initializes a new instance of the DatabaseAdvancedThreatProtectionCollection 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, AdvancedThreatProtectionName, DatabaseAdvancedThreatProtectionData, CancellationToken)

Creates or updates a database's Advanced Threat Protection state.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_CreateOrUpdate
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
CreateOrUpdateAsync(WaitUntil, AdvancedThreatProtectionName, DatabaseAdvancedThreatProtectionData, CancellationToken)

Creates or updates a database's Advanced Threat Protection state.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_CreateOrUpdate
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
Exists(AdvancedThreatProtectionName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
ExistsAsync(AdvancedThreatProtectionName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
Get(AdvancedThreatProtectionName, CancellationToken)

Gets a database's Advanced Threat Protection state.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
GetAll(CancellationToken)

Gets a list of database's Advanced Threat Protection states.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_ListByDatabase
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
GetAllAsync(CancellationToken)

Gets a list of database's Advanced Threat Protection states.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_ListByDatabase
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
GetAsync(AdvancedThreatProtectionName, CancellationToken)

Gets a database's Advanced Threat Protection state.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
GetIfExists(AdvancedThreatProtectionName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
GetIfExistsAsync(AdvancedThreatProtectionName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
  • Operation Id: DatabaseAdvancedThreatProtectionSettings_Get
  • Default Api Version: 2021-11-01-preview
  • Resource: DatabaseAdvancedThreatProtectionResource
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<DatabaseAdvancedThreatProtectionResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DatabaseAdvancedThreatProtectionResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to