Share via


NetworkCloudVirtualMachineCollection Class

Definition

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

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

Constructors

NetworkCloudVirtualMachineCollection()

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

Create a new virtual machine or update the properties of the existing virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, NetworkCloudVirtualMachineData, CancellationToken)

Create a new virtual machine or update the properties of the existing virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_CreateOrUpdate
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
Get(String, CancellationToken)

Get properties of the provided virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
GetAll(CancellationToken)

Get a list of virtual machines in the provided resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines
  • Operation Id: VirtualMachines_ListByResourceGroup
GetAllAsync(CancellationToken)

Get a list of virtual machines in the provided resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines
  • Operation Id: VirtualMachines_ListByResourceGroup
GetAsync(String, CancellationToken)

Get properties of the provided virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_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<NetworkCloudVirtualMachineResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<NetworkCloudVirtualMachineResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to