共用方式為


ScalingPlanCollection Class

Definition

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

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

Constructors

ScalingPlanCollection()

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

Create or update a scaling plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Create
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
CreateOrUpdateAsync(WaitUntil, String, ScalingPlanData, CancellationToken)

Create or update a scaling plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Create
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
Get(String, CancellationToken)

Get a scaling plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
GetAll(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List scaling plans.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans
  • Operation Id: ScalingPlans_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
GetAllAsync(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List scaling plans.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans
  • Operation Id: ScalingPlans_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
GetAsync(String, CancellationToken)

Get a scaling plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  • Operation Id: ScalingPlans_Get
  • Default Api Version: 2024-04-03
  • Resource: ScalingPlanResource
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<ScalingPlanResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ScalingPlanResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to