@leaflow/sdk 0.159.0 → 0.161.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/v1/generated/functions.d.ts +71 -20
- package/dist/billing/v1/generated/functions.js +93 -18
- package/dist/billing/v1/generated/models.d.ts +175 -6
- package/dist/billing/v1/generated/models.js +10 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +22 -12
- package/dist/billing/v1/generated/schemas.zod.js +22 -12
- package/dist/billing/v1/generated/validators/accountBalance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountBalance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/accountIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResource.zod.js +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/activeResourceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowance.zod.js +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/allowanceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicability.zod.js +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/applicablePlan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/appliedCredit.zod.js +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/autoRenewSet.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingAccountUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/billingScheme.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSession.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contact.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/contactUpdate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditGroup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/creditNoteList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currency.zod.js +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/currencyList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/discountList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/entitlementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/error.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrant.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/featureGrantStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/funds.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getPriceHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getProductHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/getStatementUsageParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listBillingAccountsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listContactsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNoteItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listCurrenciesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoiceItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrderItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPaymentOptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPlansParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesByPlanParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProductsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listProjectAssignmentsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesHeaders.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRatesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listRenewalPricesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSpendParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalItemsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/money.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/namedIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/objectIdentity.zod.js +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/order.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderCancel.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderRefundPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/orderStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paidWith.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/payTogetherRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentAction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentCancellationReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetup.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentOptionMethod.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/paymentStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/plan.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planFeature.zod.js +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/planList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +1 -1
- package/dist/billing/v1/generated/validators/price.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/price.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceOption.zod.js +1 -1
- package/dist/billing/v1/generated/validators/priceSearch.zod.d.ts +32 -0
- package/dist/billing/v1/generated/validators/priceSearch.zod.js +53 -0
- package/dist/billing/v1/generated/validators/priceType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/priceType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/product.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/product.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productID.zod.js +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/productList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignment.zod.js +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/projectAssignmentList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/purchaseOperation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.d.ts +8 -1
- package/dist/billing/v1/generated/validators/quote.zod.js +2 -2
- package/dist/billing/v1/generated/validators/quoteAddress.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/quoteAddress.zod.js +22 -0
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +42 -0
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +38 -0
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +15 -0
- package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +8 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +16 -2
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +39 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +17 -3
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/rateList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/rateSearch.zod.d.ts +20 -0
- package/dist/billing/v1/generated/validators/rateSearch.zod.js +38 -0
- package/dist/billing/v1/generated/validators/refund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundPolicy.zod.js +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPrice.zod.js +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/renewalPriceList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRow.zod.js +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/spendRowList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statement.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementAmounts.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementStatus.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementSummary.zod.js +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/statementType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscription.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/subscriptionRestriction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/taxItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/tier.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUp.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/topUpList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transaction.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/transactionType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageChargeList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/usageType.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalAllocation.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalCreate.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalItemList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalList.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreview.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewItem.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalPreviewRequest.zod.js +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/withdrawalSource.zod.js +1 -1
- package/dist/canopy/v1/generated/functions.d.ts +5 -32
- package/dist/canopy/v1/generated/functions.js +2 -20
- package/dist/canopy/v1/generated/models.d.ts +39 -200
- package/dist/canopy/v1/generated/models.js +1 -19
- package/dist/canopy/v1/generated/schemas.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/schemas.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +3 -2
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/error.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modality.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modality.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/model.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/{modelPricing.zod.d.ts → modelBilling.zod.d.ts} +9 -9
- package/dist/canopy/v1/generated/validators/{modelPricing.zod.js → modelBilling.zod.js} +11 -8
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelList.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +8 -8
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/{tokenPrice.zod.d.ts → modelMeter.zod.d.ts} +7 -7
- package/dist/canopy/v1/generated/validators/{funds.zod.d.ts → modelMeter.zod.js} +9 -12
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +8 -8
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +4 -6
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/money.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +3 -2
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +6 -2
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +2 -2
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +2 -2
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/functions.d.ts +64 -257
- package/dist/compute/v1/generated/functions.js +41 -340
- package/dist/compute/v1/generated/models.d.ts +757 -1079
- package/dist/compute/v1/generated/models.js +121 -135
- package/dist/compute/v1/generated/schemas.zod.d.ts +30 -286
- package/dist/compute/v1/generated/schemas.zod.js +30 -86
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/backupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -57
- package/dist/compute/v1/generated/validators/backupService.zod.js +1 -8
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{quoteItem.zod.d.ts → billingComponent.zod.d.ts} +28 -33
- package/dist/compute/v1/generated/validators/billingComponent.zod.js +43 -0
- package/dist/compute/v1/generated/validators/{resizeInstanceQuoteRequestBody.zod.d.ts → billingMeter.zod.d.ts} +12 -6
- package/dist/compute/v1/generated/validators/{pricing.zod.js → billingMeter.zod.js} +11 -10
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{resizeDiskQuoteRequestBody.zod.d.ts → billingQuantity.zod.d.ts} +9 -6
- package/dist/compute/v1/generated/validators/{resizeDiskQuoteRequestBody.zod.js → billingQuantity.zod.js} +4 -6
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -57
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/deleteDiskResponseBody.zod.d.ts +121 -0
- package/dist/compute/v1/generated/validators/{createBackupCapacityPackQuoteRequestBody.zod.js → deleteDiskResponseBody.zod.js} +9 -8
- package/dist/compute/v1/generated/validators/{createDiskQuoteRequestBody.zod.d.ts → deleteImageResponseBody.zod.d.ts} +78 -23
- package/dist/compute/v1/generated/validators/{funds.zod.d.ts → deleteImageResponseBody.zod.js} +9 -11
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.d.ts +135 -0
- package/dist/compute/v1/generated/validators/{createImageQuoteRequestBody.zod.js → deleteInstanceResponseBody.zod.js} +9 -8
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +1 -1
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +3 -5
- package/dist/compute/v1/generated/validators/error.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/error.zod.js +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +27 -55
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +27 -55
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +3 -8
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +27 -27
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +3 -5
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/money.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/money.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newCompute.zod.js +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAddress.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/portResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +109 -25
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +109 -25
- package/dist/compute/v1/generated/validators/regionResource.zod.js +10 -5
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.d.ts +111 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIPResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/{setFloatingIPBandwidthQuoteRequestBody.zod.d.ts → resourceCancellation.zod.d.ts} +16 -5
- package/dist/compute/v1/generated/validators/{createDiskQuoteRequestBody.zod.js → resourceCancellation.zod.js} +15 -17
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/routeResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -29
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +1 -1
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -29
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +1 -5
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +1 -1
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +1 -1
- package/dist/membership/v1/generated/functions.d.ts +22 -1
- package/dist/membership/v1/generated/functions.js +25 -0
- package/dist/membership/v1/generated/models.d.ts +30 -3
- package/dist/membership/v1/generated/schemas.zod.d.ts +15 -0
- package/dist/membership/v1/generated/schemas.zod.js +25 -0
- package/dist/membership/v1/generated/validators/listMembershipUpgradeOptionsParams.zod.d.ts +18 -0
- package/dist/membership/v1/generated/validators/listMembershipUpgradeOptionsParams.zod.js +24 -0
- package/dist/membership/v1/generated/validators/plan.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planList.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planPrice.zod.d.ts +0 -1
- package/dist/membership/v1/generated/validators/planPrice.zod.js +1 -3
- package/dist/membership/v1/generated/validators/upgradeOption.zod.d.ts +19 -0
- package/dist/membership/v1/generated/validators/upgradeOption.zod.js +18 -0
- package/dist/membership/v1/generated/validators/upgradeOptionList.zod.d.ts +26 -0
- package/dist/membership/v1/generated/validators/upgradeOptionList.zod.js +14 -0
- package/dist/routes.d.ts +33 -81
- package/dist/routes.js +36 -90
- package/package.json +1 -1
- package/dist/canopy/v1/generated/validators/funds.zod.js +0 -52
- package/dist/canopy/v1/generated/validators/quote.zod.d.ts +0 -98
- package/dist/canopy/v1/generated/validators/quote.zod.js +0 -70
- package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +0 -76
- package/dist/canopy/v1/generated/validators/quoteItem.zod.js +0 -84
- package/dist/canopy/v1/generated/validators/tokenPrice.zod.js +0 -52
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +0 -44
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/funds.zod.js +0 -35
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +0 -113
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +0 -71
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +0 -54
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/pricingOption.zod.js +0 -62
- package/dist/compute/v1/generated/validators/quote.zod.d.ts +0 -81
- package/dist/compute/v1/generated/validators/quote.zod.js +0 -53
- package/dist/compute/v1/generated/validators/quoteItem.zod.js +0 -67
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +0 -33
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +0 -51
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +0 -43
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +0 -29
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +0 -46
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +0 -34
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, a resource becomes `provisioning` and then reaches its usual status, such as `active` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. Read the Checkout Session and the order in Billing for checkout and payment progress.
|
|
14
|
-
* - **
|
|
14
|
+
* - **Commercial terms.** Compute returns no amounts. Catalog items, such as instance types, disk types and public IP pools, and the region's own products carry `billing`: the Billing plan an order line for them is sold under, the dimensions the line carries, how its quantity is counted for each usage type, and the meters its metered price reads. Read their prices from Billing with `search-prices` and `search-rates`, quote a purchase or a change with Billing's `get-quote` using the same lines, and estimate metered usage with Billing's `estimate-usage`. A purchase chooses its terms with `billing`, which applies to all of its components.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid.
|
|
16
16
|
* - **Operations.** Requests such as starting, stopping, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `operation` field names it; the field is null once the operation has finished, and the resource then shows the result. A resource with an operation in progress refuses another operation with HTTP 409 `COMPUTE_RESOURCE_BUSY`; an operation involving two resources, such as attaching a disk, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. The subscription is `pending` until the order is accepted, `provisioning` while the resource is created, and `active` once it is delivered. Bandwidth is a property of its floating IP, not a separate resource. Snapshots use a purchased per-region count quota, and backups are metered on the region's backup service; neither has an order or subscription of its own.
|
|
@@ -86,268 +86,360 @@ export interface CreatePeeringRequestBody {
|
|
|
86
86
|
accepter_network_id: string;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
* and a client that does not recognise one ignores it.
|
|
89
|
+
* The dimension values the order line carries.
|
|
91
90
|
*/
|
|
92
|
-
export type
|
|
93
|
-
[key: string]:
|
|
91
|
+
export type BillingComponentDimensions = {
|
|
92
|
+
[key: string]: string;
|
|
94
93
|
};
|
|
95
|
-
export interface Error {
|
|
96
|
-
code?: string;
|
|
97
|
-
message: string;
|
|
98
|
-
/**
|
|
99
|
-
* What a given `code` carries alongside the message. The keys depend on the code,
|
|
100
|
-
* and a client that does not recognise one ignores it.
|
|
101
|
-
*/
|
|
102
|
-
meta?: ErrorMeta;
|
|
103
|
-
status: number;
|
|
104
|
-
}
|
|
105
94
|
/**
|
|
106
|
-
* `
|
|
95
|
+
* `one`: one per item. `size_gib`: the size or capacity bought, in GiB. `bandwidth_mbps`: the bandwidth bought, in Mbps. `snapshots`: the number of snapshots the quota allows.
|
|
107
96
|
*/
|
|
108
|
-
export type
|
|
109
|
-
export declare const
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly error: "error";
|
|
115
|
-
readonly missing: "missing";
|
|
97
|
+
export type BillingQuantity = (typeof BillingQuantity)[keyof typeof BillingQuantity];
|
|
98
|
+
export declare const BillingQuantity: {
|
|
99
|
+
readonly one: "one";
|
|
100
|
+
readonly size_gib: "size_gib";
|
|
101
|
+
readonly bandwidth_mbps: "bandwidth_mbps";
|
|
102
|
+
readonly snapshots: "snapshots";
|
|
116
103
|
};
|
|
117
104
|
/**
|
|
118
|
-
*
|
|
105
|
+
* What the order line's quantity counts, for each usage type the item is sold under. A usage type that is absent is not sold for this item.
|
|
119
106
|
*/
|
|
120
|
-
export type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
readonly restore: "restore";
|
|
124
|
-
readonly delete: "delete";
|
|
107
|
+
export type BillingComponentQuantity = {
|
|
108
|
+
licensed?: BillingQuantity;
|
|
109
|
+
metered?: BillingQuantity;
|
|
125
110
|
};
|
|
126
111
|
/**
|
|
127
|
-
*
|
|
112
|
+
* What the meter's quantity measures while the item exists: `one` is one item, `size_gib` its size in GiB, `bandwidth_mbps` its bandwidth in Mbps, `stored_gib` the GiB it stores.
|
|
128
113
|
*/
|
|
129
|
-
export
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
114
|
+
export type BillingMeterQuantity = (typeof BillingMeterQuantity)[keyof typeof BillingMeterQuantity];
|
|
115
|
+
export declare const BillingMeterQuantity: {
|
|
116
|
+
readonly one: "one";
|
|
117
|
+
readonly size_gib: "size_gib";
|
|
118
|
+
readonly bandwidth_mbps: "bandwidth_mbps";
|
|
119
|
+
readonly stored_gib: "stored_gib";
|
|
120
|
+
};
|
|
134
121
|
/**
|
|
135
|
-
*
|
|
122
|
+
* The dimension values the meter's usage carries, when they differ from the line's.
|
|
136
123
|
*/
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
/** The
|
|
145
|
-
|
|
146
|
-
/** The disk this backup was taken from. The backup remains usable after that disk is deleted */
|
|
147
|
-
source_disk_id: string;
|
|
148
|
-
/** `provisioning` while the backup is taken, then `available`. `failed` means the backup was not created. `missing` means the backup no longer exists in the cloud. */
|
|
149
|
-
status: BackupResourceStatus;
|
|
150
|
-
/** The operation in progress on this backup, or null when none is. */
|
|
151
|
-
readonly operation: BackupOperation | null;
|
|
152
|
-
/** @minimum 1 */
|
|
153
|
-
generation: number;
|
|
154
|
-
/** @nullable */
|
|
155
|
-
observed_at: string | null;
|
|
156
|
-
/** Availability zone of the source disk. A restore may target another zone in the same region */
|
|
157
|
-
source_availability_zone_id: string;
|
|
158
|
-
}
|
|
159
|
-
export interface BackupListResponseBody {
|
|
160
|
-
/** @nullable */
|
|
161
|
-
items: BackupResource[] | null;
|
|
162
|
-
pagination: OffsetPagination;
|
|
163
|
-
}
|
|
164
|
-
export interface CreateBackupRequestBody {
|
|
165
|
-
disk_id: string;
|
|
166
|
-
/**
|
|
167
|
-
* @minLength 1
|
|
168
|
-
* @maxLength 128
|
|
169
|
-
*/
|
|
170
|
-
name: string;
|
|
171
|
-
}
|
|
172
|
-
export interface RenameBackupRequestBody {
|
|
173
|
-
/**
|
|
174
|
-
* @minLength 1
|
|
175
|
-
* @maxLength 128
|
|
176
|
-
*/
|
|
177
|
-
name: string;
|
|
124
|
+
export type BillingMeterDimensions = {
|
|
125
|
+
[key: string]: string;
|
|
126
|
+
};
|
|
127
|
+
export interface BillingMeter {
|
|
128
|
+
meter_lookup_key: string;
|
|
129
|
+
/** What the meter's quantity measures while the item exists: `one` is one item, `size_gib` its size in GiB, `bandwidth_mbps` its bandwidth in Mbps, `stored_gib` the GiB it stores. */
|
|
130
|
+
quantity: BillingMeterQuantity;
|
|
131
|
+
/** The dimension values the meter's usage carries, when they differ from the line's. */
|
|
132
|
+
dimensions?: BillingMeterDimensions;
|
|
178
133
|
}
|
|
179
134
|
/**
|
|
180
|
-
* `
|
|
135
|
+
* How one order line of an item is sold in Billing. Give `plan_id` to Billing's `search-prices` for its prices, and `dimensions` to `search-rates` for the rates of a price that delegates to a rate card. Quote a purchase or a change with Billing's `get-quote` using these values, the quantity this describes and the chosen terms, and estimate metered usage with `estimate-usage` and `meters`.
|
|
181
136
|
*/
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
export interface BillingPeriod {
|
|
193
|
-
unit: BillingPeriodUnit;
|
|
194
|
-
/**
|
|
195
|
-
* @minimum 1
|
|
196
|
-
* @maximum 2147483647
|
|
197
|
-
*/
|
|
198
|
-
count: number;
|
|
137
|
+
export interface BillingComponent {
|
|
138
|
+
/** The Billing plan the line is ordered under. */
|
|
139
|
+
plan_id: string;
|
|
140
|
+
/** The dimension values the order line carries. */
|
|
141
|
+
dimensions: BillingComponentDimensions;
|
|
142
|
+
/** What the order line's quantity counts, for each usage type the item is sold under. A usage type that is absent is not sold for this item. */
|
|
143
|
+
quantity: BillingComponentQuantity;
|
|
144
|
+
/** What the line's metered price reads. Empty when the line is never metered or its usage is not estimated in advance. */
|
|
145
|
+
meters: BillingMeter[];
|
|
199
146
|
}
|
|
200
147
|
/**
|
|
201
|
-
*
|
|
148
|
+
* `immediate` releases the resource now and refunds under the subscriptions' terms; `period_end` keeps it until `scheduled_at`.
|
|
202
149
|
*/
|
|
203
|
-
export type
|
|
204
|
-
export declare const
|
|
150
|
+
export type ResourceCancellationMode = (typeof ResourceCancellationMode)[keyof typeof ResourceCancellationMode];
|
|
151
|
+
export declare const ResourceCancellationMode: {
|
|
205
152
|
readonly immediate: "immediate";
|
|
206
153
|
readonly period_end: "period_end";
|
|
207
154
|
};
|
|
208
155
|
/**
|
|
209
|
-
*
|
|
210
|
-
*/
|
|
211
|
-
export interface BillingChoice {
|
|
212
|
-
/** `licensed` pays for a period in advance; `metered` bills usage until canceled. */
|
|
213
|
-
usage_type: BillingChoiceUsageType;
|
|
214
|
-
period?: BillingPeriod;
|
|
215
|
-
termination_policy?: TerminationPolicy;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* automatic completes checkout with the purchase: the best applicable account discount is applied, and the
|
|
219
|
-
* order is created with its invoice issued and paid from eligible credit grants and available balance.
|
|
220
|
-
* Insufficient funds fail the purchase with HTTP 422 BILLING_INSUFFICIENT_FUNDS; no Billing order, charge or
|
|
221
|
-
* discount redemption is committed.
|
|
222
|
-
* deferred creates an open Billing Checkout Session and charges nothing, even for a zero total. The customer
|
|
223
|
-
* completes it through Billing, where a promotion code can be applied, and then pays the issued invoice; a
|
|
224
|
-
* session not completed by its deadline expires.
|
|
156
|
+
* `requested` and `scheduled` have not begun release; `releasing` is releasing the resource.
|
|
225
157
|
*/
|
|
226
|
-
export type
|
|
227
|
-
export declare const
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
158
|
+
export type ResourceCancellationStatus = (typeof ResourceCancellationStatus)[keyof typeof ResourceCancellationStatus];
|
|
159
|
+
export declare const ResourceCancellationStatus: {
|
|
160
|
+
readonly requested: "requested";
|
|
161
|
+
readonly scheduled: "scheduled";
|
|
162
|
+
readonly releasing: "releasing";
|
|
230
163
|
};
|
|
231
164
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* **The currency is not part of this type.** It is carried by a `currency` field next to the
|
|
235
|
-
* amount, or by the account the amount belongs to. Reading an amount without that field is
|
|
236
|
-
* reading a number with no unit.
|
|
237
|
-
*
|
|
238
|
-
* It is a string rather than a JSON number because a JSON number is a float in most parsers,
|
|
239
|
-
* and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
|
|
240
|
-
* through a float.
|
|
241
|
-
*/
|
|
242
|
-
export type Money = string;
|
|
243
|
-
/**
|
|
244
|
-
* Shared checkout choices for a product purchase. The service may set them or forward its client's
|
|
245
|
-
* choices unchanged; it does not need to read them, and Billing validates them. Omitting this object or
|
|
246
|
-
* mode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied
|
|
247
|
-
* only to Billing. A service may retain a failed creation record when Billing refuses a purchase; no
|
|
248
|
-
* infrastructure is created for that refusal.
|
|
165
|
+
* The Billing cancellation of the subscriptions that pay for a resource. Read it in Billing with `get-cancellation` for its refund and progress.
|
|
249
166
|
*/
|
|
250
|
-
export interface
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
* checkout, give the expected amount when completing it through Billing.
|
|
257
|
-
*/
|
|
258
|
-
expected_amount?: Money & string;
|
|
259
|
-
/**
|
|
260
|
-
* Where the client goes after the customer finishes a deferred checkout. Any absolute URI with a
|
|
261
|
-
* scheme, including mobile and desktop application schemes. Billing stores it without checking the
|
|
262
|
-
* target; each client validates its own.
|
|
263
|
-
* @maxLength 2048
|
|
264
|
-
*/
|
|
265
|
-
return_url?: string;
|
|
266
|
-
}
|
|
267
|
-
export interface RestoreBackupRequestBody {
|
|
268
|
-
/**
|
|
269
|
-
* May differ from the availability zone of the source disk, but must be in the same region. It has to be a data disk type on sale — restoring creates a new data disk, so a withdrawn type or a system disk type is rejected here as well
|
|
270
|
-
* @maxLength 64
|
|
271
|
-
*/
|
|
272
|
-
disk_type_id: string;
|
|
273
|
-
/**
|
|
274
|
-
* @minLength 1
|
|
275
|
-
* @maxLength 128
|
|
276
|
-
*/
|
|
277
|
-
name: string;
|
|
167
|
+
export interface ResourceCancellation {
|
|
168
|
+
id: string;
|
|
169
|
+
/** `immediate` releases the resource now and refunds under the subscriptions' terms; `period_end` keeps it until `scheduled_at`. */
|
|
170
|
+
mode: ResourceCancellationMode;
|
|
171
|
+
/** `requested` and `scheduled` have not begun release; `releasing` is releasing the resource. */
|
|
172
|
+
status: ResourceCancellationStatus;
|
|
278
173
|
/**
|
|
279
|
-
*
|
|
280
|
-
* @
|
|
174
|
+
* For `period_end`, when release begins; null otherwise.
|
|
175
|
+
* @nullable
|
|
281
176
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
checkout?: CheckoutOptions;
|
|
177
|
+
scheduled_at: string | null;
|
|
178
|
+
subscription_ids: string[];
|
|
285
179
|
}
|
|
286
180
|
/**
|
|
287
|
-
* `pending` until the order is accepted
|
|
181
|
+
* `pending` until the order is accepted: no virtual machine exists and addresses are null. `provisioning` while the instance is created, then `active`. `failed` means the instance was not created; `failure_reason` states why. `missing` means the virtual machine no longer exists in the cloud. The other values are the state last observed in the cloud; an operation in progress appears in `operation`, not here.
|
|
288
182
|
*/
|
|
289
|
-
export type
|
|
290
|
-
export declare const
|
|
183
|
+
export type InstanceResourceStatus = (typeof InstanceResourceStatus)[keyof typeof InstanceResourceStatus];
|
|
184
|
+
export declare const InstanceResourceStatus: {
|
|
291
185
|
readonly pending: "pending";
|
|
292
186
|
readonly provisioning: "provisioning";
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
187
|
+
readonly active: "active";
|
|
188
|
+
readonly stopped: "stopped";
|
|
189
|
+
readonly paused: "paused";
|
|
190
|
+
readonly suspended: "suspended";
|
|
191
|
+
readonly shelved: "shelved";
|
|
192
|
+
readonly shelved_offloaded: "shelved_offloaded";
|
|
193
|
+
readonly rescued: "rescued";
|
|
295
194
|
readonly deleted: "deleted";
|
|
296
195
|
readonly failed: "failed";
|
|
297
196
|
readonly error: "error";
|
|
197
|
+
readonly unknown: "unknown";
|
|
298
198
|
readonly missing: "missing";
|
|
299
199
|
};
|
|
200
|
+
export type InstanceRestrictionSource = (typeof InstanceRestrictionSource)[keyof typeof InstanceRestrictionSource];
|
|
201
|
+
export declare const InstanceRestrictionSource: {
|
|
202
|
+
readonly billing: "billing";
|
|
203
|
+
readonly iam: "iam";
|
|
204
|
+
readonly operator: "operator";
|
|
205
|
+
};
|
|
300
206
|
/**
|
|
301
|
-
*
|
|
207
|
+
* An independent restriction on use. Removing one restriction never removes another source’s restriction, and never starts an instance its user stopped.
|
|
302
208
|
*/
|
|
303
|
-
export
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
209
|
+
export interface InstanceRestriction {
|
|
210
|
+
id: string;
|
|
211
|
+
source: InstanceRestrictionSource;
|
|
212
|
+
/**
|
|
213
|
+
* @minLength 1
|
|
214
|
+
* @maxLength 255
|
|
215
|
+
*/
|
|
216
|
+
source_id: string;
|
|
217
|
+
/**
|
|
218
|
+
* @minLength 1
|
|
219
|
+
* @maxLength 128
|
|
220
|
+
*/
|
|
221
|
+
reason_code: string;
|
|
222
|
+
created_at: string;
|
|
223
|
+
}
|
|
310
224
|
/**
|
|
311
|
-
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this
|
|
225
|
+
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this instance is refunded.
|
|
312
226
|
* @nullable
|
|
313
227
|
*/
|
|
314
|
-
export type
|
|
315
|
-
export declare const
|
|
228
|
+
export type InstanceResourceFailureReason = (typeof InstanceResourceFailureReason)[keyof typeof InstanceResourceFailureReason] | null;
|
|
229
|
+
export declare const InstanceResourceFailureReason: {
|
|
316
230
|
readonly checkout_expired: "checkout_expired";
|
|
317
231
|
readonly order_declined: "order_declined";
|
|
318
232
|
readonly order_canceled: "order_canceled";
|
|
319
233
|
readonly order_expired: "order_expired";
|
|
320
234
|
readonly provisioning_failed: "provisioning_failed";
|
|
321
235
|
};
|
|
322
|
-
export type ReleaseResourceType = (typeof ReleaseResourceType)[keyof typeof ReleaseResourceType];
|
|
323
|
-
export declare const ReleaseResourceType: {
|
|
324
|
-
readonly instance: "instance";
|
|
325
|
-
readonly disk: "disk";
|
|
326
|
-
readonly image: "image";
|
|
327
|
-
readonly floating_ip: "floating_ip";
|
|
328
|
-
readonly backup_service: "backup_service";
|
|
329
|
-
readonly snapshot_quota: "snapshot_quota";
|
|
330
|
-
readonly backup_capacity_pack: "backup_capacity_pack";
|
|
331
|
-
};
|
|
332
|
-
/**
|
|
333
|
-
* A resource a release set releases.
|
|
334
|
-
*/
|
|
335
|
-
export interface ReleaseResource {
|
|
336
|
-
type: ReleaseResourceType;
|
|
337
|
-
/** The resource's ID; for `backup_service` and `snapshot_quota`, the ID of their region. */
|
|
338
|
-
id: string;
|
|
339
|
-
/** The resource's name. A floating IP is named by its address, a backup service or snapshot quota by its region, and a capacity pack by its capacity, such as 100 GiB. */
|
|
340
|
-
name: string;
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* One subscription of a release set and the resource it pays for.
|
|
344
|
-
*/
|
|
345
|
-
export interface ReleaseSetItem {
|
|
346
|
-
subscription_id: string;
|
|
347
|
-
resource: ReleaseResource;
|
|
348
|
-
}
|
|
349
236
|
/**
|
|
350
|
-
* `
|
|
237
|
+
* `create` runs from acceptance of the order until the instance is `active` or `failed`. `suspend` and `resume` impose and lift a suspension by the platform or for non-payment. `delete` includes release through a Billing cancellation.
|
|
238
|
+
*/
|
|
239
|
+
export type InstanceOperationType = (typeof InstanceOperationType)[keyof typeof InstanceOperationType];
|
|
240
|
+
export declare const InstanceOperationType: {
|
|
241
|
+
readonly create: "create";
|
|
242
|
+
readonly start: "start";
|
|
243
|
+
readonly stop: "stop";
|
|
244
|
+
readonly reboot: "reboot";
|
|
245
|
+
readonly rebuild: "rebuild";
|
|
246
|
+
readonly resize: "resize";
|
|
247
|
+
readonly reset_password: "reset_password";
|
|
248
|
+
readonly attach_disk: "attach_disk";
|
|
249
|
+
readonly detach_disk: "detach_disk";
|
|
250
|
+
readonly attach_port: "attach_port";
|
|
251
|
+
readonly detach_port: "detach_port";
|
|
252
|
+
readonly bind_floating_ip: "bind_floating_ip";
|
|
253
|
+
readonly unbind_floating_ip: "unbind_floating_ip";
|
|
254
|
+
readonly suspend: "suspend";
|
|
255
|
+
readonly resume: "resume";
|
|
256
|
+
readonly delete: "delete";
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* An operation still running on this instance. It is not a separate resource; once it finishes, the instance's `operation` is null again and the instance shows the result.
|
|
260
|
+
*/
|
|
261
|
+
export interface InstanceOperation {
|
|
262
|
+
/** `create` runs from acceptance of the order until the instance is `active` or `failed`. `suspend` and `resume` impose and lift a suspension by the platform or for non-payment. `delete` includes release through a Billing cancellation. */
|
|
263
|
+
type: InstanceOperationType;
|
|
264
|
+
started_at: string;
|
|
265
|
+
}
|
|
266
|
+
export type ReleaseResourceType = (typeof ReleaseResourceType)[keyof typeof ReleaseResourceType];
|
|
267
|
+
export declare const ReleaseResourceType: {
|
|
268
|
+
readonly instance: "instance";
|
|
269
|
+
readonly disk: "disk";
|
|
270
|
+
readonly image: "image";
|
|
271
|
+
readonly floating_ip: "floating_ip";
|
|
272
|
+
readonly backup_service: "backup_service";
|
|
273
|
+
readonly snapshot_quota: "snapshot_quota";
|
|
274
|
+
readonly backup_capacity_pack: "backup_capacity_pack";
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* A resource a release set releases.
|
|
278
|
+
*/
|
|
279
|
+
export interface ReleaseResource {
|
|
280
|
+
type: ReleaseResourceType;
|
|
281
|
+
/** The resource's ID; for `backup_service` and `snapshot_quota`, the ID of their region. */
|
|
282
|
+
id: string;
|
|
283
|
+
/** The resource's name. A floating IP is named by its address, a backup service or snapshot quota by its region, and a capacity pack by its capacity, such as 100 GiB. */
|
|
284
|
+
name: string;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* One subscription of a release set and the resource it pays for.
|
|
288
|
+
*/
|
|
289
|
+
export interface ReleaseSetItem {
|
|
290
|
+
subscription_id: string;
|
|
291
|
+
resource: ReleaseResource;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @nullable
|
|
295
|
+
*/
|
|
296
|
+
export type InstanceResourceAccessState = (typeof InstanceResourceAccessState)[keyof typeof InstanceResourceAccessState] | null;
|
|
297
|
+
export declare const InstanceResourceAccessState: {
|
|
298
|
+
readonly pending: "pending";
|
|
299
|
+
readonly enabled: "enabled";
|
|
300
|
+
readonly suspended: "suspended";
|
|
301
|
+
readonly reclaimed: "reclaimed";
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Your own classification of this instance, as key-value pairs. Empty when never set
|
|
305
|
+
*/
|
|
306
|
+
export type InstanceResourceLabels = {
|
|
307
|
+
[key: string]: string;
|
|
308
|
+
};
|
|
309
|
+
export interface InstanceResource {
|
|
310
|
+
availability_zone_id: string;
|
|
311
|
+
created_at: string;
|
|
312
|
+
/** Hostname inside the instance; equals the instance id */
|
|
313
|
+
hostname: string;
|
|
314
|
+
id: string;
|
|
315
|
+
/**
|
|
316
|
+
* Non-empty when the instance was created from an image, public or private
|
|
317
|
+
* @nullable
|
|
318
|
+
*/
|
|
319
|
+
image_id: string | null;
|
|
320
|
+
/** The instance type in effect, and the basis for billing */
|
|
321
|
+
instance_type_id: string;
|
|
322
|
+
/**
|
|
323
|
+
* IPv6 address of the primary network interface. Assigned automatically once IPv6 is enabled on the private network
|
|
324
|
+
* @nullable
|
|
325
|
+
*/
|
|
326
|
+
ipv6_address: string | null;
|
|
327
|
+
/** Your own classification of this instance, as key-value pairs. Empty when never set */
|
|
328
|
+
labels: InstanceResourceLabels;
|
|
329
|
+
/**
|
|
330
|
+
* The account to log in as over SSH. The password set at creation belongs to this account
|
|
331
|
+
* @maxLength 32
|
|
332
|
+
*/
|
|
333
|
+
login_username: string;
|
|
334
|
+
name: string;
|
|
335
|
+
/**
|
|
336
|
+
* A free-text note about this instance. Empty when never set
|
|
337
|
+
* @maxLength 4096
|
|
338
|
+
*/
|
|
339
|
+
notes: string;
|
|
340
|
+
/**
|
|
341
|
+
* Private address of the instance
|
|
342
|
+
* @nullable
|
|
343
|
+
*/
|
|
344
|
+
private_ip: string | null;
|
|
345
|
+
/** @nullable */
|
|
346
|
+
private_network_id: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound
|
|
349
|
+
* @nullable
|
|
350
|
+
*/
|
|
351
|
+
public_ips: string[] | null;
|
|
352
|
+
region_id: string;
|
|
353
|
+
/** `pending` until the order is accepted: no virtual machine exists and addresses are null. `provisioning` while the instance is created, then `active`. `failed` means the instance was not created; `failure_reason` states why. `missing` means the virtual machine no longer exists in the cloud. The other values are the state last observed in the cloud; an operation in progress appears in `operation`, not here. */
|
|
354
|
+
status: InstanceResourceStatus;
|
|
355
|
+
/** @nullable */
|
|
356
|
+
subnet_id: string | null;
|
|
357
|
+
updated_at: string;
|
|
358
|
+
/** @minimum 1 */
|
|
359
|
+
generation: number;
|
|
360
|
+
/** @nullable */
|
|
361
|
+
observed_at: string | null;
|
|
362
|
+
restrictions: InstanceRestriction[];
|
|
363
|
+
/**
|
|
364
|
+
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this instance is refunded.
|
|
365
|
+
* @nullable
|
|
366
|
+
*/
|
|
367
|
+
failure_reason: InstanceResourceFailureReason;
|
|
368
|
+
/** The operation in progress on this instance, or null when none is. */
|
|
369
|
+
readonly operation: InstanceOperation | null;
|
|
370
|
+
/** @nullable */
|
|
371
|
+
order_id: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* The Billing order item for this resource.
|
|
374
|
+
* @nullable
|
|
375
|
+
*/
|
|
376
|
+
order_item_id: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The Billing Checkout Session that bought this resource; `order_id` and `order_item_id` stay null until its checkout completes. Null when the resource was not bought through one.
|
|
379
|
+
* @nullable
|
|
380
|
+
*/
|
|
381
|
+
checkout_session_id: string | null;
|
|
382
|
+
/**
|
|
383
|
+
* The Billing subscription associated with this resource. It may still be pending; its
|
|
384
|
+
* presence does not imply delivery or metering. Null when no subscription is associated.
|
|
385
|
+
* @nullable
|
|
386
|
+
*/
|
|
387
|
+
subscription_id: string | null;
|
|
388
|
+
/** The subscriptions a cancellation through Billing has to cover to release this instance: its own and those of the disks deleted with it. Snapshots are cleaned up with their source disk without canceling the project's snapshot quota. Subscriptions that have ended are not listed, and the list is empty when no subscription pays for any of them. */
|
|
389
|
+
release_subscription_ids: string[];
|
|
390
|
+
/** The subscriptions of `release_subscription_ids`, in the same order, each with the resource it pays for, so that each line of a cancellation can name what it releases. */
|
|
391
|
+
release_set: ReleaseSetItem[];
|
|
392
|
+
/** @nullable */
|
|
393
|
+
access_state: InstanceResourceAccessState;
|
|
394
|
+
/**
|
|
395
|
+
* Non-empty when the instance was created from a disk you already had, instead of from an image
|
|
396
|
+
* @nullable
|
|
397
|
+
*/
|
|
398
|
+
source_disk_id: string | null;
|
|
399
|
+
}
|
|
400
|
+
export interface DeleteInstanceResponseBody {
|
|
401
|
+
instance: InstanceResource;
|
|
402
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
403
|
+
cancellation: ResourceCancellation | null;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* `pending` until the order is accepted, with no storage allocated; `provisioning` while the disk is created; then `available`, or `in_use` once attached. `failed` means the disk was not created; `failure_reason` states why. `missing` means the disk no longer exists in the cloud.
|
|
407
|
+
*/
|
|
408
|
+
export type DiskResourceStatus = (typeof DiskResourceStatus)[keyof typeof DiskResourceStatus];
|
|
409
|
+
export declare const DiskResourceStatus: {
|
|
410
|
+
readonly pending: "pending";
|
|
411
|
+
readonly provisioning: "provisioning";
|
|
412
|
+
readonly available: "available";
|
|
413
|
+
readonly in_use: "in_use";
|
|
414
|
+
readonly deleted: "deleted";
|
|
415
|
+
readonly failed: "failed";
|
|
416
|
+
readonly error: "error";
|
|
417
|
+
readonly missing: "missing";
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* @nullable
|
|
421
|
+
*/
|
|
422
|
+
export type DiskResourceAccessState = (typeof DiskResourceAccessState)[keyof typeof DiskResourceAccessState] | null;
|
|
423
|
+
export declare const DiskResourceAccessState: {
|
|
424
|
+
readonly pending: "pending";
|
|
425
|
+
readonly enabled: "enabled";
|
|
426
|
+
readonly suspended: "suspended";
|
|
427
|
+
readonly reclaimed: "reclaimed";
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this disk is refunded.
|
|
431
|
+
* @nullable
|
|
432
|
+
*/
|
|
433
|
+
export type DiskResourceFailureReason = (typeof DiskResourceFailureReason)[keyof typeof DiskResourceFailureReason] | null;
|
|
434
|
+
export declare const DiskResourceFailureReason: {
|
|
435
|
+
readonly checkout_expired: "checkout_expired";
|
|
436
|
+
readonly order_declined: "order_declined";
|
|
437
|
+
readonly order_canceled: "order_canceled";
|
|
438
|
+
readonly order_expired: "order_expired";
|
|
439
|
+
readonly provisioning_failed: "provisioning_failed";
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* `attach` and `detach` accompany the instance's `attach_disk` and `detach_disk`. `delete` includes release through a Billing cancellation and deletion with an instance.
|
|
351
443
|
*/
|
|
352
444
|
export type DiskOperationType = (typeof DiskOperationType)[keyof typeof DiskOperationType];
|
|
353
445
|
export declare const DiskOperationType: {
|
|
@@ -458,149 +550,143 @@ export interface DiskResource {
|
|
|
458
550
|
/** @nullable */
|
|
459
551
|
observed_at: string | null;
|
|
460
552
|
}
|
|
553
|
+
export interface DeleteDiskResponseBody {
|
|
554
|
+
disk: DiskResource;
|
|
555
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
556
|
+
cancellation: ResourceCancellation | null;
|
|
557
|
+
}
|
|
461
558
|
/**
|
|
462
|
-
*
|
|
463
|
-
*/
|
|
464
|
-
export type DiskTypePurpose = (typeof DiskTypePurpose)[keyof typeof DiskTypePurpose];
|
|
465
|
-
export declare const DiskTypePurpose: {
|
|
466
|
-
readonly system: "system";
|
|
467
|
-
readonly data: "data";
|
|
468
|
-
};
|
|
469
|
-
export type DiskTypeResourceMedia = (typeof DiskTypeResourceMedia)[keyof typeof DiskTypeResourceMedia];
|
|
470
|
-
export declare const DiskTypeResourceMedia: {
|
|
471
|
-
readonly ssd: "ssd";
|
|
472
|
-
readonly hdd: "hdd";
|
|
473
|
-
readonly nvme: "nvme";
|
|
474
|
-
};
|
|
475
|
-
/**
|
|
476
|
-
* `licensed` pays for a period in advance; `metered` bills usage until canceled.
|
|
477
|
-
*/
|
|
478
|
-
export type PricingOptionUsageType = (typeof PricingOptionUsageType)[keyof typeof PricingOptionUsageType];
|
|
479
|
-
export declare const PricingOptionUsageType: {
|
|
480
|
-
readonly licensed: "licensed";
|
|
481
|
-
readonly metered: "metered";
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* What the amounts are for: one `item`, such as an instance or an address; one `gib` of size or capacity; one `mbps` of bandwidth; or one `snapshot` slot.
|
|
559
|
+
* `pending` until the order is accepted, with no address allocated; `provisioning` while the address is allocated; then `available`. `failed` means no address was allocated; `failure_reason` states why. `missing` means the address no longer exists in the cloud.
|
|
485
560
|
*/
|
|
486
|
-
export type
|
|
487
|
-
export declare const
|
|
488
|
-
readonly
|
|
489
|
-
readonly
|
|
490
|
-
readonly
|
|
491
|
-
readonly
|
|
561
|
+
export type FloatingIPResourceStatus = (typeof FloatingIPResourceStatus)[keyof typeof FloatingIPResourceStatus];
|
|
562
|
+
export declare const FloatingIPResourceStatus: {
|
|
563
|
+
readonly pending: "pending";
|
|
564
|
+
readonly provisioning: "provisioning";
|
|
565
|
+
readonly available: "available";
|
|
566
|
+
readonly deleted: "deleted";
|
|
567
|
+
readonly failed: "failed";
|
|
568
|
+
readonly error: "error";
|
|
569
|
+
readonly unknown: "unknown";
|
|
570
|
+
readonly missing: "missing";
|
|
492
571
|
};
|
|
493
572
|
/**
|
|
494
|
-
* Metered only; null for licensed. The time unit of `unit_amount`.
|
|
495
573
|
* @nullable
|
|
496
574
|
*/
|
|
497
|
-
export type
|
|
498
|
-
export declare const
|
|
499
|
-
readonly
|
|
575
|
+
export type FloatingIPResourceAccessState = (typeof FloatingIPResourceAccessState)[keyof typeof FloatingIPResourceAccessState] | null;
|
|
576
|
+
export declare const FloatingIPResourceAccessState: {
|
|
577
|
+
readonly pending: "pending";
|
|
578
|
+
readonly enabled: "enabled";
|
|
579
|
+
readonly suspended: "suspended";
|
|
580
|
+
readonly reclaimed: "reclaimed";
|
|
500
581
|
};
|
|
501
582
|
/**
|
|
502
|
-
*
|
|
583
|
+
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this floating IP is refunded.
|
|
503
584
|
* @nullable
|
|
504
585
|
*/
|
|
505
|
-
export type
|
|
506
|
-
export declare const
|
|
507
|
-
readonly
|
|
508
|
-
readonly
|
|
586
|
+
export type FloatingIPResourceFailureReason = (typeof FloatingIPResourceFailureReason)[keyof typeof FloatingIPResourceFailureReason] | null;
|
|
587
|
+
export declare const FloatingIPResourceFailureReason: {
|
|
588
|
+
readonly checkout_expired: "checkout_expired";
|
|
589
|
+
readonly order_declined: "order_declined";
|
|
590
|
+
readonly order_canceled: "order_canceled";
|
|
591
|
+
readonly order_expired: "order_expired";
|
|
592
|
+
readonly provisioning_failed: "provisioning_failed";
|
|
593
|
+
};
|
|
594
|
+
export type FloatingIPOperationType = (typeof FloatingIPOperationType)[keyof typeof FloatingIPOperationType];
|
|
595
|
+
export declare const FloatingIPOperationType: {
|
|
596
|
+
readonly create: "create";
|
|
597
|
+
readonly bind: "bind";
|
|
598
|
+
readonly unbind: "unbind";
|
|
599
|
+
readonly set_bandwidth: "set_bandwidth";
|
|
600
|
+
readonly suspend: "suspend";
|
|
601
|
+
readonly resume: "resume";
|
|
602
|
+
readonly delete: "delete";
|
|
509
603
|
};
|
|
510
604
|
/**
|
|
511
|
-
*
|
|
512
|
-
*/
|
|
513
|
-
export interface PricingOption {
|
|
514
|
-
/** `licensed` pays for a period in advance; `metered` bills usage until canceled. */
|
|
515
|
-
usage_type: PricingOptionUsageType;
|
|
516
|
-
/** The term of a licensed option; null for metered. */
|
|
517
|
-
period: BillingPeriod | null;
|
|
518
|
-
/** What the amounts are for: one `item`, such as an instance or an address; one `gib` of size or capacity; one `mbps` of bandwidth; or one `snapshot` slot. */
|
|
519
|
-
quantity_unit: PricingOptionQuantityUnit;
|
|
520
|
-
/**
|
|
521
|
-
* Licensed only; null for metered. The amount for one period, per quantity unit.
|
|
522
|
-
* @nullable
|
|
523
|
-
*/
|
|
524
|
-
amount: string | null;
|
|
525
|
-
/**
|
|
526
|
-
* Licensed only; null for metered. `amount` spread over the months of the period.
|
|
527
|
-
* @nullable
|
|
528
|
-
*/
|
|
529
|
-
monthly_amount: string | null;
|
|
530
|
-
/**
|
|
531
|
-
* Licensed only. How much lower `monthly_amount` is than that of the shortest licensed period of the same item, as a decimal percentage. Null for that shortest period and for metered.
|
|
532
|
-
* @nullable
|
|
533
|
-
*/
|
|
534
|
-
saving_percent: string | null;
|
|
535
|
-
/**
|
|
536
|
-
* Metered only; null for licensed. The amount for one `unit` of time, per quantity unit.
|
|
537
|
-
* @nullable
|
|
538
|
-
*/
|
|
539
|
-
unit_amount: string | null;
|
|
540
|
-
/**
|
|
541
|
-
* Metered only; null for licensed. The time unit of `unit_amount`.
|
|
542
|
-
* @nullable
|
|
543
|
-
*/
|
|
544
|
-
unit: PricingOptionUnit;
|
|
545
|
-
/**
|
|
546
|
-
* What canceling does under this option: `immediate` ends the service at once, with any refund following the option's terms; `period_end` ends it at the end of the paid period. Null means no explicit policy was recorded; it must not be interpreted as immediate.
|
|
547
|
-
* @nullable
|
|
548
|
-
*/
|
|
549
|
-
termination_policy: PricingOptionTerminationPolicy;
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* How a catalog item can be bought, calculated by Billing in the currency of the project's current billing account. These are list amounts before promotion codes, not a checkout guarantee; quote a purchase for its exact total.
|
|
605
|
+
* An operation still running on this floating IP. It is not a separate resource; once it finishes, the floating IP's `operation` is null again and the floating IP shows the result.
|
|
553
606
|
*/
|
|
554
|
-
export interface
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
options: PricingOption[];
|
|
607
|
+
export interface FloatingIPOperation {
|
|
608
|
+
type: FloatingIPOperationType;
|
|
609
|
+
started_at: string;
|
|
558
610
|
}
|
|
559
|
-
export
|
|
560
|
-
|
|
611
|
+
export type IPv4BindingState = (typeof IPv4BindingState)[keyof typeof IPv4BindingState];
|
|
612
|
+
export declare const IPv4BindingState: {
|
|
613
|
+
readonly bound: "bound";
|
|
614
|
+
readonly released: "released";
|
|
615
|
+
readonly unknown: "unknown";
|
|
616
|
+
};
|
|
617
|
+
export interface IPv4Binding {
|
|
561
618
|
id: string;
|
|
562
|
-
|
|
619
|
+
ipv4_allocation_id: string;
|
|
620
|
+
port_address_id: string;
|
|
621
|
+
address: string;
|
|
622
|
+
fixed_ip: string;
|
|
623
|
+
state: IPv4BindingState;
|
|
624
|
+
/** @nullable */
|
|
625
|
+
bound_at: string | null;
|
|
626
|
+
/** @nullable */
|
|
627
|
+
unbound_at: string | null;
|
|
628
|
+
/** @nullable */
|
|
629
|
+
released_at: string | null;
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* One purchased public IP resource, including its bandwidth configuration. Bandwidth has no
|
|
633
|
+
* separate Compute resource ID; one subscription pays for the address and its bandwidth.
|
|
634
|
+
* Changing bandwidth updates this same resource, not another allocation.
|
|
635
|
+
*/
|
|
636
|
+
export interface FloatingIPResource {
|
|
563
637
|
/**
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
* Performance grows with capacity, so this and `iops_at_max_size` are the two ends of the
|
|
567
|
-
* range. The exact figure for the size actually bought appears on the disk itself once it
|
|
568
|
-
* exists.
|
|
638
|
+
* The allocated public address. Null until the address is allocated.
|
|
569
639
|
* @nullable
|
|
570
640
|
*/
|
|
571
|
-
|
|
641
|
+
address: string | null;
|
|
642
|
+
/** @nullable */
|
|
643
|
+
bandwidth_mbps: number | null;
|
|
644
|
+
created_at: string;
|
|
645
|
+
id: string;
|
|
646
|
+
region_id: string;
|
|
647
|
+
/** `pending` until the order is accepted, with no address allocated; `provisioning` while the address is allocated; then `available`. `failed` means no address was allocated; `failure_reason` states why. `missing` means the address no longer exists in the cloud. */
|
|
648
|
+
status: FloatingIPResourceStatus;
|
|
649
|
+
/** @nullable */
|
|
650
|
+
order_id: string | null;
|
|
572
651
|
/**
|
|
573
|
-
*
|
|
652
|
+
* The Billing order item for this resource.
|
|
574
653
|
* @nullable
|
|
575
654
|
*/
|
|
576
|
-
|
|
577
|
-
max_size_gb: number;
|
|
578
|
-
media: DiskTypeResourceMedia;
|
|
579
|
-
min_size_gb: number;
|
|
580
|
-
name: string;
|
|
581
|
-
region_id: string;
|
|
582
|
-
step_gb: number;
|
|
655
|
+
order_item_id: string | null;
|
|
583
656
|
/**
|
|
584
|
-
*
|
|
585
|
-
* not rate-limited.
|
|
586
|
-
*
|
|
587
|
-
* Bytes rather than MiB so the number needs no rounding on the way out; divide by 1048576
|
|
588
|
-
* for MiB/s at the point of display.
|
|
657
|
+
* The Billing Checkout Session that bought this resource; `order_id` and `order_item_id` stay null until its checkout completes. Null when the resource was not bought through one.
|
|
589
658
|
* @nullable
|
|
590
659
|
*/
|
|
591
|
-
|
|
660
|
+
checkout_session_id: string | null;
|
|
592
661
|
/**
|
|
593
|
-
*
|
|
662
|
+
* The Billing subscription associated with this resource. It may still be pending; its
|
|
663
|
+
* presence does not imply delivery or metering. Null when no subscription is associated.
|
|
594
664
|
* @nullable
|
|
595
665
|
*/
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
666
|
+
subscription_id: string | null;
|
|
667
|
+
/** The subscription a cancellation through Billing has to cover to release this floating IP. A subscription that has ended is not listed, and the list is empty when no subscription pays for the floating IP. */
|
|
668
|
+
release_subscription_ids: string[];
|
|
669
|
+
/** The subscriptions of `release_subscription_ids`, in the same order, each with the resource it pays for, so that each line of a cancellation can name what it releases. */
|
|
670
|
+
release_set: ReleaseSetItem[];
|
|
601
671
|
/** @nullable */
|
|
602
|
-
|
|
603
|
-
|
|
672
|
+
access_state: FloatingIPResourceAccessState;
|
|
673
|
+
/**
|
|
674
|
+
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this floating IP is refunded.
|
|
675
|
+
* @nullable
|
|
676
|
+
*/
|
|
677
|
+
failure_reason: FloatingIPResourceFailureReason;
|
|
678
|
+
/** The operation in progress on this floating IP, or null when none is. */
|
|
679
|
+
readonly operation: FloatingIPOperation | null;
|
|
680
|
+
/** @minimum 1 */
|
|
681
|
+
generation: number;
|
|
682
|
+
/** @nullable */
|
|
683
|
+
observed_at: string | null;
|
|
684
|
+
binding: IPv4Binding | null;
|
|
685
|
+
}
|
|
686
|
+
export interface ReleaseFloatingIPResponseBody {
|
|
687
|
+
floating_ip: FloatingIPResource;
|
|
688
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
689
|
+
cancellation: ResourceCancellation | null;
|
|
604
690
|
}
|
|
605
691
|
/**
|
|
606
692
|
* Who can see and use an image. `public` — offered to every project by the platform. `private` — usable only by the project that owns it.
|
|
@@ -737,487 +823,433 @@ export interface ImageResource {
|
|
|
737
823
|
/** @nullable */
|
|
738
824
|
observed_at: string | null;
|
|
739
825
|
}
|
|
740
|
-
export interface
|
|
741
|
-
|
|
742
|
-
|
|
826
|
+
export interface DeleteImageResponseBody {
|
|
827
|
+
image: ImageResource;
|
|
828
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
829
|
+
cancellation: ResourceCancellation | null;
|
|
743
830
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
max_bandwidth_mbps: number;
|
|
755
|
-
/**
|
|
756
|
-
* Outbound ceiling of **each** network interface, in kbps. Null when this type is not
|
|
757
|
-
* rate-limited.
|
|
758
|
-
*
|
|
759
|
-
* Per interface rather than per machine: a machine with two interfaces has this ceiling on
|
|
760
|
-
* each of them, not shared between them. `max_ports` says how many it may have.
|
|
761
|
-
* @nullable
|
|
762
|
-
*/
|
|
763
|
-
network_egress_kbps: number | null;
|
|
831
|
+
/**
|
|
832
|
+
* What a given `code` carries alongside the message. The keys depend on the code,
|
|
833
|
+
* and a client that does not recognise one ignores it.
|
|
834
|
+
*/
|
|
835
|
+
export type ErrorMeta = {
|
|
836
|
+
[key: string]: unknown;
|
|
837
|
+
};
|
|
838
|
+
export interface Error {
|
|
839
|
+
code?: string;
|
|
840
|
+
message: string;
|
|
764
841
|
/**
|
|
765
|
-
*
|
|
766
|
-
*
|
|
842
|
+
* What a given `code` carries alongside the message. The keys depend on the code,
|
|
843
|
+
* and a client that does not recognise one ignores it.
|
|
767
844
|
*/
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
max_ports: number;
|
|
771
|
-
name: string;
|
|
772
|
-
ram_mb: number;
|
|
773
|
-
region_id: string;
|
|
774
|
-
vcpus: number;
|
|
775
|
-
/** How an instance of this type can be bought, per instance. Null when the project has no billing account. */
|
|
776
|
-
readonly pricing: Pricing | null;
|
|
845
|
+
meta?: ErrorMeta;
|
|
846
|
+
status: number;
|
|
777
847
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
848
|
+
/**
|
|
849
|
+
* `provisioning` while the backup is taken, then `available`. `failed` means the backup was not created. `missing` means the backup no longer exists in the cloud.
|
|
850
|
+
*/
|
|
851
|
+
export type BackupResourceStatus = (typeof BackupResourceStatus)[keyof typeof BackupResourceStatus];
|
|
852
|
+
export declare const BackupResourceStatus: {
|
|
853
|
+
readonly provisioning: "provisioning";
|
|
854
|
+
readonly available: "available";
|
|
855
|
+
readonly deleted: "deleted";
|
|
856
|
+
readonly failed: "failed";
|
|
857
|
+
readonly error: "error";
|
|
858
|
+
readonly missing: "missing";
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* `restore`: a disk is being restored from this backup.
|
|
862
|
+
*/
|
|
863
|
+
export type BackupOperationType = (typeof BackupOperationType)[keyof typeof BackupOperationType];
|
|
864
|
+
export declare const BackupOperationType: {
|
|
865
|
+
readonly create: "create";
|
|
866
|
+
readonly restore: "restore";
|
|
867
|
+
readonly delete: "delete";
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* An operation still running on this backup. It is not a separate resource; once it finishes, the backup's `operation` is null again and the backup shows the result.
|
|
871
|
+
*/
|
|
872
|
+
export interface BackupOperation {
|
|
873
|
+
/** `restore`: a disk is being restored from this backup. */
|
|
874
|
+
type: BackupOperationType;
|
|
875
|
+
started_at: string;
|
|
781
876
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
/** The region's code, the way the outside world names this place (hk-1). Stable and human-written; addressing is by id. */
|
|
788
|
-
code: string;
|
|
877
|
+
/**
|
|
878
|
+
* A copy of a disk, metered on the backup service of its region by `capacity_gib` for as long as it is retained. It has no order or subscription of its own.
|
|
879
|
+
*/
|
|
880
|
+
export interface BackupResource {
|
|
881
|
+
created_at: string;
|
|
789
882
|
id: string;
|
|
790
|
-
/** How private image storage in this region is billed, per GiB. Null when the project has no billing account. */
|
|
791
|
-
readonly private_image_pricing: Pricing | null;
|
|
792
|
-
}
|
|
793
|
-
export interface RegionListResponseBody {
|
|
794
|
-
/** @nullable */
|
|
795
|
-
items: RegionResource[] | null;
|
|
796
|
-
pagination: OffsetPagination;
|
|
797
|
-
}
|
|
798
|
-
export interface ZoneResource {
|
|
799
|
-
/** Display name for this zone, shown to tenants (Hong Kong A). The stable handle is code. */
|
|
800
883
|
name: string;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
884
|
+
region_id: string;
|
|
885
|
+
/** Capacity of the source disk when the backup was created. A restored disk cannot be smaller than this */
|
|
886
|
+
size_gb: number;
|
|
887
|
+
/** The capacity metered for this backup, in GiB: the size of the source disk when the backup was taken. Usage is this capacity multiplied by the time the backup is retained. */
|
|
888
|
+
capacity_gib: number;
|
|
889
|
+
/** The disk this backup was taken from. The backup remains usable after that disk is deleted */
|
|
890
|
+
source_disk_id: string;
|
|
891
|
+
/** `provisioning` while the backup is taken, then `available`. `failed` means the backup was not created. `missing` means the backup no longer exists in the cloud. */
|
|
892
|
+
status: BackupResourceStatus;
|
|
893
|
+
/** The operation in progress on this backup, or null when none is. */
|
|
894
|
+
readonly operation: BackupOperation | null;
|
|
895
|
+
/** @minimum 1 */
|
|
896
|
+
generation: number;
|
|
806
897
|
/** @nullable */
|
|
807
|
-
|
|
808
|
-
|
|
898
|
+
observed_at: string | null;
|
|
899
|
+
/** Availability zone of the source disk. A restore may target another zone in the same region */
|
|
900
|
+
source_availability_zone_id: string;
|
|
809
901
|
}
|
|
810
|
-
export interface
|
|
902
|
+
export interface BackupListResponseBody {
|
|
811
903
|
/** @nullable */
|
|
812
|
-
items:
|
|
904
|
+
items: BackupResource[] | null;
|
|
813
905
|
pagination: OffsetPagination;
|
|
814
906
|
}
|
|
815
|
-
export interface
|
|
816
|
-
|
|
817
|
-
* A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
818
|
-
* @maxLength 64
|
|
819
|
-
*/
|
|
820
|
-
disk_type_id: string;
|
|
907
|
+
export interface CreateBackupRequestBody {
|
|
908
|
+
disk_id: string;
|
|
821
909
|
/**
|
|
822
910
|
* @minLength 1
|
|
823
911
|
* @maxLength 128
|
|
824
912
|
*/
|
|
825
913
|
name: string;
|
|
826
|
-
/** @minimum 1 */
|
|
827
|
-
size_gb: number;
|
|
828
|
-
/** Restore from this snapshot. When given, the capacity need only be no smaller than the snapshot */
|
|
829
|
-
snapshot_id?: string;
|
|
830
|
-
billing: BillingChoice;
|
|
831
|
-
checkout?: CheckoutOptions;
|
|
832
914
|
}
|
|
833
|
-
export interface
|
|
915
|
+
export interface RenameBackupRequestBody {
|
|
834
916
|
/**
|
|
835
917
|
* @minLength 1
|
|
836
918
|
* @maxLength 128
|
|
837
919
|
*/
|
|
838
920
|
name: string;
|
|
839
921
|
}
|
|
840
|
-
|
|
922
|
+
/**
|
|
923
|
+
* `licensed` pays for a period in advance; `metered` bills usage until canceled.
|
|
924
|
+
*/
|
|
925
|
+
export type BillingChoiceUsageType = (typeof BillingChoiceUsageType)[keyof typeof BillingChoiceUsageType];
|
|
926
|
+
export declare const BillingChoiceUsageType: {
|
|
927
|
+
readonly licensed: "licensed";
|
|
928
|
+
readonly metered: "metered";
|
|
929
|
+
};
|
|
930
|
+
export type BillingPeriodUnit = (typeof BillingPeriodUnit)[keyof typeof BillingPeriodUnit];
|
|
931
|
+
export declare const BillingPeriodUnit: {
|
|
932
|
+
readonly month: "month";
|
|
933
|
+
readonly year: "year";
|
|
934
|
+
};
|
|
935
|
+
export interface BillingPeriod {
|
|
936
|
+
unit: BillingPeriodUnit;
|
|
841
937
|
/**
|
|
842
|
-
* Must be larger than the current capacity
|
|
843
938
|
* @minimum 1
|
|
939
|
+
* @maximum 2147483647
|
|
844
940
|
*/
|
|
845
|
-
|
|
846
|
-
checkout?: CheckoutOptions;
|
|
847
|
-
/** The `proration_date` of this change's quote, so that the order is priced from the same instant. Only for automatic checkout; deferred checkout is priced when the customer completes it. Defaults to the time of the request; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. */
|
|
848
|
-
proration_date?: string;
|
|
849
|
-
}
|
|
850
|
-
export interface RevertDiskRequestBody {
|
|
851
|
-
/** Must be the most recent snapshot of the disk */
|
|
852
|
-
snapshot_id: string;
|
|
941
|
+
count: number;
|
|
853
942
|
}
|
|
854
943
|
/**
|
|
855
|
-
*
|
|
944
|
+
* Immediate ends service when cancellation takes effect, with refunds governed by the purchased terms. Period-end keeps service until the paid period ends.
|
|
856
945
|
*/
|
|
857
|
-
export type
|
|
858
|
-
export declare const
|
|
859
|
-
readonly
|
|
860
|
-
readonly
|
|
861
|
-
readonly available: "available";
|
|
862
|
-
readonly deleted: "deleted";
|
|
863
|
-
readonly failed: "failed";
|
|
864
|
-
readonly error: "error";
|
|
865
|
-
readonly unknown: "unknown";
|
|
866
|
-
readonly missing: "missing";
|
|
946
|
+
export type TerminationPolicy = (typeof TerminationPolicy)[keyof typeof TerminationPolicy];
|
|
947
|
+
export declare const TerminationPolicy: {
|
|
948
|
+
readonly immediate: "immediate";
|
|
949
|
+
readonly period_end: "period_end";
|
|
867
950
|
};
|
|
868
951
|
/**
|
|
869
|
-
*
|
|
952
|
+
* The commercial terms for one newly purchased component. Licensed requires period and termination_policy; metered refuses both. Components in one instance order must use the same usage type and period, while their termination policies may differ.
|
|
870
953
|
*/
|
|
871
|
-
export
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
};
|
|
954
|
+
export interface BillingChoice {
|
|
955
|
+
/** `licensed` pays for a period in advance; `metered` bills usage until canceled. */
|
|
956
|
+
usage_type: BillingChoiceUsageType;
|
|
957
|
+
period?: BillingPeriod;
|
|
958
|
+
termination_policy?: TerminationPolicy;
|
|
959
|
+
}
|
|
878
960
|
/**
|
|
879
|
-
*
|
|
880
|
-
*
|
|
961
|
+
* automatic completes checkout with the purchase: the best applicable account discount is applied, and the
|
|
962
|
+
* order is created with its invoice issued and paid from eligible credit grants and available balance.
|
|
963
|
+
* Insufficient funds fail the purchase with HTTP 422 BILLING_INSUFFICIENT_FUNDS; no Billing order, charge or
|
|
964
|
+
* discount redemption is committed.
|
|
965
|
+
* deferred creates an open Billing Checkout Session and charges nothing, even for a zero total. The customer
|
|
966
|
+
* completes it through Billing, where a promotion code can be applied, and then pays the issued invoice; a
|
|
967
|
+
* session not completed by its deadline expires.
|
|
881
968
|
*/
|
|
882
|
-
export type
|
|
883
|
-
export declare const
|
|
884
|
-
readonly
|
|
885
|
-
readonly
|
|
886
|
-
readonly order_canceled: "order_canceled";
|
|
887
|
-
readonly order_expired: "order_expired";
|
|
888
|
-
readonly provisioning_failed: "provisioning_failed";
|
|
889
|
-
};
|
|
890
|
-
export type FloatingIPOperationType = (typeof FloatingIPOperationType)[keyof typeof FloatingIPOperationType];
|
|
891
|
-
export declare const FloatingIPOperationType: {
|
|
892
|
-
readonly create: "create";
|
|
893
|
-
readonly bind: "bind";
|
|
894
|
-
readonly unbind: "unbind";
|
|
895
|
-
readonly set_bandwidth: "set_bandwidth";
|
|
896
|
-
readonly suspend: "suspend";
|
|
897
|
-
readonly resume: "resume";
|
|
898
|
-
readonly delete: "delete";
|
|
969
|
+
export type CheckoutMode = (typeof CheckoutMode)[keyof typeof CheckoutMode];
|
|
970
|
+
export declare const CheckoutMode: {
|
|
971
|
+
readonly automatic: "automatic";
|
|
972
|
+
readonly deferred: "deferred";
|
|
899
973
|
};
|
|
900
974
|
/**
|
|
901
|
-
*
|
|
975
|
+
* A decimal string, in the currency stated alongside it.
|
|
976
|
+
*
|
|
977
|
+
* **The currency is not part of this type.** It is carried by a `currency` field next to the
|
|
978
|
+
* amount, or by the account the amount belongs to. Reading an amount without that field is
|
|
979
|
+
* reading a number with no unit.
|
|
980
|
+
*
|
|
981
|
+
* It is a string rather than a JSON number because a JSON number is a float in most parsers,
|
|
982
|
+
* and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
|
|
983
|
+
* through a float.
|
|
902
984
|
*/
|
|
903
|
-
export
|
|
904
|
-
type: FloatingIPOperationType;
|
|
905
|
-
started_at: string;
|
|
906
|
-
}
|
|
907
|
-
export type IPv4BindingState = (typeof IPv4BindingState)[keyof typeof IPv4BindingState];
|
|
908
|
-
export declare const IPv4BindingState: {
|
|
909
|
-
readonly bound: "bound";
|
|
910
|
-
readonly released: "released";
|
|
911
|
-
readonly unknown: "unknown";
|
|
912
|
-
};
|
|
913
|
-
export interface IPv4Binding {
|
|
914
|
-
id: string;
|
|
915
|
-
ipv4_allocation_id: string;
|
|
916
|
-
port_address_id: string;
|
|
917
|
-
address: string;
|
|
918
|
-
fixed_ip: string;
|
|
919
|
-
state: IPv4BindingState;
|
|
920
|
-
/** @nullable */
|
|
921
|
-
bound_at: string | null;
|
|
922
|
-
/** @nullable */
|
|
923
|
-
unbound_at: string | null;
|
|
924
|
-
/** @nullable */
|
|
925
|
-
released_at: string | null;
|
|
926
|
-
}
|
|
985
|
+
export type Money = string;
|
|
927
986
|
/**
|
|
928
|
-
*
|
|
929
|
-
*
|
|
930
|
-
*
|
|
987
|
+
* Shared checkout choices for a product purchase. The service may set them or forward its client's
|
|
988
|
+
* choices unchanged; it does not need to read them, and Billing validates them. Omitting this object or
|
|
989
|
+
* mode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied
|
|
990
|
+
* only to Billing. A service may retain a failed creation record when Billing refuses a purchase; no
|
|
991
|
+
* infrastructure is created for that refusal.
|
|
931
992
|
*/
|
|
932
|
-
export interface
|
|
993
|
+
export interface CheckoutOptions {
|
|
994
|
+
mode?: CheckoutMode;
|
|
933
995
|
/**
|
|
934
|
-
*
|
|
935
|
-
*
|
|
996
|
+
* Expected invoice total after discounts and tax, before applying credit grants or balance.
|
|
997
|
+
* A different total fails with BILLING_AMOUNT_CHANGED without charging or reserving a discount.
|
|
998
|
+
* Accepted only in automatic mode; with deferred it is refused with HTTP 400. For deferred
|
|
999
|
+
* checkout, give the expected amount when completing it through Billing.
|
|
936
1000
|
*/
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
|
|
940
|
-
|
|
1001
|
+
expected_amount?: Money & string;
|
|
1002
|
+
/**
|
|
1003
|
+
* Where the client goes after the customer finishes a deferred checkout. Any absolute URI with a
|
|
1004
|
+
* scheme, including mobile and desktop application schemes. Billing stores it without checking the
|
|
1005
|
+
* target; each client validates its own.
|
|
1006
|
+
* @maxLength 2048
|
|
1007
|
+
*/
|
|
1008
|
+
return_url?: string;
|
|
1009
|
+
}
|
|
1010
|
+
export interface RestoreBackupRequestBody {
|
|
1011
|
+
/**
|
|
1012
|
+
* May differ from the availability zone of the source disk, but must be in the same region. It has to be a data disk type on sale — restoring creates a new data disk, so a withdrawn type or a system disk type is rejected here as well
|
|
1013
|
+
* @maxLength 64
|
|
1014
|
+
*/
|
|
1015
|
+
disk_type_id: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* @minLength 1
|
|
1018
|
+
* @maxLength 128
|
|
1019
|
+
*/
|
|
1020
|
+
name: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Matches the size of the backup when omitted. When given, it must not be smaller than the backup
|
|
1023
|
+
* @minimum 0
|
|
1024
|
+
*/
|
|
1025
|
+
size_gb?: number;
|
|
1026
|
+
billing: BillingChoice;
|
|
1027
|
+
checkout?: CheckoutOptions;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* The intended purchase use of a disk type, not the current boot role or deletion policy of an individual disk.
|
|
1031
|
+
*/
|
|
1032
|
+
export type DiskTypePurpose = (typeof DiskTypePurpose)[keyof typeof DiskTypePurpose];
|
|
1033
|
+
export declare const DiskTypePurpose: {
|
|
1034
|
+
readonly system: "system";
|
|
1035
|
+
readonly data: "data";
|
|
1036
|
+
};
|
|
1037
|
+
export type DiskTypeResourceMedia = (typeof DiskTypeResourceMedia)[keyof typeof DiskTypeResourceMedia];
|
|
1038
|
+
export declare const DiskTypeResourceMedia: {
|
|
1039
|
+
readonly ssd: "ssd";
|
|
1040
|
+
readonly hdd: "hdd";
|
|
1041
|
+
readonly nvme: "nvme";
|
|
1042
|
+
};
|
|
1043
|
+
export interface DiskTypeResource {
|
|
1044
|
+
availability_zone_id: string;
|
|
941
1045
|
id: string;
|
|
942
|
-
|
|
943
|
-
/** `pending` until the order is accepted, with no address allocated; `provisioning` while the address is allocated; then `available`. `failed` means no address was allocated; `failure_reason` states why. `missing` means the address no longer exists in the cloud. */
|
|
944
|
-
status: FloatingIPResourceStatus;
|
|
945
|
-
/** @nullable */
|
|
946
|
-
order_id: string | null;
|
|
1046
|
+
purpose: DiskTypePurpose;
|
|
947
1047
|
/**
|
|
948
|
-
*
|
|
1048
|
+
* IOPS a disk of `min_size_gb` gets. Null when this type is not rate-limited.
|
|
1049
|
+
*
|
|
1050
|
+
* Performance grows with capacity, so this and `iops_at_max_size` are the two ends of the
|
|
1051
|
+
* range. The exact figure for the size actually bought appears on the disk itself once it
|
|
1052
|
+
* exists.
|
|
949
1053
|
* @nullable
|
|
950
1054
|
*/
|
|
951
|
-
|
|
1055
|
+
iops_at_min_size: number | null;
|
|
952
1056
|
/**
|
|
953
|
-
*
|
|
1057
|
+
* IOPS a disk of `max_size_gb` gets. Null when this type is not rate-limited
|
|
954
1058
|
* @nullable
|
|
955
1059
|
*/
|
|
956
|
-
|
|
1060
|
+
iops_at_max_size: number | null;
|
|
1061
|
+
max_size_gb: number;
|
|
1062
|
+
media: DiskTypeResourceMedia;
|
|
1063
|
+
min_size_gb: number;
|
|
1064
|
+
name: string;
|
|
1065
|
+
region_id: string;
|
|
1066
|
+
step_gb: number;
|
|
957
1067
|
/**
|
|
958
|
-
*
|
|
959
|
-
*
|
|
1068
|
+
* Throughput a disk of `min_size_gb` gets, in **bytes per second**. Null when this type is
|
|
1069
|
+
* not rate-limited.
|
|
1070
|
+
*
|
|
1071
|
+
* Bytes rather than MiB so the number needs no rounding on the way out; divide by 1048576
|
|
1072
|
+
* for MiB/s at the point of display.
|
|
960
1073
|
* @nullable
|
|
961
1074
|
*/
|
|
962
|
-
|
|
963
|
-
/** The subscription a cancellation through Billing has to cover to release this floating IP. A subscription that has ended is not listed, and the list is empty when no subscription pays for the floating IP. */
|
|
964
|
-
release_subscription_ids: string[];
|
|
965
|
-
/** The subscriptions of `release_subscription_ids`, in the same order, each with the resource it pays for, so that each line of a cancellation can name what it releases. */
|
|
966
|
-
release_set: ReleaseSetItem[];
|
|
967
|
-
/** @nullable */
|
|
968
|
-
access_state: FloatingIPResourceAccessState;
|
|
1075
|
+
throughput_at_min_size: number | null;
|
|
969
1076
|
/**
|
|
970
|
-
*
|
|
1077
|
+
* Throughput a disk of `max_size_gb` gets, in bytes per second. Null when this type is not rate-limited
|
|
971
1078
|
* @nullable
|
|
972
1079
|
*/
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
readonly operation: FloatingIPOperation | null;
|
|
976
|
-
/** @minimum 1 */
|
|
977
|
-
generation: number;
|
|
978
|
-
/** @nullable */
|
|
979
|
-
observed_at: string | null;
|
|
980
|
-
binding: IPv4Binding | null;
|
|
1080
|
+
throughput_at_max_size: number | null;
|
|
1081
|
+
billing: BillingComponent;
|
|
981
1082
|
}
|
|
982
|
-
export interface
|
|
1083
|
+
export interface DiskTypeListResponseBody {
|
|
983
1084
|
/** @nullable */
|
|
984
|
-
items:
|
|
1085
|
+
items: DiskTypeResource[] | null;
|
|
985
1086
|
pagination: OffsetPagination;
|
|
986
1087
|
}
|
|
987
|
-
export interface
|
|
1088
|
+
export interface ImageListResponseBody {
|
|
1089
|
+
items: ImageResource[];
|
|
1090
|
+
pagination: OffsetPagination;
|
|
1091
|
+
}
|
|
1092
|
+
export interface InstanceTypeResource {
|
|
1093
|
+
availability_zone_id: string;
|
|
1094
|
+
id: string;
|
|
988
1095
|
/**
|
|
989
|
-
* The
|
|
990
|
-
*
|
|
1096
|
+
* The most public bandwidth a machine of this type may be given, in Mbps. Asking for more
|
|
1097
|
+
* when creating a machine, or raising a bound address past it, is refused.
|
|
1098
|
+
*
|
|
1099
|
+
* A ceiling on what can be bought, not a speed. How fast the machine's own interfaces run is
|
|
1100
|
+
* `network_egress_kbps` / `network_ingress_kbps`.
|
|
991
1101
|
*/
|
|
992
|
-
|
|
1102
|
+
max_bandwidth_mbps: number;
|
|
993
1103
|
/**
|
|
994
|
-
*
|
|
995
|
-
*
|
|
996
|
-
* Required, and there is no "unlimited": an address with no ceiling runs at line rate and is
|
|
997
|
-
* charged nothing for the traffic, while the address itself bills normally — so the invoice
|
|
998
|
-
* looks correct and nothing anywhere reports it.
|
|
1104
|
+
* Outbound ceiling of **each** network interface, in kbps. Null when this type is not
|
|
1105
|
+
* rate-limited.
|
|
999
1106
|
*
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
1002
|
-
*
|
|
1003
|
-
* @minimum 1
|
|
1004
|
-
* @maximum 1000
|
|
1107
|
+
* Per interface rather than per machine: a machine with two interfaces has this ceiling on
|
|
1108
|
+
* each of them, not shared between them. `max_ports` says how many it may have.
|
|
1109
|
+
* @nullable
|
|
1005
1110
|
*/
|
|
1006
|
-
|
|
1007
|
-
private_network_id: string;
|
|
1008
|
-
ipv4_pool_id: string;
|
|
1009
|
-
billing: BillingChoice;
|
|
1010
|
-
checkout?: CheckoutOptions;
|
|
1011
|
-
}
|
|
1012
|
-
/**
|
|
1013
|
-
* Change bandwidth on the floating IP identified by the path. This is a configuration change
|
|
1014
|
-
* of that purchase, not an independent bandwidth purchase. Checkout is handled by Billing.
|
|
1015
|
-
*/
|
|
1016
|
-
export interface SetFloatingIPBandwidthRequestBody {
|
|
1111
|
+
network_egress_kbps: number | null;
|
|
1017
1112
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @
|
|
1113
|
+
* Inbound ceiling of each network interface, in kbps. Null when this type is not rate-limited
|
|
1114
|
+
* @nullable
|
|
1020
1115
|
*/
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1116
|
+
network_ingress_kbps: number | null;
|
|
1117
|
+
max_floating_ips: number;
|
|
1118
|
+
max_ports: number;
|
|
1119
|
+
name: string;
|
|
1120
|
+
ram_mb: number;
|
|
1121
|
+
region_id: string;
|
|
1122
|
+
vcpus: number;
|
|
1123
|
+
billing: BillingComponent;
|
|
1025
1124
|
}
|
|
1026
|
-
export interface
|
|
1027
|
-
|
|
1125
|
+
export interface InstanceTypeListResponseBody {
|
|
1126
|
+
items: InstanceTypeResource[];
|
|
1127
|
+
pagination: OffsetPagination;
|
|
1028
1128
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
* `pending` until the order is accepted: no virtual machine exists and addresses are null. `provisioning` while the instance is created, then `active`. `failed` means the instance was not created; `failure_reason` states why. `missing` means the virtual machine no longer exists in the cloud. The other values are the state last observed in the cloud; an operation in progress appears in `operation`, not here.
|
|
1037
|
-
*/
|
|
1038
|
-
export type InstanceResourceStatus = (typeof InstanceResourceStatus)[keyof typeof InstanceResourceStatus];
|
|
1039
|
-
export declare const InstanceResourceStatus: {
|
|
1040
|
-
readonly pending: "pending";
|
|
1041
|
-
readonly provisioning: "provisioning";
|
|
1042
|
-
readonly active: "active";
|
|
1043
|
-
readonly stopped: "stopped";
|
|
1044
|
-
readonly paused: "paused";
|
|
1045
|
-
readonly suspended: "suspended";
|
|
1046
|
-
readonly shelved: "shelved";
|
|
1047
|
-
readonly shelved_offloaded: "shelved_offloaded";
|
|
1048
|
-
readonly rescued: "rescued";
|
|
1049
|
-
readonly deleted: "deleted";
|
|
1050
|
-
readonly failed: "failed";
|
|
1051
|
-
readonly error: "error";
|
|
1052
|
-
readonly unknown: "unknown";
|
|
1053
|
-
readonly missing: "missing";
|
|
1054
|
-
};
|
|
1055
|
-
/**
|
|
1056
|
-
* Why creation failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired. `provisioning_failed` means creation failed after the order was accepted, and the charge for this instance is refunded.
|
|
1057
|
-
* @nullable
|
|
1058
|
-
*/
|
|
1059
|
-
export type InstanceResourceFailureReason = (typeof InstanceResourceFailureReason)[keyof typeof InstanceResourceFailureReason] | null;
|
|
1060
|
-
export declare const InstanceResourceFailureReason: {
|
|
1061
|
-
readonly checkout_expired: "checkout_expired";
|
|
1062
|
-
readonly order_declined: "order_declined";
|
|
1063
|
-
readonly order_canceled: "order_canceled";
|
|
1064
|
-
readonly order_expired: "order_expired";
|
|
1065
|
-
readonly provisioning_failed: "provisioning_failed";
|
|
1066
|
-
};
|
|
1067
|
-
/**
|
|
1068
|
-
* @nullable
|
|
1069
|
-
*/
|
|
1070
|
-
export type InstanceResourceAccessState = (typeof InstanceResourceAccessState)[keyof typeof InstanceResourceAccessState] | null;
|
|
1071
|
-
export declare const InstanceResourceAccessState: {
|
|
1072
|
-
readonly pending: "pending";
|
|
1073
|
-
readonly enabled: "enabled";
|
|
1074
|
-
readonly suspended: "suspended";
|
|
1075
|
-
readonly reclaimed: "reclaimed";
|
|
1076
|
-
};
|
|
1077
|
-
export type InstanceRestrictionSource = (typeof InstanceRestrictionSource)[keyof typeof InstanceRestrictionSource];
|
|
1078
|
-
export declare const InstanceRestrictionSource: {
|
|
1079
|
-
readonly billing: "billing";
|
|
1080
|
-
readonly iam: "iam";
|
|
1081
|
-
readonly operator: "operator";
|
|
1082
|
-
};
|
|
1083
|
-
/**
|
|
1084
|
-
* An independent restriction on use. Removing one restriction never removes another source’s restriction, and never starts an instance its user stopped.
|
|
1085
|
-
*/
|
|
1086
|
-
export interface InstanceRestriction {
|
|
1129
|
+
export interface RegionResource {
|
|
1130
|
+
/** ISO 3166-1 alpha-2 country this region sits in. Two letters, uppercase. */
|
|
1131
|
+
country_code: string;
|
|
1132
|
+
/** Display name for this place, shown to tenants (Hong Kong). The stable handle is code. */
|
|
1133
|
+
name: string;
|
|
1134
|
+
/** The region's code, the way the outside world names this place (hk-1). Stable and human-written; addressing is by id. */
|
|
1135
|
+
code: string;
|
|
1087
1136
|
id: string;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
/**
|
|
1095
|
-
|
|
1096
|
-
* @maxLength 128
|
|
1097
|
-
*/
|
|
1098
|
-
reason_code: string;
|
|
1099
|
-
created_at: string;
|
|
1137
|
+
/** Private images stored in this region. */
|
|
1138
|
+
private_image_billing: BillingComponent;
|
|
1139
|
+
/** The region's backup service. Retained backup capacity beyond the active capacity packs is reported on it by the hour. */
|
|
1140
|
+
backup_service_billing: BillingComponent;
|
|
1141
|
+
/** Backup capacity packs in this region; null where none are sold. */
|
|
1142
|
+
capacity_pack_billing: BillingComponent | null;
|
|
1143
|
+
/** The snapshot quota in this region; null where it is not sold. */
|
|
1144
|
+
snapshot_quota_billing: BillingComponent | null;
|
|
1100
1145
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
export declare const InstanceOperationType: {
|
|
1106
|
-
readonly create: "create";
|
|
1107
|
-
readonly start: "start";
|
|
1108
|
-
readonly stop: "stop";
|
|
1109
|
-
readonly reboot: "reboot";
|
|
1110
|
-
readonly rebuild: "rebuild";
|
|
1111
|
-
readonly resize: "resize";
|
|
1112
|
-
readonly reset_password: "reset_password";
|
|
1113
|
-
readonly attach_disk: "attach_disk";
|
|
1114
|
-
readonly detach_disk: "detach_disk";
|
|
1115
|
-
readonly attach_port: "attach_port";
|
|
1116
|
-
readonly detach_port: "detach_port";
|
|
1117
|
-
readonly bind_floating_ip: "bind_floating_ip";
|
|
1118
|
-
readonly unbind_floating_ip: "unbind_floating_ip";
|
|
1119
|
-
readonly suspend: "suspend";
|
|
1120
|
-
readonly resume: "resume";
|
|
1121
|
-
readonly delete: "delete";
|
|
1122
|
-
};
|
|
1123
|
-
/**
|
|
1124
|
-
* An operation still running on this instance. It is not a separate resource; once it finishes, the instance's `operation` is null again and the instance shows the result.
|
|
1125
|
-
*/
|
|
1126
|
-
export interface InstanceOperation {
|
|
1127
|
-
/** `create` runs from acceptance of the order until the instance is `active` or `failed`. `suspend` and `resume` impose and lift a suspension by the platform or for non-payment. `delete` includes release through a Billing cancellation. */
|
|
1128
|
-
type: InstanceOperationType;
|
|
1129
|
-
started_at: string;
|
|
1146
|
+
export interface RegionListResponseBody {
|
|
1147
|
+
/** @nullable */
|
|
1148
|
+
items: RegionResource[] | null;
|
|
1149
|
+
pagination: OffsetPagination;
|
|
1130
1150
|
}
|
|
1131
|
-
export interface
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
|
|
1151
|
+
export interface ZoneResource {
|
|
1152
|
+
/** Display name for this zone, shown to tenants (Hong Kong A). The stable handle is code. */
|
|
1153
|
+
name: string;
|
|
1154
|
+
/** The zone's code within its region (hk-1-a). Stable and human-written; addressing is by id. */
|
|
1155
|
+
code: string;
|
|
1136
1156
|
id: string;
|
|
1157
|
+
}
|
|
1158
|
+
export interface ZoneListResponseBody {
|
|
1159
|
+
/** @nullable */
|
|
1160
|
+
items: ZoneResource[] | null;
|
|
1161
|
+
pagination: OffsetPagination;
|
|
1162
|
+
}
|
|
1163
|
+
export interface DiskListResponseBody {
|
|
1164
|
+
/** @nullable */
|
|
1165
|
+
items: DiskResource[] | null;
|
|
1166
|
+
pagination: OffsetPagination;
|
|
1167
|
+
}
|
|
1168
|
+
export interface CreateDiskRequestBody {
|
|
1137
1169
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* @
|
|
1140
|
-
*/
|
|
1141
|
-
image_id: string | null;
|
|
1142
|
-
/** The instance type in effect, and the basis for billing */
|
|
1143
|
-
instance_type_id: string;
|
|
1144
|
-
/**
|
|
1145
|
-
* IPv6 address of the primary network interface. Assigned automatically once IPv6 is enabled on the private network
|
|
1146
|
-
* @nullable
|
|
1170
|
+
* A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
1171
|
+
* @maxLength 64
|
|
1147
1172
|
*/
|
|
1148
|
-
|
|
1149
|
-
/** Your own classification of this instance, as key-value pairs. Empty when never set */
|
|
1150
|
-
labels: InstanceResourceLabels;
|
|
1173
|
+
disk_type_id: string;
|
|
1151
1174
|
/**
|
|
1152
|
-
*
|
|
1153
|
-
* @maxLength
|
|
1175
|
+
* @minLength 1
|
|
1176
|
+
* @maxLength 128
|
|
1154
1177
|
*/
|
|
1155
|
-
login_username: string;
|
|
1156
1178
|
name: string;
|
|
1157
|
-
/**
|
|
1158
|
-
* A free-text note about this instance. Empty when never set
|
|
1159
|
-
* @maxLength 4096
|
|
1160
|
-
*/
|
|
1161
|
-
notes: string;
|
|
1162
|
-
/**
|
|
1163
|
-
* Private address of the instance
|
|
1164
|
-
* @nullable
|
|
1165
|
-
*/
|
|
1166
|
-
private_ip: string | null;
|
|
1167
|
-
/** @nullable */
|
|
1168
|
-
private_network_id: string | null;
|
|
1169
|
-
/**
|
|
1170
|
-
* Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound
|
|
1171
|
-
* @nullable
|
|
1172
|
-
*/
|
|
1173
|
-
public_ips: string[] | null;
|
|
1174
|
-
region_id: string;
|
|
1175
|
-
/** `pending` until the order is accepted: no virtual machine exists and addresses are null. `provisioning` while the instance is created, then `active`. `failed` means the instance was not created; `failure_reason` states why. `missing` means the virtual machine no longer exists in the cloud. The other values are the state last observed in the cloud; an operation in progress appears in `operation`, not here. */
|
|
1176
|
-
status: InstanceResourceStatus;
|
|
1177
|
-
/** @nullable */
|
|
1178
|
-
subnet_id: string | null;
|
|
1179
|
-
updated_at: string;
|
|
1180
1179
|
/** @minimum 1 */
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
|
|
1184
|
-
|
|
1180
|
+
size_gb: number;
|
|
1181
|
+
/** Restore from this snapshot. When given, the capacity need only be no smaller than the snapshot */
|
|
1182
|
+
snapshot_id?: string;
|
|
1183
|
+
billing: BillingChoice;
|
|
1184
|
+
checkout?: CheckoutOptions;
|
|
1185
|
+
}
|
|
1186
|
+
export interface RenameDiskRequestBody {
|
|
1185
1187
|
/**
|
|
1186
|
-
*
|
|
1187
|
-
* @
|
|
1188
|
+
* @minLength 1
|
|
1189
|
+
* @maxLength 128
|
|
1188
1190
|
*/
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
/** @nullable */
|
|
1193
|
-
order_id: string | null;
|
|
1191
|
+
name: string;
|
|
1192
|
+
}
|
|
1193
|
+
export interface ResizeDiskRequestBody {
|
|
1194
1194
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
* @
|
|
1195
|
+
* Must be larger than the current capacity
|
|
1196
|
+
* @minimum 1
|
|
1197
1197
|
*/
|
|
1198
|
-
|
|
1198
|
+
size_gb: number;
|
|
1199
|
+
checkout?: CheckoutOptions;
|
|
1200
|
+
/** The `proration_date` of Billing's quote for this change, so that the order is priced from the same instant. Only for automatic checkout; deferred checkout is priced when the customer completes it. Defaults to the time of the request; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. */
|
|
1201
|
+
proration_date?: string;
|
|
1202
|
+
}
|
|
1203
|
+
export interface RevertDiskRequestBody {
|
|
1204
|
+
/** Must be the most recent snapshot of the disk */
|
|
1205
|
+
snapshot_id: string;
|
|
1206
|
+
}
|
|
1207
|
+
export interface FloatingIPListResponseBody {
|
|
1208
|
+
/** @nullable */
|
|
1209
|
+
items: FloatingIPResource[] | null;
|
|
1210
|
+
pagination: OffsetPagination;
|
|
1211
|
+
}
|
|
1212
|
+
export interface AllocateFloatingIPRequestBody {
|
|
1199
1213
|
/**
|
|
1200
|
-
* The
|
|
1201
|
-
* @
|
|
1214
|
+
* The address to allocate. Allocated by the platform when omitted
|
|
1215
|
+
* @maxLength 64
|
|
1202
1216
|
*/
|
|
1203
|
-
|
|
1217
|
+
address?: string;
|
|
1204
1218
|
/**
|
|
1205
|
-
* The
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1219
|
+
* The bandwidth ceiling of this address, in Mbit/s, applied to both directions.
|
|
1220
|
+
*
|
|
1221
|
+
* Required, and there is no "unlimited": an address with no ceiling runs at line rate and is
|
|
1222
|
+
* charged nothing for the traffic, while the address itself bills normally — so the invoice
|
|
1223
|
+
* looks correct and nothing anywhere reports it.
|
|
1224
|
+
*
|
|
1225
|
+
* It is part of this floating IP purchase and is billed under the pool's `billing`, with the
|
|
1226
|
+
* purchase's billing choice. Changing it later updates the
|
|
1227
|
+
* same floating IP through its bandwidth endpoint, not an independent bandwidth resource.
|
|
1228
|
+
* @minimum 1
|
|
1229
|
+
* @maximum 1000
|
|
1208
1230
|
*/
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1231
|
+
bandwidth_mbps: number;
|
|
1232
|
+
private_network_id: string;
|
|
1233
|
+
ipv4_pool_id: string;
|
|
1234
|
+
billing: BillingChoice;
|
|
1235
|
+
checkout?: CheckoutOptions;
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Change bandwidth on the floating IP identified by the path. This is a configuration change
|
|
1239
|
+
* of that purchase, not an independent bandwidth purchase. Checkout is handled by Billing.
|
|
1240
|
+
*/
|
|
1241
|
+
export interface SetFloatingIPBandwidthRequestBody {
|
|
1216
1242
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
* @
|
|
1243
|
+
* Applied to both directions
|
|
1244
|
+
* @minimum 1
|
|
1219
1245
|
*/
|
|
1220
|
-
|
|
1246
|
+
bandwidth_mbps: number;
|
|
1247
|
+
checkout?: CheckoutOptions;
|
|
1248
|
+
/** The `proration_date` of Billing's quote for this change, so that the order is priced from the same instant. Only for automatic checkout; deferred checkout is priced when the customer completes it. Defaults to the time of the request; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. */
|
|
1249
|
+
proration_date?: string;
|
|
1250
|
+
}
|
|
1251
|
+
export interface BindFloatingIPRequestBody {
|
|
1252
|
+
port_address_id: string;
|
|
1221
1253
|
}
|
|
1222
1254
|
export interface InstanceListResponseBody {
|
|
1223
1255
|
items: InstanceResource[];
|
|
@@ -1432,7 +1464,7 @@ export interface ResizeInstanceRequestBody {
|
|
|
1432
1464
|
*/
|
|
1433
1465
|
instance_type_id: string;
|
|
1434
1466
|
checkout?: CheckoutOptions;
|
|
1435
|
-
/** The `proration_date` of
|
|
1467
|
+
/** The `proration_date` of Billing's quote for this change, so that the order is priced from the same instant. Only for automatic checkout; deferred checkout is priced when the customer completes it. Defaults to the time of the request; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. */
|
|
1436
1468
|
proration_date?: string;
|
|
1437
1469
|
}
|
|
1438
1470
|
export interface AttachDiskRequestBody {
|
|
@@ -1614,14 +1646,6 @@ export interface CreateImageRequestBody {
|
|
|
1614
1646
|
billing: BillingChoice;
|
|
1615
1647
|
checkout?: CheckoutOptions;
|
|
1616
1648
|
}
|
|
1617
|
-
/**
|
|
1618
|
-
* The fields of `CreateImageRequestBody` that decide the price
|
|
1619
|
-
*/
|
|
1620
|
-
export interface CreateImageQuoteRequestBody {
|
|
1621
|
-
/** The instance whose system disk would be captured */
|
|
1622
|
-
instance_id: string;
|
|
1623
|
-
billing: BillingChoice;
|
|
1624
|
-
}
|
|
1625
1649
|
export interface RenameImageRequestBody {
|
|
1626
1650
|
/**
|
|
1627
1651
|
* @minLength 1
|
|
@@ -1938,8 +1962,6 @@ export interface SnapshotQuota {
|
|
|
1938
1962
|
* @nullable
|
|
1939
1963
|
*/
|
|
1940
1964
|
failure_reason: SnapshotQuotaFailureReason;
|
|
1941
|
-
/** How snapshot quota in this region can be bought, per snapshot slot. Null when the project has no billing account. */
|
|
1942
|
-
readonly pricing: Pricing | null;
|
|
1943
1965
|
}
|
|
1944
1966
|
export interface SetSnapshotQuotaRequestBody {
|
|
1945
1967
|
/**
|
|
@@ -1949,7 +1971,7 @@ export interface SetSnapshotQuotaRequestBody {
|
|
|
1949
1971
|
limit: number;
|
|
1950
1972
|
billing: BillingChoice;
|
|
1951
1973
|
checkout?: CheckoutOptions;
|
|
1952
|
-
/** The `proration_date` of
|
|
1974
|
+
/** The `proration_date` of Billing's quote for this change, so that the order is priced from the same instant. Only for automatic checkout; deferred checkout is priced when the customer completes it. Defaults to the time of the request; it must be a whole second, not in the future and at most 10 minutes old, otherwise the request is refused with `BILLING_CHANGE_INVALID`. */
|
|
1953
1975
|
proration_date?: string;
|
|
1954
1976
|
}
|
|
1955
1977
|
export interface SetSnapshotQuotaResponseBody {
|
|
@@ -2108,10 +2130,6 @@ export interface BackupService {
|
|
|
2108
2130
|
* @minimum 0
|
|
2109
2131
|
*/
|
|
2110
2132
|
pack_capacity_gib: number;
|
|
2111
|
-
/** The metered usage price of backups in this region. Null when the project has no billing account. */
|
|
2112
|
-
readonly pricing: Pricing | null;
|
|
2113
|
-
/** The licensed options of capacity packs in this region, per GiB. Null when the project has no billing account. */
|
|
2114
|
-
readonly capacity_pack_pricing: Pricing | null;
|
|
2115
2133
|
}
|
|
2116
2134
|
export interface CreateBackupServiceRequestBody {
|
|
2117
2135
|
checkout?: CheckoutOptions;
|
|
@@ -2203,344 +2221,6 @@ export interface CreateBackupCapacityPackResponseBody {
|
|
|
2203
2221
|
*/
|
|
2204
2222
|
order_id: string | null;
|
|
2205
2223
|
}
|
|
2206
|
-
/**
|
|
2207
|
-
* The request of `launch-instance`, without `checkout`.
|
|
2208
|
-
*/
|
|
2209
|
-
export interface LaunchInstanceQuoteRequestBody {
|
|
2210
|
-
/**
|
|
2211
|
-
* Bind a floating IP you already hold, instead of allocating a new one. It must be idle and in
|
|
2212
|
-
* the same region.
|
|
2213
|
-
*
|
|
2214
|
-
* Mutually exclusive with `bandwidth_mbps`: an address you already hold has its own bandwidth
|
|
2215
|
-
* ceiling, set when it was allocated, and changing it is a separate operation.
|
|
2216
|
-
*
|
|
2217
|
-
* Like `bandwidth_mbps`, this happens **inside the creation**: if binding fails, no instance is
|
|
2218
|
-
* created. Binding afterwards is still possible from the instance page, but then it is two
|
|
2219
|
-
* operations and a failure in between leaves an instance you cannot reach.
|
|
2220
|
-
*
|
|
2221
|
-
* Only one instance can be created when it is used — one address binds to one interface.
|
|
2222
|
-
*/
|
|
2223
|
-
floating_ip_id?: string;
|
|
2224
|
-
/**
|
|
2225
|
-
* Number of instances to create; 1 when omitted. Names are numbered automatically for several
|
|
2226
|
-
* @minimum 1
|
|
2227
|
-
* @maximum 20
|
|
2228
|
-
*/
|
|
2229
|
-
count?: number;
|
|
2230
|
-
/** Have the platform generate a random password, returned only in this response */
|
|
2231
|
-
generate_password?: boolean;
|
|
2232
|
-
compute: NewCompute;
|
|
2233
|
-
/**
|
|
2234
|
-
* @minLength 1
|
|
2235
|
-
* @maxLength 128
|
|
2236
|
-
*/
|
|
2237
|
-
name: string;
|
|
2238
|
-
/**
|
|
2239
|
-
* The password to set, on the login account and on root. Only the SSH public keys of the project are used when omitted
|
|
2240
|
-
* @maxLength 128
|
|
2241
|
-
*/
|
|
2242
|
-
password?: string;
|
|
2243
|
-
/** Use an existing network interface, which may already have a floating IP bound. Exactly one of this and `subnet_id`; only one instance can be created when it is used */
|
|
2244
|
-
port_id?: string;
|
|
2245
|
-
/**
|
|
2246
|
-
* Required when a primary network interface is created, at least one; the default security group is not applied automatically. Ignored together with `port_id`, as the security groups of that interface were fixed when it was created
|
|
2247
|
-
* @minItems 1
|
|
2248
|
-
* @nullable
|
|
2249
|
-
*/
|
|
2250
|
-
security_group_ids?: string[] | null;
|
|
2251
|
-
/** Create the primary network interface in this subnet. Exactly one of this and `port_id` */
|
|
2252
|
-
subnet_id?: string;
|
|
2253
|
-
boot_disk: BootDisk;
|
|
2254
|
-
floating_ip?: NewFloatingIP;
|
|
2255
|
-
}
|
|
2256
|
-
/**
|
|
2257
|
-
* The request of `create-disk`, without `checkout`.
|
|
2258
|
-
*/
|
|
2259
|
-
export interface CreateDiskQuoteRequestBody {
|
|
2260
|
-
/**
|
|
2261
|
-
* A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
2262
|
-
* @maxLength 64
|
|
2263
|
-
*/
|
|
2264
|
-
disk_type_id: string;
|
|
2265
|
-
/**
|
|
2266
|
-
* @minLength 1
|
|
2267
|
-
* @maxLength 128
|
|
2268
|
-
*/
|
|
2269
|
-
name: string;
|
|
2270
|
-
/** @minimum 1 */
|
|
2271
|
-
size_gb: number;
|
|
2272
|
-
/** Restore from this snapshot. When given, the capacity need only be no smaller than the snapshot */
|
|
2273
|
-
snapshot_id?: string;
|
|
2274
|
-
billing: BillingChoice;
|
|
2275
|
-
}
|
|
2276
|
-
/**
|
|
2277
|
-
* The request of `restore-backup`, without `checkout`.
|
|
2278
|
-
*/
|
|
2279
|
-
export interface RestoreBackupQuoteRequestBody {
|
|
2280
|
-
/**
|
|
2281
|
-
* May differ from the availability zone of the source disk, but must be in the same region. It has to be a data disk type on sale — restoring creates a new data disk, so a withdrawn type or a system disk type is rejected here as well
|
|
2282
|
-
* @maxLength 64
|
|
2283
|
-
*/
|
|
2284
|
-
disk_type_id: string;
|
|
2285
|
-
/**
|
|
2286
|
-
* @minLength 1
|
|
2287
|
-
* @maxLength 128
|
|
2288
|
-
*/
|
|
2289
|
-
name: string;
|
|
2290
|
-
/**
|
|
2291
|
-
* Matches the size of the backup when omitted. When given, it must not be smaller than the backup
|
|
2292
|
-
* @minimum 0
|
|
2293
|
-
*/
|
|
2294
|
-
size_gb?: number;
|
|
2295
|
-
billing: BillingChoice;
|
|
2296
|
-
}
|
|
2297
|
-
/**
|
|
2298
|
-
* The request of `allocate-floating-ip`, without `checkout`.
|
|
2299
|
-
*/
|
|
2300
|
-
export interface AllocateFloatingIPQuoteRequestBody {
|
|
2301
|
-
/**
|
|
2302
|
-
* The address to allocate. Allocated by the platform when omitted
|
|
2303
|
-
* @maxLength 64
|
|
2304
|
-
*/
|
|
2305
|
-
address?: string;
|
|
2306
|
-
/**
|
|
2307
|
-
* The bandwidth ceiling of this address, in Mbit/s, applied to both directions.
|
|
2308
|
-
*
|
|
2309
|
-
* Required, and there is no "unlimited": an address with no ceiling runs at line rate and is
|
|
2310
|
-
* charged nothing for the traffic, while the address itself bills normally — so the invoice
|
|
2311
|
-
* looks correct and nothing anywhere reports it.
|
|
2312
|
-
*
|
|
2313
|
-
* It is part of this floating IP purchase and is billed as the pool's `bandwidth_pricing` shows,
|
|
2314
|
-
* with the purchase's billing choice. Changing it later updates the
|
|
2315
|
-
* same floating IP through its bandwidth endpoint, not an independent bandwidth resource.
|
|
2316
|
-
* @minimum 1
|
|
2317
|
-
* @maximum 1000
|
|
2318
|
-
*/
|
|
2319
|
-
bandwidth_mbps: number;
|
|
2320
|
-
private_network_id: string;
|
|
2321
|
-
ipv4_pool_id: string;
|
|
2322
|
-
billing: BillingChoice;
|
|
2323
|
-
}
|
|
2324
|
-
/**
|
|
2325
|
-
* The request of `set-snapshot-quota`, without `checkout` and `proration_date`.
|
|
2326
|
-
*/
|
|
2327
|
-
export interface SetSnapshotQuotaQuoteRequestBody {
|
|
2328
|
-
/**
|
|
2329
|
-
* Desired total concurrent snapshot count for this project and region, not additional slots.
|
|
2330
|
-
* @minimum 1
|
|
2331
|
-
*/
|
|
2332
|
-
limit: number;
|
|
2333
|
-
billing: BillingChoice;
|
|
2334
|
-
}
|
|
2335
|
-
/**
|
|
2336
|
-
* The request of `create-backup-capacity-pack`, without `checkout`.
|
|
2337
|
-
*/
|
|
2338
|
-
export interface CreateBackupCapacityPackQuoteRequestBody {
|
|
2339
|
-
/** @minimum 1 */
|
|
2340
|
-
capacity_gib: number;
|
|
2341
|
-
billing: BillingChoice;
|
|
2342
|
-
}
|
|
2343
|
-
/**
|
|
2344
|
-
* The request of `resize-instance`, without `checkout` and `proration_date`.
|
|
2345
|
-
*/
|
|
2346
|
-
export interface ResizeInstanceQuoteRequestBody {
|
|
2347
|
-
/**
|
|
2348
|
-
* Must be in the same region and availability zone as the current instance type
|
|
2349
|
-
* @maxLength 64
|
|
2350
|
-
*/
|
|
2351
|
-
instance_type_id: string;
|
|
2352
|
-
}
|
|
2353
|
-
/**
|
|
2354
|
-
* The request of `resize-disk`, without `checkout` and `proration_date`.
|
|
2355
|
-
*/
|
|
2356
|
-
export interface ResizeDiskQuoteRequestBody {
|
|
2357
|
-
/**
|
|
2358
|
-
* Must be larger than the current capacity
|
|
2359
|
-
* @minimum 1
|
|
2360
|
-
*/
|
|
2361
|
-
size_gb: number;
|
|
2362
|
-
}
|
|
2363
|
-
/**
|
|
2364
|
-
* The request of `set-floating-ip-bandwidth`, without `checkout` and `proration_date`.
|
|
2365
|
-
*/
|
|
2366
|
-
export interface SetFloatingIPBandwidthQuoteRequestBody {
|
|
2367
|
-
/**
|
|
2368
|
-
* Applied to both directions
|
|
2369
|
-
* @minimum 1
|
|
2370
|
-
*/
|
|
2371
|
-
bandwidth_mbps: number;
|
|
2372
|
-
}
|
|
2373
|
-
/**
|
|
2374
|
-
* `complete`: tax is calculated for the billing account's invoice contact. `requires_location_inputs`: a quote without a billing account, which leaves out tax that would be added; tax already contained in a price is included.
|
|
2375
|
-
*/
|
|
2376
|
-
export type QuoteTaxStatus = (typeof QuoteTaxStatus)[keyof typeof QuoteTaxStatus];
|
|
2377
|
-
export declare const QuoteTaxStatus: {
|
|
2378
|
-
readonly complete: "complete";
|
|
2379
|
-
readonly requires_location_inputs: "requires_location_inputs";
|
|
2380
|
-
};
|
|
2381
|
-
/**
|
|
2382
|
-
* Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.
|
|
2383
|
-
* Credit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.
|
|
2384
|
-
* A licensed purchase may instead be paid with an online payment method.
|
|
2385
|
-
*/
|
|
2386
|
-
export interface Funds {
|
|
2387
|
-
/** Spendable balance after pending returns. */
|
|
2388
|
-
available_balance_amount: Money;
|
|
2389
|
-
/** Currently effective credits eligible for the quoted purchases or metered usage. Each grant is counted once. */
|
|
2390
|
-
usable_credit_amount: Money;
|
|
2391
|
-
/** Currently effective credits that cannot fund any quoted purchase or metered target. Unused eligible credits are not restricted. */
|
|
2392
|
-
restricted_credit_amount: Money;
|
|
2393
|
-
/** Minimum spendable balance needed after eligible credits, covering immediate charges and every new metered purchase's admission requirement. */
|
|
2394
|
-
required_balance_amount: Money;
|
|
2395
|
-
/** Additional balance needed now. Zero means account funds satisfy this quote. No funds are reserved. */
|
|
2396
|
-
balance_shortfall_amount: Money;
|
|
2397
|
-
/** Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed. */
|
|
2398
|
-
required_top_up_amount: Money;
|
|
2399
|
-
}
|
|
2400
|
-
/**
|
|
2401
|
-
* one_time or recurring.
|
|
2402
|
-
*/
|
|
2403
|
-
export type QuoteItemType = (typeof QuoteItemType)[keyof typeof QuoteItemType];
|
|
2404
|
-
export declare const QuoteItemType: {
|
|
2405
|
-
readonly one_time: "one_time";
|
|
2406
|
-
readonly recurring: "recurring";
|
|
2407
|
-
};
|
|
2408
|
-
/**
|
|
2409
|
-
* licensed or metered.
|
|
2410
|
-
*/
|
|
2411
|
-
export type QuoteItemUsageType = (typeof QuoteItemUsageType)[keyof typeof QuoteItemUsageType];
|
|
2412
|
-
export declare const QuoteItemUsageType: {
|
|
2413
|
-
readonly licensed: "licensed";
|
|
2414
|
-
readonly metered: "metered";
|
|
2415
|
-
};
|
|
2416
|
-
/**
|
|
2417
|
-
* The billing period of a recurring licensed line; `none` otherwise.
|
|
2418
|
-
*/
|
|
2419
|
-
export type QuoteItemInterval = (typeof QuoteItemInterval)[keyof typeof QuoteItemInterval];
|
|
2420
|
-
export declare const QuoteItemInterval: {
|
|
2421
|
-
readonly none: "none";
|
|
2422
|
-
readonly day: "day";
|
|
2423
|
-
readonly month: "month";
|
|
2424
|
-
readonly year: "year";
|
|
2425
|
-
};
|
|
2426
|
-
/**
|
|
2427
|
-
* The dimension values the line is priced at, such as region and instance type.
|
|
2428
|
-
*/
|
|
2429
|
-
export type QuoteItemDimensions = {
|
|
2430
|
-
[key: string]: string;
|
|
2431
|
-
};
|
|
2432
|
-
/**
|
|
2433
|
-
* One calculated purchase line. Fixed purchase amounts are rounded as checkout rounds them.
|
|
2434
|
-
* A line without an immediate charge has zero checkout amounts. unit_amount remains null when
|
|
2435
|
-
* no single unit price applies; an unrequested usage estimate remains null.
|
|
2436
|
-
*/
|
|
2437
|
-
export interface QuoteItem {
|
|
2438
|
-
product_id: string;
|
|
2439
|
-
plan_id: string;
|
|
2440
|
-
plan_name: string;
|
|
2441
|
-
/**
|
|
2442
|
-
* The price the line is priced at, including one Billing selected. With quantity and dimensions it
|
|
2443
|
-
* prices the same line in Billing's own quote, for example with a promotion code.
|
|
2444
|
-
*/
|
|
2445
|
-
price_id: string;
|
|
2446
|
-
/** The dimension values the line is priced at, such as region and instance type. */
|
|
2447
|
-
dimensions: QuoteItemDimensions;
|
|
2448
|
-
/** one_time or recurring. */
|
|
2449
|
-
type: QuoteItemType;
|
|
2450
|
-
/** licensed or metered. */
|
|
2451
|
-
usage_type: QuoteItemUsageType;
|
|
2452
|
-
/** The billing period of a recurring licensed line; `none` otherwise. */
|
|
2453
|
-
interval: QuoteItemInterval;
|
|
2454
|
-
/**
|
|
2455
|
-
* Periods per billing cycle of a recurring licensed line; null otherwise.
|
|
2456
|
-
* @minimum 1
|
|
2457
|
-
* @nullable
|
|
2458
|
-
*/
|
|
2459
|
-
interval_count: number | null;
|
|
2460
|
-
/** The setup charge already included in amount; null when none applies. */
|
|
2461
|
-
setup_amount: Money | null;
|
|
2462
|
-
/**
|
|
2463
|
-
* Recurring licensed lines only; null otherwise. What each later period renews at, before discounts
|
|
2464
|
-
* and tax, which differs from amount when the first period is priced differently.
|
|
2465
|
-
*/
|
|
2466
|
-
recurring_amount: Money | null;
|
|
2467
|
-
/**
|
|
2468
|
-
* Unit price before discounts, with tax included only where the price includes it. Null when
|
|
2469
|
-
* no single unit price applies, such as tiered or multiple-rate pricing or an immediate change.
|
|
2470
|
-
*/
|
|
2471
|
-
unit_amount: Money | null;
|
|
2472
|
-
/** The quantity priced. */
|
|
2473
|
-
quantity: string;
|
|
2474
|
-
/**
|
|
2475
|
-
* Before discounts, including any setup charges. Contains tax only where the price includes it.
|
|
2476
|
-
* Zero for an item with no immediate charge.
|
|
2477
|
-
*/
|
|
2478
|
-
amount: Money;
|
|
2479
|
-
/** Total reduction on this line, including any committed recurring discount. */
|
|
2480
|
-
discount_amount: Money;
|
|
2481
|
-
/** Tax on the discounted amount, including any tax already contained in that amount. */
|
|
2482
|
-
tax_amount: Money;
|
|
2483
|
-
/** The part of tax_amount already contained in amount minus discount_amount. */
|
|
2484
|
-
tax_included_amount: Money;
|
|
2485
|
-
/** amount minus discount_amount plus tax_amount minus tax_included_amount. */
|
|
2486
|
-
total: Money;
|
|
2487
|
-
/**
|
|
2488
|
-
* Projected charge for this line's future usage over the period stated by the quoting operation,
|
|
2489
|
-
* at current rates, before discounts and tax and not rounded. Not part of amount or total and
|
|
2490
|
-
* not collected at checkout. Null when no usage estimate is requested for this line.
|
|
2491
|
-
*/
|
|
2492
|
-
estimated_usage_amount: Money | null;
|
|
2493
|
-
currency: string;
|
|
2494
|
-
}
|
|
2495
|
-
/**
|
|
2496
|
-
* A price preview for the purchase described by a service, calculated by Billing. Nothing is saved,
|
|
2497
|
-
* charged or reserved, and no discount redemption is consumed. Account discounts and tax are
|
|
2498
|
-
* evaluated as for automatic checkout. Promotion codes are evaluated by Billing at checkout, not here.
|
|
2499
|
-
* All amounts use currency. This preview does not lock prices or guarantee discount availability.
|
|
2500
|
-
* Success includes complete checkout amounts and every requested usage estimate. If any item or
|
|
2501
|
-
* requested usage estimate cannot be calculated, the operation returns its existing structured
|
|
2502
|
-
* error response; it never returns a partial quote with HTTP 200. A quote without a billing account
|
|
2503
|
-
* has no funds and no account discount, and leaves out tax that would be added.
|
|
2504
|
-
*/
|
|
2505
|
-
export interface Quote {
|
|
2506
|
-
/** Null for a quote without a billing account. */
|
|
2507
|
-
funds: Funds | null;
|
|
2508
|
-
/** `complete`: tax is calculated for the billing account's invoice contact. `requires_location_inputs`: a quote without a billing account, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
2509
|
-
tax_status: QuoteTaxStatus;
|
|
2510
|
-
/** One line for each item the purchase would order, in the order it would order them. */
|
|
2511
|
-
items: QuoteItem[];
|
|
2512
|
-
/**
|
|
2513
|
-
* Sum of line amounts before discounts, less tax already included in the discounted line
|
|
2514
|
-
* amounts, as on an invoice.
|
|
2515
|
-
*/
|
|
2516
|
-
subtotal: Money;
|
|
2517
|
-
/** Sum of line discounts. */
|
|
2518
|
-
discount_amount: Money;
|
|
2519
|
-
/** Sum of tax on the discounted line amounts. */
|
|
2520
|
-
tax_amount: Money;
|
|
2521
|
-
/**
|
|
2522
|
-
* subtotal minus discount_amount plus tax_amount: what checkout collects, before applying
|
|
2523
|
-
* credit grants or balance. Equals the sum of line totals and excludes estimated_usage_amount.
|
|
2524
|
-
*/
|
|
2525
|
-
total: Money;
|
|
2526
|
-
/**
|
|
2527
|
-
* Sum of the lines' estimated_usage_amount. A projection, not part of total and not collected at
|
|
2528
|
-
* checkout. Null when no usage estimate is requested.
|
|
2529
|
-
*/
|
|
2530
|
-
estimated_usage_amount: Money | null;
|
|
2531
|
-
currency: string;
|
|
2532
|
-
/**
|
|
2533
|
-
* Changes only; null otherwise. The instant the change is priced from. Pass it with the change so the
|
|
2534
|
-
* order is priced from the same instant.
|
|
2535
|
-
* @nullable
|
|
2536
|
-
*/
|
|
2537
|
-
proration_date: string | null;
|
|
2538
|
-
/**
|
|
2539
|
-
* Changes that lower the price only; null otherwise. What the change would return to the original
|
|
2540
|
-
* payment sources, including the tax paid on it. total is zero for such a change.
|
|
2541
|
-
*/
|
|
2542
|
-
refundable_amount: Money | null;
|
|
2543
|
-
}
|
|
2544
2224
|
/**
|
|
2545
2225
|
* The new disk, `pending` until its order is accepted, and its Checkout Session. Also returned for a disk restored
|
|
2546
2226
|
* from a backup.
|
|
@@ -2662,10 +2342,8 @@ export interface IPv4PoolResource {
|
|
|
2662
2342
|
id: string;
|
|
2663
2343
|
region_id: string;
|
|
2664
2344
|
name: string;
|
|
2665
|
-
/**
|
|
2666
|
-
|
|
2667
|
-
/** How the bandwidth of an address from this pool is billed, per Mbit/s. It is bought in the same purchase as the address, with the same billing choice. Null when the project has no billing account. */
|
|
2668
|
-
readonly bandwidth_pricing: Pricing | null;
|
|
2345
|
+
/** A floating IP from this pool is one order line, its quantity the bandwidth in Mbps. Metered, it reads the address and, under the region alone, the bandwidth. */
|
|
2346
|
+
billing: BillingComponent;
|
|
2669
2347
|
}
|
|
2670
2348
|
export interface IPv4PoolListResponseBody {
|
|
2671
2349
|
items: IPv4PoolResource[];
|