Udostępnij za pośrednictwem


MachineRunCommandCollection Class

Definition

A class representing a collection of MachineRunCommandResource and their operations. Each MachineRunCommandResource in the collection will belong to the same instance of HybridComputeMachineResource. To get a MachineRunCommandCollection instance call the GetMachineRunCommands method from an instance of HybridComputeMachineResource.

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

Constructors

MachineRunCommandCollection()

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

The operation to create or update a run command.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_CreateOrUpdate
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
CreateOrUpdateAsync(WaitUntil, String, MachineRunCommandData, CancellationToken)

The operation to create or update a run command.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_CreateOrUpdate
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
Get(String, CancellationToken)

The operation to get a run command.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
GetAll(String, CancellationToken)

The operation to get all the run commands of a non-Azure machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands
  • Operation Id: MachineRunCommands_List
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
GetAllAsync(String, CancellationToken)

The operation to get all the run commands of a non-Azure machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands
  • Operation Id: MachineRunCommands_List
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
GetAsync(String, CancellationToken)

The operation to get a run command.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}
  • Operation Id: MachineRunCommands_Get
  • Default Api Version: 2024-07-31-preview
  • Resource: MachineRunCommandResource
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<MachineRunCommandResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MachineRunCommandResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to