Share via


SqlDatabaseAdvisorCollection Class

Definition

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

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

Constructors

SqlDatabaseAdvisorCollection()

Initializes a new instance of the SqlDatabaseAdvisorCollection 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: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • Operation Id: DatabaseAdvisors_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • Operation Id: DatabaseAdvisors_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
Get(String, CancellationToken)

Gets a database advisor.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • Operation Id: DatabaseAdvisors_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
GetAll(String, CancellationToken)

Gets a list of database advisors.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors
  • Operation Id: DatabaseAdvisors_ListByDatabase
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
GetAllAsync(String, CancellationToken)

Gets a list of database advisors.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors
  • Operation Id: DatabaseAdvisors_ListByDatabase
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
GetAsync(String, CancellationToken)

Gets a database advisor.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • Operation Id: DatabaseAdvisors_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}
  • Operation Id: DatabaseAdvisors_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlDatabaseAdvisorResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlDatabaseAdvisorResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to