Partilhar via


BillingSavingsPlanModelCollection Class

Definition

A class representing a collection of BillingSavingsPlanModelResource and their operations. Each BillingSavingsPlanModelResource in the collection will belong to the same instance of SavingsPlanOrderModelResource. To get a BillingSavingsPlanModelCollection instance call the GetBillingSavingsPlanModels method from an instance of SavingsPlanOrderModelResource.

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

Constructors

BillingSavingsPlanModelCollection()

Initializes a new instance of the BillingSavingsPlanModelCollection 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

Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
Get(String, String, CancellationToken)

Get savings plan by billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
GetAll(CancellationToken)

List savings plans in an order by billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans
  • Operation Id: SavingsPlans_ListBySavingsPlanOrder
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
GetAllAsync(CancellationToken)

List savings plans in an order by billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans
  • Operation Id: SavingsPlans_ListBySavingsPlanOrder
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
GetAsync(String, String, CancellationToken)

Get savings plan by billing account.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}
  • Operation Id: SavingsPlans_GetByBillingAccount
  • Default Api Version: 2024-04-01
  • Resource: BillingSavingsPlanModelResource
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<BillingSavingsPlanModelResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingSavingsPlanModelResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to