@leaflow/sdk 0.0.0-dev.353.g74313e0 → 0.0.0-dev.357.gf8331d0
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/account/v1/generated/functions.d.ts +85 -1
- package/dist/account/v1/generated/functions.js +65 -0
- package/dist/account/v1/generated/models.d.ts +31 -1
- package/dist/account/v1/generated/models.js +5 -0
- package/dist/account/v1/generated/schemas.zod.d.ts +45 -0
- package/dist/account/v1/generated/schemas.zod.js +45 -1
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +5 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/accountResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/accountResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/consentResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/consentResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/countryOption.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/countryOption.zod.js +4 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +10 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.js +4 -0
- package/dist/account/v1/generated/validators/error.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/error.zod.js +4 -0
- package/dist/account/v1/generated/validators/grantResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/grantResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/languageOption.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/languageOption.zod.js +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +5 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.js +5 -1
- package/dist/account/v1/generated/validators/locale.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/locale.zod.js +4 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.js +4 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +5 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/projectResource.zod.d.ts +6 -0
- package/dist/account/v1/generated/validators/projectResource.zod.js +10 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +34 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +30 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +5 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.js +4 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +4 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +4 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/models.d.ts +4 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/models.d.ts +4 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/functions.d.ts +1 -1
- package/dist/canopy/v1/generated/functions.js +1 -1
- package/dist/canopy/v1/generated/models.d.ts +4 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
- package/dist/canopy/v1/generated/schemas.zod.js +1 -1
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/compute/v1/generated/functions.d.ts +15 -15
- package/dist/compute/v1/generated/functions.js +13 -13
- package/dist/compute/v1/generated/models.d.ts +33 -25
- package/dist/compute/v1/generated/models.js +6 -6
- package/dist/compute/v1/generated/schemas.zod.d.ts +69 -69
- package/dist/compute/v1/generated/schemas.zod.js +15 -15
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +3 -3
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/backupOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/backupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/backupService.zod.d.ts +10 -10
- package/dist/compute/v1/generated/validators/backupService.zod.js +7 -7
- package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/billingChoice.zod.js +6 -4
- package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/billingPeriod.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/bootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +9 -9
- package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/diskResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +2 -2
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/error.zod.js +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/funds.zod.js +2 -2
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/imageResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/imageVisibility.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +11 -11
- package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listImagesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPortsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/money.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/money.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newBootDisk.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newCompute.zod.js +2 -2
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/operationLogResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/peeringResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/placedOrder.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAddress.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAttachment.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/portOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/portResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/portResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/powerRequest.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricing.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricing.zod.js +2 -2
- package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/pricingOption.zod.js +12 -10
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quote.zod.js +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/quoteItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/regionResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +4 -4
- package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/routeResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +5 -5
- package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +8 -8
- package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +2 -2
- package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +3 -3
- package/dist/compute/v1/generated/validators/snapshotResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/subnetResource.zod.js +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +2 -2
- package/dist/compute/v1/generated/validators/zoneResource.zod.js +2 -2
- package/dist/iam/v1/generated/functions.d.ts +31 -1
- package/dist/iam/v1/generated/functions.js +42 -0
- package/dist/iam/v1/generated/models.d.ts +14 -0
- package/dist/iam/v1/generated/schemas.zod.d.ts +16 -0
- package/dist/iam/v1/generated/schemas.zod.js +15 -0
- package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +1 -0
- package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +2 -0
- package/dist/iam/v1/generated/validators/projectResource.zod.js +6 -0
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.d.ts +22 -0
- package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.js +24 -0
- package/dist/membership/v1/generated/models.d.ts +4 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +4 -0
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +1 -0
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -0
- package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
- package/dist/routes.d.ts +32 -0
- package/dist/routes.js +36 -0
- package/dist/type/resource/v1/generated/validators/attachment.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/attachmentList.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/resourceUsage.zod.d.ts +1 -1
- package/dist/type/resource/v1/generated/validators/resourceUsageList.zod.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -41,9 +41,9 @@ export declare const SnapshotQuota: zod.ZodObject<{
|
|
|
41
41
|
order_id: zod.ZodNullable<zod.ZodUUID>;
|
|
42
42
|
subscription_id: zod.ZodNullable<zod.ZodUUID>;
|
|
43
43
|
billing: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
usage_type: zod.ZodEnum<{
|
|
45
|
+
licensed: "licensed";
|
|
46
|
+
metered: "metered";
|
|
47
47
|
}>;
|
|
48
48
|
period: zod.ZodOptional<zod.ZodObject<{
|
|
49
49
|
unit: zod.ZodEnum<{
|
|
@@ -64,9 +64,9 @@ export declare const SnapshotQuota: zod.ZodObject<{
|
|
|
64
64
|
pricing: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
65
65
|
currency: zod.ZodString;
|
|
66
66
|
options: zod.ZodArray<zod.ZodObject<{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
usage_type: zod.ZodEnum<{
|
|
68
|
+
licensed: "licensed";
|
|
69
|
+
metered: "metered";
|
|
70
70
|
}>;
|
|
71
71
|
period: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
72
72
|
unit: zod.ZodEnum<{
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -31,12 +31,12 @@ export declare const SnapshotResource: zod.ZodObject<{
|
|
|
31
31
|
region_id: zod.ZodUUID;
|
|
32
32
|
size_gb: zod.ZodInt;
|
|
33
33
|
status: zod.ZodEnum<{
|
|
34
|
+
available: "available";
|
|
34
35
|
error: "error";
|
|
35
36
|
pending: "pending";
|
|
36
37
|
failed: "failed";
|
|
37
38
|
deleted: "deleted";
|
|
38
39
|
provisioning: "provisioning";
|
|
39
|
-
available: "available";
|
|
40
40
|
missing: "missing";
|
|
41
41
|
}>;
|
|
42
42
|
operation: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
13
|
* - **Purchases.** A purchase that creates resources returns them together with a PlacedOrder. They are readable at once and start as `pending`: 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 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 order in Billing for checkout and payment progress.
|
|
14
|
-
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the
|
|
15
|
-
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a
|
|
14
|
+
* - **Pricing.** Catalog items, such as instance types, disk types and public IP pools, carry `pricing`: the licensed and metered options Billing offers for them, in the currency of the project's current billing account, or null when the project has no billing account. They are list amounts before promotion codes, not a checkout guarantee. A purchase chooses one option with `billing`, which applies to all of its components. Every purchase and change has a quote operation beside it, at the same path followed by `/quote`, which returns what checkout would collect without ordering anything.
|
|
15
|
+
* - **Checkout.** Omit `checkout` for automatic checkout, which pays from eligible credit grants and balance when the order is placed; 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` and nothing is created until checkout is confirmed and paid through Billing. An order whose total is zero, such as a metered purchase with nothing due now, completes checkout at placement in either mode and proceeds to provisioning.
|
|
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 order is placed until it is applied or its order is canceled, including while it awaits checkout. Renaming and replacing labels or notes are not operations and are accepted at any time.
|
|
17
17
|
* - **Billing relationships.** A purchased resource records 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.
|
|
18
18
|
* - **Availability zones.** A disk and an instance must reside in the same availability zone to be attached. Instance types and disk types are each bound to one availability zone, so choosing a type determines the zone.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
13
|
* OpenAPI spec version: 1.0.0
|
|
14
14
|
*/
|
|
15
|
-
import type { AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, QuotaListResponseBody, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, TransferOwnershipRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
|
|
15
|
+
import type { AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, QuotaListResponseBody, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, SetProjectSlugRequestBody, TransferOwnershipRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
|
|
16
16
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
17
17
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
18
18
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -78,6 +78,7 @@ export type updateProjectResponseError = updateProjectResponseDefault & {
|
|
|
78
78
|
export type updateProjectResponse = updateProjectResponseSuccess | updateProjectResponseError;
|
|
79
79
|
export declare const getUpdateProjectUrl: () => string;
|
|
80
80
|
/**
|
|
81
|
+
* The slug is not affected; it is set through `PUT /api/v1/project/slug`.
|
|
81
82
|
* @summary Update the name and description of a project
|
|
82
83
|
*/
|
|
83
84
|
export declare const updateProject: (updateProjectRequestBody: UpdateProjectRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateProjectResponse>;
|
|
@@ -102,6 +103,35 @@ export declare const getDeleteProjectUrl: () => string;
|
|
|
102
103
|
* @summary Delete a project
|
|
103
104
|
*/
|
|
104
105
|
export declare const deleteProject: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteProjectResponse>;
|
|
106
|
+
export type setProjectSlugResponse200 = {
|
|
107
|
+
data: ProjectAccessResource;
|
|
108
|
+
status: 200;
|
|
109
|
+
};
|
|
110
|
+
export type setProjectSlugResponseDefault = {
|
|
111
|
+
data: Error;
|
|
112
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
113
|
+
};
|
|
114
|
+
export type setProjectSlugResponseSuccess = setProjectSlugResponse200 & {
|
|
115
|
+
headers: Headers;
|
|
116
|
+
};
|
|
117
|
+
export type setProjectSlugResponseError = setProjectSlugResponseDefault & {
|
|
118
|
+
headers: Headers;
|
|
119
|
+
};
|
|
120
|
+
export type setProjectSlugResponse = setProjectSlugResponseSuccess | setProjectSlugResponseError;
|
|
121
|
+
export declare const getSetProjectSlugUrl: () => string;
|
|
122
|
+
/**
|
|
123
|
+
* Replaces the default slug, which is the project's `id`, with a custom one. Only the owner can do this, and only once: a custom slug cannot be changed or removed afterwards. The address under the `id` keeps working.
|
|
124
|
+
*
|
|
125
|
+
* Setting the slug the project already holds succeeds without change. Fails with:
|
|
126
|
+
*
|
|
127
|
+
* - 400 `PROJECT_SLUG_INVALID` when the slug does not follow the format described on `slug`;
|
|
128
|
+
* - 422 `PROJECT_SLUG_RESERVED` when the name is reserved;
|
|
129
|
+
* - 409 `PROJECT_SLUG_TAKEN` when another project, including a deleted one, holds it;
|
|
130
|
+
* - 412 `PROJECT_SLUG_ALREADY_SET` when the project already holds a different custom slug;
|
|
131
|
+
* - 403 `PROJECT_PERMISSION_DENIED` when the caller is not the owner.
|
|
132
|
+
* @summary Set the custom slug of a project
|
|
133
|
+
*/
|
|
134
|
+
export declare const setProjectSlug: (setProjectSlugRequestBody: SetProjectSlugRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setProjectSlugResponse>;
|
|
105
135
|
export type getProjectMembershipResponse200 = {
|
|
106
136
|
data: MembershipResource;
|
|
107
137
|
status: 200;
|
|
@@ -34,6 +34,7 @@ export const getUpdateProjectUrl = () => {
|
|
|
34
34
|
return `https://iam.leaflow.cloud/api/v1/project`;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
+
* The slug is not affected; it is set through `PUT /api/v1/project/slug`.
|
|
37
38
|
* @summary Update the name and description of a project
|
|
38
39
|
*/
|
|
39
40
|
export const updateProject = async (updateProjectRequestBody, options, fetchFn) => {
|
|
@@ -78,6 +79,47 @@ export const deleteProject = async (options, fetchFn) => {
|
|
|
78
79
|
const data = body ? JSON.parse(body) : {};
|
|
79
80
|
return { data, status: res.status, headers: res.headers };
|
|
80
81
|
};
|
|
82
|
+
export const getSetProjectSlugUrl = () => {
|
|
83
|
+
return `https://iam.leaflow.cloud/api/v1/project/slug`;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the default slug, which is the project's `id`, with a custom one. Only the owner can do this, and only once: a custom slug cannot be changed or removed afterwards. The address under the `id` keeps working.
|
|
87
|
+
*
|
|
88
|
+
* Setting the slug the project already holds succeeds without change. Fails with:
|
|
89
|
+
*
|
|
90
|
+
* - 400 `PROJECT_SLUG_INVALID` when the slug does not follow the format described on `slug`;
|
|
91
|
+
* - 422 `PROJECT_SLUG_RESERVED` when the name is reserved;
|
|
92
|
+
* - 409 `PROJECT_SLUG_TAKEN` when another project, including a deleted one, holds it;
|
|
93
|
+
* - 412 `PROJECT_SLUG_ALREADY_SET` when the project already holds a different custom slug;
|
|
94
|
+
* - 403 `PROJECT_PERMISSION_DENIED` when the caller is not the owner.
|
|
95
|
+
* @summary Set the custom slug of a project
|
|
96
|
+
*/
|
|
97
|
+
export const setProjectSlug = async (setProjectSlugRequestBody, options, fetchFn) => {
|
|
98
|
+
const getHeaders = (h) => {
|
|
99
|
+
if (!h)
|
|
100
|
+
return {};
|
|
101
|
+
if (h instanceof Headers)
|
|
102
|
+
return Object.fromEntries(h.entries());
|
|
103
|
+
if (Symbol.iterator in h) {
|
|
104
|
+
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
105
|
+
}
|
|
106
|
+
const headers = {};
|
|
107
|
+
for (const [name, value] of Object.entries(h)) {
|
|
108
|
+
if (value !== undefined)
|
|
109
|
+
headers[name] = value;
|
|
110
|
+
}
|
|
111
|
+
return headers;
|
|
112
|
+
};
|
|
113
|
+
const res = await (fetchFn ?? fetch)(getSetProjectSlugUrl(), {
|
|
114
|
+
...options,
|
|
115
|
+
method: "PUT",
|
|
116
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
117
|
+
body: JSON.stringify(setProjectSlugRequestBody),
|
|
118
|
+
});
|
|
119
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
120
|
+
const data = body ? JSON.parse(body) : {};
|
|
121
|
+
return { data, status: res.status, headers: res.headers };
|
|
122
|
+
};
|
|
81
123
|
export const getGetProjectMembershipUrl = () => {
|
|
82
124
|
return `https://iam.leaflow.cloud/api/v1/membership`;
|
|
83
125
|
};
|
|
@@ -117,6 +117,12 @@ export interface ProjectResource {
|
|
|
117
117
|
deleted_at: string | null;
|
|
118
118
|
description: string;
|
|
119
119
|
id: string;
|
|
120
|
+
/**
|
|
121
|
+
* The label naming the project in its address. It equals `id` until a custom slug is chosen. A custom slug does not change once set, and stays with the project after deletion
|
|
122
|
+
* @minLength 1
|
|
123
|
+
* @maxLength 36
|
|
124
|
+
*/
|
|
125
|
+
slug: string;
|
|
120
126
|
name: string;
|
|
121
127
|
updated_at: string;
|
|
122
128
|
}
|
|
@@ -130,6 +136,14 @@ export interface UpdateProjectRequestBody {
|
|
|
130
136
|
/** @maxLength 128 */
|
|
131
137
|
name?: string;
|
|
132
138
|
}
|
|
139
|
+
export interface SetProjectSlugRequestBody {
|
|
140
|
+
/**
|
|
141
|
+
* 6 to 32 characters made of lower-case letters, digits and single hyphens, beginning with a letter and ending with a letter or digit
|
|
142
|
+
* @minLength 6
|
|
143
|
+
* @maxLength 32
|
|
144
|
+
*/
|
|
145
|
+
slug: string;
|
|
146
|
+
}
|
|
133
147
|
export interface QuotaResource {
|
|
134
148
|
/** The service enforcing the quota. */
|
|
135
149
|
service: string;
|
|
@@ -14,12 +14,28 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import * as zod from "zod";
|
|
16
16
|
/**
|
|
17
|
+
* The slug is not affected; it is set through `PUT /api/v1/project/slug`.
|
|
17
18
|
* @summary Update the name and description of a project
|
|
18
19
|
*/
|
|
19
20
|
export declare const UpdateProjectBody: zod.ZodObject<{
|
|
20
21
|
description: zod.ZodOptional<zod.ZodString>;
|
|
21
22
|
name: zod.ZodOptional<zod.ZodString>;
|
|
22
23
|
}, zod.z.core.$strict>;
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the default slug, which is the project's `id`, with a custom one. Only the owner can do this, and only once: a custom slug cannot be changed or removed afterwards. The address under the `id` keeps working.
|
|
26
|
+
*
|
|
27
|
+
* Setting the slug the project already holds succeeds without change. Fails with:
|
|
28
|
+
*
|
|
29
|
+
* - 400 `PROJECT_SLUG_INVALID` when the slug does not follow the format described on `slug`;
|
|
30
|
+
* - 422 `PROJECT_SLUG_RESERVED` when the name is reserved;
|
|
31
|
+
* - 409 `PROJECT_SLUG_TAKEN` when another project, including a deleted one, holds it;
|
|
32
|
+
* - 412 `PROJECT_SLUG_ALREADY_SET` when the project already holds a different custom slug;
|
|
33
|
+
* - 403 `PROJECT_PERMISSION_DENIED` when the caller is not the owner.
|
|
34
|
+
* @summary Set the custom slug of a project
|
|
35
|
+
*/
|
|
36
|
+
export declare const SetProjectSlugBody: zod.ZodObject<{
|
|
37
|
+
slug: zod.ZodString;
|
|
38
|
+
}, zod.z.core.$strict>;
|
|
23
39
|
/**
|
|
24
40
|
* Visible to any member, on the same rule as the member list. Who has been invited is part of who is in the project.
|
|
25
41
|
* @summary List the invitations this project is still waiting on
|
|
@@ -21,14 +21,29 @@ import { IssueInvitationRequestBody } from "./validators/issueInvitationRequestB
|
|
|
21
21
|
import { RenameSSHKeyRequestBody } from "./validators/renameSSHKeyRequestBody.zod.js";
|
|
22
22
|
import { SetMemberPermissionsRequestBody } from "./validators/setMemberPermissionsRequestBody.zod.js";
|
|
23
23
|
import { SetMemberRolesRequestBody } from "./validators/setMemberRolesRequestBody.zod.js";
|
|
24
|
+
import { SetProjectSlugRequestBody } from "./validators/setProjectSlugRequestBody.zod.js";
|
|
24
25
|
import { TransferOwnershipRequestBody } from "./validators/transferOwnershipRequestBody.zod.js";
|
|
25
26
|
import { UpdatePolicyRequestBody } from "./validators/updatePolicyRequestBody.zod.js";
|
|
26
27
|
import { UpdateProjectRequestBody } from "./validators/updateProjectRequestBody.zod.js";
|
|
27
28
|
import { UpdateRoleRequestBody } from "./validators/updateRoleRequestBody.zod.js";
|
|
28
29
|
/**
|
|
30
|
+
* The slug is not affected; it is set through `PUT /api/v1/project/slug`.
|
|
29
31
|
* @summary Update the name and description of a project
|
|
30
32
|
*/
|
|
31
33
|
export const UpdateProjectBody = UpdateProjectRequestBody;
|
|
34
|
+
/**
|
|
35
|
+
* Replaces the default slug, which is the project's `id`, with a custom one. Only the owner can do this, and only once: a custom slug cannot be changed or removed afterwards. The address under the `id` keeps working.
|
|
36
|
+
*
|
|
37
|
+
* Setting the slug the project already holds succeeds without change. Fails with:
|
|
38
|
+
*
|
|
39
|
+
* - 400 `PROJECT_SLUG_INVALID` when the slug does not follow the format described on `slug`;
|
|
40
|
+
* - 422 `PROJECT_SLUG_RESERVED` when the name is reserved;
|
|
41
|
+
* - 409 `PROJECT_SLUG_TAKEN` when another project, including a deleted one, holds it;
|
|
42
|
+
* - 412 `PROJECT_SLUG_ALREADY_SET` when the project already holds a different custom slug;
|
|
43
|
+
* - 403 `PROJECT_PERMISSION_DENIED` when the caller is not the owner.
|
|
44
|
+
* @summary Set the custom slug of a project
|
|
45
|
+
*/
|
|
46
|
+
export const SetProjectSlugBody = SetProjectSlugRequestBody;
|
|
32
47
|
/**
|
|
33
48
|
* Visible to any member, on the same rule as the member list. Who has been invited is part of who is in the project.
|
|
34
49
|
* @summary List the invitations this project is still waiting on
|
|
@@ -46,6 +46,7 @@ export declare const ProjectAccessResource: zod.ZodObject<{
|
|
|
46
46
|
deleted_at: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
47
47
|
description: zod.ZodString;
|
|
48
48
|
id: zod.ZodUUID;
|
|
49
|
+
slug: zod.ZodString;
|
|
49
50
|
name: zod.ZodString;
|
|
50
51
|
updated_at: zod.z.ZodISODateTime;
|
|
51
52
|
}, zod.z.core.$strict>;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* OpenAPI spec version: 1.0.0
|
|
14
14
|
*/
|
|
15
15
|
import * as zod from "zod";
|
|
16
|
+
export declare const projectResourceSlugMax = 36;
|
|
16
17
|
export declare const ProjectResource: zod.ZodObject<{
|
|
17
18
|
traits: zod.ZodArray<zod.ZodObject<{
|
|
18
19
|
key: zod.ZodString;
|
|
@@ -29,6 +30,7 @@ export declare const ProjectResource: zod.ZodObject<{
|
|
|
29
30
|
deleted_at: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
30
31
|
description: zod.ZodString;
|
|
31
32
|
id: zod.ZodUUID;
|
|
33
|
+
slug: zod.ZodString;
|
|
32
34
|
name: zod.ZodString;
|
|
33
35
|
updated_at: zod.z.ZodISODateTime;
|
|
34
36
|
}, zod.z.core.$strict>;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import * as zod from "zod";
|
|
16
16
|
import { ProjectTraitResource } from "./projectTraitResource.zod.js";
|
|
17
|
+
export const projectResourceSlugMax = 36;
|
|
17
18
|
export const ProjectResource = zod.strictObject({
|
|
18
19
|
traits: zod.array(ProjectTraitResource),
|
|
19
20
|
deletion_requested_at: zod.iso.datetime({ offset: true }).nullable(),
|
|
@@ -25,6 +26,11 @@ export const ProjectResource = zod.strictObject({
|
|
|
25
26
|
.describe("When the project was deleted"),
|
|
26
27
|
description: zod.string(),
|
|
27
28
|
id: zod.uuid(),
|
|
29
|
+
slug: zod
|
|
30
|
+
.string()
|
|
31
|
+
.min(1)
|
|
32
|
+
.max(projectResourceSlugMax)
|
|
33
|
+
.describe("The label naming the project in its address. It equals `id` until a custom slug is chosen. A custom slug does not change once set, and stays with the project after deletion"),
|
|
28
34
|
name: zod.string(),
|
|
29
35
|
updated_at: zod.iso.datetime({ offset: true }),
|
|
30
36
|
});
|