SavingsPlans interface
Interface representing a SavingsPlans.
Methods
begin |
Update savings plan by billing account. |
begin |
Update savings plan by billing account. |
get |
Get savings plan by billing account. |
list |
List savings plans by billing account. |
list |
List savings plans in an order by billing account. |
validate |
Validate savings plan patch by billing account. |
Method Details
beginUpdateByBillingAccount(string, string, string, SavingsPlanUpdateRequest, SavingsPlansUpdateByBillingAccountOptionalParams)
Update savings plan by billing account.
function beginUpdateByBillingAccount(billingAccountName: string, savingsPlanOrderId: string, savingsPlanId: string, body: SavingsPlanUpdateRequest, options?: SavingsPlansUpdateByBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<SavingsPlanModel>, SavingsPlanModel>>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
Request body for patching a savings plan order alias
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<SavingsPlanModel>, SavingsPlanModel>>
beginUpdateByBillingAccountAndWait(string, string, string, SavingsPlanUpdateRequest, SavingsPlansUpdateByBillingAccountOptionalParams)
Update savings plan by billing account.
function beginUpdateByBillingAccountAndWait(billingAccountName: string, savingsPlanOrderId: string, savingsPlanId: string, body: SavingsPlanUpdateRequest, options?: SavingsPlansUpdateByBillingAccountOptionalParams): Promise<SavingsPlanModel>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
Request body for patching a savings plan order alias
The options parameters.
Returns
Promise<SavingsPlanModel>
getByBillingAccount(string, string, string, SavingsPlansGetByBillingAccountOptionalParams)
Get savings plan by billing account.
function getByBillingAccount(billingAccountName: string, savingsPlanOrderId: string, savingsPlanId: string, options?: SavingsPlansGetByBillingAccountOptionalParams): Promise<SavingsPlanModel>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
The options parameters.
Returns
Promise<SavingsPlanModel>
listByBillingAccount(string, SavingsPlansListByBillingAccountOptionalParams)
List savings plans by billing account.
function listByBillingAccount(billingAccountName: string, options?: SavingsPlansListByBillingAccountOptionalParams): PagedAsyncIterableIterator<SavingsPlanModel, SavingsPlanModel[], PageSettings>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
The options parameters.
Returns
listBySavingsPlanOrder(string, string, SavingsPlansListBySavingsPlanOrderOptionalParams)
List savings plans in an order by billing account.
function listBySavingsPlanOrder(billingAccountName: string, savingsPlanOrderId: string, options?: SavingsPlansListBySavingsPlanOrderOptionalParams): PagedAsyncIterableIterator<SavingsPlanModel, SavingsPlanModel[], PageSettings>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- savingsPlanOrderId
-
string
Order ID of the savings plan
The options parameters.
Returns
validateUpdateByBillingAccount(string, string, string, SavingsPlanUpdateValidateRequest, SavingsPlansValidateUpdateByBillingAccountOptionalParams)
Validate savings plan patch by billing account.
function validateUpdateByBillingAccount(billingAccountName: string, savingsPlanOrderId: string, savingsPlanId: string, body: SavingsPlanUpdateValidateRequest, options?: SavingsPlansValidateUpdateByBillingAccountOptionalParams): Promise<SavingsPlanValidateResponse>
Parameters
- billingAccountName
-
string
The ID that uniquely identifies a billing account.
- savingsPlanOrderId
-
string
Order ID of the savings plan
- savingsPlanId
-
string
ID of the savings plan
Request body for patching a savings plan order alias
The options parameters.
Returns
Promise<SavingsPlanValidateResponse>