@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +175 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +94 -3
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import { ScalewayServiceErrors } from "../errors.ts";
|
|
6
|
+
import { paginateToken } from "../pagination.ts";
|
|
7
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
12
|
+
|
|
13
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
14
|
+
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "scaleway-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Scaleway",
|
|
23
|
+
service: "InstanceVolumeV2alpha1",
|
|
24
|
+
labels: "scaleway",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type CreateSnapshotRequestZone =
|
|
29
|
+
| "fr-par-1"
|
|
30
|
+
| "fr-par-2"
|
|
31
|
+
| "fr-par-3"
|
|
32
|
+
| "nl-ams-1"
|
|
33
|
+
| "nl-ams-2"
|
|
34
|
+
| "nl-ams-3"
|
|
35
|
+
| "pl-waw-1"
|
|
36
|
+
| "pl-waw-2"
|
|
37
|
+
| "pl-waw-3"
|
|
38
|
+
| "it-mil-1";
|
|
39
|
+
/** Tags associated with the snapshot. */
|
|
40
|
+
export type CreateSnapshotRequestTagsList = Array<string>;
|
|
41
|
+
export interface CreateSnapshotRequest {
|
|
42
|
+
/** The zone you want to target */
|
|
43
|
+
zone?: CreateSnapshotRequestZone | (string & {}) | undefined;
|
|
44
|
+
/** Project ID of the snapshot. */
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
/** Name of the snapshot. */
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
/** Tags associated with the snapshot. */
|
|
49
|
+
tags?: CreateSnapshotRequestTagsList | undefined;
|
|
50
|
+
/** ID of the base volume. */
|
|
51
|
+
base_volume_id?: string | undefined;
|
|
52
|
+
/** Whether the snapshot should be public. */
|
|
53
|
+
public?: boolean | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** Tags associated with the snapshot. */
|
|
56
|
+
export type SnapshotTagsList = Array<string>;
|
|
57
|
+
export type SnapshotStatus =
|
|
58
|
+
| "unknown_status"
|
|
59
|
+
| "available"
|
|
60
|
+
| "creating"
|
|
61
|
+
| "error"
|
|
62
|
+
| "invalid_data"
|
|
63
|
+
| "exporting";
|
|
64
|
+
export type SnapshotVolumeType = "unknown_volume_type" | "l_ssd";
|
|
65
|
+
export interface Snapshot {
|
|
66
|
+
/** Unique ID of the snapshot. */
|
|
67
|
+
id?: string | undefined;
|
|
68
|
+
/** The SRN of the snapshot. */
|
|
69
|
+
srn?: string | undefined;
|
|
70
|
+
/** Project ID of the snapshot. */
|
|
71
|
+
project_id?: string | undefined;
|
|
72
|
+
/** Name of the snapshot. */
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
/** Tags associated with the snapshot. */
|
|
75
|
+
tags?: SnapshotTagsList | undefined;
|
|
76
|
+
/** Size of the snapshot in bytes. (in bytes) */
|
|
77
|
+
size?: number | undefined;
|
|
78
|
+
/** Current status of the snapshot. */
|
|
79
|
+
status?: SnapshotStatus | undefined;
|
|
80
|
+
/** ID of the base volume. */
|
|
81
|
+
base_volume_id?: string | null | undefined;
|
|
82
|
+
/** Type of the volume. */
|
|
83
|
+
volume_type?: SnapshotVolumeType | undefined;
|
|
84
|
+
/** Creation date of the snapshot. (RFC 3339 format) */
|
|
85
|
+
created_at?: string | null | undefined;
|
|
86
|
+
/** Last update date of the snapshot. (RFC 3339 format) */
|
|
87
|
+
updated_at?: string | null | undefined;
|
|
88
|
+
/** Zone in which the snapshot is located. */
|
|
89
|
+
zone?: string | undefined;
|
|
90
|
+
/** Whether the snapshot is public. */
|
|
91
|
+
public?: boolean | undefined;
|
|
92
|
+
}
|
|
93
|
+
export type CreateVolumeRequestZone =
|
|
94
|
+
| "fr-par-1"
|
|
95
|
+
| "fr-par-2"
|
|
96
|
+
| "fr-par-3"
|
|
97
|
+
| "nl-ams-1"
|
|
98
|
+
| "nl-ams-2"
|
|
99
|
+
| "nl-ams-3"
|
|
100
|
+
| "pl-waw-1"
|
|
101
|
+
| "pl-waw-2"
|
|
102
|
+
| "pl-waw-3"
|
|
103
|
+
| "it-mil-1";
|
|
104
|
+
/** Tags associated with the volume. */
|
|
105
|
+
export type CreateVolumeRequestTagsList = Array<string>;
|
|
106
|
+
export type CreateVolumeRequestVolumeType = "unknown_volume_type" | "l_ssd" | "scratch";
|
|
107
|
+
export interface CreateVolumeRequest {
|
|
108
|
+
/** The zone you want to target */
|
|
109
|
+
zone?: CreateVolumeRequestZone | (string & {}) | undefined;
|
|
110
|
+
/** Project ID to which the volume belongs. */
|
|
111
|
+
project_id?: string | undefined;
|
|
112
|
+
/** Volume name. */
|
|
113
|
+
name?: string | undefined;
|
|
114
|
+
/** Tags associated with the volume. */
|
|
115
|
+
tags?: CreateVolumeRequestTagsList | undefined;
|
|
116
|
+
/** Volume size in bytes. (in bytes) */
|
|
117
|
+
size?: number | null | undefined;
|
|
118
|
+
/** ID of the base snapshot used for this volume. */
|
|
119
|
+
base_snapshot_id?: string | null | undefined;
|
|
120
|
+
/** Type of the volume. */
|
|
121
|
+
volume_type?: CreateVolumeRequestVolumeType | (string & {}) | undefined;
|
|
122
|
+
}
|
|
123
|
+
/** Tags associated with the volume. */
|
|
124
|
+
export type VolumeTagsList = Array<string>;
|
|
125
|
+
export type VolumeStatus =
|
|
126
|
+
| "unknown_status"
|
|
127
|
+
| "available"
|
|
128
|
+
| "snapshotting"
|
|
129
|
+
| "attaching"
|
|
130
|
+
| "detaching"
|
|
131
|
+
| "creating"
|
|
132
|
+
| "migrating"
|
|
133
|
+
| "error";
|
|
134
|
+
export type VolumeVolumeType = "unknown_volume_type" | "l_ssd" | "scratch";
|
|
135
|
+
export interface Volume {
|
|
136
|
+
/** Unique ID of the volume. */
|
|
137
|
+
id?: string | undefined;
|
|
138
|
+
/** The SRN of the volume. */
|
|
139
|
+
srn?: string | undefined;
|
|
140
|
+
/** Project ID to which the volume belongs. */
|
|
141
|
+
project_id?: string | undefined;
|
|
142
|
+
/** Volume name. */
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
/** Tags associated with the volume. */
|
|
145
|
+
tags?: VolumeTagsList | undefined;
|
|
146
|
+
/** Volume size in bytes. (in bytes) */
|
|
147
|
+
size?: number | undefined;
|
|
148
|
+
/** ID of the base snapshot used for this volume. */
|
|
149
|
+
base_snapshot_id?: string | null | undefined;
|
|
150
|
+
/** Current status of the volume. */
|
|
151
|
+
status?: VolumeStatus | undefined;
|
|
152
|
+
/** Type of the volume. */
|
|
153
|
+
volume_type?: VolumeVolumeType | undefined;
|
|
154
|
+
/** Creation date of the volume. (RFC 3339 format) */
|
|
155
|
+
created_at?: string | null | undefined;
|
|
156
|
+
/** Last update date of the volume. (RFC 3339 format) */
|
|
157
|
+
updated_at?: string | null | undefined;
|
|
158
|
+
/** ID of the Instance to which the volume is attached. */
|
|
159
|
+
server_id?: string | null | undefined;
|
|
160
|
+
/** Zone in which the volume is located. */
|
|
161
|
+
zone?: string | undefined;
|
|
162
|
+
}
|
|
163
|
+
export type DeleteSnapshotRequestZone =
|
|
164
|
+
| "fr-par-1"
|
|
165
|
+
| "fr-par-2"
|
|
166
|
+
| "fr-par-3"
|
|
167
|
+
| "nl-ams-1"
|
|
168
|
+
| "nl-ams-2"
|
|
169
|
+
| "nl-ams-3"
|
|
170
|
+
| "pl-waw-1"
|
|
171
|
+
| "pl-waw-2"
|
|
172
|
+
| "pl-waw-3"
|
|
173
|
+
| "it-mil-1";
|
|
174
|
+
export interface DeleteSnapshotRequest {
|
|
175
|
+
/** The zone you want to target */
|
|
176
|
+
zone?: DeleteSnapshotRequestZone | (string & {}) | undefined;
|
|
177
|
+
/** ID of the snapshot to delete. */
|
|
178
|
+
snapshot_id: string;
|
|
179
|
+
}
|
|
180
|
+
export interface DeleteSnapshotResponse {}
|
|
181
|
+
export type DeleteVolumeRequestZone =
|
|
182
|
+
| "fr-par-1"
|
|
183
|
+
| "fr-par-2"
|
|
184
|
+
| "fr-par-3"
|
|
185
|
+
| "nl-ams-1"
|
|
186
|
+
| "nl-ams-2"
|
|
187
|
+
| "nl-ams-3"
|
|
188
|
+
| "pl-waw-1"
|
|
189
|
+
| "pl-waw-2"
|
|
190
|
+
| "pl-waw-3"
|
|
191
|
+
| "it-mil-1";
|
|
192
|
+
export interface DeleteVolumeRequest {
|
|
193
|
+
/** The zone you want to target */
|
|
194
|
+
zone?: DeleteVolumeRequestZone | (string & {}) | undefined;
|
|
195
|
+
/** ID of the volume to delete. */
|
|
196
|
+
volume_id: string;
|
|
197
|
+
}
|
|
198
|
+
export interface DeleteVolumeResponse {}
|
|
199
|
+
export type ExportSnapshotToObjectStorageRequestZone =
|
|
200
|
+
| "fr-par-1"
|
|
201
|
+
| "fr-par-2"
|
|
202
|
+
| "fr-par-3"
|
|
203
|
+
| "nl-ams-1"
|
|
204
|
+
| "nl-ams-2"
|
|
205
|
+
| "nl-ams-3"
|
|
206
|
+
| "pl-waw-1"
|
|
207
|
+
| "pl-waw-2"
|
|
208
|
+
| "pl-waw-3"
|
|
209
|
+
| "it-mil-1";
|
|
210
|
+
export interface ExportSnapshotToObjectStorageRequest {
|
|
211
|
+
/** The zone you want to target */
|
|
212
|
+
zone?: ExportSnapshotToObjectStorageRequestZone | (string & {}) | undefined;
|
|
213
|
+
/** ID of the snapshot to export. */
|
|
214
|
+
snapshot_id: string;
|
|
215
|
+
/** Object Storage bucket name. */
|
|
216
|
+
bucket?: string | undefined;
|
|
217
|
+
/** Object key. */
|
|
218
|
+
object_key?: string | undefined;
|
|
219
|
+
}
|
|
220
|
+
export type GetSnapshotRequestZone =
|
|
221
|
+
| "fr-par-1"
|
|
222
|
+
| "fr-par-2"
|
|
223
|
+
| "fr-par-3"
|
|
224
|
+
| "nl-ams-1"
|
|
225
|
+
| "nl-ams-2"
|
|
226
|
+
| "nl-ams-3"
|
|
227
|
+
| "pl-waw-1"
|
|
228
|
+
| "pl-waw-2"
|
|
229
|
+
| "pl-waw-3"
|
|
230
|
+
| "it-mil-1";
|
|
231
|
+
export interface GetSnapshotRequest {
|
|
232
|
+
/** The zone you want to target */
|
|
233
|
+
zone?: GetSnapshotRequestZone | (string & {}) | undefined;
|
|
234
|
+
/** ID of the snapshot to retrieve. */
|
|
235
|
+
snapshot_id: string;
|
|
236
|
+
}
|
|
237
|
+
export type GetVolumeRequestZone =
|
|
238
|
+
| "fr-par-1"
|
|
239
|
+
| "fr-par-2"
|
|
240
|
+
| "fr-par-3"
|
|
241
|
+
| "nl-ams-1"
|
|
242
|
+
| "nl-ams-2"
|
|
243
|
+
| "nl-ams-3"
|
|
244
|
+
| "pl-waw-1"
|
|
245
|
+
| "pl-waw-2"
|
|
246
|
+
| "pl-waw-3"
|
|
247
|
+
| "it-mil-1";
|
|
248
|
+
export interface GetVolumeRequest {
|
|
249
|
+
/** The zone you want to target */
|
|
250
|
+
zone?: GetVolumeRequestZone | (string & {}) | undefined;
|
|
251
|
+
/** ID of the volume to retrieve. */
|
|
252
|
+
volume_id: string;
|
|
253
|
+
}
|
|
254
|
+
export type ImportSnapshotFromObjectStorageRequestZone =
|
|
255
|
+
| "fr-par-1"
|
|
256
|
+
| "fr-par-2"
|
|
257
|
+
| "fr-par-3"
|
|
258
|
+
| "nl-ams-1"
|
|
259
|
+
| "nl-ams-2"
|
|
260
|
+
| "nl-ams-3"
|
|
261
|
+
| "pl-waw-1"
|
|
262
|
+
| "pl-waw-2"
|
|
263
|
+
| "pl-waw-3"
|
|
264
|
+
| "it-mil-1";
|
|
265
|
+
/** Tags associated with the snapshot. */
|
|
266
|
+
export type ImportSnapshotFromObjectStorageRequestTagsList = Array<string>;
|
|
267
|
+
export interface ImportSnapshotFromObjectStorageRequest {
|
|
268
|
+
/** The zone you want to target */
|
|
269
|
+
zone?: ImportSnapshotFromObjectStorageRequestZone | (string & {}) | undefined;
|
|
270
|
+
/** Project ID of the snapshot. */
|
|
271
|
+
project_id?: string | undefined;
|
|
272
|
+
/** Name of the snapshot. */
|
|
273
|
+
name?: string | undefined;
|
|
274
|
+
/** Tags associated with the snapshot. */
|
|
275
|
+
tags?: ImportSnapshotFromObjectStorageRequestTagsList | undefined;
|
|
276
|
+
/** Object Storage bucket name. */
|
|
277
|
+
bucket?: string | undefined;
|
|
278
|
+
/** Object key. */
|
|
279
|
+
object_key?: string | undefined;
|
|
280
|
+
/** Size of the imported snapshot in bytes. (in bytes) */
|
|
281
|
+
size?: number | null | undefined;
|
|
282
|
+
/** Volume type of the snapshot. */
|
|
283
|
+
volume_type?: SnapshotVolumeType | (string & {}) | undefined;
|
|
284
|
+
}
|
|
285
|
+
export type ListSnapshotsRequestZone =
|
|
286
|
+
| "fr-par-1"
|
|
287
|
+
| "fr-par-2"
|
|
288
|
+
| "fr-par-3"
|
|
289
|
+
| "nl-ams-1"
|
|
290
|
+
| "nl-ams-2"
|
|
291
|
+
| "nl-ams-3"
|
|
292
|
+
| "pl-waw-1"
|
|
293
|
+
| "pl-waw-2"
|
|
294
|
+
| "pl-waw-3"
|
|
295
|
+
| "it-mil-1";
|
|
296
|
+
export type ListSnapshotsRequestOrderBy =
|
|
297
|
+
| "created_at_desc"
|
|
298
|
+
| "created_at_asc"
|
|
299
|
+
| "updated_at_desc"
|
|
300
|
+
| "updated_at_asc";
|
|
301
|
+
export type ListSnapshotsRequestSnapshotIdsList = Array<string>;
|
|
302
|
+
export type ListSnapshotsRequestTagsList = Array<string>;
|
|
303
|
+
export interface ListSnapshotsRequest {
|
|
304
|
+
/** The zone you want to target */
|
|
305
|
+
zone?: ListSnapshotsRequestZone | (string & {}) | undefined;
|
|
306
|
+
/** Token for pagination. */
|
|
307
|
+
page_token?: string | undefined;
|
|
308
|
+
/** Number of snapshots to return per page. */
|
|
309
|
+
page_size?: number | undefined;
|
|
310
|
+
/** Field to sort by. */
|
|
311
|
+
order_by?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
|
|
312
|
+
/** Filter by Project ID. */
|
|
313
|
+
project_id: string;
|
|
314
|
+
/** Filter by specific snapshot IDs. */
|
|
315
|
+
snapshot_ids?: ListSnapshotsRequestSnapshotIdsList | undefined;
|
|
316
|
+
/** Filter by name. */
|
|
317
|
+
name?: string | undefined;
|
|
318
|
+
/** Filter by tags. */
|
|
319
|
+
tags?: ListSnapshotsRequestTagsList | undefined;
|
|
320
|
+
/** Filter by base volume ID. */
|
|
321
|
+
base_volume_id?: string | undefined;
|
|
322
|
+
}
|
|
323
|
+
/** List of snapshots. */
|
|
324
|
+
export type ListSnapshotsResponseSnapshotsList = Array<Snapshot>;
|
|
325
|
+
export interface ListSnapshotsResponse {
|
|
326
|
+
/** List of snapshots. */
|
|
327
|
+
snapshots: ListSnapshotsResponseSnapshotsList;
|
|
328
|
+
/** Token for the next page. */
|
|
329
|
+
next_page_token?: string | null | undefined;
|
|
330
|
+
/** Total number of items. */
|
|
331
|
+
total_count?: number | undefined;
|
|
332
|
+
}
|
|
333
|
+
export type ListVolumesRequestZone =
|
|
334
|
+
| "fr-par-1"
|
|
335
|
+
| "fr-par-2"
|
|
336
|
+
| "fr-par-3"
|
|
337
|
+
| "nl-ams-1"
|
|
338
|
+
| "nl-ams-2"
|
|
339
|
+
| "nl-ams-3"
|
|
340
|
+
| "pl-waw-1"
|
|
341
|
+
| "pl-waw-2"
|
|
342
|
+
| "pl-waw-3"
|
|
343
|
+
| "it-mil-1";
|
|
344
|
+
export type ListVolumesRequestOrderBy =
|
|
345
|
+
| "created_at_desc"
|
|
346
|
+
| "created_at_asc"
|
|
347
|
+
| "updated_at_desc"
|
|
348
|
+
| "updated_at_asc";
|
|
349
|
+
export type ListVolumesRequestVolumeIdsList = Array<string>;
|
|
350
|
+
export type ListVolumesRequestTagsList = Array<string>;
|
|
351
|
+
export interface ListVolumesRequest {
|
|
352
|
+
/** The zone you want to target */
|
|
353
|
+
zone?: ListVolumesRequestZone | (string & {}) | undefined;
|
|
354
|
+
/** Token for pagination. */
|
|
355
|
+
page_token?: string | undefined;
|
|
356
|
+
/** Number of items to return per page. */
|
|
357
|
+
page_size?: number | undefined;
|
|
358
|
+
/** Field to order the results by. */
|
|
359
|
+
order_by?: ListVolumesRequestOrderBy | (string & {}) | undefined;
|
|
360
|
+
/** Filter by Project ID. */
|
|
361
|
+
project_id: string;
|
|
362
|
+
/** Filter by specific volume IDs. */
|
|
363
|
+
volume_ids?: ListVolumesRequestVolumeIdsList | undefined;
|
|
364
|
+
/** Filter by volume name. */
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
/** Filter by tags. */
|
|
367
|
+
tags?: ListVolumesRequestTagsList | undefined;
|
|
368
|
+
/** Filter by volume type. */
|
|
369
|
+
volume_type?: VolumeVolumeType | (string & {}) | undefined;
|
|
370
|
+
}
|
|
371
|
+
/** List of volumes. */
|
|
372
|
+
export type ListVolumesResponseVolumesList = Array<Volume>;
|
|
373
|
+
export interface ListVolumesResponse {
|
|
374
|
+
/** List of volumes. */
|
|
375
|
+
volumes: ListVolumesResponseVolumesList;
|
|
376
|
+
/** Token for the next page. */
|
|
377
|
+
next_page_token?: string | null | undefined;
|
|
378
|
+
/** Total number of items. */
|
|
379
|
+
total_count?: number | undefined;
|
|
380
|
+
}
|
|
381
|
+
export type ListVolumeTypesRequestZone =
|
|
382
|
+
| "fr-par-1"
|
|
383
|
+
| "fr-par-2"
|
|
384
|
+
| "fr-par-3"
|
|
385
|
+
| "nl-ams-1"
|
|
386
|
+
| "nl-ams-2"
|
|
387
|
+
| "nl-ams-3"
|
|
388
|
+
| "pl-waw-1"
|
|
389
|
+
| "pl-waw-2"
|
|
390
|
+
| "pl-waw-3"
|
|
391
|
+
| "it-mil-1";
|
|
392
|
+
export interface ListVolumeTypesRequest {
|
|
393
|
+
/** The zone you want to target */
|
|
394
|
+
zone?: ListVolumeTypesRequestZone | (string & {}) | undefined;
|
|
395
|
+
/** Token for pagination. */
|
|
396
|
+
page_token?: string | undefined;
|
|
397
|
+
/** Number of items to return per page. */
|
|
398
|
+
page_size?: number | undefined;
|
|
399
|
+
}
|
|
400
|
+
export interface VolumeType {
|
|
401
|
+
/** Name of the volume type. */
|
|
402
|
+
name?: VolumeVolumeType | undefined;
|
|
403
|
+
/** Minimum size of the volume in bytes. */
|
|
404
|
+
min_size?: number | undefined;
|
|
405
|
+
/** Maximum size of the volume in bytes. */
|
|
406
|
+
max_size?: number | undefined;
|
|
407
|
+
}
|
|
408
|
+
/** List of volume types. */
|
|
409
|
+
export type ListVolumeTypesResponseVolumeTypesList = Array<VolumeType>;
|
|
410
|
+
export interface ListVolumeTypesResponse {
|
|
411
|
+
/** List of volume types. */
|
|
412
|
+
volume_types: ListVolumeTypesResponseVolumeTypesList;
|
|
413
|
+
/** Token for the next page. */
|
|
414
|
+
next_page_token?: string | null | undefined;
|
|
415
|
+
/** Total number of items. */
|
|
416
|
+
total_count?: number | undefined;
|
|
417
|
+
}
|
|
418
|
+
export type UpdateSnapshotRequestZone =
|
|
419
|
+
| "fr-par-1"
|
|
420
|
+
| "fr-par-2"
|
|
421
|
+
| "fr-par-3"
|
|
422
|
+
| "nl-ams-1"
|
|
423
|
+
| "nl-ams-2"
|
|
424
|
+
| "nl-ams-3"
|
|
425
|
+
| "pl-waw-1"
|
|
426
|
+
| "pl-waw-2"
|
|
427
|
+
| "pl-waw-3"
|
|
428
|
+
| "it-mil-1";
|
|
429
|
+
/** New tags for the snapshot. */
|
|
430
|
+
export type UpdateSnapshotRequestTagsList = Array<unknown>;
|
|
431
|
+
export interface UpdateSnapshotRequest {
|
|
432
|
+
/** The zone you want to target */
|
|
433
|
+
zone?: UpdateSnapshotRequestZone | (string & {}) | undefined;
|
|
434
|
+
/** ID of the snapshot to update. */
|
|
435
|
+
snapshot_id: string;
|
|
436
|
+
/** New name for the snapshot. */
|
|
437
|
+
name?: string | null | undefined;
|
|
438
|
+
/** New tags for the snapshot. */
|
|
439
|
+
tags?: UpdateSnapshotRequestTagsList | null | undefined;
|
|
440
|
+
/** Whether the snapshot should be public. */
|
|
441
|
+
public?: boolean | null | undefined;
|
|
442
|
+
}
|
|
443
|
+
export type UpdateVolumeRequestZone =
|
|
444
|
+
| "fr-par-1"
|
|
445
|
+
| "fr-par-2"
|
|
446
|
+
| "fr-par-3"
|
|
447
|
+
| "nl-ams-1"
|
|
448
|
+
| "nl-ams-2"
|
|
449
|
+
| "nl-ams-3"
|
|
450
|
+
| "pl-waw-1"
|
|
451
|
+
| "pl-waw-2"
|
|
452
|
+
| "pl-waw-3"
|
|
453
|
+
| "it-mil-1";
|
|
454
|
+
/** New tags for the volume. */
|
|
455
|
+
export type UpdateVolumeRequestTagsList = Array<unknown>;
|
|
456
|
+
export interface UpdateVolumeRequest {
|
|
457
|
+
/** The zone you want to target */
|
|
458
|
+
zone?: UpdateVolumeRequestZone | (string & {}) | undefined;
|
|
459
|
+
/** ID of the volume to update. */
|
|
460
|
+
volume_id: string;
|
|
461
|
+
/** New name for the volume. */
|
|
462
|
+
name?: string | null | undefined;
|
|
463
|
+
/** New tags for the volume. */
|
|
464
|
+
tags?: UpdateVolumeRequestTagsList | null | undefined;
|
|
465
|
+
/** New size for the volume. (in bytes) */
|
|
466
|
+
size?: number | null | undefined;
|
|
467
|
+
}
|
|
468
|
+
export type CreateSnapshotError = ScalewayOpError;
|
|
469
|
+
/** Create a snapshot from a specified volume Create a snapshot from a specified l_ssd volume. */
|
|
470
|
+
export const createSnapshot: API.OperationMethod<
|
|
471
|
+
CreateSnapshotRequest,
|
|
472
|
+
Snapshot,
|
|
473
|
+
CreateSnapshotError,
|
|
474
|
+
ScalewayOpContext
|
|
475
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
476
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateSnapshotRequest>,
|
|
477
|
+
output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
|
|
478
|
+
errors: [],
|
|
479
|
+
serviceErrors: ScalewayServiceErrors,
|
|
480
|
+
protocol: ScalewayProtocol,
|
|
481
|
+
retry: Retry.Retry,
|
|
482
|
+
telemetry: TELEMETRY,
|
|
483
|
+
span: "CreateSnapshot",
|
|
484
|
+
}));
|
|
485
|
+
|
|
486
|
+
export type CreateVolumeError = ScalewayOpError;
|
|
487
|
+
/** Create a volume Create a volume of a specified type. */
|
|
488
|
+
export const createVolume: API.OperationMethod<
|
|
489
|
+
CreateVolumeRequest,
|
|
490
|
+
Volume,
|
|
491
|
+
CreateVolumeError,
|
|
492
|
+
ScalewayOpContext
|
|
493
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
494
|
+
input: __S(12, __c3, 0) as any as S.Schema<CreateVolumeRequest>,
|
|
495
|
+
output: __S(16, __c4, 0) as any as S.Schema<Volume>,
|
|
496
|
+
errors: [],
|
|
497
|
+
serviceErrors: ScalewayServiceErrors,
|
|
498
|
+
protocol: ScalewayProtocol,
|
|
499
|
+
retry: Retry.Retry,
|
|
500
|
+
telemetry: TELEMETRY,
|
|
501
|
+
span: "CreateVolume",
|
|
502
|
+
}));
|
|
503
|
+
|
|
504
|
+
export type DeleteSnapshotError = ScalewayOpError;
|
|
505
|
+
/** Delete a snapshot Delete a specified snapshot. */
|
|
506
|
+
export const deleteSnapshot: API.OperationMethod<
|
|
507
|
+
DeleteSnapshotRequest,
|
|
508
|
+
DeleteSnapshotResponse,
|
|
509
|
+
DeleteSnapshotError,
|
|
510
|
+
ScalewayOpContext
|
|
511
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
512
|
+
input: __S(36, __c9, 0) as any as S.Schema<DeleteSnapshotRequest>,
|
|
513
|
+
output: __S(40, __c10, 0) as any as S.Schema<DeleteSnapshotResponse>,
|
|
514
|
+
errors: [],
|
|
515
|
+
serviceErrors: ScalewayServiceErrors,
|
|
516
|
+
protocol: ScalewayProtocol,
|
|
517
|
+
retry: Retry.Retry,
|
|
518
|
+
telemetry: TELEMETRY,
|
|
519
|
+
span: "DeleteSnapshot",
|
|
520
|
+
}));
|
|
521
|
+
|
|
522
|
+
export type DeleteVolumeError = ScalewayOpError;
|
|
523
|
+
/** Delete a volume Delete a specified volume. */
|
|
524
|
+
export const deleteVolume: API.OperationMethod<
|
|
525
|
+
DeleteVolumeRequest,
|
|
526
|
+
DeleteVolumeResponse,
|
|
527
|
+
DeleteVolumeError,
|
|
528
|
+
ScalewayOpContext
|
|
529
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
530
|
+
input: __S(44, __c11, 0) as any as S.Schema<DeleteVolumeRequest>,
|
|
531
|
+
output: __S(40, __c10, 0) as any as S.Schema<DeleteVolumeResponse>,
|
|
532
|
+
errors: [],
|
|
533
|
+
serviceErrors: ScalewayServiceErrors,
|
|
534
|
+
protocol: ScalewayProtocol,
|
|
535
|
+
retry: Retry.Retry,
|
|
536
|
+
telemetry: TELEMETRY,
|
|
537
|
+
span: "DeleteVolume",
|
|
538
|
+
}));
|
|
539
|
+
|
|
540
|
+
export type ExportSnapshotToObjectStorageError = ScalewayOpError;
|
|
541
|
+
/** Export a snapshot to Object Storage Export a snapshot to a specified Object Storage bucket in the same region. */
|
|
542
|
+
export const exportSnapshotToObjectStorage: API.OperationMethod<
|
|
543
|
+
ExportSnapshotToObjectStorageRequest,
|
|
544
|
+
Snapshot,
|
|
545
|
+
ExportSnapshotToObjectStorageError,
|
|
546
|
+
ScalewayOpContext
|
|
547
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
548
|
+
input: __S(48, __c12, 0) as any as S.Schema<ExportSnapshotToObjectStorageRequest>,
|
|
549
|
+
output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
|
|
550
|
+
errors: [],
|
|
551
|
+
serviceErrors: ScalewayServiceErrors,
|
|
552
|
+
protocol: ScalewayProtocol,
|
|
553
|
+
retry: Retry.Retry,
|
|
554
|
+
telemetry: TELEMETRY,
|
|
555
|
+
span: "ExportSnapshotToObjectStorage",
|
|
556
|
+
}));
|
|
557
|
+
|
|
558
|
+
export type GetSnapshotError = ScalewayOpError;
|
|
559
|
+
/** Get a snapshot Get details of a specified snapshot. */
|
|
560
|
+
export const getSnapshot: API.OperationMethod<
|
|
561
|
+
GetSnapshotRequest,
|
|
562
|
+
Snapshot,
|
|
563
|
+
GetSnapshotError,
|
|
564
|
+
ScalewayOpContext
|
|
565
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
566
|
+
input: __S(52, __c13, 0) as any as S.Schema<GetSnapshotRequest>,
|
|
567
|
+
output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
|
|
568
|
+
errors: [],
|
|
569
|
+
serviceErrors: ScalewayServiceErrors,
|
|
570
|
+
protocol: ScalewayProtocol,
|
|
571
|
+
retry: Retry.Retry,
|
|
572
|
+
telemetry: TELEMETRY,
|
|
573
|
+
span: "GetSnapshot",
|
|
574
|
+
}));
|
|
575
|
+
|
|
576
|
+
export type GetVolumeError = ScalewayOpError;
|
|
577
|
+
/** Get a volume Get a specified volume. */
|
|
578
|
+
export const getVolume: API.OperationMethod<
|
|
579
|
+
GetVolumeRequest,
|
|
580
|
+
Volume,
|
|
581
|
+
GetVolumeError,
|
|
582
|
+
ScalewayOpContext
|
|
583
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
584
|
+
input: __S(56, __c14, 0) as any as S.Schema<GetVolumeRequest>,
|
|
585
|
+
output: __S(16, __c4, 0) as any as S.Schema<Volume>,
|
|
586
|
+
errors: [],
|
|
587
|
+
serviceErrors: ScalewayServiceErrors,
|
|
588
|
+
protocol: ScalewayProtocol,
|
|
589
|
+
retry: Retry.Retry,
|
|
590
|
+
telemetry: TELEMETRY,
|
|
591
|
+
span: "GetVolume",
|
|
592
|
+
}));
|
|
593
|
+
|
|
594
|
+
export type ImportSnapshotFromObjectStorageError = ScalewayOpError;
|
|
595
|
+
/** Import a snapshot from Object Storage Import a snapshot from a QCOW2 file stored in Object Storage. */
|
|
596
|
+
export const importSnapshotFromObjectStorage: API.OperationMethod<
|
|
597
|
+
ImportSnapshotFromObjectStorageRequest,
|
|
598
|
+
Snapshot,
|
|
599
|
+
ImportSnapshotFromObjectStorageError,
|
|
600
|
+
ScalewayOpContext
|
|
601
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
602
|
+
input: __S(60, __c15, 0) as any as S.Schema<ImportSnapshotFromObjectStorageRequest>,
|
|
603
|
+
output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
|
|
604
|
+
errors: [],
|
|
605
|
+
serviceErrors: ScalewayServiceErrors,
|
|
606
|
+
protocol: ScalewayProtocol,
|
|
607
|
+
retry: Retry.Retry,
|
|
608
|
+
telemetry: TELEMETRY,
|
|
609
|
+
span: "ImportSnapshotFromObjectStorage",
|
|
610
|
+
}));
|
|
611
|
+
|
|
612
|
+
export type ListSnapshotsError = ScalewayOpError;
|
|
613
|
+
/** List snapshots List all snapshots of an Organization. */
|
|
614
|
+
export const listSnapshots: API.PaginatedOperationMethod<
|
|
615
|
+
ListSnapshotsRequest,
|
|
616
|
+
ListSnapshotsResponse,
|
|
617
|
+
ListSnapshotsError,
|
|
618
|
+
ScalewayOpContext,
|
|
619
|
+
Snapshot
|
|
620
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
621
|
+
() => ({
|
|
622
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListSnapshotsRequest>,
|
|
623
|
+
output: __S(66, __c16, 2) as any as S.Schema<ListSnapshotsResponse>,
|
|
624
|
+
errors: [],
|
|
625
|
+
serviceErrors: ScalewayServiceErrors,
|
|
626
|
+
protocol: ScalewayProtocol,
|
|
627
|
+
retry: Retry.Retry,
|
|
628
|
+
telemetry: TELEMETRY,
|
|
629
|
+
span: "ListSnapshots",
|
|
630
|
+
pagination: {
|
|
631
|
+
mode: "token",
|
|
632
|
+
inputToken: "page_token",
|
|
633
|
+
outputToken: "next_page_token",
|
|
634
|
+
items: "snapshots",
|
|
635
|
+
pageSize: "page_size",
|
|
636
|
+
} as const,
|
|
637
|
+
}),
|
|
638
|
+
paginateToken,
|
|
639
|
+
) as any;
|
|
640
|
+
|
|
641
|
+
export type ListVolumesError = ScalewayOpError;
|
|
642
|
+
/** List volumes */
|
|
643
|
+
export const listVolumes: API.PaginatedOperationMethod<
|
|
644
|
+
ListVolumesRequest,
|
|
645
|
+
ListVolumesResponse,
|
|
646
|
+
ListVolumesError,
|
|
647
|
+
ScalewayOpContext,
|
|
648
|
+
Volume
|
|
649
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
650
|
+
() => ({
|
|
651
|
+
input: __S(68, __c17, 0) as any as S.Schema<ListVolumesRequest>,
|
|
652
|
+
output: __S(70, __c17, 2) as any as S.Schema<ListVolumesResponse>,
|
|
653
|
+
errors: [],
|
|
654
|
+
serviceErrors: ScalewayServiceErrors,
|
|
655
|
+
protocol: ScalewayProtocol,
|
|
656
|
+
retry: Retry.Retry,
|
|
657
|
+
telemetry: TELEMETRY,
|
|
658
|
+
span: "ListVolumes",
|
|
659
|
+
pagination: {
|
|
660
|
+
mode: "token",
|
|
661
|
+
inputToken: "page_token",
|
|
662
|
+
outputToken: "next_page_token",
|
|
663
|
+
items: "volumes",
|
|
664
|
+
pageSize: "page_size",
|
|
665
|
+
} as const,
|
|
666
|
+
}),
|
|
667
|
+
paginateToken,
|
|
668
|
+
) as any;
|
|
669
|
+
|
|
670
|
+
export type ListVolumeTypesError = ScalewayOpError;
|
|
671
|
+
/** List volume types List all volume types and their technical details. */
|
|
672
|
+
export const listVolumeTypes: API.PaginatedOperationMethod<
|
|
673
|
+
ListVolumeTypesRequest,
|
|
674
|
+
ListVolumeTypesResponse,
|
|
675
|
+
ListVolumeTypesError,
|
|
676
|
+
ScalewayOpContext,
|
|
677
|
+
VolumeType
|
|
678
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
679
|
+
() => ({
|
|
680
|
+
input: __S(20, __c5, 0) as any as S.Schema<ListVolumeTypesRequest>,
|
|
681
|
+
output: __S(23, __c5, 3) as any as S.Schema<ListVolumeTypesResponse>,
|
|
682
|
+
errors: [],
|
|
683
|
+
serviceErrors: ScalewayServiceErrors,
|
|
684
|
+
protocol: ScalewayProtocol,
|
|
685
|
+
retry: Retry.Retry,
|
|
686
|
+
telemetry: TELEMETRY,
|
|
687
|
+
span: "ListVolumeTypes",
|
|
688
|
+
pagination: {
|
|
689
|
+
mode: "token",
|
|
690
|
+
inputToken: "page_token",
|
|
691
|
+
outputToken: "next_page_token",
|
|
692
|
+
items: "volume_types",
|
|
693
|
+
pageSize: "page_size",
|
|
694
|
+
} as const,
|
|
695
|
+
}),
|
|
696
|
+
paginateToken,
|
|
697
|
+
) as any;
|
|
698
|
+
|
|
699
|
+
export type UpdateSnapshotError = ScalewayOpError;
|
|
700
|
+
/** Update a snapshot Update the properties of a snapshot. */
|
|
701
|
+
export const updateSnapshot: API.OperationMethod<
|
|
702
|
+
UpdateSnapshotRequest,
|
|
703
|
+
Snapshot,
|
|
704
|
+
UpdateSnapshotError,
|
|
705
|
+
ScalewayOpContext
|
|
706
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
707
|
+
input: __S(24, __c6, 0) as any as S.Schema<UpdateSnapshotRequest>,
|
|
708
|
+
output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
|
|
709
|
+
errors: [],
|
|
710
|
+
serviceErrors: ScalewayServiceErrors,
|
|
711
|
+
protocol: ScalewayProtocol,
|
|
712
|
+
retry: Retry.Retry,
|
|
713
|
+
telemetry: TELEMETRY,
|
|
714
|
+
span: "UpdateSnapshot",
|
|
715
|
+
}));
|
|
716
|
+
|
|
717
|
+
export type UpdateVolumeError = ScalewayOpError;
|
|
718
|
+
/** Update a volume Update the properties of a specified volume. */
|
|
719
|
+
export const updateVolume: API.OperationMethod<
|
|
720
|
+
UpdateVolumeRequest,
|
|
721
|
+
Volume,
|
|
722
|
+
UpdateVolumeError,
|
|
723
|
+
ScalewayOpContext
|
|
724
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
725
|
+
input: __S(32, __c8, 0) as any as S.Schema<UpdateVolumeRequest>,
|
|
726
|
+
output: __S(16, __c4, 0) as any as S.Schema<Volume>,
|
|
727
|
+
errors: [],
|
|
728
|
+
serviceErrors: ScalewayServiceErrors,
|
|
729
|
+
protocol: ScalewayProtocol,
|
|
730
|
+
retry: Retry.Retry,
|
|
731
|
+
telemetry: TELEMETRY,
|
|
732
|
+
span: "UpdateVolume",
|
|
733
|
+
}));
|
|
734
|
+
|
|
735
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
736
|
+
function __c0(j: number): any {
|
|
737
|
+
switch (j) {
|
|
738
|
+
case 0:
|
|
739
|
+
return S.suspend(() =>
|
|
740
|
+
S.Struct({
|
|
741
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
742
|
+
project_id: S.optional(S.String),
|
|
743
|
+
name: S.optional(S.String),
|
|
744
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
745
|
+
base_volume_id: S.optional(S.String),
|
|
746
|
+
public: S.optional(S.Boolean),
|
|
747
|
+
}).pipe(
|
|
748
|
+
T.Http({
|
|
749
|
+
method: "POST",
|
|
750
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots",
|
|
751
|
+
code: 200,
|
|
752
|
+
baseUrl: "https://api.scaleway.com",
|
|
753
|
+
}),
|
|
754
|
+
),
|
|
755
|
+
).annotate({ identifier: "CreateSnapshotRequest" });
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function __c1(j: number): any {
|
|
759
|
+
switch (j) {
|
|
760
|
+
case 0:
|
|
761
|
+
return S.Array(S.String);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function __c2(j: number): any {
|
|
765
|
+
switch (j) {
|
|
766
|
+
case 0:
|
|
767
|
+
return S.suspend(() =>
|
|
768
|
+
S.Struct({
|
|
769
|
+
id: S.optional(S.String),
|
|
770
|
+
srn: S.optional(S.String),
|
|
771
|
+
project_id: S.optional(S.String),
|
|
772
|
+
name: S.optional(S.String),
|
|
773
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
774
|
+
size: S.optional(S.Number),
|
|
775
|
+
status: S.optional(S.String),
|
|
776
|
+
base_volume_id: S.optional(S.NullOr(S.String)),
|
|
777
|
+
volume_type: S.optional(S.String),
|
|
778
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
779
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
780
|
+
zone: S.optional(S.String),
|
|
781
|
+
public: S.optional(S.Boolean),
|
|
782
|
+
}),
|
|
783
|
+
).annotate({ identifier: "Snapshot" });
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
function __c3(j: number): any {
|
|
787
|
+
switch (j) {
|
|
788
|
+
case 0:
|
|
789
|
+
return S.suspend(() =>
|
|
790
|
+
S.Struct({
|
|
791
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
792
|
+
project_id: S.optional(S.String),
|
|
793
|
+
name: S.optional(S.String),
|
|
794
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
795
|
+
size: S.optional(S.NullOr(S.Number)),
|
|
796
|
+
base_snapshot_id: S.optional(S.NullOr(S.String)),
|
|
797
|
+
volume_type: S.optional(S.String),
|
|
798
|
+
}).pipe(
|
|
799
|
+
T.Http({
|
|
800
|
+
method: "POST",
|
|
801
|
+
uri: "/instance/v2alpha1/zones/{zone}/volumes",
|
|
802
|
+
code: 200,
|
|
803
|
+
baseUrl: "https://api.scaleway.com",
|
|
804
|
+
}),
|
|
805
|
+
),
|
|
806
|
+
).annotate({ identifier: "CreateVolumeRequest" });
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
function __c4(j: number): any {
|
|
810
|
+
switch (j) {
|
|
811
|
+
case 0:
|
|
812
|
+
return S.suspend(() =>
|
|
813
|
+
S.Struct({
|
|
814
|
+
id: S.optional(S.String),
|
|
815
|
+
srn: S.optional(S.String),
|
|
816
|
+
project_id: S.optional(S.String),
|
|
817
|
+
name: S.optional(S.String),
|
|
818
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
819
|
+
size: S.optional(S.Number),
|
|
820
|
+
base_snapshot_id: S.optional(S.NullOr(S.String)),
|
|
821
|
+
status: S.optional(S.String),
|
|
822
|
+
volume_type: S.optional(S.String),
|
|
823
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
824
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
825
|
+
server_id: S.optional(S.NullOr(S.String)),
|
|
826
|
+
zone: S.optional(S.String),
|
|
827
|
+
}),
|
|
828
|
+
).annotate({ identifier: "Volume" });
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function __c5(j: number): any {
|
|
832
|
+
switch (j) {
|
|
833
|
+
case 0:
|
|
834
|
+
return S.suspend(() =>
|
|
835
|
+
S.Struct({
|
|
836
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
837
|
+
page_token: S.optional(S.String.pipe(T.Query())),
|
|
838
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
839
|
+
}).pipe(
|
|
840
|
+
T.Http({
|
|
841
|
+
method: "GET",
|
|
842
|
+
uri: "/instance/v2alpha1/zones/{zone}/volume-types",
|
|
843
|
+
code: 200,
|
|
844
|
+
baseUrl: "https://api.scaleway.com",
|
|
845
|
+
}),
|
|
846
|
+
),
|
|
847
|
+
).annotate({ identifier: "ListVolumeTypesRequest" });
|
|
848
|
+
case 1:
|
|
849
|
+
return S.suspend(() =>
|
|
850
|
+
S.Struct({
|
|
851
|
+
name: S.optional(S.String),
|
|
852
|
+
min_size: S.optional(S.Number),
|
|
853
|
+
max_size: S.optional(S.Number),
|
|
854
|
+
}),
|
|
855
|
+
).annotate({ identifier: "VolumeType" });
|
|
856
|
+
case 2:
|
|
857
|
+
return S.Array(__S(21, __c5, 1));
|
|
858
|
+
case 3:
|
|
859
|
+
return S.suspend(() =>
|
|
860
|
+
S.Struct({
|
|
861
|
+
volume_types: __S(22, __c5, 2),
|
|
862
|
+
next_page_token: S.optional(S.NullOr(S.String)),
|
|
863
|
+
total_count: S.optional(S.Number),
|
|
864
|
+
}),
|
|
865
|
+
).annotate({ identifier: "ListVolumeTypesResponse" });
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
function __c6(j: number): any {
|
|
869
|
+
switch (j) {
|
|
870
|
+
case 0:
|
|
871
|
+
return S.suspend(() =>
|
|
872
|
+
S.Struct({
|
|
873
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
874
|
+
snapshot_id: S.String.pipe(T.Label()),
|
|
875
|
+
name: S.optional(S.NullOr(S.String)),
|
|
876
|
+
tags: S.optional(S.NullOr(__S(28, __c7, 0))),
|
|
877
|
+
public: S.optional(S.NullOr(S.Boolean)),
|
|
878
|
+
}).pipe(
|
|
879
|
+
T.Http({
|
|
880
|
+
method: "PATCH",
|
|
881
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
|
|
882
|
+
code: 200,
|
|
883
|
+
baseUrl: "https://api.scaleway.com",
|
|
884
|
+
}),
|
|
885
|
+
),
|
|
886
|
+
).annotate({ identifier: "UpdateSnapshotRequest" });
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
function __c7(j: number): any {
|
|
890
|
+
switch (j) {
|
|
891
|
+
case 0:
|
|
892
|
+
return S.Array(S.Unknown);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
function __c8(j: number): any {
|
|
896
|
+
switch (j) {
|
|
897
|
+
case 0:
|
|
898
|
+
return S.suspend(() =>
|
|
899
|
+
S.Struct({
|
|
900
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
901
|
+
volume_id: S.String.pipe(T.Label()),
|
|
902
|
+
name: S.optional(S.NullOr(S.String)),
|
|
903
|
+
tags: S.optional(S.NullOr(__S(28, __c7, 0))),
|
|
904
|
+
size: S.optional(S.NullOr(S.Number)),
|
|
905
|
+
}).pipe(
|
|
906
|
+
T.Http({
|
|
907
|
+
method: "PATCH",
|
|
908
|
+
uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
|
|
909
|
+
code: 200,
|
|
910
|
+
baseUrl: "https://api.scaleway.com",
|
|
911
|
+
}),
|
|
912
|
+
),
|
|
913
|
+
).annotate({ identifier: "UpdateVolumeRequest" });
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
function __c9(j: number): any {
|
|
917
|
+
switch (j) {
|
|
918
|
+
case 0:
|
|
919
|
+
return S.suspend(() =>
|
|
920
|
+
S.Struct({
|
|
921
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
922
|
+
snapshot_id: S.String.pipe(T.Label()),
|
|
923
|
+
}).pipe(
|
|
924
|
+
T.Http({
|
|
925
|
+
method: "DELETE",
|
|
926
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
|
|
927
|
+
code: 200,
|
|
928
|
+
baseUrl: "https://api.scaleway.com",
|
|
929
|
+
}),
|
|
930
|
+
),
|
|
931
|
+
).annotate({ identifier: "DeleteSnapshotRequest" });
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function __c10(j: number): any {
|
|
935
|
+
switch (j) {
|
|
936
|
+
case 0:
|
|
937
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteSnapshotResponse" });
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
function __c11(j: number): any {
|
|
941
|
+
switch (j) {
|
|
942
|
+
case 0:
|
|
943
|
+
return S.suspend(() =>
|
|
944
|
+
S.Struct({
|
|
945
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
946
|
+
volume_id: S.String.pipe(T.Label()),
|
|
947
|
+
}).pipe(
|
|
948
|
+
T.Http({
|
|
949
|
+
method: "DELETE",
|
|
950
|
+
uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
|
|
951
|
+
code: 200,
|
|
952
|
+
baseUrl: "https://api.scaleway.com",
|
|
953
|
+
}),
|
|
954
|
+
),
|
|
955
|
+
).annotate({ identifier: "DeleteVolumeRequest" });
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
function __c12(j: number): any {
|
|
959
|
+
switch (j) {
|
|
960
|
+
case 0:
|
|
961
|
+
return S.suspend(() =>
|
|
962
|
+
S.Struct({
|
|
963
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
964
|
+
snapshot_id: S.String.pipe(T.Label()),
|
|
965
|
+
bucket: S.optional(S.String),
|
|
966
|
+
object_key: S.optional(S.String),
|
|
967
|
+
}).pipe(
|
|
968
|
+
T.Http({
|
|
969
|
+
method: "POST",
|
|
970
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}/export-to-object-storage",
|
|
971
|
+
code: 200,
|
|
972
|
+
baseUrl: "https://api.scaleway.com",
|
|
973
|
+
}),
|
|
974
|
+
),
|
|
975
|
+
).annotate({ identifier: "ExportSnapshotToObjectStorageRequest" });
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function __c13(j: number): any {
|
|
979
|
+
switch (j) {
|
|
980
|
+
case 0:
|
|
981
|
+
return S.suspend(() =>
|
|
982
|
+
S.Struct({
|
|
983
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
984
|
+
snapshot_id: S.String.pipe(T.Label()),
|
|
985
|
+
}).pipe(
|
|
986
|
+
T.Http({
|
|
987
|
+
method: "GET",
|
|
988
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
|
|
989
|
+
code: 200,
|
|
990
|
+
baseUrl: "https://api.scaleway.com",
|
|
991
|
+
}),
|
|
992
|
+
),
|
|
993
|
+
).annotate({ identifier: "GetSnapshotRequest" });
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
function __c14(j: number): any {
|
|
997
|
+
switch (j) {
|
|
998
|
+
case 0:
|
|
999
|
+
return S.suspend(() =>
|
|
1000
|
+
S.Struct({
|
|
1001
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1002
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1003
|
+
}).pipe(
|
|
1004
|
+
T.Http({
|
|
1005
|
+
method: "GET",
|
|
1006
|
+
uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
|
|
1007
|
+
code: 200,
|
|
1008
|
+
baseUrl: "https://api.scaleway.com",
|
|
1009
|
+
}),
|
|
1010
|
+
),
|
|
1011
|
+
).annotate({ identifier: "GetVolumeRequest" });
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
function __c15(j: number): any {
|
|
1015
|
+
switch (j) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
return S.suspend(() =>
|
|
1018
|
+
S.Struct({
|
|
1019
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1020
|
+
project_id: S.optional(S.String),
|
|
1021
|
+
name: S.optional(S.String),
|
|
1022
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
1023
|
+
bucket: S.optional(S.String),
|
|
1024
|
+
object_key: S.optional(S.String),
|
|
1025
|
+
size: S.optional(S.NullOr(S.Number)),
|
|
1026
|
+
volume_type: S.optional(S.String),
|
|
1027
|
+
}).pipe(
|
|
1028
|
+
T.Http({
|
|
1029
|
+
method: "POST",
|
|
1030
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots/import-from-object-storage",
|
|
1031
|
+
code: 200,
|
|
1032
|
+
baseUrl: "https://api.scaleway.com",
|
|
1033
|
+
}),
|
|
1034
|
+
),
|
|
1035
|
+
).annotate({ identifier: "ImportSnapshotFromObjectStorageRequest" });
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
function __c16(j: number): any {
|
|
1039
|
+
switch (j) {
|
|
1040
|
+
case 0:
|
|
1041
|
+
return S.suspend(() =>
|
|
1042
|
+
S.Struct({
|
|
1043
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1044
|
+
page_token: S.optional(S.String.pipe(T.Query())),
|
|
1045
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1046
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1047
|
+
project_id: S.String.pipe(T.Query()),
|
|
1048
|
+
snapshot_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1049
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1050
|
+
tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1051
|
+
base_volume_id: S.optional(S.String.pipe(T.Query())),
|
|
1052
|
+
}).pipe(
|
|
1053
|
+
T.Http({
|
|
1054
|
+
method: "GET",
|
|
1055
|
+
uri: "/instance/v2alpha1/zones/{zone}/snapshots",
|
|
1056
|
+
code: 200,
|
|
1057
|
+
baseUrl: "https://api.scaleway.com",
|
|
1058
|
+
}),
|
|
1059
|
+
),
|
|
1060
|
+
).annotate({ identifier: "ListSnapshotsRequest" });
|
|
1061
|
+
case 1:
|
|
1062
|
+
return S.Array(__S(8, __c2, 0));
|
|
1063
|
+
case 2:
|
|
1064
|
+
return S.suspend(() =>
|
|
1065
|
+
S.Struct({
|
|
1066
|
+
snapshots: __S(65, __c16, 1),
|
|
1067
|
+
next_page_token: S.optional(S.NullOr(S.String)),
|
|
1068
|
+
total_count: S.optional(S.Number),
|
|
1069
|
+
}),
|
|
1070
|
+
).annotate({ identifier: "ListSnapshotsResponse" });
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
function __c17(j: number): any {
|
|
1074
|
+
switch (j) {
|
|
1075
|
+
case 0:
|
|
1076
|
+
return S.suspend(() =>
|
|
1077
|
+
S.Struct({
|
|
1078
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1079
|
+
page_token: S.optional(S.String.pipe(T.Query())),
|
|
1080
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1081
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1082
|
+
project_id: S.String.pipe(T.Query()),
|
|
1083
|
+
volume_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1084
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1085
|
+
tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1086
|
+
volume_type: S.optional(S.String.pipe(T.Query())),
|
|
1087
|
+
}).pipe(
|
|
1088
|
+
T.Http({
|
|
1089
|
+
method: "GET",
|
|
1090
|
+
uri: "/instance/v2alpha1/zones/{zone}/volumes",
|
|
1091
|
+
code: 200,
|
|
1092
|
+
baseUrl: "https://api.scaleway.com",
|
|
1093
|
+
}),
|
|
1094
|
+
),
|
|
1095
|
+
).annotate({ identifier: "ListVolumesRequest" });
|
|
1096
|
+
case 1:
|
|
1097
|
+
return S.Array(__S(16, __c4, 0));
|
|
1098
|
+
case 2:
|
|
1099
|
+
return S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
volumes: __S(69, __c17, 1),
|
|
1102
|
+
next_page_token: S.optional(S.NullOr(S.String)),
|
|
1103
|
+
total_count: S.optional(S.Number),
|
|
1104
|
+
}),
|
|
1105
|
+
).annotate({ identifier: "ListVolumesResponse" });
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1109
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1110
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1111
|
+
}
|