共用方式為


DevTestLabCostCollection Class

Definition

A class representing a collection of DevTestLabCostResource and their operations. Each DevTestLabCostResource in the collection will belong to the same instance of DevTestLabResource. To get a DevTestLabCostCollection instance call the GetDevTestLabCosts method from an instance of DevTestLabResource.

public class DevTestLabCostCollection : Azure.ResourceManager.ArmCollection
type DevTestLabCostCollection = class
    inherit ArmCollection
Public Class DevTestLabCostCollection
Inherits ArmCollection
Inheritance
DevTestLabCostCollection

Constructors

DevTestLabCostCollection()

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

Create or replace an existing cost.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_CreateOrUpdate
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
CreateOrUpdateAsync(WaitUntil, String, DevTestLabCostData, CancellationToken)

Create or replace an existing cost.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_CreateOrUpdate
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
Get(String, String, CancellationToken)

Get cost.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
GetAsync(String, String, CancellationToken)

Get cost.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}
  • Operation Id: Costs_Get
  • Default Api Version: 2018-09-15
  • Resource: DevTestLabCostResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Applies to