@azure/arm-reservations package
Classes
| AzureReservationAPI |
Interfaces
| AppliedReservationList |
Paginated list of applied reservations |
| AppliedReservations |
The response for applied reservations api |
| AppliedReservationsProperties |
Properties for applied reservations returned |
| AppliedScopeProperties |
Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup |
| AvailableScopeProperties |
The response of available scope api containing scopes and their eligibilities. |
| AvailableScopeRequest |
Available scope |
| AvailableScopeRequestProperties |
Available scope request properties |
| AzureReservationAPIOptionalParams |
Optional parameters for the client. |
| BillingInformation |
billing information |
| CalculateExchangeOperationResultResponse |
CalculateExchange operation result |
| CalculateExchangeOperations |
Interface representing a CalculateExchange operations. |
| CalculateExchangePostOptionalParams |
Optional parameters. |
| CalculateExchangeRequest |
Calculate exchange request |
| CalculateExchangeRequestProperties |
Calculate exchange request properties |
| CalculateExchangeResponseProperties |
CalculateExchange response properties |
| CalculatePriceResponse |
The response of calculate price for reservation. |
| CalculatePriceResponseProperties |
Properties for calculate price response |
| CalculatePriceResponsePropertiesBillingCurrencyTotal |
Currency and amount that customer will be charged in customer's local currency. Tax is not included. |
| CalculatePriceResponsePropertiesPricingCurrencyTotal |
Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. |
| CalculateRefundOperations |
Interface representing a CalculateRefund operations. |
| CalculateRefundPostOptionalParams |
Optional parameters. |
| CalculateRefundRequest |
Request containing information needed for calculating refund. |
| CalculateRefundRequestProperties |
Properties needed for calculate refund including the scope and the reservation to be returned. |
| CalculateRefundResponse |
The response of calculate refund containing refund information of reservation |
| Catalog |
Product details of a type of resource. |
| CatalogMsrp |
Pricing information about the sku |
| ChangeDirectoryRequest |
Request body for change directory of a reservation. |
| ChangeDirectoryResponse |
Change directory response |
| ChangeDirectoryResult |
Change directory result for reservation order or reservation |
| Commitment |
Commitment towards the benefit. |
| CurrentQuotaLimitBase |
Quota properties. |
| ErrorDetails |
The details of the error. |
| ErrorModel |
Error information |
| ErrorResponse |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. |
| ExceptionResponse |
The API error. |
| ExchangeOperationResultResponse |
Exchange operation result |
| ExchangeOperations |
Interface representing a Exchange operations. |
| ExchangePolicyError |
error details |
| ExchangePolicyErrors |
Exchange policy errors |
| ExchangePostOptionalParams |
Optional parameters. |
| ExchangeRequest |
Exchange request |
| ExchangeRequestProperties |
Exchange request properties |
| ExchangeResponseProperties |
Exchange response properties |
| ExtendedErrorInfo |
Extended error information including error code and error message |
| ExtendedStatusInfo |
model interface ExtendedStatusInfo |
| GetAppliedReservationListOptionalParams |
Optional parameters. |
| GetCatalogOptionalParams |
Optional parameters. |
| MergeProperties |
Properties for reservation merge |
| MergeRequest |
The request for reservation merge |
| OperationDisplay |
Information about an operation |
| OperationListOptionalParams |
Optional parameters. |
| OperationOperations |
Interface representing a Operation operations. |
| OperationResponse |
The response containing operation information |
| OperationResultError |
Required if status == failed or status == canceled. |
| PageSettings |
Options for the byPage method |
| PagedAsyncIterableIterator |
An interface that allows async iterable iteration both to completion and by page. |
| Patch |
The request for reservation patch |
| PatchProperties |
Properties for reservation patch |
| PatchPropertiesRenewProperties |
model interface PatchPropertiesRenewProperties |
| PaymentDetail |
Information about payment related to a reservation order. |
| Price |
Pricing information containing the amount and the currency code |
| ProxyResource |
The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location |
| PurchaseRequest |
The request for reservation purchase |
| PurchaseRequestProperties |
Properties of reservation purchase request |
| PurchaseRequestPropertiesReservedResourceProperties |
Properties specific to each reserved resource type. Not required if not applicable. |
| QuotaCreateOrUpdateOptionalParams |
Optional parameters. |
| QuotaGetOptionalParams |
Optional parameters. |
| QuotaListOptionalParams |
Optional parameters. |
| QuotaOperations |
Interface representing a Quota operations. |
| QuotaProperties |
Quota properties for the resource. |
| QuotaRequestDetails |
Quota request details. |
| QuotaRequestProperties |
The details of quota request. |
| QuotaRequestStatusGetOptionalParams |
Optional parameters. |
| QuotaRequestStatusListOptionalParams |
Optional parameters. |
| QuotaRequestStatusOperations |
Interface representing a QuotaRequestStatus operations. |
| QuotaUpdateOptionalParams |
Optional parameters. |
| RefundBillingInformation |
billing information |
| RefundPolicyError |
error details |
| RefundPolicyResult |
Refund policy result |
| RefundPolicyResultProperty |
Refund policy result property |
| RefundRequest |
Request containing information needed for returning reservation. |
| RefundRequestProperties |
Properties needed for refund request including the session id from calculate refund, the scope, the reservation to be returned and the return reason. |
| RefundResponseProperties |
The refund properties of reservation |
| RenewPropertiesResponse |
The renew properties for a reservation. |
| RenewPropertiesResponseBillingCurrencyTotal |
Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included. |
| RenewPropertiesResponsePricingCurrencyTotal |
Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry. |
| ReservationArchiveOptionalParams |
Optional parameters. |
| ReservationAvailableScopesOptionalParams |
Optional parameters. |
| ReservationGetOptionalParams |
Optional parameters. |
| ReservationListAllOptionalParams |
Optional parameters. |
| ReservationListOptionalParams |
Optional parameters. |
| ReservationListRevisionsOptionalParams |
Optional parameters. |
| ReservationMergeOptionalParams |
Optional parameters. |
| ReservationMergeProperties |
Properties of reservation merge |
| ReservationOperations |
Interface representing a Reservation operations. |
| ReservationOrderBillingPlanInformation |
Information describing the type of billing plan for this reservation. |
| ReservationOrderCalculateOptionalParams |
Optional parameters. |
| ReservationOrderChangeDirectoryOptionalParams |
Optional parameters. |
| ReservationOrderGetOptionalParams |
Optional parameters. |
| ReservationOrderListOptionalParams |
Optional parameters. |
| ReservationOrderOperations |
Interface representing a ReservationOrder operations. |
| ReservationOrderProperties |
Properties of a reservation order. |
| ReservationOrderPurchaseOptionalParams |
Optional parameters. |
| ReservationOrderResponse |
Details of a reservation order being returned. |
| ReservationResponse |
The definition of the reservation. |
| ReservationSplitOptionalParams |
Optional parameters. |
| ReservationSplitProperties |
Properties of reservation split |
| ReservationSummary |
The roll up count summary of reservations in each state |
| ReservationSwapProperties |
Properties of reservation swap |
| ReservationToExchange |
Reservation refund details |
| ReservationToPurchaseCalculateExchange |
Reservation purchase details |
| ReservationToPurchaseExchange |
Reservation purchase details |
| ReservationToReturn |
Reservation to return |
| ReservationToReturnForExchange |
Reservation refund details |
| ReservationUnarchiveOptionalParams |
Optional parameters. |
| ReservationUpdateOptionalParams |
Optional parameters. |
| ReservationUtilizationAggregates |
The aggregate values of reservation utilization |
| ReservationsProperties |
The properties of the reservations |
| ReservationsPropertiesUtilization |
Reservation utilization |
| Resource |
Common fields that are returned in the response for all Azure Resource Manager resources |
| ResourceName |
Resource name provided by the resource provider. Use this property for quotaRequest parameter. |
| RestorePollerOptions | |
| ReturnOperations |
Interface representing a Return operations. |
| ReturnPostOptionalParams |
Optional parameters. |
| SavingsPlanPurchaseRequest |
Request body for savings plan purchase |
| SavingsPlanPurchaseRequestProperties |
Properties of a savings plan purchase |
| SavingsPlanToPurchaseCalculateExchange |
Savings plan purchase details |
| SavingsPlanToPurchaseExchange |
Savings plan purchase details |
| ScopeProperties |
The scope and whether it is valid. |
| ServiceError |
The API error details. |
| ServiceErrorDetail |
The error details. |
| SimplePollerLike |
A simple poller that can be used to poll a long running operation. |
| SkuCapability |
Capability of a sku. |
| SkuName |
The name of sku |
| SkuProperty |
Property of a sku. |
| SkuRestriction |
Restriction of a sku. |
| SplitProperties |
Properties for reservation split |
| SplitRequest |
The request for reservation split |
| SubRequest |
The sub-request submitted with the quota request. |
| SubscriptionScopeProperties |
The scopes checked by the available scope api. |
| SystemData |
Metadata pertaining to creation and last modification of the resource. |
Type Aliases
| AppliedScopeType |
Type of the Applied Scope. Known values supported by the serviceSingle: Single |
| AzureSupportedClouds |
The supported values for cloud setting as a string literal type |
| BillingPlan |
Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. Known values supported by the serviceP1M: P1M |
| CalculateExchangeOperationResultStatus |
Status of the operation. Known values supported by the serviceSucceeded: Succeeded |
| CommitmentGrain |
Commitment grain. Known values supported by the serviceHourly: Hourly |
| ContinuablePage |
An interface that describes a page of results. |
| CreatedByType |
The kind of entity that created the resource. Known values supported by the serviceUser: The entity was created by a user. |
| ErrorResponseCode |
Error code describing the reason that service is not able to process the incoming request Known values supported by the serviceNotSpecified: NotSpecified |
| ExchangeOperationResultStatus |
Status of the operation. Known values supported by the serviceSucceeded: Succeeded |
| InstanceFlexibility |
Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. Known values supported by the serviceOn: On |
| OperationStatus |
Status of the individual operation. Known values supported by the serviceSucceeded: Succeeded |
| PaymentStatus |
Describes whether the payment is completed, failed, cancelled or scheduled in the future. Known values supported by the serviceSucceeded: Succeeded |
| ProvisioningState |
Represent the current state of the Reservation. Known values supported by the serviceCreating: Creating |
| QuotaRequestState |
The quota request status. Known values supported by the serviceAccepted: Accepted |
| ReservationBillingPlan |
Represent the billing plans. Known values supported by the serviceUpfront: Upfront |
| ReservationStatusCode |
Type of ReservationStatusCode |
| ReservationTerm |
Represent the term of reservation. Known values supported by the serviceP1Y: P1Y |
| ReservedResourceType |
The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel. Known values supported by the serviceVirtualMachines: VirtualMachines |
| ResourceType |
The resource types. Known values supported by the servicestandard: standard |
| SavingsPlanTerm |
Represent savings plan term in ISO 8601 format. Known values supported by the serviceP1Y: P1Y |
Enums
| AzureClouds |
An enum to describe Azure Cloud environments. |
| KnownAppliedScopeType |
Type of the Applied Scope. |
| KnownBillingPlan |
Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. |
| KnownCalculateExchangeOperationResultStatus |
Status of the operation. |
| KnownCommitmentGrain |
Commitment grain. |
| KnownCreatedByType |
The kind of entity that created the resource. |
| KnownErrorResponseCode |
Error code describing the reason that service is not able to process the incoming request |
| KnownExchangeOperationResultStatus |
Status of the operation. |
| KnownInstanceFlexibility |
Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. |
| KnownOperationStatus |
Status of the individual operation. |
| KnownPaymentStatus |
Describes whether the payment is completed, failed, cancelled or scheduled in the future. |
| KnownProvisioningState |
Represent the current state of the Reservation. |
| KnownQuotaRequestState |
The quota request status. |
| KnownReservationBillingPlan |
Represent the billing plans. |
| KnownReservationStatusCode |
Known values of ReservationStatusCode that the service accepts. |
| KnownReservationTerm |
Represent the term of reservation. |
| KnownReservedResourceType |
The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel. |
| KnownResourceType |
The resource types. |
| KnownSavingsPlanTerm |
Represent savings plan term in ISO 8601 format. |
Functions
| is |
Typeguard for RestError |
| restore |
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope. |
Variables
| Rest |
A custom error type for failed pipeline requests. |
Function Details
isRestError(unknown)
Typeguard for RestError
function isRestError(e: unknown): e
Parameters
- e
-
unknown
Something caught by a catch clause.
Returns
e
restorePoller<TResponse, TResult>(AzureReservationAPI, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)
Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.
function restorePoller<TResponse, TResult>(client: AzureReservationAPI, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>
Parameters
- client
- AzureReservationAPI
- serializedState
-
string
- sourceOperation
-
(args: any[]) => PollerLike<OperationState<TResult>, TResult>
- options
-
RestorePollerOptions<TResult, PathUncheckedResponse>
Returns
PollerLike<OperationState<TResult>, TResult>
Variable Details
RestError
A custom error type for failed pipeline requests.
RestError: RestErrorConstructor