@leaflow/sdk 0.160.0 → 0.162.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/type/cancellation/v1/generated/functions.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/functions.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/models.d.ts +19 -0
- package/dist/billing/type/cancellation/v1/generated/models.js +4 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/functions.d.ts +13 -13
- package/dist/billing/v1/generated/functions.js +12 -12
- package/dist/billing/v1/generated/models.d.ts +26 -13
- package/dist/billing/v1/generated/models.js +4 -4
- package/dist/billing/v1/generated/schemas.zod.d.ts +12 -12
- package/dist/billing/v1/generated/schemas.zod.js +12 -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 +3 -3
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellation.zod.js +3 -3
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +3 -3
- 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/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/cancellationMode.zod.js +11 -0
- 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 +3 -3
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +3 -3
- 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 +3 -1
- package/dist/billing/v1/generated/validators/priceSearch.zod.js +8 -1
- 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 +1 -1
- package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteAddress.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteAddress.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -1
- package/dist/billing/v1/generated/validators/quoteItem.zod.js +1 -1
- 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 +1 -1
- package/dist/billing/v1/generated/validators/quoteRequest.zod.js +2 -2
- 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 +1 -1
- package/dist/billing/v1/generated/validators/rateSearch.zod.js +1 -1
- 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 +3 -2
- 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 +4 -4
- package/dist/canopy/v1/generated/functions.js +2 -2
- package/dist/canopy/v1/generated/models.d.ts +35 -30
- package/dist/canopy/v1/generated/models.js +1 -1
- 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 +2 -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/{tokenPrice.zod.js → modelMeter.zod.js} +7 -11
- 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 +2 -2
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +3 -3
- 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 +72 -265
- package/dist/compute/v1/generated/functions.js +120 -356
- package/dist/compute/v1/generated/models.d.ts +829 -1076
- package/dist/compute/v1/generated/models.js +121 -135
- package/dist/compute/v1/generated/schemas.zod.d.ts +70 -284
- package/dist/compute/v1/generated/schemas.zod.js +72 -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/billingMeter.zod.d.ts +36 -0
- 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/{createImageQuoteRequestBody.zod.js → billingQuantity.zod.d.ts} +9 -8
- package/dist/compute/v1/generated/validators/{resizeDiskQuoteRequestBody.zod.d.ts → 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/{resizeDiskQuoteRequestBody.zod.js → cancellationMode.zod.d.ts} +7 -6
- package/dist/compute/v1/generated/validators/cancellationMode.zod.js +27 -0
- 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/deleteBackupCapacityPackParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/{setFloatingIPBandwidthQuoteRequestBody.zod.d.ts → deleteDiskParams.zod.d.ts} +8 -5
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.js +30 -0
- 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/{resizeInstanceQuoteRequestBody.zod.d.ts → deleteImageParams.zod.d.ts} +8 -6
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/{allocateFloatingIPQuoteRequestBody.zod.d.ts → deleteImageResponseBody.zod.d.ts} +78 -23
- package/dist/compute/v1/generated/validators/deleteImageResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/{funds.zod.d.ts → deleteInstanceParams.zod.d.ts} +8 -10
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.d.ts +135 -0
- package/dist/compute/v1/generated/validators/deleteInstanceResponseBody.zod.js +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.js +30 -0
- 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/releaseFloatingIpParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.js +30 -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/resourceCancellation.zod.d.ts +40 -0
- package/dist/compute/v1/generated/validators/{createDiskQuoteRequestBody.zod.js → resourceCancellation.zod.js} +14 -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/models.d.ts +1 -3
- 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/routes.d.ts +9 -73
- package/dist/routes.js +9 -81
- package/package.json +1 -1
- 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/createDiskQuoteRequestBody.zod.d.ts +0 -51
- 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,266 +86,362 @@ 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
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
export interface BackupOperation {
|
|
130
|
-
/** `restore`: a disk is being restored from this backup. */
|
|
131
|
-
type: BackupOperationType;
|
|
132
|
-
started_at: string;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* 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.
|
|
136
|
-
*/
|
|
137
|
-
export interface BackupResource {
|
|
138
|
-
created_at: string;
|
|
139
|
-
id: string;
|
|
140
|
-
name: string;
|
|
141
|
-
region_id: string;
|
|
142
|
-
/** Capacity of the source disk when the backup was created. A restored disk cannot be smaller than this */
|
|
143
|
-
size_gb: number;
|
|
144
|
-
/** 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. */
|
|
145
|
-
capacity_gib: number;
|
|
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;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* `licensed` pays for a period in advance; `metered` bills usage until canceled.
|
|
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.
|
|
181
113
|
*/
|
|
182
|
-
export type
|
|
183
|
-
export declare const
|
|
184
|
-
readonly
|
|
185
|
-
readonly
|
|
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";
|
|
186
120
|
};
|
|
187
|
-
export type BillingPeriodUnit = (typeof BillingPeriodUnit)[keyof typeof BillingPeriodUnit];
|
|
188
|
-
export declare const BillingPeriodUnit: {
|
|
189
|
-
readonly month: "month";
|
|
190
|
-
readonly year: "year";
|
|
191
|
-
};
|
|
192
|
-
export interface BillingPeriod {
|
|
193
|
-
unit: BillingPeriodUnit;
|
|
194
|
-
/**
|
|
195
|
-
* @minimum 1
|
|
196
|
-
* @maximum 2147483647
|
|
197
|
-
*/
|
|
198
|
-
count: number;
|
|
199
|
-
}
|
|
200
121
|
/**
|
|
201
|
-
*
|
|
122
|
+
* The dimension values the meter's usage carries, when they differ from the line's.
|
|
202
123
|
*/
|
|
203
|
-
export type
|
|
204
|
-
|
|
205
|
-
readonly immediate: "immediate";
|
|
206
|
-
readonly period_end: "period_end";
|
|
124
|
+
export type BillingMeterDimensions = {
|
|
125
|
+
[key: string]: string;
|
|
207
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;
|
|
133
|
+
}
|
|
208
134
|
/**
|
|
209
|
-
*
|
|
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`.
|
|
210
136
|
*/
|
|
211
|
-
export interface
|
|
212
|
-
/**
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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[];
|
|
216
146
|
}
|
|
217
147
|
/**
|
|
218
|
-
*
|
|
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.
|
|
148
|
+
* `requested` and `scheduled` have not begun release; `releasing` is releasing the resource.
|
|
225
149
|
*/
|
|
226
|
-
export type
|
|
227
|
-
export declare const
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
150
|
+
export type ResourceCancellationStatus = (typeof ResourceCancellationStatus)[keyof typeof ResourceCancellationStatus];
|
|
151
|
+
export declare const ResourceCancellationStatus: {
|
|
152
|
+
readonly requested: "requested";
|
|
153
|
+
readonly scheduled: "scheduled";
|
|
154
|
+
readonly releasing: "releasing";
|
|
230
155
|
};
|
|
231
156
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
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.
|
|
157
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
158
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
159
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
160
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
161
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
241
162
|
*/
|
|
242
|
-
export type
|
|
163
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
164
|
+
export declare const CancellationMode: {
|
|
165
|
+
readonly immediate: "immediate";
|
|
166
|
+
readonly period_end: "period_end";
|
|
167
|
+
};
|
|
243
168
|
/**
|
|
244
|
-
*
|
|
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.
|
|
169
|
+
* The Billing cancellation of the subscriptions that pay for a resource. Read it in Billing with `get-cancellation` for its refund and progress.
|
|
249
170
|
*/
|
|
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;
|
|
171
|
+
export interface ResourceCancellation {
|
|
172
|
+
id: string;
|
|
173
|
+
/** `immediate` releases the resource now; `period_end` keeps it until `scheduled_at`. */
|
|
174
|
+
mode: CancellationMode;
|
|
175
|
+
/** `requested` and `scheduled` have not begun release; `releasing` is releasing the resource. */
|
|
176
|
+
status: ResourceCancellationStatus;
|
|
278
177
|
/**
|
|
279
|
-
*
|
|
280
|
-
* @
|
|
178
|
+
* For `period_end`, when release begins; null otherwise.
|
|
179
|
+
* @nullable
|
|
281
180
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
checkout?: CheckoutOptions;
|
|
181
|
+
scheduled_at: string | null;
|
|
182
|
+
subscription_ids: string[];
|
|
285
183
|
}
|
|
286
184
|
/**
|
|
287
|
-
* `pending` until the order is accepted
|
|
185
|
+
* `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
186
|
*/
|
|
289
|
-
export type
|
|
290
|
-
export declare const
|
|
187
|
+
export type InstanceResourceStatus = (typeof InstanceResourceStatus)[keyof typeof InstanceResourceStatus];
|
|
188
|
+
export declare const InstanceResourceStatus: {
|
|
291
189
|
readonly pending: "pending";
|
|
292
190
|
readonly provisioning: "provisioning";
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
191
|
+
readonly active: "active";
|
|
192
|
+
readonly stopped: "stopped";
|
|
193
|
+
readonly paused: "paused";
|
|
194
|
+
readonly suspended: "suspended";
|
|
195
|
+
readonly shelved: "shelved";
|
|
196
|
+
readonly shelved_offloaded: "shelved_offloaded";
|
|
197
|
+
readonly rescued: "rescued";
|
|
295
198
|
readonly deleted: "deleted";
|
|
296
199
|
readonly failed: "failed";
|
|
297
200
|
readonly error: "error";
|
|
201
|
+
readonly unknown: "unknown";
|
|
298
202
|
readonly missing: "missing";
|
|
299
203
|
};
|
|
204
|
+
export type InstanceRestrictionSource = (typeof InstanceRestrictionSource)[keyof typeof InstanceRestrictionSource];
|
|
205
|
+
export declare const InstanceRestrictionSource: {
|
|
206
|
+
readonly billing: "billing";
|
|
207
|
+
readonly iam: "iam";
|
|
208
|
+
readonly operator: "operator";
|
|
209
|
+
};
|
|
300
210
|
/**
|
|
301
|
-
*
|
|
211
|
+
* An independent restriction on use. Removing one restriction never removes another source’s restriction, and never starts an instance its user stopped.
|
|
302
212
|
*/
|
|
303
|
-
export
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
213
|
+
export interface InstanceRestriction {
|
|
214
|
+
id: string;
|
|
215
|
+
source: InstanceRestrictionSource;
|
|
216
|
+
/**
|
|
217
|
+
* @minLength 1
|
|
218
|
+
* @maxLength 255
|
|
219
|
+
*/
|
|
220
|
+
source_id: string;
|
|
221
|
+
/**
|
|
222
|
+
* @minLength 1
|
|
223
|
+
* @maxLength 128
|
|
224
|
+
*/
|
|
225
|
+
reason_code: string;
|
|
226
|
+
created_at: string;
|
|
227
|
+
}
|
|
310
228
|
/**
|
|
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
|
|
229
|
+
* 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
230
|
* @nullable
|
|
313
231
|
*/
|
|
314
|
-
export type
|
|
315
|
-
export declare const
|
|
232
|
+
export type InstanceResourceFailureReason = (typeof InstanceResourceFailureReason)[keyof typeof InstanceResourceFailureReason] | null;
|
|
233
|
+
export declare const InstanceResourceFailureReason: {
|
|
316
234
|
readonly checkout_expired: "checkout_expired";
|
|
317
235
|
readonly order_declined: "order_declined";
|
|
318
236
|
readonly order_canceled: "order_canceled";
|
|
319
237
|
readonly order_expired: "order_expired";
|
|
320
238
|
readonly provisioning_failed: "provisioning_failed";
|
|
321
239
|
};
|
|
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
240
|
/**
|
|
343
|
-
*
|
|
241
|
+
* `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.
|
|
344
242
|
*/
|
|
345
|
-
export
|
|
346
|
-
|
|
347
|
-
|
|
243
|
+
export type InstanceOperationType = (typeof InstanceOperationType)[keyof typeof InstanceOperationType];
|
|
244
|
+
export declare const InstanceOperationType: {
|
|
245
|
+
readonly create: "create";
|
|
246
|
+
readonly start: "start";
|
|
247
|
+
readonly stop: "stop";
|
|
248
|
+
readonly reboot: "reboot";
|
|
249
|
+
readonly rebuild: "rebuild";
|
|
250
|
+
readonly resize: "resize";
|
|
251
|
+
readonly reset_password: "reset_password";
|
|
252
|
+
readonly attach_disk: "attach_disk";
|
|
253
|
+
readonly detach_disk: "detach_disk";
|
|
254
|
+
readonly attach_port: "attach_port";
|
|
255
|
+
readonly detach_port: "detach_port";
|
|
256
|
+
readonly bind_floating_ip: "bind_floating_ip";
|
|
257
|
+
readonly unbind_floating_ip: "unbind_floating_ip";
|
|
258
|
+
readonly suspend: "suspend";
|
|
259
|
+
readonly resume: "resume";
|
|
260
|
+
readonly delete: "delete";
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* 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.
|
|
264
|
+
*/
|
|
265
|
+
export interface InstanceOperation {
|
|
266
|
+
/** `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. */
|
|
267
|
+
type: InstanceOperationType;
|
|
268
|
+
started_at: string;
|
|
269
|
+
}
|
|
270
|
+
export type ReleaseResourceType = (typeof ReleaseResourceType)[keyof typeof ReleaseResourceType];
|
|
271
|
+
export declare const ReleaseResourceType: {
|
|
272
|
+
readonly instance: "instance";
|
|
273
|
+
readonly disk: "disk";
|
|
274
|
+
readonly image: "image";
|
|
275
|
+
readonly floating_ip: "floating_ip";
|
|
276
|
+
readonly backup_service: "backup_service";
|
|
277
|
+
readonly snapshot_quota: "snapshot_quota";
|
|
278
|
+
readonly backup_capacity_pack: "backup_capacity_pack";
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* A resource a release set releases.
|
|
282
|
+
*/
|
|
283
|
+
export interface ReleaseResource {
|
|
284
|
+
type: ReleaseResourceType;
|
|
285
|
+
/** The resource's ID; for `backup_service` and `snapshot_quota`, the ID of their region. */
|
|
286
|
+
id: string;
|
|
287
|
+
/** 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. */
|
|
288
|
+
name: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* One subscription of a release set and the resource it pays for.
|
|
292
|
+
*/
|
|
293
|
+
export interface ReleaseSetItem {
|
|
294
|
+
subscription_id: string;
|
|
295
|
+
resource: ReleaseResource;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @nullable
|
|
299
|
+
*/
|
|
300
|
+
export type InstanceResourceAccessState = (typeof InstanceResourceAccessState)[keyof typeof InstanceResourceAccessState] | null;
|
|
301
|
+
export declare const InstanceResourceAccessState: {
|
|
302
|
+
readonly pending: "pending";
|
|
303
|
+
readonly enabled: "enabled";
|
|
304
|
+
readonly suspended: "suspended";
|
|
305
|
+
readonly reclaimed: "reclaimed";
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Your own classification of this instance, as key-value pairs. Empty when never set
|
|
309
|
+
*/
|
|
310
|
+
export type InstanceResourceLabels = {
|
|
311
|
+
[key: string]: string;
|
|
312
|
+
};
|
|
313
|
+
export interface InstanceResource {
|
|
314
|
+
availability_zone_id: string;
|
|
315
|
+
created_at: string;
|
|
316
|
+
/** Hostname inside the instance; equals the instance id */
|
|
317
|
+
hostname: string;
|
|
318
|
+
id: string;
|
|
319
|
+
/**
|
|
320
|
+
* Non-empty when the instance was created from an image, public or private
|
|
321
|
+
* @nullable
|
|
322
|
+
*/
|
|
323
|
+
image_id: string | null;
|
|
324
|
+
/** The instance type in effect, and the basis for billing */
|
|
325
|
+
instance_type_id: string;
|
|
326
|
+
/**
|
|
327
|
+
* IPv6 address of the primary network interface. Assigned automatically once IPv6 is enabled on the private network
|
|
328
|
+
* @nullable
|
|
329
|
+
*/
|
|
330
|
+
ipv6_address: string | null;
|
|
331
|
+
/** Your own classification of this instance, as key-value pairs. Empty when never set */
|
|
332
|
+
labels: InstanceResourceLabels;
|
|
333
|
+
/**
|
|
334
|
+
* The account to log in as over SSH. The password set at creation belongs to this account
|
|
335
|
+
* @maxLength 32
|
|
336
|
+
*/
|
|
337
|
+
login_username: string;
|
|
338
|
+
name: string;
|
|
339
|
+
/**
|
|
340
|
+
* A free-text note about this instance. Empty when never set
|
|
341
|
+
* @maxLength 4096
|
|
342
|
+
*/
|
|
343
|
+
notes: string;
|
|
344
|
+
/**
|
|
345
|
+
* Private address of the instance
|
|
346
|
+
* @nullable
|
|
347
|
+
*/
|
|
348
|
+
private_ip: string | null;
|
|
349
|
+
/** @nullable */
|
|
350
|
+
private_network_id: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound
|
|
353
|
+
* @nullable
|
|
354
|
+
*/
|
|
355
|
+
public_ips: string[] | null;
|
|
356
|
+
region_id: string;
|
|
357
|
+
/** `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. */
|
|
358
|
+
status: InstanceResourceStatus;
|
|
359
|
+
/** @nullable */
|
|
360
|
+
subnet_id: string | null;
|
|
361
|
+
updated_at: string;
|
|
362
|
+
/** @minimum 1 */
|
|
363
|
+
generation: number;
|
|
364
|
+
/** @nullable */
|
|
365
|
+
observed_at: string | null;
|
|
366
|
+
restrictions: InstanceRestriction[];
|
|
367
|
+
/**
|
|
368
|
+
* 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.
|
|
369
|
+
* @nullable
|
|
370
|
+
*/
|
|
371
|
+
failure_reason: InstanceResourceFailureReason;
|
|
372
|
+
/** The operation in progress on this instance, or null when none is. */
|
|
373
|
+
readonly operation: InstanceOperation | null;
|
|
374
|
+
/** @nullable */
|
|
375
|
+
order_id: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* The Billing order item for this resource.
|
|
378
|
+
* @nullable
|
|
379
|
+
*/
|
|
380
|
+
order_item_id: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* 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.
|
|
383
|
+
* @nullable
|
|
384
|
+
*/
|
|
385
|
+
checkout_session_id: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* The Billing subscription associated with this resource. It may still be pending; its
|
|
388
|
+
* presence does not imply delivery or metering. Null when no subscription is associated.
|
|
389
|
+
* @nullable
|
|
390
|
+
*/
|
|
391
|
+
subscription_id: string | null;
|
|
392
|
+
/** 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. */
|
|
393
|
+
release_subscription_ids: string[];
|
|
394
|
+
/** 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. */
|
|
395
|
+
release_set: ReleaseSetItem[];
|
|
396
|
+
/** @nullable */
|
|
397
|
+
access_state: InstanceResourceAccessState;
|
|
398
|
+
/**
|
|
399
|
+
* Non-empty when the instance was created from a disk you already had, instead of from an image
|
|
400
|
+
* @nullable
|
|
401
|
+
*/
|
|
402
|
+
source_disk_id: string | null;
|
|
348
403
|
}
|
|
404
|
+
export interface DeleteInstanceResponseBody {
|
|
405
|
+
instance: InstanceResource;
|
|
406
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
407
|
+
cancellation: ResourceCancellation | null;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* `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.
|
|
411
|
+
*/
|
|
412
|
+
export type DiskResourceStatus = (typeof DiskResourceStatus)[keyof typeof DiskResourceStatus];
|
|
413
|
+
export declare const DiskResourceStatus: {
|
|
414
|
+
readonly pending: "pending";
|
|
415
|
+
readonly provisioning: "provisioning";
|
|
416
|
+
readonly available: "available";
|
|
417
|
+
readonly in_use: "in_use";
|
|
418
|
+
readonly deleted: "deleted";
|
|
419
|
+
readonly failed: "failed";
|
|
420
|
+
readonly error: "error";
|
|
421
|
+
readonly missing: "missing";
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* @nullable
|
|
425
|
+
*/
|
|
426
|
+
export type DiskResourceAccessState = (typeof DiskResourceAccessState)[keyof typeof DiskResourceAccessState] | null;
|
|
427
|
+
export declare const DiskResourceAccessState: {
|
|
428
|
+
readonly pending: "pending";
|
|
429
|
+
readonly enabled: "enabled";
|
|
430
|
+
readonly suspended: "suspended";
|
|
431
|
+
readonly reclaimed: "reclaimed";
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* 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.
|
|
435
|
+
* @nullable
|
|
436
|
+
*/
|
|
437
|
+
export type DiskResourceFailureReason = (typeof DiskResourceFailureReason)[keyof typeof DiskResourceFailureReason] | null;
|
|
438
|
+
export declare const DiskResourceFailureReason: {
|
|
439
|
+
readonly checkout_expired: "checkout_expired";
|
|
440
|
+
readonly order_declined: "order_declined";
|
|
441
|
+
readonly order_canceled: "order_canceled";
|
|
442
|
+
readonly order_expired: "order_expired";
|
|
443
|
+
readonly provisioning_failed: "provisioning_failed";
|
|
444
|
+
};
|
|
349
445
|
/**
|
|
350
446
|
* `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
447
|
*/
|
|
@@ -458,149 +554,143 @@ export interface DiskResource {
|
|
|
458
554
|
/** @nullable */
|
|
459
555
|
observed_at: string | null;
|
|
460
556
|
}
|
|
557
|
+
export interface DeleteDiskResponseBody {
|
|
558
|
+
disk: DiskResource;
|
|
559
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
560
|
+
cancellation: ResourceCancellation | null;
|
|
561
|
+
}
|
|
461
562
|
/**
|
|
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.
|
|
563
|
+
* `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.
|
|
477
564
|
*/
|
|
478
|
-
export type
|
|
479
|
-
export declare const
|
|
480
|
-
readonly
|
|
481
|
-
readonly
|
|
565
|
+
export type FloatingIPResourceStatus = (typeof FloatingIPResourceStatus)[keyof typeof FloatingIPResourceStatus];
|
|
566
|
+
export declare const FloatingIPResourceStatus: {
|
|
567
|
+
readonly pending: "pending";
|
|
568
|
+
readonly provisioning: "provisioning";
|
|
569
|
+
readonly available: "available";
|
|
570
|
+
readonly deleted: "deleted";
|
|
571
|
+
readonly failed: "failed";
|
|
572
|
+
readonly error: "error";
|
|
573
|
+
readonly unknown: "unknown";
|
|
574
|
+
readonly missing: "missing";
|
|
482
575
|
};
|
|
483
576
|
/**
|
|
484
|
-
*
|
|
577
|
+
* @nullable
|
|
485
578
|
*/
|
|
486
|
-
export type
|
|
487
|
-
export declare const
|
|
488
|
-
readonly
|
|
489
|
-
readonly
|
|
490
|
-
readonly
|
|
491
|
-
readonly
|
|
579
|
+
export type FloatingIPResourceAccessState = (typeof FloatingIPResourceAccessState)[keyof typeof FloatingIPResourceAccessState] | null;
|
|
580
|
+
export declare const FloatingIPResourceAccessState: {
|
|
581
|
+
readonly pending: "pending";
|
|
582
|
+
readonly enabled: "enabled";
|
|
583
|
+
readonly suspended: "suspended";
|
|
584
|
+
readonly reclaimed: "reclaimed";
|
|
492
585
|
};
|
|
493
586
|
/**
|
|
494
|
-
*
|
|
587
|
+
* 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.
|
|
495
588
|
* @nullable
|
|
496
589
|
*/
|
|
497
|
-
export type
|
|
498
|
-
export declare const
|
|
499
|
-
readonly
|
|
590
|
+
export type FloatingIPResourceFailureReason = (typeof FloatingIPResourceFailureReason)[keyof typeof FloatingIPResourceFailureReason] | null;
|
|
591
|
+
export declare const FloatingIPResourceFailureReason: {
|
|
592
|
+
readonly checkout_expired: "checkout_expired";
|
|
593
|
+
readonly order_declined: "order_declined";
|
|
594
|
+
readonly order_canceled: "order_canceled";
|
|
595
|
+
readonly order_expired: "order_expired";
|
|
596
|
+
readonly provisioning_failed: "provisioning_failed";
|
|
597
|
+
};
|
|
598
|
+
export type FloatingIPOperationType = (typeof FloatingIPOperationType)[keyof typeof FloatingIPOperationType];
|
|
599
|
+
export declare const FloatingIPOperationType: {
|
|
600
|
+
readonly create: "create";
|
|
601
|
+
readonly bind: "bind";
|
|
602
|
+
readonly unbind: "unbind";
|
|
603
|
+
readonly set_bandwidth: "set_bandwidth";
|
|
604
|
+
readonly suspend: "suspend";
|
|
605
|
+
readonly resume: "resume";
|
|
606
|
+
readonly delete: "delete";
|
|
500
607
|
};
|
|
501
608
|
/**
|
|
502
|
-
*
|
|
503
|
-
* @nullable
|
|
609
|
+
* 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.
|
|
504
610
|
*/
|
|
505
|
-
export
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
611
|
+
export interface FloatingIPOperation {
|
|
612
|
+
type: FloatingIPOperationType;
|
|
613
|
+
started_at: string;
|
|
614
|
+
}
|
|
615
|
+
export type IPv4BindingState = (typeof IPv4BindingState)[keyof typeof IPv4BindingState];
|
|
616
|
+
export declare const IPv4BindingState: {
|
|
617
|
+
readonly bound: "bound";
|
|
618
|
+
readonly released: "released";
|
|
619
|
+
readonly unknown: "unknown";
|
|
509
620
|
};
|
|
621
|
+
export interface IPv4Binding {
|
|
622
|
+
id: string;
|
|
623
|
+
ipv4_allocation_id: string;
|
|
624
|
+
port_address_id: string;
|
|
625
|
+
address: string;
|
|
626
|
+
fixed_ip: string;
|
|
627
|
+
state: IPv4BindingState;
|
|
628
|
+
/** @nullable */
|
|
629
|
+
bound_at: string | null;
|
|
630
|
+
/** @nullable */
|
|
631
|
+
unbound_at: string | null;
|
|
632
|
+
/** @nullable */
|
|
633
|
+
released_at: string | null;
|
|
634
|
+
}
|
|
510
635
|
/**
|
|
511
|
-
* One
|
|
636
|
+
* One purchased public IP resource, including its bandwidth configuration. Bandwidth has no
|
|
637
|
+
* separate Compute resource ID; one subscription pays for the address and its bandwidth.
|
|
638
|
+
* Changing bandwidth updates this same resource, not another allocation.
|
|
512
639
|
*/
|
|
513
|
-
export interface
|
|
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;
|
|
640
|
+
export interface FloatingIPResource {
|
|
545
641
|
/**
|
|
546
|
-
*
|
|
642
|
+
* The allocated public address. Null until the address is allocated.
|
|
547
643
|
* @nullable
|
|
548
644
|
*/
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
*/
|
|
554
|
-
export interface Pricing {
|
|
555
|
-
currency: string;
|
|
556
|
-
/** One entry per way the item can be bought. Empty when it cannot be bought in this currency. */
|
|
557
|
-
options: PricingOption[];
|
|
558
|
-
}
|
|
559
|
-
export interface DiskTypeResource {
|
|
560
|
-
availability_zone_id: string;
|
|
645
|
+
address: string | null;
|
|
646
|
+
/** @nullable */
|
|
647
|
+
bandwidth_mbps: number | null;
|
|
648
|
+
created_at: string;
|
|
561
649
|
id: string;
|
|
562
|
-
|
|
650
|
+
region_id: string;
|
|
651
|
+
/** `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. */
|
|
652
|
+
status: FloatingIPResourceStatus;
|
|
653
|
+
/** @nullable */
|
|
654
|
+
order_id: string | null;
|
|
563
655
|
/**
|
|
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.
|
|
656
|
+
* The Billing order item for this resource.
|
|
569
657
|
* @nullable
|
|
570
658
|
*/
|
|
571
|
-
|
|
659
|
+
order_item_id: string | null;
|
|
572
660
|
/**
|
|
573
|
-
*
|
|
661
|
+
* 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.
|
|
574
662
|
* @nullable
|
|
575
663
|
*/
|
|
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;
|
|
664
|
+
checkout_session_id: string | null;
|
|
583
665
|
/**
|
|
584
|
-
*
|
|
585
|
-
* not
|
|
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.
|
|
666
|
+
* The Billing subscription associated with this resource. It may still be pending; its
|
|
667
|
+
* presence does not imply delivery or metering. Null when no subscription is associated.
|
|
589
668
|
* @nullable
|
|
590
669
|
*/
|
|
591
|
-
|
|
670
|
+
subscription_id: string | null;
|
|
671
|
+
/** 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. */
|
|
672
|
+
release_subscription_ids: string[];
|
|
673
|
+
/** 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. */
|
|
674
|
+
release_set: ReleaseSetItem[];
|
|
675
|
+
/** @nullable */
|
|
676
|
+
access_state: FloatingIPResourceAccessState;
|
|
592
677
|
/**
|
|
593
|
-
*
|
|
678
|
+
* 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.
|
|
594
679
|
* @nullable
|
|
595
680
|
*/
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
readonly
|
|
599
|
-
|
|
600
|
-
|
|
681
|
+
failure_reason: FloatingIPResourceFailureReason;
|
|
682
|
+
/** The operation in progress on this floating IP, or null when none is. */
|
|
683
|
+
readonly operation: FloatingIPOperation | null;
|
|
684
|
+
/** @minimum 1 */
|
|
685
|
+
generation: number;
|
|
601
686
|
/** @nullable */
|
|
602
|
-
|
|
603
|
-
|
|
687
|
+
observed_at: string | null;
|
|
688
|
+
binding: IPv4Binding | null;
|
|
689
|
+
}
|
|
690
|
+
export interface ReleaseFloatingIPResponseBody {
|
|
691
|
+
floating_ip: FloatingIPResource;
|
|
692
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
693
|
+
cancellation: ResourceCancellation | null;
|
|
604
694
|
}
|
|
605
695
|
/**
|
|
606
696
|
* 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 +827,433 @@ export interface ImageResource {
|
|
|
737
827
|
/** @nullable */
|
|
738
828
|
observed_at: string | null;
|
|
739
829
|
}
|
|
740
|
-
export interface
|
|
741
|
-
|
|
742
|
-
|
|
830
|
+
export interface DeleteImageResponseBody {
|
|
831
|
+
image: ImageResource;
|
|
832
|
+
/** The cancellation this request created or found open, when subscriptions pay for the resource; null when the resource was released directly. */
|
|
833
|
+
cancellation: ResourceCancellation | null;
|
|
743
834
|
}
|
|
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;
|
|
835
|
+
/**
|
|
836
|
+
* What a given `code` carries alongside the message. The keys depend on the code,
|
|
837
|
+
* and a client that does not recognise one ignores it.
|
|
838
|
+
*/
|
|
839
|
+
export type ErrorMeta = {
|
|
840
|
+
[key: string]: unknown;
|
|
841
|
+
};
|
|
842
|
+
export interface Error {
|
|
843
|
+
code?: string;
|
|
844
|
+
message: string;
|
|
764
845
|
/**
|
|
765
|
-
*
|
|
766
|
-
*
|
|
846
|
+
* What a given `code` carries alongside the message. The keys depend on the code,
|
|
847
|
+
* and a client that does not recognise one ignores it.
|
|
767
848
|
*/
|
|
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;
|
|
849
|
+
meta?: ErrorMeta;
|
|
850
|
+
status: number;
|
|
777
851
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
852
|
+
/**
|
|
853
|
+
* `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.
|
|
854
|
+
*/
|
|
855
|
+
export type BackupResourceStatus = (typeof BackupResourceStatus)[keyof typeof BackupResourceStatus];
|
|
856
|
+
export declare const BackupResourceStatus: {
|
|
857
|
+
readonly provisioning: "provisioning";
|
|
858
|
+
readonly available: "available";
|
|
859
|
+
readonly deleted: "deleted";
|
|
860
|
+
readonly failed: "failed";
|
|
861
|
+
readonly error: "error";
|
|
862
|
+
readonly missing: "missing";
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* `restore`: a disk is being restored from this backup.
|
|
866
|
+
*/
|
|
867
|
+
export type BackupOperationType = (typeof BackupOperationType)[keyof typeof BackupOperationType];
|
|
868
|
+
export declare const BackupOperationType: {
|
|
869
|
+
readonly create: "create";
|
|
870
|
+
readonly restore: "restore";
|
|
871
|
+
readonly delete: "delete";
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
* 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.
|
|
875
|
+
*/
|
|
876
|
+
export interface BackupOperation {
|
|
877
|
+
/** `restore`: a disk is being restored from this backup. */
|
|
878
|
+
type: BackupOperationType;
|
|
879
|
+
started_at: string;
|
|
781
880
|
}
|
|
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;
|
|
881
|
+
/**
|
|
882
|
+
* 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.
|
|
883
|
+
*/
|
|
884
|
+
export interface BackupResource {
|
|
885
|
+
created_at: string;
|
|
789
886
|
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
887
|
name: string;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
888
|
+
region_id: string;
|
|
889
|
+
/** Capacity of the source disk when the backup was created. A restored disk cannot be smaller than this */
|
|
890
|
+
size_gb: number;
|
|
891
|
+
/** 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. */
|
|
892
|
+
capacity_gib: number;
|
|
893
|
+
/** The disk this backup was taken from. The backup remains usable after that disk is deleted */
|
|
894
|
+
source_disk_id: string;
|
|
895
|
+
/** `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. */
|
|
896
|
+
status: BackupResourceStatus;
|
|
897
|
+
/** The operation in progress on this backup, or null when none is. */
|
|
898
|
+
readonly operation: BackupOperation | null;
|
|
899
|
+
/** @minimum 1 */
|
|
900
|
+
generation: number;
|
|
806
901
|
/** @nullable */
|
|
807
|
-
|
|
808
|
-
|
|
902
|
+
observed_at: string | null;
|
|
903
|
+
/** Availability zone of the source disk. A restore may target another zone in the same region */
|
|
904
|
+
source_availability_zone_id: string;
|
|
809
905
|
}
|
|
810
|
-
export interface
|
|
906
|
+
export interface BackupListResponseBody {
|
|
811
907
|
/** @nullable */
|
|
812
|
-
items:
|
|
908
|
+
items: BackupResource[] | null;
|
|
813
909
|
pagination: OffsetPagination;
|
|
814
910
|
}
|
|
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;
|
|
911
|
+
export interface CreateBackupRequestBody {
|
|
912
|
+
disk_id: string;
|
|
821
913
|
/**
|
|
822
914
|
* @minLength 1
|
|
823
915
|
* @maxLength 128
|
|
824
916
|
*/
|
|
825
917
|
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
918
|
}
|
|
833
|
-
export interface
|
|
919
|
+
export interface RenameBackupRequestBody {
|
|
834
920
|
/**
|
|
835
921
|
* @minLength 1
|
|
836
922
|
* @maxLength 128
|
|
837
923
|
*/
|
|
838
924
|
name: string;
|
|
839
925
|
}
|
|
840
|
-
export interface ResizeDiskRequestBody {
|
|
841
|
-
/**
|
|
842
|
-
* Must be larger than the current capacity
|
|
843
|
-
* @minimum 1
|
|
844
|
-
*/
|
|
845
|
-
size_gb: number;
|
|
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;
|
|
853
|
-
}
|
|
854
926
|
/**
|
|
855
|
-
* `
|
|
856
|
-
*/
|
|
857
|
-
export type FloatingIPResourceStatus = (typeof FloatingIPResourceStatus)[keyof typeof FloatingIPResourceStatus];
|
|
858
|
-
export declare const FloatingIPResourceStatus: {
|
|
859
|
-
readonly pending: "pending";
|
|
860
|
-
readonly provisioning: "provisioning";
|
|
861
|
-
readonly available: "available";
|
|
862
|
-
readonly deleted: "deleted";
|
|
863
|
-
readonly failed: "failed";
|
|
864
|
-
readonly error: "error";
|
|
865
|
-
readonly unknown: "unknown";
|
|
866
|
-
readonly missing: "missing";
|
|
867
|
-
};
|
|
868
|
-
/**
|
|
869
|
-
* @nullable
|
|
870
|
-
*/
|
|
871
|
-
export type FloatingIPResourceAccessState = (typeof FloatingIPResourceAccessState)[keyof typeof FloatingIPResourceAccessState] | null;
|
|
872
|
-
export declare const FloatingIPResourceAccessState: {
|
|
873
|
-
readonly pending: "pending";
|
|
874
|
-
readonly enabled: "enabled";
|
|
875
|
-
readonly suspended: "suspended";
|
|
876
|
-
readonly reclaimed: "reclaimed";
|
|
877
|
-
};
|
|
878
|
-
/**
|
|
879
|
-
* 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.
|
|
880
|
-
* @nullable
|
|
927
|
+
* `licensed` pays for a period in advance; `metered` bills usage until canceled.
|
|
881
928
|
*/
|
|
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";
|
|
929
|
+
export type BillingChoiceUsageType = (typeof BillingChoiceUsageType)[keyof typeof BillingChoiceUsageType];
|
|
930
|
+
export declare const BillingChoiceUsageType: {
|
|
931
|
+
readonly licensed: "licensed";
|
|
932
|
+
readonly metered: "metered";
|
|
899
933
|
};
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
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";
|
|
934
|
+
export type BillingPeriodUnit = (typeof BillingPeriodUnit)[keyof typeof BillingPeriodUnit];
|
|
935
|
+
export declare const BillingPeriodUnit: {
|
|
936
|
+
readonly month: "month";
|
|
937
|
+
readonly year: "year";
|
|
912
938
|
};
|
|
913
|
-
export interface
|
|
914
|
-
|
|
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
|
-
}
|
|
927
|
-
/**
|
|
928
|
-
* One purchased public IP resource, including its bandwidth configuration. Bandwidth has no
|
|
929
|
-
* separate Compute resource ID; one subscription pays for the address and its bandwidth.
|
|
930
|
-
* Changing bandwidth updates this same resource, not another allocation.
|
|
931
|
-
*/
|
|
932
|
-
export interface FloatingIPResource {
|
|
933
|
-
/**
|
|
934
|
-
* The allocated public address. Null until the address is allocated.
|
|
935
|
-
* @nullable
|
|
936
|
-
*/
|
|
937
|
-
address: string | null;
|
|
938
|
-
/** @nullable */
|
|
939
|
-
bandwidth_mbps: number | null;
|
|
940
|
-
created_at: string;
|
|
941
|
-
id: string;
|
|
942
|
-
region_id: string;
|
|
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;
|
|
947
|
-
/**
|
|
948
|
-
* The Billing order item for this resource.
|
|
949
|
-
* @nullable
|
|
950
|
-
*/
|
|
951
|
-
order_item_id: string | null;
|
|
952
|
-
/**
|
|
953
|
-
* 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.
|
|
954
|
-
* @nullable
|
|
955
|
-
*/
|
|
956
|
-
checkout_session_id: string | null;
|
|
957
|
-
/**
|
|
958
|
-
* The Billing subscription associated with this resource. It may still be pending; its
|
|
959
|
-
* presence does not imply delivery or metering. Null when no subscription is associated.
|
|
960
|
-
* @nullable
|
|
961
|
-
*/
|
|
962
|
-
subscription_id: string | null;
|
|
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;
|
|
969
|
-
/**
|
|
970
|
-
* 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.
|
|
971
|
-
* @nullable
|
|
972
|
-
*/
|
|
973
|
-
failure_reason: FloatingIPResourceFailureReason;
|
|
974
|
-
/** The operation in progress on this floating IP, or null when none is. */
|
|
975
|
-
readonly operation: FloatingIPOperation | null;
|
|
976
|
-
/** @minimum 1 */
|
|
977
|
-
generation: number;
|
|
978
|
-
/** @nullable */
|
|
979
|
-
observed_at: string | null;
|
|
980
|
-
binding: IPv4Binding | null;
|
|
981
|
-
}
|
|
982
|
-
export interface FloatingIPListResponseBody {
|
|
983
|
-
/** @nullable */
|
|
984
|
-
items: FloatingIPResource[] | null;
|
|
985
|
-
pagination: OffsetPagination;
|
|
986
|
-
}
|
|
987
|
-
export interface AllocateFloatingIPRequestBody {
|
|
988
|
-
/**
|
|
989
|
-
* The address to allocate. Allocated by the platform when omitted
|
|
990
|
-
* @maxLength 64
|
|
991
|
-
*/
|
|
992
|
-
address?: string;
|
|
993
|
-
/**
|
|
994
|
-
* The bandwidth ceiling of this address, in Mbit/s, applied to both directions.
|
|
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.
|
|
999
|
-
*
|
|
1000
|
-
* It is part of this floating IP purchase and is billed as the pool's `bandwidth_pricing` shows,
|
|
1001
|
-
* with the purchase's billing choice. Changing it later updates the
|
|
1002
|
-
* same floating IP through its bandwidth endpoint, not an independent bandwidth resource.
|
|
1003
|
-
* @minimum 1
|
|
1004
|
-
* @maximum 1000
|
|
1005
|
-
*/
|
|
1006
|
-
bandwidth_mbps: number;
|
|
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 {
|
|
939
|
+
export interface BillingPeriod {
|
|
940
|
+
unit: BillingPeriodUnit;
|
|
1017
941
|
/**
|
|
1018
|
-
* Applied to both directions
|
|
1019
942
|
* @minimum 1
|
|
943
|
+
* @maximum 2147483647
|
|
1020
944
|
*/
|
|
1021
|
-
|
|
1022
|
-
checkout?: CheckoutOptions;
|
|
1023
|
-
/** 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`. */
|
|
1024
|
-
proration_date?: string;
|
|
1025
|
-
}
|
|
1026
|
-
export interface BindFloatingIPRequestBody {
|
|
1027
|
-
port_address_id: string;
|
|
945
|
+
count: number;
|
|
1028
946
|
}
|
|
1029
947
|
/**
|
|
1030
|
-
*
|
|
948
|
+
* Immediate ends service when cancellation takes effect, with refunds governed by the purchased terms. Period-end keeps service until the paid period ends.
|
|
1031
949
|
*/
|
|
1032
|
-
export type
|
|
1033
|
-
|
|
950
|
+
export type TerminationPolicy = (typeof TerminationPolicy)[keyof typeof TerminationPolicy];
|
|
951
|
+
export declare const TerminationPolicy: {
|
|
952
|
+
readonly immediate: "immediate";
|
|
953
|
+
readonly period_end: "period_end";
|
|
1034
954
|
};
|
|
1035
955
|
/**
|
|
1036
|
-
*
|
|
956
|
+
* 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.
|
|
1037
957
|
*/
|
|
1038
|
-
export
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
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
|
-
};
|
|
958
|
+
export interface BillingChoice {
|
|
959
|
+
/** `licensed` pays for a period in advance; `metered` bills usage until canceled. */
|
|
960
|
+
usage_type: BillingChoiceUsageType;
|
|
961
|
+
period?: BillingPeriod;
|
|
962
|
+
termination_policy?: TerminationPolicy;
|
|
963
|
+
}
|
|
1055
964
|
/**
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
965
|
+
* automatic completes checkout with the purchase: the best applicable account discount is applied, and the
|
|
966
|
+
* order is created with its invoice issued and paid from eligible credit grants and available balance.
|
|
967
|
+
* Insufficient funds fail the purchase with HTTP 422 BILLING_INSUFFICIENT_FUNDS; no Billing order, charge or
|
|
968
|
+
* discount redemption is committed.
|
|
969
|
+
* deferred creates an open Billing Checkout Session and charges nothing, even for a zero total. The customer
|
|
970
|
+
* completes it through Billing, where a promotion code can be applied, and then pays the issued invoice; a
|
|
971
|
+
* session not completed by its deadline expires.
|
|
1058
972
|
*/
|
|
1059
|
-
export type
|
|
1060
|
-
export declare const
|
|
1061
|
-
readonly
|
|
1062
|
-
readonly
|
|
1063
|
-
readonly order_canceled: "order_canceled";
|
|
1064
|
-
readonly order_expired: "order_expired";
|
|
1065
|
-
readonly provisioning_failed: "provisioning_failed";
|
|
973
|
+
export type CheckoutMode = (typeof CheckoutMode)[keyof typeof CheckoutMode];
|
|
974
|
+
export declare const CheckoutMode: {
|
|
975
|
+
readonly automatic: "automatic";
|
|
976
|
+
readonly deferred: "deferred";
|
|
1066
977
|
};
|
|
1067
978
|
/**
|
|
1068
|
-
*
|
|
979
|
+
* A decimal string, in the currency stated alongside it.
|
|
980
|
+
*
|
|
981
|
+
* **The currency is not part of this type.** It is carried by a `currency` field next to the
|
|
982
|
+
* amount, or by the account the amount belongs to. Reading an amount without that field is
|
|
983
|
+
* reading a number with no unit.
|
|
984
|
+
*
|
|
985
|
+
* It is a string rather than a JSON number because a JSON number is a float in most parsers,
|
|
986
|
+
* and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
|
|
987
|
+
* through a float.
|
|
1069
988
|
*/
|
|
1070
|
-
export type
|
|
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
|
-
};
|
|
989
|
+
export type Money = string;
|
|
1083
990
|
/**
|
|
1084
|
-
*
|
|
991
|
+
* Shared checkout choices for a product purchase. The service may set them or forward its client's
|
|
992
|
+
* choices unchanged; it does not need to read them, and Billing validates them. Omitting this object or
|
|
993
|
+
* mode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied
|
|
994
|
+
* only to Billing. A service may retain a failed creation record when Billing refuses a purchase; no
|
|
995
|
+
* infrastructure is created for that refusal.
|
|
1085
996
|
*/
|
|
1086
|
-
export interface
|
|
1087
|
-
|
|
1088
|
-
|
|
997
|
+
export interface CheckoutOptions {
|
|
998
|
+
mode?: CheckoutMode;
|
|
999
|
+
/**
|
|
1000
|
+
* Expected invoice total after discounts and tax, before applying credit grants or balance.
|
|
1001
|
+
* A different total fails with BILLING_AMOUNT_CHANGED without charging or reserving a discount.
|
|
1002
|
+
* Accepted only in automatic mode; with deferred it is refused with HTTP 400. For deferred
|
|
1003
|
+
* checkout, give the expected amount when completing it through Billing.
|
|
1004
|
+
*/
|
|
1005
|
+
expected_amount?: Money & string;
|
|
1089
1006
|
/**
|
|
1090
|
-
*
|
|
1091
|
-
*
|
|
1007
|
+
* Where the client goes after the customer finishes a deferred checkout. Any absolute URI with a
|
|
1008
|
+
* scheme, including mobile and desktop application schemes. Billing stores it without checking the
|
|
1009
|
+
* target; each client validates its own.
|
|
1010
|
+
* @maxLength 2048
|
|
1092
1011
|
*/
|
|
1093
|
-
|
|
1012
|
+
return_url?: string;
|
|
1013
|
+
}
|
|
1014
|
+
export interface RestoreBackupRequestBody {
|
|
1015
|
+
/**
|
|
1016
|
+
* 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
|
|
1017
|
+
* @maxLength 64
|
|
1018
|
+
*/
|
|
1019
|
+
disk_type_id: string;
|
|
1094
1020
|
/**
|
|
1095
1021
|
* @minLength 1
|
|
1096
1022
|
* @maxLength 128
|
|
1097
1023
|
*/
|
|
1098
|
-
|
|
1099
|
-
|
|
1024
|
+
name: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* Matches the size of the backup when omitted. When given, it must not be smaller than the backup
|
|
1027
|
+
* @minimum 0
|
|
1028
|
+
*/
|
|
1029
|
+
size_gb?: number;
|
|
1030
|
+
billing: BillingChoice;
|
|
1031
|
+
checkout?: CheckoutOptions;
|
|
1100
1032
|
}
|
|
1101
1033
|
/**
|
|
1102
|
-
*
|
|
1034
|
+
* The intended purchase use of a disk type, not the current boot role or deletion policy of an individual disk.
|
|
1103
1035
|
*/
|
|
1104
|
-
export type
|
|
1105
|
-
export declare const
|
|
1106
|
-
readonly
|
|
1107
|
-
readonly
|
|
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";
|
|
1036
|
+
export type DiskTypePurpose = (typeof DiskTypePurpose)[keyof typeof DiskTypePurpose];
|
|
1037
|
+
export declare const DiskTypePurpose: {
|
|
1038
|
+
readonly system: "system";
|
|
1039
|
+
readonly data: "data";
|
|
1122
1040
|
};
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
export interface InstanceResource {
|
|
1041
|
+
export type DiskTypeResourceMedia = (typeof DiskTypeResourceMedia)[keyof typeof DiskTypeResourceMedia];
|
|
1042
|
+
export declare const DiskTypeResourceMedia: {
|
|
1043
|
+
readonly ssd: "ssd";
|
|
1044
|
+
readonly hdd: "hdd";
|
|
1045
|
+
readonly nvme: "nvme";
|
|
1046
|
+
};
|
|
1047
|
+
export interface DiskTypeResource {
|
|
1132
1048
|
availability_zone_id: string;
|
|
1133
|
-
created_at: string;
|
|
1134
|
-
/** Hostname inside the instance; equals the instance id */
|
|
1135
|
-
hostname: string;
|
|
1136
1049
|
id: string;
|
|
1050
|
+
purpose: DiskTypePurpose;
|
|
1137
1051
|
/**
|
|
1138
|
-
*
|
|
1052
|
+
* IOPS a disk of `min_size_gb` gets. Null when this type is not rate-limited.
|
|
1053
|
+
*
|
|
1054
|
+
* Performance grows with capacity, so this and `iops_at_max_size` are the two ends of the
|
|
1055
|
+
* range. The exact figure for the size actually bought appears on the disk itself once it
|
|
1056
|
+
* exists.
|
|
1139
1057
|
* @nullable
|
|
1140
1058
|
*/
|
|
1141
|
-
|
|
1142
|
-
/** The instance type in effect, and the basis for billing */
|
|
1143
|
-
instance_type_id: string;
|
|
1059
|
+
iops_at_min_size: number | null;
|
|
1144
1060
|
/**
|
|
1145
|
-
*
|
|
1061
|
+
* IOPS a disk of `max_size_gb` gets. Null when this type is not rate-limited
|
|
1146
1062
|
* @nullable
|
|
1147
1063
|
*/
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
* The account to log in as over SSH. The password set at creation belongs to this account
|
|
1153
|
-
* @maxLength 32
|
|
1154
|
-
*/
|
|
1155
|
-
login_username: string;
|
|
1064
|
+
iops_at_max_size: number | null;
|
|
1065
|
+
max_size_gb: number;
|
|
1066
|
+
media: DiskTypeResourceMedia;
|
|
1067
|
+
min_size_gb: number;
|
|
1156
1068
|
name: string;
|
|
1069
|
+
region_id: string;
|
|
1070
|
+
step_gb: number;
|
|
1157
1071
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1072
|
+
* Throughput a disk of `min_size_gb` gets, in **bytes per second**. Null when this type is
|
|
1073
|
+
* not rate-limited.
|
|
1074
|
+
*
|
|
1075
|
+
* Bytes rather than MiB so the number needs no rounding on the way out; divide by 1048576
|
|
1076
|
+
* for MiB/s at the point of display.
|
|
1077
|
+
* @nullable
|
|
1160
1078
|
*/
|
|
1161
|
-
|
|
1079
|
+
throughput_at_min_size: number | null;
|
|
1162
1080
|
/**
|
|
1163
|
-
*
|
|
1081
|
+
* Throughput a disk of `max_size_gb` gets, in bytes per second. Null when this type is not rate-limited
|
|
1164
1082
|
* @nullable
|
|
1165
1083
|
*/
|
|
1166
|
-
|
|
1084
|
+
throughput_at_max_size: number | null;
|
|
1085
|
+
billing: BillingComponent;
|
|
1086
|
+
}
|
|
1087
|
+
export interface DiskTypeListResponseBody {
|
|
1167
1088
|
/** @nullable */
|
|
1168
|
-
|
|
1089
|
+
items: DiskTypeResource[] | null;
|
|
1090
|
+
pagination: OffsetPagination;
|
|
1091
|
+
}
|
|
1092
|
+
export interface ImageListResponseBody {
|
|
1093
|
+
items: ImageResource[];
|
|
1094
|
+
pagination: OffsetPagination;
|
|
1095
|
+
}
|
|
1096
|
+
export interface InstanceTypeResource {
|
|
1097
|
+
availability_zone_id: string;
|
|
1098
|
+
id: string;
|
|
1169
1099
|
/**
|
|
1170
|
-
*
|
|
1100
|
+
* The most public bandwidth a machine of this type may be given, in Mbps. Asking for more
|
|
1101
|
+
* when creating a machine, or raising a bound address past it, is refused.
|
|
1102
|
+
*
|
|
1103
|
+
* A ceiling on what can be bought, not a speed. How fast the machine's own interfaces run is
|
|
1104
|
+
* `network_egress_kbps` / `network_ingress_kbps`.
|
|
1105
|
+
*/
|
|
1106
|
+
max_bandwidth_mbps: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* Outbound ceiling of **each** network interface, in kbps. Null when this type is not
|
|
1109
|
+
* rate-limited.
|
|
1110
|
+
*
|
|
1111
|
+
* Per interface rather than per machine: a machine with two interfaces has this ceiling on
|
|
1112
|
+
* each of them, not shared between them. `max_ports` says how many it may have.
|
|
1171
1113
|
* @nullable
|
|
1172
1114
|
*/
|
|
1173
|
-
|
|
1115
|
+
network_egress_kbps: number | null;
|
|
1116
|
+
/**
|
|
1117
|
+
* Inbound ceiling of each network interface, in kbps. Null when this type is not rate-limited
|
|
1118
|
+
* @nullable
|
|
1119
|
+
*/
|
|
1120
|
+
network_ingress_kbps: number | null;
|
|
1121
|
+
max_floating_ips: number;
|
|
1122
|
+
max_ports: number;
|
|
1123
|
+
name: string;
|
|
1124
|
+
ram_mb: number;
|
|
1174
1125
|
region_id: string;
|
|
1175
|
-
|
|
1176
|
-
|
|
1126
|
+
vcpus: number;
|
|
1127
|
+
billing: BillingComponent;
|
|
1128
|
+
}
|
|
1129
|
+
export interface InstanceTypeListResponseBody {
|
|
1130
|
+
items: InstanceTypeResource[];
|
|
1131
|
+
pagination: OffsetPagination;
|
|
1132
|
+
}
|
|
1133
|
+
export interface RegionResource {
|
|
1134
|
+
/** ISO 3166-1 alpha-2 country this region sits in. Two letters, uppercase. */
|
|
1135
|
+
country_code: string;
|
|
1136
|
+
/** Display name for this place, shown to tenants (Hong Kong). The stable handle is code. */
|
|
1137
|
+
name: string;
|
|
1138
|
+
/** The region's code, the way the outside world names this place (hk-1). Stable and human-written; addressing is by id. */
|
|
1139
|
+
code: string;
|
|
1140
|
+
id: string;
|
|
1141
|
+
/** Private images stored in this region. */
|
|
1142
|
+
private_image_billing: BillingComponent;
|
|
1143
|
+
/** The region's backup service. Retained backup capacity beyond the active capacity packs is reported on it by the hour. */
|
|
1144
|
+
backup_service_billing: BillingComponent;
|
|
1145
|
+
/** Backup capacity packs in this region; null where none are sold. */
|
|
1146
|
+
capacity_pack_billing: BillingComponent | null;
|
|
1147
|
+
/** The snapshot quota in this region; null where it is not sold. */
|
|
1148
|
+
snapshot_quota_billing: BillingComponent | null;
|
|
1149
|
+
}
|
|
1150
|
+
export interface RegionListResponseBody {
|
|
1177
1151
|
/** @nullable */
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1152
|
+
items: RegionResource[] | null;
|
|
1153
|
+
pagination: OffsetPagination;
|
|
1154
|
+
}
|
|
1155
|
+
export interface ZoneResource {
|
|
1156
|
+
/** Display name for this zone, shown to tenants (Hong Kong A). The stable handle is code. */
|
|
1157
|
+
name: string;
|
|
1158
|
+
/** The zone's code within its region (hk-1-a). Stable and human-written; addressing is by id. */
|
|
1159
|
+
code: string;
|
|
1160
|
+
id: string;
|
|
1161
|
+
}
|
|
1162
|
+
export interface ZoneListResponseBody {
|
|
1182
1163
|
/** @nullable */
|
|
1183
|
-
|
|
1184
|
-
|
|
1164
|
+
items: ZoneResource[] | null;
|
|
1165
|
+
pagination: OffsetPagination;
|
|
1166
|
+
}
|
|
1167
|
+
export interface DiskListResponseBody {
|
|
1168
|
+
/** @nullable */
|
|
1169
|
+
items: DiskResource[] | null;
|
|
1170
|
+
pagination: OffsetPagination;
|
|
1171
|
+
}
|
|
1172
|
+
export interface CreateDiskRequestBody {
|
|
1185
1173
|
/**
|
|
1186
|
-
*
|
|
1187
|
-
* @
|
|
1174
|
+
* A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
1175
|
+
* @maxLength 64
|
|
1188
1176
|
*/
|
|
1189
|
-
|
|
1190
|
-
/** The operation in progress on this instance, or null when none is. */
|
|
1191
|
-
readonly operation: InstanceOperation | null;
|
|
1192
|
-
/** @nullable */
|
|
1193
|
-
order_id: string | null;
|
|
1177
|
+
disk_type_id: string;
|
|
1194
1178
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
* @
|
|
1179
|
+
* @minLength 1
|
|
1180
|
+
* @maxLength 128
|
|
1197
1181
|
*/
|
|
1198
|
-
|
|
1182
|
+
name: string;
|
|
1183
|
+
/** @minimum 1 */
|
|
1184
|
+
size_gb: number;
|
|
1185
|
+
/** Restore from this snapshot. When given, the capacity need only be no smaller than the snapshot */
|
|
1186
|
+
snapshot_id?: string;
|
|
1187
|
+
billing: BillingChoice;
|
|
1188
|
+
checkout?: CheckoutOptions;
|
|
1189
|
+
}
|
|
1190
|
+
export interface RenameDiskRequestBody {
|
|
1199
1191
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
* @
|
|
1192
|
+
* @minLength 1
|
|
1193
|
+
* @maxLength 128
|
|
1202
1194
|
*/
|
|
1203
|
-
|
|
1195
|
+
name: string;
|
|
1196
|
+
}
|
|
1197
|
+
export interface ResizeDiskRequestBody {
|
|
1204
1198
|
/**
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1207
|
-
|
|
1199
|
+
* Must be larger than the current capacity
|
|
1200
|
+
* @minimum 1
|
|
1201
|
+
*/
|
|
1202
|
+
size_gb: number;
|
|
1203
|
+
checkout?: CheckoutOptions;
|
|
1204
|
+
/** 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`. */
|
|
1205
|
+
proration_date?: string;
|
|
1206
|
+
}
|
|
1207
|
+
export interface RevertDiskRequestBody {
|
|
1208
|
+
/** Must be the most recent snapshot of the disk */
|
|
1209
|
+
snapshot_id: string;
|
|
1210
|
+
}
|
|
1211
|
+
export interface FloatingIPListResponseBody {
|
|
1212
|
+
/** @nullable */
|
|
1213
|
+
items: FloatingIPResource[] | null;
|
|
1214
|
+
pagination: OffsetPagination;
|
|
1215
|
+
}
|
|
1216
|
+
export interface AllocateFloatingIPRequestBody {
|
|
1217
|
+
/**
|
|
1218
|
+
* The address to allocate. Allocated by the platform when omitted
|
|
1219
|
+
* @maxLength 64
|
|
1220
|
+
*/
|
|
1221
|
+
address?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* The bandwidth ceiling of this address, in Mbit/s, applied to both directions.
|
|
1224
|
+
*
|
|
1225
|
+
* Required, and there is no "unlimited": an address with no ceiling runs at line rate and is
|
|
1226
|
+
* charged nothing for the traffic, while the address itself bills normally — so the invoice
|
|
1227
|
+
* looks correct and nothing anywhere reports it.
|
|
1228
|
+
*
|
|
1229
|
+
* It is part of this floating IP purchase and is billed under the pool's `billing`, with the
|
|
1230
|
+
* purchase's billing choice. Changing it later updates the
|
|
1231
|
+
* same floating IP through its bandwidth endpoint, not an independent bandwidth resource.
|
|
1232
|
+
* @minimum 1
|
|
1233
|
+
* @maximum 1000
|
|
1208
1234
|
*/
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1235
|
+
bandwidth_mbps: number;
|
|
1236
|
+
private_network_id: string;
|
|
1237
|
+
ipv4_pool_id: string;
|
|
1238
|
+
billing: BillingChoice;
|
|
1239
|
+
checkout?: CheckoutOptions;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Change bandwidth on the floating IP identified by the path. This is a configuration change
|
|
1243
|
+
* of that purchase, not an independent bandwidth purchase. Checkout is handled by Billing.
|
|
1244
|
+
*/
|
|
1245
|
+
export interface SetFloatingIPBandwidthRequestBody {
|
|
1216
1246
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
* @
|
|
1247
|
+
* Applied to both directions
|
|
1248
|
+
* @minimum 1
|
|
1219
1249
|
*/
|
|
1220
|
-
|
|
1250
|
+
bandwidth_mbps: number;
|
|
1251
|
+
checkout?: CheckoutOptions;
|
|
1252
|
+
/** 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`. */
|
|
1253
|
+
proration_date?: string;
|
|
1254
|
+
}
|
|
1255
|
+
export interface BindFloatingIPRequestBody {
|
|
1256
|
+
port_address_id: string;
|
|
1221
1257
|
}
|
|
1222
1258
|
export interface InstanceListResponseBody {
|
|
1223
1259
|
items: InstanceResource[];
|
|
@@ -1432,7 +1468,7 @@ export interface ResizeInstanceRequestBody {
|
|
|
1432
1468
|
*/
|
|
1433
1469
|
instance_type_id: string;
|
|
1434
1470
|
checkout?: CheckoutOptions;
|
|
1435
|
-
/** The `proration_date` of
|
|
1471
|
+
/** 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
1472
|
proration_date?: string;
|
|
1437
1473
|
}
|
|
1438
1474
|
export interface AttachDiskRequestBody {
|
|
@@ -1614,14 +1650,6 @@ export interface CreateImageRequestBody {
|
|
|
1614
1650
|
billing: BillingChoice;
|
|
1615
1651
|
checkout?: CheckoutOptions;
|
|
1616
1652
|
}
|
|
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
1653
|
export interface RenameImageRequestBody {
|
|
1626
1654
|
/**
|
|
1627
1655
|
* @minLength 1
|
|
@@ -1938,8 +1966,6 @@ export interface SnapshotQuota {
|
|
|
1938
1966
|
* @nullable
|
|
1939
1967
|
*/
|
|
1940
1968
|
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
1969
|
}
|
|
1944
1970
|
export interface SetSnapshotQuotaRequestBody {
|
|
1945
1971
|
/**
|
|
@@ -1949,7 +1975,7 @@ export interface SetSnapshotQuotaRequestBody {
|
|
|
1949
1975
|
limit: number;
|
|
1950
1976
|
billing: BillingChoice;
|
|
1951
1977
|
checkout?: CheckoutOptions;
|
|
1952
|
-
/** The `proration_date` of
|
|
1978
|
+
/** 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
1979
|
proration_date?: string;
|
|
1954
1980
|
}
|
|
1955
1981
|
export interface SetSnapshotQuotaResponseBody {
|
|
@@ -2108,10 +2134,6 @@ export interface BackupService {
|
|
|
2108
2134
|
* @minimum 0
|
|
2109
2135
|
*/
|
|
2110
2136
|
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
2137
|
}
|
|
2116
2138
|
export interface CreateBackupServiceRequestBody {
|
|
2117
2139
|
checkout?: CheckoutOptions;
|
|
@@ -2203,344 +2225,6 @@ export interface CreateBackupCapacityPackResponseBody {
|
|
|
2203
2225
|
*/
|
|
2204
2226
|
order_id: string | null;
|
|
2205
2227
|
}
|
|
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
2228
|
/**
|
|
2545
2229
|
* The new disk, `pending` until its order is accepted, and its Checkout Session. Also returned for a disk restored
|
|
2546
2230
|
* from a backup.
|
|
@@ -2662,10 +2346,8 @@ export interface IPv4PoolResource {
|
|
|
2662
2346
|
id: string;
|
|
2663
2347
|
region_id: string;
|
|
2664
2348
|
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;
|
|
2349
|
+
/** 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. */
|
|
2350
|
+
billing: BillingComponent;
|
|
2669
2351
|
}
|
|
2670
2352
|
export interface IPv4PoolListResponseBody {
|
|
2671
2353
|
items: IPv4PoolResource[];
|
|
@@ -2688,6 +2370,7 @@ export interface CursorPagination {
|
|
|
2688
2370
|
* apply.
|
|
2689
2371
|
*/
|
|
2690
2372
|
export type ConflictResponse = Error;
|
|
2373
|
+
export type CancellationModeParameter = CancellationMode;
|
|
2691
2374
|
export type ListBackupsParams = {
|
|
2692
2375
|
/**
|
|
2693
2376
|
* Return only the backups of this disk
|
|
@@ -2747,6 +2430,16 @@ export type ListImagesParams = {
|
|
|
2747
2430
|
*/
|
|
2748
2431
|
page_size?: number;
|
|
2749
2432
|
};
|
|
2433
|
+
export type DeleteImageParams = {
|
|
2434
|
+
/**
|
|
2435
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2436
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2437
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2438
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2439
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2440
|
+
*/
|
|
2441
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2442
|
+
};
|
|
2750
2443
|
export type ListInstanceTypesParams = {
|
|
2751
2444
|
region_id?: string;
|
|
2752
2445
|
/**
|
|
@@ -2809,6 +2502,16 @@ export type ListDisksParams = {
|
|
|
2809
2502
|
*/
|
|
2810
2503
|
page_size?: number;
|
|
2811
2504
|
};
|
|
2505
|
+
export type DeleteDiskParams = {
|
|
2506
|
+
/**
|
|
2507
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2508
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2509
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2510
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2511
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2512
|
+
*/
|
|
2513
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2514
|
+
};
|
|
2812
2515
|
export type ListFloatingIpsParams = {
|
|
2813
2516
|
/**
|
|
2814
2517
|
* 1-based page number. Defaults to 1.
|
|
@@ -2823,6 +2526,16 @@ export type ListFloatingIpsParams = {
|
|
|
2823
2526
|
*/
|
|
2824
2527
|
page_size?: number;
|
|
2825
2528
|
};
|
|
2529
|
+
export type ReleaseFloatingIpParams = {
|
|
2530
|
+
/**
|
|
2531
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2532
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2533
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2534
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2535
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2536
|
+
*/
|
|
2537
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2538
|
+
};
|
|
2826
2539
|
export type ListInstancesParams = {
|
|
2827
2540
|
/**
|
|
2828
2541
|
* A label to filter by, written as `key:value`
|
|
@@ -2842,6 +2555,16 @@ export type ListInstancesParams = {
|
|
|
2842
2555
|
*/
|
|
2843
2556
|
page_size?: number;
|
|
2844
2557
|
};
|
|
2558
|
+
export type DeleteInstanceParams = {
|
|
2559
|
+
/**
|
|
2560
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2561
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2562
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2563
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2564
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2565
|
+
*/
|
|
2566
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2567
|
+
};
|
|
2845
2568
|
export type GetInstanceConsoleOutputParams = {
|
|
2846
2569
|
/**
|
|
2847
2570
|
* Number of trailing lines to return; 0 returns the entire output
|
|
@@ -2997,6 +2720,26 @@ export type ListSecurityGroupRulesParams = {
|
|
|
2997
2720
|
*/
|
|
2998
2721
|
page_size?: number;
|
|
2999
2722
|
};
|
|
2723
|
+
export type DeleteSnapshotQuotaParams = {
|
|
2724
|
+
/**
|
|
2725
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2726
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2727
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2728
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2729
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2730
|
+
*/
|
|
2731
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2732
|
+
};
|
|
2733
|
+
export type DeleteBackupServiceParams = {
|
|
2734
|
+
/**
|
|
2735
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2736
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2737
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2738
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2739
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2740
|
+
*/
|
|
2741
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2742
|
+
};
|
|
3000
2743
|
export type ListBackupCapacityPacksParams = {
|
|
3001
2744
|
/**
|
|
3002
2745
|
* 1-based page number. Defaults to 1.
|
|
@@ -3011,6 +2754,16 @@ export type ListBackupCapacityPacksParams = {
|
|
|
3011
2754
|
*/
|
|
3012
2755
|
page_size?: number;
|
|
3013
2756
|
};
|
|
2757
|
+
export type DeleteBackupCapacityPackParams = {
|
|
2758
|
+
/**
|
|
2759
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
2760
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
2761
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
2762
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
2763
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
2764
|
+
*/
|
|
2765
|
+
cancellation_mode?: CancellationModeParameter;
|
|
2766
|
+
};
|
|
3014
2767
|
export type ListSnapshotsParams = {
|
|
3015
2768
|
/**
|
|
3016
2769
|
* Return only the snapshots of this disk
|