다음을 통해 공유


SqlVmCollection Class

Definition

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

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

Constructors

SqlVmCollection()

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

Creates or updates a SQL virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, SqlVmData, CancellationToken)

Creates or updates a SQL virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_CreateOrUpdate
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
Get(String, String, CancellationToken)

Gets a SQL virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
GetAll(CancellationToken)

Gets all SQL virtual machines in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines
  • Operation Id: SqlVirtualMachines_ListByResourceGroup
GetAllAsync(CancellationToken)

Gets all SQL virtual machines in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines
  • Operation Id: SqlVirtualMachines_ListByResourceGroup
GetAsync(String, String, CancellationToken)

Gets a SQL virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
  • Operation Id: SqlVirtualMachines_Get
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<SqlVmResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlVmResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to