@leaflow/sdk 0.173.1 → 0.175.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compute/v2/generated/functions.d.ts +33 -33
- package/dist/compute/v2/generated/functions.js +31 -31
- package/dist/compute/v2/generated/models.d.ts +73 -217
- package/dist/compute/v2/generated/models.js +52 -78
- package/dist/compute/v2/generated/schemas.zod.d.ts +33 -33
- package/dist/compute/v2/generated/schemas.zod.js +33 -33
- package/dist/compute/v2/generated/validators/associateElasticIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/associateElasticIPRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingCancellation.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingCancellation.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingChoice.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingChoice.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingComponent.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingComponent.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingLineQuantity.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingLineQuantity.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingMeter.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingMeter.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingPeriod.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingPeriod.zod.js +2 -2
- package/dist/compute/v2/generated/validators/billingQuantity.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/billingQuantity.zod.js +2 -2
- package/dist/compute/v2/generated/validators/bootVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/bootVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/cancellationMode.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/cancellationMode.zod.js +2 -2
- package/dist/compute/v2/generated/validators/checkoutMode.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/checkoutMode.zod.js +2 -2
- package/dist/compute/v2/generated/validators/checkoutOptions.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +2 -2
- package/dist/compute/v2/generated/validators/consoleResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/consoleResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createElasticIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createElasticIPRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createElasticIPResponseBody.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/createElasticIPResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.d.ts +10 -16
- package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteElasticIPResponseBody.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/deleteElasticIPResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.d.ts +10 -16
- package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIP.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/elasticIP.zod.js +17 -8
- package/dist/compute/v2/generated/validators/elasticIPAssociation.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPAssociation.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLine.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLine.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLineID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLineID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLineListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPLineListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPListResponseBody.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/elasticIPListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/elasticIPReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/elasticIPReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/error.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/error.zod.js +2 -2
- package/dist/compute/v2/generated/validators/errorStatus.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/errorStatus.zod.js +2 -2
- package/dist/compute/v2/generated/validators/existingBootVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/existingBootVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/existingElasticIP.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/existingElasticIP.zod.js +2 -2
- package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.js +2 -2
- package/dist/compute/v2/generated/validators/fieldViolation.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/fieldViolation.zod.js +2 -2
- package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.js +2 -2
- package/dist/compute/v2/generated/validators/generatedPassword.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/generatedPassword.zod.js +2 -2
- package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/iPv4HostAddress.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/iPv4HostAddress.zod.js +2 -2
- package/dist/compute/v2/generated/validators/imageID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/imageID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instance.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/instance.zod.js +21 -7
- package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceElasticIP.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceElasticIP.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceFamily.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceFamily.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceRestriction.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceRestriction.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceType.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceType.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceTypeID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceTypeID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/instanceVolumeID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/instanceVolumeID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/internetChargeType.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/internetChargeType.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplate.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplate.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateElasticIP.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateElasticIP.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateReference.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateReference.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listInstancesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listInstancesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listQuotasParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listQuotasParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listRegionsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listRegionsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/listVolumesParams.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/listVolumesParams.zod.js +2 -2
- package/dist/compute/v2/generated/validators/money.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/money.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterface.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/networkInterface.zod.js +15 -8
- package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newBootVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newBootVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newCompute.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newCompute.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newDataVolume.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newDataVolume.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newElasticIP.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newElasticIP.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +2 -2
- package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.js +2 -2
- package/dist/compute/v2/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/compute/v2/generated/validators/operationLogID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/operationLogID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/operationLogResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/operationLogResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/passwordChoice.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/passwordChoice.zod.js +2 -2
- package/dist/compute/v2/generated/validators/performanceFormula.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/performanceFormula.zod.js +2 -2
- package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.js +2 -2
- package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/privateImageResource.zod.js +13 -8
- package/dist/compute/v2/generated/validators/projectQuota.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/projectQuota.zod.js +2 -2
- package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/publicImageResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/quotaResourceType.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/quotaResourceType.zod.js +2 -2
- package/dist/compute/v2/generated/validators/quotaSource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/quotaSource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/regionID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/regionID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/regionListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/regionListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/regionResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/regionResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/releaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/releaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/releaseSetItem.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/releaseSetItem.zod.js +2 -2
- package/dist/compute/v2/generated/validators/rescueInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/rescueInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroup.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroup.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupIDOrWildcard.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupIDOrWildcard.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRule.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRule.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/subnetID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/subnetID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/suppliedPassword.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/suppliedPassword.zod.js +2 -2
- package/dist/compute/v2/generated/validators/terminationPolicy.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/terminationPolicy.zod.js +2 -2
- package/dist/compute/v2/generated/validators/trafficUsage.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/trafficUsage.zod.js +2 -2
- package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateElasticIPRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateElasticIPRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateElasticIPResponseBody.zod.d.ts +9 -15
- package/dist/compute/v2/generated/validators/updateElasticIPResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.d.ts +20 -26
- package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeResponseBody.zod.d.ts +10 -16
- package/dist/compute/v2/generated/validators/updateVolumeResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.js +4 -8
- package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudIDOrWildcard.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudIDOrWildcard.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.d.ts +5 -11
- package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.d.ts +4 -9
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.d.ts +4 -9
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.js +4 -8
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.js +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeAttachment.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeAttachment.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeBackupResource.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/volumeBackupResource.zod.js +4 -8
- package/dist/compute/v2/generated/validators/volumeID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.d.ts +10 -16
- package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumePerformance.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumePerformance.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeResource.zod.d.ts +10 -16
- package/dist/compute/v2/generated/validators/volumeResource.zod.js +19 -8
- package/dist/compute/v2/generated/validators/volumeSnapshotID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeSnapshotID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.d.ts +4 -10
- package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.js +4 -8
- package/dist/compute/v2/generated/validators/volumeTypeID.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeTypeID.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.js +2 -2
- package/dist/compute/v2/generated/validators/volumeTypeResource.zod.d.ts +2 -2
- package/dist/compute/v2/generated/validators/volumeTypeResource.zod.js +2 -2
- package/dist/swas/v1/generated/functions.d.ts +1 -1
- package/dist/swas/v1/generated/functions.js +1 -1
- package/dist/swas/v1/generated/models.d.ts +38 -2
- package/dist/swas/v1/generated/models.js +8 -0
- package/dist/swas/v1/generated/schemas.zod.d.ts +3 -1
- package/dist/swas/v1/generated/schemas.zod.js +6 -1
- package/dist/swas/v1/generated/validators/catalog.zod.d.ts +7 -0
- package/dist/swas/v1/generated/validators/catalog.zod.js +1 -1
- package/dist/swas/v1/generated/validators/listPlansParams.zod.d.ts +2 -0
- package/dist/swas/v1/generated/validators/listPlansParams.zod.js +2 -0
- package/dist/swas/v1/generated/validators/plan.zod.d.ts +9 -0
- package/dist/swas/v1/generated/validators/plan.zod.js +12 -1
- package/dist/swas/v1/generated/validators/priceOption.zod.d.ts +19 -0
- package/dist/swas/v1/generated/validators/priceOption.zod.js +27 -0
- package/dist/swas/v1/generated/validators/purchaseCreate.zod.js +5 -2
- package/dist/swas/v1/response-schemas.d.ts +1 -0
- package/dist/swas/v1/response-schemas.js +1 -0
- package/dist/swas-legacy/v1/generated/validators/instance.zod.d.ts +2 -2
- package/dist/swas-legacy/v1/generated/validators/instanceList.zod.d.ts +2 -2
- package/dist/swas-legacy/v1/generated/validators/lastOperation.zod.d.ts +1 -1
- package/dist/swas-legacy/v1/generated/validators/operation.zod.d.ts +1 -1
- package/dist/swas-legacy/v1/generated/validators/operationLogList.zod.d.ts +1 -1
- 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/package.json +1 -1
- package/dist/compute/v2/generated/validators/elasticIPOperation.zod.d.ts +0 -50
- package/dist/compute/v2/generated/validators/elasticIPOperation.zod.js +0 -50
- package/dist/compute/v2/generated/validators/instanceOperation.zod.d.ts +0 -61
- package/dist/compute/v2/generated/validators/instanceOperation.zod.js +0 -63
- package/dist/compute/v2/generated/validators/networkInterfaceOperation.zod.d.ts +0 -50
- package/dist/compute/v2/generated/validators/networkInterfaceOperation.zod.js +0 -52
- package/dist/compute/v2/generated/validators/privateImageOperation.zod.d.ts +0 -46
- package/dist/compute/v2/generated/validators/privateImageOperation.zod.js +0 -43
- package/dist/compute/v2/generated/validators/virtualPrivateCloudOperation.zod.d.ts +0 -46
- package/dist/compute/v2/generated/validators/virtualPrivateCloudOperation.zod.js +0 -41
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringOperation.zod.d.ts +0 -44
- package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringOperation.zod.js +0 -43
- package/dist/compute/v2/generated/validators/volumeBackupOperation.zod.d.ts +0 -45
- package/dist/compute/v2/generated/validators/volumeBackupOperation.zod.js +0 -43
- package/dist/compute/v2/generated/validators/volumeOperation.zod.d.ts +0 -51
- package/dist/compute/v2/generated/validators/volumeOperation.zod.js +0 -53
- package/dist/compute/v2/generated/validators/volumeSnapshotOperation.zod.d.ts +0 -45
- package/dist/compute/v2/generated/validators/volumeSnapshotOperation.zod.js +0 -43
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
|
-
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending
|
|
13
|
+
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending`, then reaches its usual status, such as `running` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. A purchased change, such as a resize requested with `instance_type_id`, `size_gib` or `bandwidth_mbps` on the resource, returns the resource unchanged with the Checkout Session for the change, and applies once its order is accepted.
|
|
14
14
|
* - **Commercial terms.** Compute catalogs describe technical specifications and, for each order line a purchase makes, how it is sold in Billing (a `BillingComponent`: its Plan, dimensions, what its quantity counts and what its meters read); prices, amounts and currency belong to Billing. A purchase chooses its terms with `billing`, and Billing selects the matching price. Read prices and their rates with Billing's `search-prices` from those components, quote a proposed purchase with `get-quote`, and a change of a resource by its `subscription_id`; Compute has no quote or price proxy endpoint and returns no amounts.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid. Do not submit the purchase again after paying; after an uncertain response, look the Checkout Session up in Billing first.
|
|
16
16
|
* - **Quotas.** A creation, purchase or resize that adds to what a project holds in a region is checked against the project's quota there before anything is ordered or created, and is refused with HTTP 409 `COMPUTE_PROJECT_QUOTA_EXCEEDED`, whose `meta` names the `resource`, its `limit`, the amount `used` and the amount `requested`. An instance purchase counts the volumes, the new primary network interface and the new elastic IP bought with each instance. Read the limits with `list-quotas`; a limit no operator set is the platform default.
|
|
17
17
|
* - **Projects.** Resource ownership and project identifiers refer to IAM platform projects, not OpenStack tenants. Instances, images and networks share one infrastructure OpenStack project; the platform project remains the authorization and ownership boundary.
|
|
18
18
|
* - **Custom methods.** An action that is not one of the standard methods (list, get, create, update, delete) is a custom method, `POST` on the resource's path followed by `:` and the verb, as in `POST /api/v2/instances/{id}:reboot` (AIP-136). A state is changed by its custom method, never by writing the state: `:start` and `:stop`, `:rescue` and `:unrescue`, `:associate` and `:disassociate`.
|
|
19
|
-
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `
|
|
19
|
+
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `status` names it, as in `starting` or `deleting`; once it has finished the resource shows its new status and 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 volume, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time. **Updating.** A `PATCH` carries only mutable fields, all optional and at least one given, and answers 200 when only descriptive fields changed and 202 when an operation started. An operational field (`instance_type_id`, `size_gib`, `bandwidth_mbps`) cannot be combined with any other field in the same request: it is refused with 422 `UPDATE_FIELDS_COMBINED`, because a rename that committed beside a change that was then refused would leave the request half applied.
|
|
20
20
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. Its `access_state` is `pending` until the order is accepted and delivery settles it, then `enabled`; a subscription that lapses suspends or reclaims the resource it pays for. Deleting a resource that subscriptions pay for cancels the subscriptions of its `release_set` in Billing, and the deletion answers with that cancellation.
|
|
21
21
|
* - **Availability zones.** A volume and an instance must reside in the same availability zone to be attached. An instance type and a volume type each belong to one availability zone, as on GCP, so a purchase names the type and the type names the zone; the volumes bought with an instance have to be of types of the instance type's zone.
|
|
22
22
|
* - **IPv6 is routed, not translated.** A virtual private cloud with IPv6 holds a /56 and each of its subnets a /64 of it, as on Alibaba Cloud, Tencent Cloud and Azure; IPv6 and its security groups require no EIP or NAT gateway. EIP and NATGateway are IPv4 products; IPv6 EIP, NAT66 and IPv6 port forwarding are not supported.
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
|
-
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending
|
|
13
|
+
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending`, then reaches its usual status, such as `running` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. A purchased change, such as a resize requested with `instance_type_id`, `size_gib` or `bandwidth_mbps` on the resource, returns the resource unchanged with the Checkout Session for the change, and applies once its order is accepted.
|
|
14
14
|
* - **Commercial terms.** Compute catalogs describe technical specifications and, for each order line a purchase makes, how it is sold in Billing (a `BillingComponent`: its Plan, dimensions, what its quantity counts and what its meters read); prices, amounts and currency belong to Billing. A purchase chooses its terms with `billing`, and Billing selects the matching price. Read prices and their rates with Billing's `search-prices` from those components, quote a proposed purchase with `get-quote`, and a change of a resource by its `subscription_id`; Compute has no quote or price proxy endpoint and returns no amounts.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid. Do not submit the purchase again after paying; after an uncertain response, look the Checkout Session up in Billing first.
|
|
16
16
|
* - **Quotas.** A creation, purchase or resize that adds to what a project holds in a region is checked against the project's quota there before anything is ordered or created, and is refused with HTTP 409 `COMPUTE_PROJECT_QUOTA_EXCEEDED`, whose `meta` names the `resource`, its `limit`, the amount `used` and the amount `requested`. An instance purchase counts the volumes, the new primary network interface and the new elastic IP bought with each instance. Read the limits with `list-quotas`; a limit no operator set is the platform default.
|
|
17
17
|
* - **Projects.** Resource ownership and project identifiers refer to IAM platform projects, not OpenStack tenants. Instances, images and networks share one infrastructure OpenStack project; the platform project remains the authorization and ownership boundary.
|
|
18
18
|
* - **Custom methods.** An action that is not one of the standard methods (list, get, create, update, delete) is a custom method, `POST` on the resource's path followed by `:` and the verb, as in `POST /api/v2/instances/{id}:reboot` (AIP-136). A state is changed by its custom method, never by writing the state: `:start` and `:stop`, `:rescue` and `:unrescue`, `:associate` and `:disassociate`.
|
|
19
|
-
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `
|
|
19
|
+
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `status` names it, as in `starting` or `deleting`; once it has finished the resource shows its new status and 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 volume, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time. **Updating.** A `PATCH` carries only mutable fields, all optional and at least one given, and answers 200 when only descriptive fields changed and 202 when an operation started. An operational field (`instance_type_id`, `size_gib`, `bandwidth_mbps`) cannot be combined with any other field in the same request: it is refused with 422 `UPDATE_FIELDS_COMBINED`, because a rename that committed beside a change that was then refused would leave the request half applied.
|
|
20
20
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. Its `access_state` is `pending` until the order is accepted and delivery settles it, then `enabled`; a subscription that lapses suspends or reclaims the resource it pays for. Deleting a resource that subscriptions pay for cancels the subscriptions of its `release_set` in Billing, and the deletion answers with that cancellation.
|
|
21
21
|
* - **Availability zones.** A volume and an instance must reside in the same availability zone to be attached. An instance type and a volume type each belong to one availability zone, as on GCP, so a purchase names the type and the type names the zone; the volumes bought with an instance have to be of types of the instance type's zone.
|
|
22
22
|
* - **IPv6 is routed, not translated.** A virtual private cloud with IPv6 holds a /56 and each of its subnets a /64 of it, as on Alibaba Cloud, Tencent Cloud and Azure; IPv6 and its security groups require no EIP or NAT gateway. EIP and NATGateway are IPv4 products; IPv6 EIP, NAT66 and IPv6 port forwarding are not supported.
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
|
-
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending
|
|
13
|
+
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending`, then reaches its usual status, such as `running` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. A purchased change, such as a resize requested with `instance_type_id`, `size_gib` or `bandwidth_mbps` on the resource, returns the resource unchanged with the Checkout Session for the change, and applies once its order is accepted.
|
|
14
14
|
* - **Commercial terms.** Compute catalogs describe technical specifications and, for each order line a purchase makes, how it is sold in Billing (a `BillingComponent`: its Plan, dimensions, what its quantity counts and what its meters read); prices, amounts and currency belong to Billing. A purchase chooses its terms with `billing`, and Billing selects the matching price. Read prices and their rates with Billing's `search-prices` from those components, quote a proposed purchase with `get-quote`, and a change of a resource by its `subscription_id`; Compute has no quote or price proxy endpoint and returns no amounts.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid. Do not submit the purchase again after paying; after an uncertain response, look the Checkout Session up in Billing first.
|
|
16
16
|
* - **Quotas.** A creation, purchase or resize that adds to what a project holds in a region is checked against the project's quota there before anything is ordered or created, and is refused with HTTP 409 `COMPUTE_PROJECT_QUOTA_EXCEEDED`, whose `meta` names the `resource`, its `limit`, the amount `used` and the amount `requested`. An instance purchase counts the volumes, the new primary network interface and the new elastic IP bought with each instance. Read the limits with `list-quotas`; a limit no operator set is the platform default.
|
|
17
17
|
* - **Projects.** Resource ownership and project identifiers refer to IAM platform projects, not OpenStack tenants. Instances, images and networks share one infrastructure OpenStack project; the platform project remains the authorization and ownership boundary.
|
|
18
18
|
* - **Custom methods.** An action that is not one of the standard methods (list, get, create, update, delete) is a custom method, `POST` on the resource's path followed by `:` and the verb, as in `POST /api/v2/instances/{id}:reboot` (AIP-136). A state is changed by its custom method, never by writing the state: `:start` and `:stop`, `:rescue` and `:unrescue`, `:associate` and `:disassociate`.
|
|
19
|
-
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `
|
|
19
|
+
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `status` names it, as in `starting` or `deleting`; once it has finished the resource shows its new status and 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 volume, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time. **Updating.** A `PATCH` carries only mutable fields, all optional and at least one given, and answers 200 when only descriptive fields changed and 202 when an operation started. An operational field (`instance_type_id`, `size_gib`, `bandwidth_mbps`) cannot be combined with any other field in the same request: it is refused with 422 `UPDATE_FIELDS_COMBINED`, because a rename that committed beside a change that was then refused would leave the request half applied.
|
|
20
20
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. Its `access_state` is `pending` until the order is accepted and delivery settles it, then `enabled`; a subscription that lapses suspends or reclaims the resource it pays for. Deleting a resource that subscriptions pay for cancels the subscriptions of its `release_set` in Billing, and the deletion answers with that cancellation.
|
|
21
21
|
* - **Availability zones.** A volume and an instance must reside in the same availability zone to be attached. An instance type and a volume type each belong to one availability zone, as on GCP, so a purchase names the type and the type names the zone; the volumes bought with an instance have to be of types of the instance type's zone.
|
|
22
22
|
* - **IPv6 is routed, not translated.** A virtual private cloud with IPv6 holds a /56 and each of its subnets a /64 of it, as on Alibaba Cloud, Tencent Cloud and Azure; IPv6 and its security groups require no EIP or NAT gateway. EIP and NATGateway are IPv4 products; IPv6 EIP, NAT66 and IPv6 port forwarding are not supported.
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
|
-
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending
|
|
13
|
+
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending`, then reaches its usual status, such as `running` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. A purchased change, such as a resize requested with `instance_type_id`, `size_gib` or `bandwidth_mbps` on the resource, returns the resource unchanged with the Checkout Session for the change, and applies once its order is accepted.
|
|
14
14
|
* - **Commercial terms.** Compute catalogs describe technical specifications and, for each order line a purchase makes, how it is sold in Billing (a `BillingComponent`: its Plan, dimensions, what its quantity counts and what its meters read); prices, amounts and currency belong to Billing. A purchase chooses its terms with `billing`, and Billing selects the matching price. Read prices and their rates with Billing's `search-prices` from those components, quote a proposed purchase with `get-quote`, and a change of a resource by its `subscription_id`; Compute has no quote or price proxy endpoint and returns no amounts.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid. Do not submit the purchase again after paying; after an uncertain response, look the Checkout Session up in Billing first.
|
|
16
16
|
* - **Quotas.** A creation, purchase or resize that adds to what a project holds in a region is checked against the project's quota there before anything is ordered or created, and is refused with HTTP 409 `COMPUTE_PROJECT_QUOTA_EXCEEDED`, whose `meta` names the `resource`, its `limit`, the amount `used` and the amount `requested`. An instance purchase counts the volumes, the new primary network interface and the new elastic IP bought with each instance. Read the limits with `list-quotas`; a limit no operator set is the platform default.
|
|
17
17
|
* - **Projects.** Resource ownership and project identifiers refer to IAM platform projects, not OpenStack tenants. Instances, images and networks share one infrastructure OpenStack project; the platform project remains the authorization and ownership boundary.
|
|
18
18
|
* - **Custom methods.** An action that is not one of the standard methods (list, get, create, update, delete) is a custom method, `POST` on the resource's path followed by `:` and the verb, as in `POST /api/v2/instances/{id}:reboot` (AIP-136). A state is changed by its custom method, never by writing the state: `:start` and `:stop`, `:rescue` and `:unrescue`, `:associate` and `:disassociate`.
|
|
19
|
-
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `
|
|
19
|
+
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `status` names it, as in `starting` or `deleting`; once it has finished the resource shows its new status and 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 volume, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time. **Updating.** A `PATCH` carries only mutable fields, all optional and at least one given, and answers 200 when only descriptive fields changed and 202 when an operation started. An operational field (`instance_type_id`, `size_gib`, `bandwidth_mbps`) cannot be combined with any other field in the same request: it is refused with 422 `UPDATE_FIELDS_COMBINED`, because a rename that committed beside a change that was then refused would leave the request half applied.
|
|
20
20
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. Its `access_state` is `pending` until the order is accepted and delivery settles it, then `enabled`; a subscription that lapses suspends or reclaims the resource it pays for. Deleting a resource that subscriptions pay for cancels the subscriptions of its `release_set` in Billing, and the deletion answers with that cancellation.
|
|
21
21
|
* - **Availability zones.** A volume and an instance must reside in the same availability zone to be attached. An instance type and a volume type each belong to one availability zone, as on GCP, so a purchase names the type and the type names the zone; the volumes bought with an instance have to be of types of the instance type's zone.
|
|
22
22
|
* - **IPv6 is routed, not translated.** A virtual private cloud with IPv6 holds a /56 and each of its subnets a /64 of it, as on Alibaba Cloud, Tencent Cloud and Azure; IPv6 and its security groups require no EIP or NAT gateway. EIP and NATGateway are IPv4 products; IPv6 EIP, NAT66 and IPv6 port forwarding are not supported.
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ## Conventions
|
|
12
12
|
*
|
|
13
|
-
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending
|
|
13
|
+
* - **Purchases.** A purchase that creates resources returns them together with the `checkout_session_id` of its Billing Checkout Session and, once checkout completes, its `order_id`. They are readable at once and start as `pending`: checkout may not be complete, the order has not been accepted, nothing exists in the cloud, no inventory such as an address is held, and fields known only after allocation, such as addresses, are null. Once Billing accepts the order, the resource is created: it stays `pending`, then reaches its usual status, such as `running` or `available`. When the Checkout Session expires, the order is declined, canceled or expires, or creation fails, the resource ends `failed` and `failure_reason` states why; the charge for a resource that failed after acceptance is refunded. A purchased change, such as a resize requested with `instance_type_id`, `size_gib` or `bandwidth_mbps` on the resource, returns the resource unchanged with the Checkout Session for the change, and applies once its order is accepted.
|
|
14
14
|
* - **Commercial terms.** Compute catalogs describe technical specifications and, for each order line a purchase makes, how it is sold in Billing (a `BillingComponent`: its Plan, dimensions, what its quantity counts and what its meters read); prices, amounts and currency belong to Billing. A purchase chooses its terms with `billing`, and Billing selects the matching price. Read prices and their rates with Billing's `search-prices` from those components, quote a proposed purchase with `get-quote`, and a change of a resource by its `subscription_id`; Compute has no quote or price proxy endpoint and returns no amounts.
|
|
15
15
|
* - **Checkout.** `checkout` is passed to Billing unchanged. Omit it for automatic checkout, which completes checkout within the request and pays from eligible credit grants and balance; insufficient funds refuse the request with HTTP 422 `BILLING_INSUFFICIENT_FUNDS`, and nothing is created. With `checkout.mode` set to `deferred`, the resources are returned `pending` with an open Checkout Session and no order, even for a zero total; nothing is created until the customer completes checkout in Billing, where a promotion code can be applied, and the order is paid. Do not submit the purchase again after paying; after an uncertain response, look the Checkout Session up in Billing first.
|
|
16
16
|
* - **Quotas.** A creation, purchase or resize that adds to what a project holds in a region is checked against the project's quota there before anything is ordered or created, and is refused with HTTP 409 `COMPUTE_PROJECT_QUOTA_EXCEEDED`, whose `meta` names the `resource`, its `limit`, the amount `used` and the amount `requested`. An instance purchase counts the volumes, the new primary network interface and the new elastic IP bought with each instance. Read the limits with `list-quotas`; a limit no operator set is the platform default.
|
|
17
17
|
* - **Projects.** Resource ownership and project identifiers refer to IAM platform projects, not OpenStack tenants. Instances, images and networks share one infrastructure OpenStack project; the platform project remains the authorization and ownership boundary.
|
|
18
18
|
* - **Custom methods.** An action that is not one of the standard methods (list, get, create, update, delete) is a custom method, `POST` on the resource's path followed by `:` and the verb, as in `POST /api/v2/instances/{id}:reboot` (AIP-136). A state is changed by its custom method, never by writing the state: `:start` and `:stop`, `:rescue` and `:unrescue`, `:associate` and `:disassociate`.
|
|
19
|
-
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `
|
|
19
|
+
* - **Operations.** Requests such as `:start`, attaching or deleting return HTTP 202 with the resource as it is when the request is accepted. While an operation runs, the resource's `status` names it, as in `starting` or `deleting`; once it has finished the resource shows its new status and 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 volume, is refused when either has one. A purchased change, such as a resize, is an operation from the moment its Checkout Session is created until the change is applied, the session expires or its order is canceled. Renaming and replacing labels or notes are not operations and are accepted at any time. **Updating.** A `PATCH` carries only mutable fields, all optional and at least one given, and answers 200 when only descriptive fields changed and 202 when an operation started. An operational field (`instance_type_id`, `size_gib`, `bandwidth_mbps`) cannot be combined with any other field in the same request: it is refused with 422 `UPDATE_FIELDS_COMBINED`, because a rename that committed beside a change that was then refused would leave the request half applied.
|
|
20
20
|
* - **Billing relationships.** A purchased resource records its `checkout_session_id` and, once checkout completes, its `order_id`, `order_item_id` and `subscription_id`. Its `access_state` is `pending` until the order is accepted and delivery settles it, then `enabled`; a subscription that lapses suspends or reclaims the resource it pays for. Deleting a resource that subscriptions pay for cancels the subscriptions of its `release_set` in Billing, and the deletion answers with that cancellation.
|
|
21
21
|
* - **Availability zones.** A volume and an instance must reside in the same availability zone to be attached. An instance type and a volume type each belong to one availability zone, as on GCP, so a purchase names the type and the type names the zone; the volumes bought with an instance have to be of types of the instance type's zone.
|
|
22
22
|
* - **IPv6 is routed, not translated.** A virtual private cloud with IPv6 holds a /56 and each of its subnets a /64 of it, as on Alibaba Cloud, Tencent Cloud and Azure; IPv6 and its security groups require no EIP or NAT gateway. EIP and NATGateway are IPv4 products; IPv6 EIP, NAT66 and IPv6 port forwarding are not supported.
|
|
@@ -43,7 +43,7 @@ export type listPlansResponseError = (listPlansResponse400 | listPlansResponse40
|
|
|
43
43
|
export type listPlansResponse = listPlansResponseSuccess | listPlansResponseError;
|
|
44
44
|
export declare const getListPlansUrl: (params: ListPlansParams) => string;
|
|
45
45
|
/**
|
|
46
|
-
* Lists
|
|
46
|
+
* Lists one plan per provider plan ID in the requested region. The default response preserves the single price and buyable fields. With include_prices=true, plans also contain verified price options for explicit billing-period selection. Archived snapshot prices are never offered for purchase.
|
|
47
47
|
* @summary List plans
|
|
48
48
|
*/
|
|
49
49
|
export declare const listPlans: (params: ListPlansParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listPlansResponse>;
|
|
@@ -11,7 +11,7 @@ export const getListPlansUrl = (params) => {
|
|
|
11
11
|
: `https://swas.leaflow.cloud/api/v1/catalog/plans`;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Lists
|
|
14
|
+
* Lists one plan per provider plan ID in the requested region. The default response preserves the single price and buyable fields. With include_prices=true, plans also contain verified price options for explicit billing-period selection. Archived snapshot prices are never offered for purchase.
|
|
15
15
|
* @summary List plans
|
|
16
16
|
*/
|
|
17
17
|
export const listPlans = async (params, options, fetchFn) => {
|
|
@@ -36,7 +36,10 @@ export interface PurchaseCreate {
|
|
|
36
36
|
* @maxLength 256
|
|
37
37
|
*/
|
|
38
38
|
provider_plan_id: string;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Selects a price from the requested plan and current catalog revision. The server resolves its immutable Billing terms, billing period and ownership; the client does not set the billing period.
|
|
41
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
42
|
+
*/
|
|
40
43
|
billing_price_id: string;
|
|
41
44
|
/**
|
|
42
45
|
* @minLength 1
|
|
@@ -44,6 +47,7 @@ export interface PurchaseCreate {
|
|
|
44
47
|
*/
|
|
45
48
|
image_id: string;
|
|
46
49
|
quantity: 1;
|
|
50
|
+
/** An assertion about the displayed quote, not an authoritative amount. The server obtains a new Billing quote and rejects a mismatch before accepting a purchase. */
|
|
47
51
|
expected_quote: ExpectedQuote;
|
|
48
52
|
/**
|
|
49
53
|
* @minLength 1
|
|
@@ -98,6 +102,27 @@ export interface Price {
|
|
|
98
102
|
amount: DecimalAmount;
|
|
99
103
|
period_months: PricePeriodMonths;
|
|
100
104
|
}
|
|
105
|
+
export type PriceOptionPeriodMonths = (typeof PriceOptionPeriodMonths)[keyof typeof PriceOptionPeriodMonths];
|
|
106
|
+
export declare const PriceOptionPeriodMonths: {
|
|
107
|
+
readonly NUMBER_1: 1;
|
|
108
|
+
readonly NUMBER_3: 3;
|
|
109
|
+
readonly NUMBER_6: 6;
|
|
110
|
+
readonly NUMBER_12: 12;
|
|
111
|
+
readonly NUMBER_24: 24;
|
|
112
|
+
readonly NUMBER_36: 36;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* A verified price option for one billing period. Its Billing price must currently be available, use period-end cancellation without an automatic refund, and match this provider plan and region. Archived snapshots, unknown periods and unverified prices are excluded. Selection does not bypass current permissions, quote checks or disabled purchase controls. IDs and amounts are authoritative only after server revalidation.
|
|
116
|
+
*/
|
|
117
|
+
export interface PriceOption {
|
|
118
|
+
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ */
|
|
119
|
+
billing_plan_id: string;
|
|
120
|
+
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ */
|
|
121
|
+
billing_price_id: string;
|
|
122
|
+
currency: "USD";
|
|
123
|
+
amount: DecimalAmount;
|
|
124
|
+
period_months: PriceOptionPeriodMonths;
|
|
125
|
+
}
|
|
101
126
|
export interface Plan {
|
|
102
127
|
provider_plan_id: string;
|
|
103
128
|
region_id: string;
|
|
@@ -105,7 +130,14 @@ export interface Plan {
|
|
|
105
130
|
/** @minimum 1 */
|
|
106
131
|
catalog_revision: number;
|
|
107
132
|
buyable: boolean;
|
|
133
|
+
/** The existing default price representation. Its availability and the buyable field are unchanged by include_prices; clients using price retain the same default billing period. */
|
|
108
134
|
price: Price | null;
|
|
135
|
+
/**
|
|
136
|
+
* Present only when include_prices=true. Contains all currently verified billing-period options, ordered by period_months. Billing price IDs and billing periods are each unique within a plan. An empty array means no verified option is available. It does not make the default price buyable.
|
|
137
|
+
* @minItems 0
|
|
138
|
+
* @maxItems 6
|
|
139
|
+
*/
|
|
140
|
+
prices?: PriceOption[];
|
|
109
141
|
/**
|
|
110
142
|
* @minItems 1
|
|
111
143
|
* @maxItems 256
|
|
@@ -119,7 +151,7 @@ export interface Plan {
|
|
|
119
151
|
disk_gb: number;
|
|
120
152
|
}
|
|
121
153
|
/**
|
|
122
|
-
* Bounded catalog snapshot for one requested region. Incomplete or unavailable price information is not a purchasable offer.
|
|
154
|
+
* Bounded catalog snapshot for one requested region. Incomplete or unavailable price information is not a purchasable offer. Provider plan IDs are unique regardless of the number of billing periods.
|
|
123
155
|
*/
|
|
124
156
|
export interface Catalog {
|
|
125
157
|
items: Plan[];
|
|
@@ -376,6 +408,10 @@ export type ListPlansParams = {
|
|
|
376
408
|
* @maxLength 128
|
|
377
409
|
*/
|
|
378
410
|
region_id: string;
|
|
411
|
+
/**
|
|
412
|
+
* Set to true to include all verified billing-period price options. When false or omitted, the response omits prices and preserves the default price representation.
|
|
413
|
+
*/
|
|
414
|
+
include_prices?: boolean;
|
|
379
415
|
};
|
|
380
416
|
export type CreatePurchaseHeaders = {
|
|
381
417
|
/**
|
|
@@ -22,6 +22,14 @@ export const PricePeriodMonths = {
|
|
|
22
22
|
NUMBER_24: 24,
|
|
23
23
|
NUMBER_36: 36,
|
|
24
24
|
};
|
|
25
|
+
export const PriceOptionPeriodMonths = {
|
|
26
|
+
NUMBER_1: 1,
|
|
27
|
+
NUMBER_3: 3,
|
|
28
|
+
NUMBER_6: 6,
|
|
29
|
+
NUMBER_12: 12,
|
|
30
|
+
NUMBER_24: 24,
|
|
31
|
+
NUMBER_36: 36,
|
|
32
|
+
};
|
|
25
33
|
export const InstancePricePeriodMonths = {
|
|
26
34
|
NUMBER_1: 1,
|
|
27
35
|
NUMBER_3: 3,
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
/**
|
|
10
|
-
* Lists
|
|
10
|
+
* Lists one plan per provider plan ID in the requested region. The default response preserves the single price and buyable fields. With include_prices=true, plans also contain verified price options for explicit billing-period selection. Archived snapshot prices are never offered for purchase.
|
|
11
11
|
* @summary List plans
|
|
12
12
|
*/
|
|
13
13
|
export declare const listPlansQueryRegionIdMax = 128;
|
|
14
|
+
export declare const listPlansQueryIncludePricesDefault = false;
|
|
14
15
|
export declare const ListPlansQueryParams: zod.ZodObject<{
|
|
15
16
|
region_id: zod.ZodString;
|
|
17
|
+
include_prices: zod.ZodDefault<zod.ZodBoolean>;
|
|
16
18
|
}, zod.z.core.$strict>;
|
|
17
19
|
/**
|
|
18
20
|
* Creates a purchase using the current catalog revision and expected price. Reuse the same Idempotency-Key after a timeout. Acceptance is not confirmation of payment or instance delivery.
|
|
@@ -11,12 +11,17 @@ import { RebootInstance } from "./validators/rebootInstance.zod.js";
|
|
|
11
11
|
import { StartInstance } from "./validators/startInstance.zod.js";
|
|
12
12
|
import { StopInstance } from "./validators/stopInstance.zod.js";
|
|
13
13
|
/**
|
|
14
|
-
* Lists
|
|
14
|
+
* Lists one plan per provider plan ID in the requested region. The default response preserves the single price and buyable fields. With include_prices=true, plans also contain verified price options for explicit billing-period selection. Archived snapshot prices are never offered for purchase.
|
|
15
15
|
* @summary List plans
|
|
16
16
|
*/
|
|
17
17
|
export const listPlansQueryRegionIdMax = 128;
|
|
18
|
+
export const listPlansQueryIncludePricesDefault = false;
|
|
18
19
|
export const ListPlansQueryParams = zod.strictObject({
|
|
19
20
|
region_id: zod.string().min(1).max(listPlansQueryRegionIdMax),
|
|
21
|
+
include_prices: zod
|
|
22
|
+
.boolean()
|
|
23
|
+
.default(listPlansQueryIncludePricesDefault)
|
|
24
|
+
.describe("Set to true to include all verified billing-period price options. When false or omitted, the response omits prices and preserves the default price representation."),
|
|
20
25
|
});
|
|
21
26
|
/**
|
|
22
27
|
* Creates a purchase using the current catalog revision and expected price. Reuse the same Idempotency-Key after a timeout. Acceptance is not confirmation of payment or instance delivery.
|
|
@@ -20,6 +20,13 @@ export declare const Catalog: zod.ZodObject<{
|
|
|
20
20
|
amount: zod.ZodIntersection<zod.ZodString, zod.ZodString>;
|
|
21
21
|
period_months: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodLiteral<1>, zod.ZodLiteral<3>, zod.ZodLiteral<6>, zod.ZodLiteral<12>, zod.ZodLiteral<24>, zod.ZodLiteral<36>]>, zod.ZodNull]>;
|
|
22
22
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
23
|
+
prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
24
|
+
billing_plan_id: zod.ZodUUID;
|
|
25
|
+
billing_price_id: zod.ZodUUID;
|
|
26
|
+
currency: zod.ZodLiteral<"USD">;
|
|
27
|
+
amount: zod.ZodIntersection<zod.ZodString, zod.ZodString>;
|
|
28
|
+
period_months: zod.ZodUnion<readonly [zod.ZodLiteral<1>, zod.ZodLiteral<3>, zod.ZodLiteral<6>, zod.ZodLiteral<12>, zod.ZodLiteral<24>, zod.ZodLiteral<36>]>;
|
|
29
|
+
}, zod.z.core.$strict>>>;
|
|
23
30
|
image_ids: zod.ZodArray<zod.ZodString>;
|
|
24
31
|
cpu: zod.ZodInt;
|
|
25
32
|
memory_mb: zod.ZodInt;
|
|
@@ -13,4 +13,4 @@ export const Catalog = zod
|
|
|
13
13
|
source_observed_at: zod.iso.datetime({ offset: true }).describe("UTC RFC 3339 timestamp."),
|
|
14
14
|
complete: zod.boolean(),
|
|
15
15
|
})
|
|
16
|
-
.describe("Bounded catalog snapshot for one requested region. Incomplete or unavailable price information is not a purchasable offer.");
|
|
16
|
+
.describe("Bounded catalog snapshot for one requested region. Incomplete or unavailable price information is not a purchasable offer. Provider plan IDs are unique regardless of the number of billing periods.");
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export declare const listPlansParamsRegionIdMax = 128;
|
|
10
|
+
export declare const listPlansParamsIncludePricesDefault = false;
|
|
10
11
|
export declare const ListPlansParams: zod.ZodObject<{
|
|
11
12
|
region_id: zod.ZodString;
|
|
13
|
+
include_prices: zod.ZodDefault<zod.ZodBoolean>;
|
|
12
14
|
}, zod.z.core.$strict>;
|
|
13
15
|
export type ListPlansParams = zod.input<typeof ListPlansParams>;
|
|
14
16
|
export type ListPlansParamsOutput = zod.output<typeof ListPlansParams>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
export const listPlansParamsRegionIdMax = 128;
|
|
10
|
+
export const listPlansParamsIncludePricesDefault = false;
|
|
10
11
|
export const ListPlansParams = zod.strictObject({
|
|
11
12
|
region_id: zod.string().min(1).max(listPlansParamsRegionIdMax),
|
|
13
|
+
include_prices: zod.boolean().default(listPlansParamsIncludePricesDefault),
|
|
12
14
|
});
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
export declare const planPricesMin = 0;
|
|
10
|
+
export declare const planPricesMax = 6;
|
|
9
11
|
export declare const planImageIdsMax = 256;
|
|
10
12
|
export declare const Plan: zod.ZodObject<{
|
|
11
13
|
provider_plan_id: zod.ZodString;
|
|
@@ -20,6 +22,13 @@ export declare const Plan: zod.ZodObject<{
|
|
|
20
22
|
amount: zod.ZodIntersection<zod.ZodString, zod.ZodString>;
|
|
21
23
|
period_months: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodLiteral<1>, zod.ZodLiteral<3>, zod.ZodLiteral<6>, zod.ZodLiteral<12>, zod.ZodLiteral<24>, zod.ZodLiteral<36>]>, zod.ZodNull]>;
|
|
22
24
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
25
|
+
prices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
26
|
+
billing_plan_id: zod.ZodUUID;
|
|
27
|
+
billing_price_id: zod.ZodUUID;
|
|
28
|
+
currency: zod.ZodLiteral<"USD">;
|
|
29
|
+
amount: zod.ZodIntersection<zod.ZodString, zod.ZodString>;
|
|
30
|
+
period_months: zod.ZodUnion<readonly [zod.ZodLiteral<1>, zod.ZodLiteral<3>, zod.ZodLiteral<6>, zod.ZodLiteral<12>, zod.ZodLiteral<24>, zod.ZodLiteral<36>]>;
|
|
31
|
+
}, zod.z.core.$strict>>>;
|
|
23
32
|
image_ids: zod.ZodArray<zod.ZodString>;
|
|
24
33
|
cpu: zod.ZodInt;
|
|
25
34
|
memory_mb: zod.ZodInt;
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Price } from "./price.zod.js";
|
|
10
|
+
import { PriceOption } from "./priceOption.zod.js";
|
|
11
|
+
export const planPricesMin = 0;
|
|
12
|
+
export const planPricesMax = 6;
|
|
10
13
|
export const planImageIdsMax = 256;
|
|
11
14
|
export const Plan = zod.strictObject({
|
|
12
15
|
provider_plan_id: zod.string(),
|
|
@@ -14,7 +17,15 @@ export const Plan = zod.strictObject({
|
|
|
14
17
|
name: zod.string(),
|
|
15
18
|
catalog_revision: zod.int().min(1),
|
|
16
19
|
buyable: zod.boolean(),
|
|
17
|
-
price: zod
|
|
20
|
+
price: zod
|
|
21
|
+
.union([Price, zod.null()])
|
|
22
|
+
.describe("The existing default price representation. Its availability and the buyable field are unchanged by include_prices; clients using price retain the same default billing period."),
|
|
23
|
+
prices: zod
|
|
24
|
+
.array(PriceOption)
|
|
25
|
+
.min(planPricesMin)
|
|
26
|
+
.max(planPricesMax)
|
|
27
|
+
.optional()
|
|
28
|
+
.describe("Present only when include_prices=true. Contains all currently verified billing-period options, ordered by period_months. Billing price IDs and billing periods are each unique within a plan. An empty array means no verified option is available. It does not make the default price buyable."),
|
|
18
29
|
image_ids: zod.array(zod.string()).min(1).max(planImageIdsMax),
|
|
19
30
|
cpu: zod.int().min(1),
|
|
20
31
|
memory_mb: zod.int().min(1),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const priceOptionBillingPlanIdRegExp: RegExp;
|
|
10
|
+
export declare const priceOptionBillingPriceIdRegExp: RegExp;
|
|
11
|
+
export declare const PriceOption: zod.ZodObject<{
|
|
12
|
+
billing_plan_id: zod.ZodUUID;
|
|
13
|
+
billing_price_id: zod.ZodUUID;
|
|
14
|
+
currency: zod.ZodLiteral<"USD">;
|
|
15
|
+
amount: zod.ZodIntersection<zod.ZodString, zod.ZodString>;
|
|
16
|
+
period_months: zod.ZodUnion<readonly [zod.ZodLiteral<1>, zod.ZodLiteral<3>, zod.ZodLiteral<6>, zod.ZodLiteral<12>, zod.ZodLiteral<24>, zod.ZodLiteral<36>]>;
|
|
17
|
+
}, zod.z.core.$strict>;
|
|
18
|
+
export type PriceOption = zod.input<typeof PriceOption>;
|
|
19
|
+
export type PriceOptionOutput = zod.output<typeof PriceOption>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow SWAS API
|
|
5
|
+
* Manage SWAS purchases and instances in the current project. Use an IAM scoped token for every request. Amounts are decimal strings in the stated currency; timestamps are UTC RFC 3339. Accepted requests may still be in progress. Read purchase, operation and refund progress separately.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
import { DecimalAmount } from "./decimalAmount.zod.js";
|
|
10
|
+
export const priceOptionBillingPlanIdRegExp = new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
|
|
11
|
+
export const priceOptionBillingPriceIdRegExp = new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$");
|
|
12
|
+
export const PriceOption = zod
|
|
13
|
+
.strictObject({
|
|
14
|
+
billing_plan_id: zod.uuid().regex(priceOptionBillingPlanIdRegExp),
|
|
15
|
+
billing_price_id: zod.uuid().regex(priceOptionBillingPriceIdRegExp),
|
|
16
|
+
currency: zod.literal("USD"),
|
|
17
|
+
amount: DecimalAmount,
|
|
18
|
+
period_months: zod.union([
|
|
19
|
+
zod.literal(1),
|
|
20
|
+
zod.literal(3),
|
|
21
|
+
zod.literal(6),
|
|
22
|
+
zod.literal(12),
|
|
23
|
+
zod.literal(24),
|
|
24
|
+
zod.literal(36),
|
|
25
|
+
]),
|
|
26
|
+
})
|
|
27
|
+
.describe("A verified price option for one billing period. Its Billing price must currently be available, use period-end cancellation without an automatic refund, and match this provider plan and region. Archived snapshots, unknown periods and unverified prices are excluded. Selection does not bypass current permissions, quote checks or disabled purchase controls. IDs and amounts are authoritative only after server revalidation.");
|
|
@@ -15,9 +15,12 @@ export const purchaseCreateRegionIdMax = 128;
|
|
|
15
15
|
export const PurchaseCreate = zod.strictObject({
|
|
16
16
|
catalog_revision: zod.int().min(1).max(purchaseCreateCatalogRevisionMax),
|
|
17
17
|
provider_plan_id: zod.string().min(1).max(purchaseCreateProviderPlanIdMax),
|
|
18
|
-
billing_price_id: zod
|
|
18
|
+
billing_price_id: zod
|
|
19
|
+
.uuid()
|
|
20
|
+
.regex(purchaseCreateBillingPriceIdRegExp)
|
|
21
|
+
.describe("Selects a price from the requested plan and current catalog revision. The server resolves its immutable Billing terms, billing period and ownership; the client does not set the billing period."),
|
|
19
22
|
image_id: zod.string().min(1).max(purchaseCreateImageIdMax),
|
|
20
23
|
quantity: zod.literal(1),
|
|
21
|
-
expected_quote: ExpectedQuote,
|
|
24
|
+
expected_quote: ExpectedQuote.describe("An assertion about the displayed quote, not an authoritative amount. The server obtains a new Billing quote and rejects a mismatch before accepting a purchase."),
|
|
22
25
|
region_id: zod.string().min(1).max(purchaseCreateRegionIdMax),
|
|
23
26
|
});
|
|
@@ -16,3 +16,4 @@ export { CustomerRefundProgress } from "./generated/validators/customerRefundPro
|
|
|
16
16
|
export { SupplierRefundProgress } from "./generated/validators/supplierRefundProgress.zod.js";
|
|
17
17
|
export { DecimalAmount } from "./generated/validators/decimalAmount.zod.js";
|
|
18
18
|
export { Money } from "./generated/validators/money.zod.js";
|
|
19
|
+
export { PriceOption } from "./generated/validators/priceOption.zod.js";
|
|
@@ -17,3 +17,4 @@ export { CustomerRefundProgress } from "./generated/validators/customerRefundPro
|
|
|
17
17
|
export { SupplierRefundProgress } from "./generated/validators/supplierRefundProgress.zod.js";
|
|
18
18
|
export { DecimalAmount } from "./generated/validators/decimalAmount.zod.js";
|
|
19
19
|
export { Money } from "./generated/validators/money.zod.js";
|
|
20
|
+
export { PriceOption } from "./generated/validators/priceOption.zod.js";
|
|
@@ -33,8 +33,8 @@ export declare const Instance: zod.ZodObject<{
|
|
|
33
33
|
start: "start";
|
|
34
34
|
stop: "stop";
|
|
35
35
|
reboot: "reboot";
|
|
36
|
-
reset_password: "reset_password";
|
|
37
36
|
reinstall: "reinstall";
|
|
37
|
+
reset_password: "reset_password";
|
|
38
38
|
console: "console";
|
|
39
39
|
firewall_create: "firewall_create";
|
|
40
40
|
firewall_update: "firewall_update";
|
|
@@ -55,8 +55,8 @@ export declare const Instance: zod.ZodObject<{
|
|
|
55
55
|
start: "start";
|
|
56
56
|
stop: "stop";
|
|
57
57
|
reboot: "reboot";
|
|
58
|
-
reset_password: "reset_password";
|
|
59
58
|
reinstall: "reinstall";
|
|
59
|
+
reset_password: "reset_password";
|
|
60
60
|
console: "console";
|
|
61
61
|
firewall_create: "firewall_create";
|
|
62
62
|
firewall_update: "firewall_update";
|
|
@@ -33,8 +33,8 @@ export declare const InstanceList: zod.ZodObject<{
|
|
|
33
33
|
start: "start";
|
|
34
34
|
stop: "stop";
|
|
35
35
|
reboot: "reboot";
|
|
36
|
-
reset_password: "reset_password";
|
|
37
36
|
reinstall: "reinstall";
|
|
37
|
+
reset_password: "reset_password";
|
|
38
38
|
console: "console";
|
|
39
39
|
firewall_create: "firewall_create";
|
|
40
40
|
firewall_update: "firewall_update";
|
|
@@ -55,8 +55,8 @@ export declare const InstanceList: zod.ZodObject<{
|
|
|
55
55
|
start: "start";
|
|
56
56
|
stop: "stop";
|
|
57
57
|
reboot: "reboot";
|
|
58
|
-
reset_password: "reset_password";
|
|
59
58
|
reinstall: "reinstall";
|
|
59
|
+
reset_password: "reset_password";
|
|
60
60
|
console: "console";
|
|
61
61
|
firewall_create: "firewall_create";
|
|
62
62
|
firewall_update: "firewall_update";
|
|
@@ -15,8 +15,8 @@ export declare const LastOperation: zod.ZodObject<{
|
|
|
15
15
|
start: "start";
|
|
16
16
|
stop: "stop";
|
|
17
17
|
reboot: "reboot";
|
|
18
|
-
reset_password: "reset_password";
|
|
19
18
|
reinstall: "reinstall";
|
|
19
|
+
reset_password: "reset_password";
|
|
20
20
|
console: "console";
|
|
21
21
|
firewall_create: "firewall_create";
|
|
22
22
|
firewall_update: "firewall_update";
|
|
@@ -15,8 +15,8 @@ export declare const Operation: zod.ZodObject<{
|
|
|
15
15
|
start: "start";
|
|
16
16
|
stop: "stop";
|
|
17
17
|
reboot: "reboot";
|
|
18
|
-
reset_password: "reset_password";
|
|
19
18
|
reinstall: "reinstall";
|
|
19
|
+
reset_password: "reset_password";
|
|
20
20
|
console: "console";
|
|
21
21
|
firewall_create: "firewall_create";
|
|
22
22
|
firewall_update: "firewall_update";
|
|
@@ -13,8 +13,8 @@ export declare const OperationLogList: zod.ZodObject<{
|
|
|
13
13
|
start: "start";
|
|
14
14
|
stop: "stop";
|
|
15
15
|
reboot: "reboot";
|
|
16
|
-
reset_password: "reset_password";
|
|
17
16
|
reinstall: "reinstall";
|
|
17
|
+
reset_password: "reset_password";
|
|
18
18
|
console: "console";
|
|
19
19
|
firewall_create: "firewall_create";
|
|
20
20
|
firewall_update: "firewall_update";
|
|
@@ -22,9 +22,9 @@ export declare const Attachment: zod.ZodObject<{
|
|
|
22
22
|
state: zod.ZodEnum<{
|
|
23
23
|
reserved: "reserved";
|
|
24
24
|
unknown: "unknown";
|
|
25
|
-
attached: "attached";
|
|
26
25
|
attaching: "attaching";
|
|
27
26
|
detaching: "detaching";
|
|
27
|
+
attached: "attached";
|
|
28
28
|
detached: "detached";
|
|
29
29
|
}>;
|
|
30
30
|
generation: zod.ZodInt;
|
|
@@ -23,9 +23,9 @@ export declare const AttachmentList: zod.ZodObject<{
|
|
|
23
23
|
state: zod.ZodEnum<{
|
|
24
24
|
reserved: "reserved";
|
|
25
25
|
unknown: "unknown";
|
|
26
|
-
attached: "attached";
|
|
27
26
|
attaching: "attaching";
|
|
28
27
|
detaching: "detaching";
|
|
28
|
+
attached: "attached";
|
|
29
29
|
detached: "detached";
|
|
30
30
|
}>;
|
|
31
31
|
generation: zod.ZodInt;
|