CostManagementSettingCollection Class

Definition

A class representing a collection of CostManagementSettingResource and their operations. Each CostManagementSettingResource in the collection will belong to the same instance of ArmResource. To get a CostManagementSettingCollection instance call the GetCostManagementSettings method from an instance of ArmResource.

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

Constructors

Name Description
CostManagementSettingCollection()

Initializes a new instance of CostManagementSettingCollection for mocking.

Properties

Name Description
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

Name Description
CreateOrUpdate(WaitUntil, CostManagementSettingType, CostManagementSettingData, CancellationToken)

Create or update a setting within the given scope.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_CreateOrUpdateByScope.
  • Default Api Version. : 2025-03-01.
CreateOrUpdateAsync(WaitUntil, CostManagementSettingType, CostManagementSettingData, CancellationToken)

Create or update a setting within the given scope.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_CreateOrUpdateByScope.
  • Default Api Version. : 2025-03-01.
Exists(CostManagementSettingType, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
ExistsAsync(CostManagementSettingType, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
Get(CostManagementSettingType, CancellationToken)

Get the setting from the given scope by name.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
GetAll(CancellationToken)

List all cost management settings in the requested scope.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings.
  • Operation Id. : Settings_List.
  • Default Api Version. : 2025-03-01.
GetAllAsync(CancellationToken)

List all cost management settings in the requested scope.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings.
  • Operation Id. : Settings_List.
  • Default Api Version. : 2025-03-01.
GetAsync(CostManagementSettingType, CancellationToken)

Get the setting from the given scope by name.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
GetIfExists(CostManagementSettingType, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
GetIfExistsAsync(CostManagementSettingType, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
  • Operation Id. : Settings_GetByScope.
  • Default Api Version. : 2025-03-01.
TryGetApiVersion(ResourceType, String)

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

(Inherited from ArmCollection)

Explicit Interface Implementations

Name Description
IAsyncEnumerable<CostManagementSettingResource>.GetAsyncEnumerator(CancellationToken)
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<CostManagementSettingResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Extension Methods

Name Description
ArrayContainsAll<T>(IEnumerable<T>, Object[])

Returns whether all values are present in the array.

ArrayContainsAny<T>(IEnumerable<T>, Object[])

Returns whether any values are present in the array.

Applies to