@scaleway/sdk 2.45.0 → 2.47.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/api/account/index.gen.d.ts +6 -0
- package/dist/api/applesilicon/index.gen.d.ts +5 -0
- package/dist/api/baremetal/index.gen.d.ts +5 -0
- package/dist/api/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +61 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +61 -1
- package/dist/api/baremetal/v1/types.gen.d.ts +120 -1
- package/dist/api/billing/index.gen.d.ts +6 -0
- package/dist/api/block/index.gen.d.ts +5 -0
- package/dist/api/cockpit/index.gen.d.ts +6 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +1 -1
- package/dist/api/container/index.gen.d.ts +5 -0
- package/dist/api/container/v1beta1/api.gen.cjs +0 -23
- package/dist/api/container/v1beta1/api.gen.d.ts +1 -9
- package/dist/api/container/v1beta1/api.gen.js +1 -24
- package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +0 -12
- package/dist/api/dedibox/index.gen.d.ts +5 -0
- package/dist/api/document_db/index.gen.d.ts +5 -0
- package/dist/api/domain/index.gen.d.ts +5 -0
- package/dist/api/edge_services/index.gen.d.ts +5 -0
- package/dist/api/edge_services/v1alpha1/api.gen.cjs +599 -0
- package/dist/api/edge_services/v1alpha1/api.gen.js +599 -0
- package/dist/api/edge_services/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/edge_services/v1alpha1/content.gen.js +8 -0
- package/dist/api/edge_services/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/edge_services/v1alpha1/index.gen.js +7 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +434 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +434 -0
- package/dist/api/flexibleip/index.gen.d.ts +5 -0
- package/dist/api/function/index.gen.d.ts +5 -0
- package/dist/api/function/v1beta1/api.gen.cjs +0 -23
- package/dist/api/function/v1beta1/api.gen.d.ts +1 -9
- package/dist/api/function/v1beta1/api.gen.js +1 -24
- package/dist/api/function/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +0 -12
- package/dist/api/iam/index.gen.d.ts +5 -0
- package/dist/api/iam/v1alpha1/api.gen.cjs +1 -1
- package/dist/api/iam/v1alpha1/api.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/api.gen.js +1 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +17 -3
- package/dist/api/iam/v1alpha1/marshalling.gen.js +17 -3
- package/dist/api/iam/v1alpha1/types.gen.d.ts +27 -3
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +11 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +12 -0
- package/dist/api/index.d.ts +65 -35
- package/dist/api/index.gen.d.ts +43 -0
- package/dist/api/inference/index.gen.d.ts +5 -0
- package/dist/api/inference/v1beta1/api.gen.cjs +306 -0
- package/dist/api/inference/v1beta1/api.gen.js +306 -0
- package/dist/api/inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/inference/v1beta1/content.gen.js +8 -0
- package/dist/api/inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/inference/v1beta1/index.gen.js +8 -0
- package/dist/api/inference/v1beta1/marshalling.gen.cjs +273 -0
- package/dist/api/inference/v1beta1/marshalling.gen.js +273 -0
- package/dist/api/inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/inference/v1beta1/validation-rules.gen.js +56 -0
- package/dist/api/instance/index.gen.d.ts +5 -0
- package/dist/api/instance/v1/marshalling.gen.cjs +1 -0
- package/dist/api/instance/v1/marshalling.gen.js +1 -0
- package/dist/api/instance/v1/types.gen.d.ts +22 -8
- package/dist/api/instance/v1/types.private.gen.d.ts +2 -2
- package/dist/api/iot/index.gen.d.ts +5 -0
- package/dist/api/ipam/index.gen.d.ts +5 -0
- package/dist/api/ipam/v1/api.gen.cjs +67 -2
- package/dist/api/ipam/v1/api.gen.d.ts +38 -3
- package/dist/api/ipam/v1/api.gen.js +68 -3
- package/dist/api/ipam/v1/index.gen.d.ts +1 -1
- package/dist/api/ipam/v1/marshalling.gen.cjs +18 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +4 -1
- package/dist/api/ipam/v1/marshalling.gen.js +18 -0
- package/dist/api/ipam/v1/types.gen.d.ts +59 -5
- package/dist/api/ipfs/index.gen.d.ts +5 -0
- package/dist/api/jobs/index.gen.d.ts +5 -0
- package/dist/api/k8s/index.gen.d.ts +5 -0
- package/dist/api/k8s/v1/api.gen.cjs +17 -0
- package/dist/api/k8s/v1/api.gen.d.ts +10 -1
- package/dist/api/k8s/v1/api.gen.js +17 -0
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/types.gen.d.ts +13 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +62 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +66 -1
- package/dist/api/key_manager/index.gen.d.ts +5 -0
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +31 -0
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +17 -1
- package/dist/api/key_manager/v1alpha1/api.gen.js +32 -1
- package/dist/api/key_manager/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/key_manager/v1alpha1/marshalling.gen.cjs +7 -0
- package/dist/api/key_manager/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/key_manager/v1alpha1/marshalling.gen.js +7 -0
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +33 -0
- package/dist/api/lb/index.gen.d.ts +5 -0
- package/dist/api/llm_inference/index.gen.d.ts +5 -0
- package/dist/api/marketplace/index.gen.d.ts +5 -0
- package/dist/api/mnq/index.gen.cjs +4 -0
- package/dist/api/mnq/index.gen.d.ts +5 -0
- package/dist/api/mnq/index.gen.js +4 -0
- package/dist/api/qaas/index.gen.d.ts +5 -0
- package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -0
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +256 -0
- package/dist/api/qaas/v1alpha1/api.gen.js +527 -0
- package/dist/api/qaas/v1alpha1/content.gen.cjs +19 -0
- package/dist/api/qaas/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/qaas/v1alpha1/content.gen.js +19 -0
- package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/qaas/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/qaas/v1alpha1/index.gen.js +10 -0
- package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +320 -0
- package/dist/api/qaas/v1alpha1/marshalling.gen.d.ts +22 -0
- package/dist/api/qaas/v1alpha1/marshalling.gen.js +320 -0
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +470 -0
- package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
- package/dist/api/qaas/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
- package/dist/api/rdb/index.gen.d.ts +5 -0
- package/dist/api/redis/index.gen.d.ts +5 -0
- package/dist/api/registry/index.gen.d.ts +5 -0
- package/dist/api/secret/index.gen.d.ts +6 -0
- package/dist/api/serverless_sqldb/index.gen.d.ts +5 -0
- package/dist/api/tem/index.gen.cjs +4 -0
- package/dist/api/tem/index.gen.d.ts +5 -0
- package/dist/api/tem/index.gen.js +4 -0
- package/dist/api/tem/v1alpha1/api.gen.cjs +32 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +17 -1
- package/dist/api/tem/v1alpha1/api.gen.js +33 -1
- package/dist/api/tem/v1alpha1/content.gen.cjs +4 -1
- package/dist/api/tem/v1alpha1/content.gen.js +4 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +36 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +3 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +36 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +52 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
- package/dist/api/test/index.gen.d.ts +5 -0
- package/dist/api/vpc/index.gen.d.ts +6 -0
- package/dist/api/vpc/v2/marshalling.gen.cjs +1 -0
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpc/v2/types.gen.d.ts +3 -0
- package/dist/api/vpcgw/index.gen.d.ts +5 -0
- package/dist/api/webhosting/index.gen.cjs +6 -0
- package/dist/api/webhosting/index.gen.d.ts +6 -0
- package/dist/api/webhosting/index.gen.js +6 -0
- package/dist/api/webhosting/v1/api.gen.cjs +620 -0
- package/dist/api/webhosting/v1/api.gen.d.ts +326 -0
- package/dist/api/webhosting/v1/api.gen.js +620 -0
- package/dist/api/webhosting/v1/content.gen.cjs +14 -0
- package/dist/api/webhosting/v1/content.gen.d.ts +5 -0
- package/dist/api/webhosting/v1/content.gen.js +14 -0
- package/dist/api/webhosting/v1/index.gen.cjs +15 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1/index.gen.js +15 -0
- package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +29 -0
- package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +698 -0
- package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -0
- package/dist/api/webhosting/v1/validation-rules.gen.d.ts +72 -0
- package/dist/api/webhosting/v1/validation-rules.gen.js +82 -0
- package/dist/index.cjs +92 -70
- package/dist/index.js +92 -70
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
- package/dist/api/account/index.d.ts +0 -2
- package/dist/api/applesilicon/index.d.ts +0 -1
- package/dist/api/baremetal/index.d.ts +0 -1
- package/dist/api/billing/index.d.ts +0 -2
- package/dist/api/block/index.d.ts +0 -1
- package/dist/api/cockpit/index.d.ts +0 -2
- package/dist/api/container/index.d.ts +0 -1
- package/dist/api/dedibox/index.d.ts +0 -1
- package/dist/api/document_db/index.d.ts +0 -1
- package/dist/api/domain/index.d.ts +0 -1
- package/dist/api/edge_services/index.d.ts +0 -1
- package/dist/api/flexibleip/index.d.ts +0 -1
- package/dist/api/function/index.d.ts +0 -1
- package/dist/api/iam/index.d.ts +0 -1
- package/dist/api/instance/index.d.ts +0 -1
- package/dist/api/iot/index.d.ts +0 -1
- package/dist/api/ipam/index.d.ts +0 -1
- package/dist/api/ipfs/index.d.ts +0 -1
- package/dist/api/jobs/index.d.ts +0 -1
- package/dist/api/k8s/index.d.ts +0 -1
- package/dist/api/key_manager/index.d.ts +0 -1
- package/dist/api/lb/index.d.ts +0 -1
- package/dist/api/llm_inference/index.d.ts +0 -1
- package/dist/api/marketplace/index.d.ts +0 -1
- package/dist/api/mnq/index.d.ts +0 -1
- package/dist/api/rdb/index.d.ts +0 -1
- package/dist/api/redis/index.d.ts +0 -1
- package/dist/api/registry/index.d.ts +0 -1
- package/dist/api/secret/index.d.ts +0 -2
- package/dist/api/serverless_sqldb/index.d.ts +0 -1
- package/dist/api/tem/index.d.ts +0 -1
- package/dist/api/test/index.d.ts +0 -1
- package/dist/api/vpc/index.d.ts +0 -2
- package/dist/api/vpcgw/index.d.ts +0 -1
- package/dist/api/webhosting/index.d.ts +0 -1
- /package/dist/api/account/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/account/{index.js → index.gen.js} +0 -0
- /package/dist/api/applesilicon/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/applesilicon/{index.js → index.gen.js} +0 -0
- /package/dist/api/baremetal/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/baremetal/{index.js → index.gen.js} +0 -0
- /package/dist/api/billing/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/billing/{index.js → index.gen.js} +0 -0
- /package/dist/api/block/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/block/{index.js → index.gen.js} +0 -0
- /package/dist/api/cockpit/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/cockpit/{index.js → index.gen.js} +0 -0
- /package/dist/api/container/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/container/{index.js → index.gen.js} +0 -0
- /package/dist/api/dedibox/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/dedibox/{index.js → index.gen.js} +0 -0
- /package/dist/api/document_db/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/document_db/{index.js → index.gen.js} +0 -0
- /package/dist/api/domain/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/domain/{index.js → index.gen.js} +0 -0
- /package/dist/api/{flexibleip/index.cjs → edge_services/index.gen.cjs} +0 -0
- /package/dist/api/{flexibleip/index.js → edge_services/index.gen.js} +0 -0
- /package/dist/api/{iam/index.cjs → flexibleip/index.gen.cjs} +0 -0
- /package/dist/api/{iam/index.js → flexibleip/index.gen.js} +0 -0
- /package/dist/api/function/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/function/{index.js → index.gen.js} +0 -0
- /package/dist/api/{ipfs/index.cjs → iam/index.gen.cjs} +0 -0
- /package/dist/api/{ipfs/index.js → iam/index.gen.js} +0 -0
- /package/dist/api/{llm_inference/index.cjs → inference/index.gen.cjs} +0 -0
- /package/dist/api/{llm_inference/index.js → inference/index.gen.js} +0 -0
- /package/dist/api/instance/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/instance/{index.js → index.gen.js} +0 -0
- /package/dist/api/iot/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/iot/{index.js → index.gen.js} +0 -0
- /package/dist/api/ipam/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/ipam/{index.js → index.gen.js} +0 -0
- /package/dist/api/{jobs/index.cjs → ipfs/index.gen.cjs} +0 -0
- /package/dist/api/{jobs/index.js → ipfs/index.gen.js} +0 -0
- /package/dist/api/{key_manager/index.cjs → jobs/index.gen.cjs} +0 -0
- /package/dist/api/{key_manager/index.js → jobs/index.gen.js} +0 -0
- /package/dist/api/k8s/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/k8s/{index.js → index.gen.js} +0 -0
- /package/dist/api/{serverless_sqldb/index.cjs → key_manager/index.gen.cjs} +0 -0
- /package/dist/api/{serverless_sqldb/index.js → key_manager/index.gen.js} +0 -0
- /package/dist/api/lb/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/lb/{index.js → index.gen.js} +0 -0
- /package/dist/api/{mnq/index.cjs → llm_inference/index.gen.cjs} +0 -0
- /package/dist/api/{mnq/index.js → llm_inference/index.gen.js} +0 -0
- /package/dist/api/marketplace/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/marketplace/{index.js → index.gen.js} +0 -0
- /package/dist/api/{tem/index.cjs → qaas/index.gen.cjs} +0 -0
- /package/dist/api/{tem/index.js → qaas/index.gen.js} +0 -0
- /package/dist/api/rdb/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/rdb/{index.js → index.gen.js} +0 -0
- /package/dist/api/redis/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/redis/{index.js → index.gen.js} +0 -0
- /package/dist/api/registry/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/registry/{index.js → index.gen.js} +0 -0
- /package/dist/api/secret/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/secret/{index.js → index.gen.js} +0 -0
- /package/dist/api/{webhosting/index.cjs → serverless_sqldb/index.gen.cjs} +0 -0
- /package/dist/api/{webhosting/index.js → serverless_sqldb/index.gen.js} +0 -0
- /package/dist/api/test/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/test/{index.js → index.gen.js} +0 -0
- /package/dist/api/vpc/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/vpc/{index.js → index.gen.js} +0 -0
- /package/dist/api/vpcgw/{index.cjs → index.gen.cjs} +0 -0
- /package/dist/api/vpcgw/{index.js → index.gen.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API, PrivateNetworkAPI } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { AddOptionServerRequest, BMCAccess, CPU, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RaidController, RebootServerRequest, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, } from './types.gen';
|
|
3
|
+
export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -38,6 +38,7 @@ const unmarshalOS = (data) => {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
allowed: data.allowed,
|
|
41
|
+
customPartitioningSupported: data.custom_partitioning_supported,
|
|
41
42
|
enabled: data.enabled,
|
|
42
43
|
id: data.id,
|
|
43
44
|
licenseRequired: data.license_required,
|
|
@@ -51,6 +52,50 @@ const unmarshalOS = (data) => {
|
|
|
51
52
|
version: data.version
|
|
52
53
|
};
|
|
53
54
|
};
|
|
55
|
+
const unmarshalCertificationOption = (data) => {
|
|
56
|
+
if (!json.isJSONObject(data)) {
|
|
57
|
+
throw new TypeError(
|
|
58
|
+
`Unmarshalling the type 'CertificationOption' failed as data isn't a dictionary.`
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
return {};
|
|
62
|
+
};
|
|
63
|
+
const unmarshalLicenseOption = (data) => {
|
|
64
|
+
if (!json.isJSONObject(data)) {
|
|
65
|
+
throw new TypeError(
|
|
66
|
+
`Unmarshalling the type 'LicenseOption' failed as data isn't a dictionary.`
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
osId: data.os_id
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const unmarshalPrivateNetworkOption = (data) => {
|
|
74
|
+
if (!json.isJSONObject(data)) {
|
|
75
|
+
throw new TypeError(
|
|
76
|
+
`Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return {};
|
|
80
|
+
};
|
|
81
|
+
const unmarshalPublicBandwidthOption = (data) => {
|
|
82
|
+
if (!json.isJSONObject(data)) {
|
|
83
|
+
throw new TypeError(
|
|
84
|
+
`Unmarshalling the type 'PublicBandwidthOption' failed as data isn't a dictionary.`
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
bandwidthInBps: data.bandwidth_in_bps
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const unmarshalRemoteAccessOption = (data) => {
|
|
92
|
+
if (!json.isJSONObject(data)) {
|
|
93
|
+
throw new TypeError(
|
|
94
|
+
`Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return {};
|
|
98
|
+
};
|
|
54
99
|
const unmarshalCPU = (data) => {
|
|
55
100
|
if (!json.isJSONObject(data)) {
|
|
56
101
|
throw new TypeError(
|
|
@@ -96,12 +141,17 @@ const unmarshalOfferOptionOffer = (data) => {
|
|
|
96
141
|
);
|
|
97
142
|
}
|
|
98
143
|
return {
|
|
144
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
99
145
|
enabled: data.enabled,
|
|
100
146
|
id: data.id,
|
|
147
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
101
148
|
manageable: data.manageable,
|
|
102
149
|
name: data.name,
|
|
103
150
|
osId: data.os_id,
|
|
104
151
|
price: data.price ? customMarshalling.unmarshalMoney(data.price) : void 0,
|
|
152
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
153
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
154
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
|
|
105
155
|
subscriptionPeriod: data.subscription_period
|
|
106
156
|
};
|
|
107
157
|
};
|
|
@@ -173,9 +223,14 @@ const unmarshalOption = (data) => {
|
|
|
173
223
|
);
|
|
174
224
|
}
|
|
175
225
|
return {
|
|
226
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
176
227
|
id: data.id,
|
|
228
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
177
229
|
manageable: data.manageable,
|
|
178
|
-
name: data.name
|
|
230
|
+
name: data.name,
|
|
231
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
232
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
233
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
|
|
179
234
|
};
|
|
180
235
|
};
|
|
181
236
|
const unmarshalServerPrivateNetwork = (data) => {
|
|
@@ -218,10 +273,15 @@ const unmarshalServerOption = (data) => {
|
|
|
218
273
|
);
|
|
219
274
|
}
|
|
220
275
|
return {
|
|
276
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
221
277
|
expiresAt: marshalling.unmarshalDate(data.expires_at),
|
|
222
278
|
id: data.id,
|
|
279
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
223
280
|
manageable: data.manageable,
|
|
224
281
|
name: data.name,
|
|
282
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
283
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
284
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
|
|
225
285
|
status: data.status
|
|
226
286
|
};
|
|
227
287
|
};
|
|
@@ -36,6 +36,7 @@ const unmarshalOS = (data) => {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
allowed: data.allowed,
|
|
39
|
+
customPartitioningSupported: data.custom_partitioning_supported,
|
|
39
40
|
enabled: data.enabled,
|
|
40
41
|
id: data.id,
|
|
41
42
|
licenseRequired: data.license_required,
|
|
@@ -49,6 +50,50 @@ const unmarshalOS = (data) => {
|
|
|
49
50
|
version: data.version
|
|
50
51
|
};
|
|
51
52
|
};
|
|
53
|
+
const unmarshalCertificationOption = (data) => {
|
|
54
|
+
if (!isJSONObject(data)) {
|
|
55
|
+
throw new TypeError(
|
|
56
|
+
`Unmarshalling the type 'CertificationOption' failed as data isn't a dictionary.`
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
return {};
|
|
60
|
+
};
|
|
61
|
+
const unmarshalLicenseOption = (data) => {
|
|
62
|
+
if (!isJSONObject(data)) {
|
|
63
|
+
throw new TypeError(
|
|
64
|
+
`Unmarshalling the type 'LicenseOption' failed as data isn't a dictionary.`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
osId: data.os_id
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
const unmarshalPrivateNetworkOption = (data) => {
|
|
72
|
+
if (!isJSONObject(data)) {
|
|
73
|
+
throw new TypeError(
|
|
74
|
+
`Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return {};
|
|
78
|
+
};
|
|
79
|
+
const unmarshalPublicBandwidthOption = (data) => {
|
|
80
|
+
if (!isJSONObject(data)) {
|
|
81
|
+
throw new TypeError(
|
|
82
|
+
`Unmarshalling the type 'PublicBandwidthOption' failed as data isn't a dictionary.`
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
bandwidthInBps: data.bandwidth_in_bps
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
const unmarshalRemoteAccessOption = (data) => {
|
|
90
|
+
if (!isJSONObject(data)) {
|
|
91
|
+
throw new TypeError(
|
|
92
|
+
`Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return {};
|
|
96
|
+
};
|
|
52
97
|
const unmarshalCPU = (data) => {
|
|
53
98
|
if (!isJSONObject(data)) {
|
|
54
99
|
throw new TypeError(
|
|
@@ -94,12 +139,17 @@ const unmarshalOfferOptionOffer = (data) => {
|
|
|
94
139
|
);
|
|
95
140
|
}
|
|
96
141
|
return {
|
|
142
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
97
143
|
enabled: data.enabled,
|
|
98
144
|
id: data.id,
|
|
145
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
99
146
|
manageable: data.manageable,
|
|
100
147
|
name: data.name,
|
|
101
148
|
osId: data.os_id,
|
|
102
149
|
price: data.price ? unmarshalMoney(data.price) : void 0,
|
|
150
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
151
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
152
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
|
|
103
153
|
subscriptionPeriod: data.subscription_period
|
|
104
154
|
};
|
|
105
155
|
};
|
|
@@ -171,9 +221,14 @@ const unmarshalOption = (data) => {
|
|
|
171
221
|
);
|
|
172
222
|
}
|
|
173
223
|
return {
|
|
224
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
174
225
|
id: data.id,
|
|
226
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
175
227
|
manageable: data.manageable,
|
|
176
|
-
name: data.name
|
|
228
|
+
name: data.name,
|
|
229
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
230
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
231
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
|
|
177
232
|
};
|
|
178
233
|
};
|
|
179
234
|
const unmarshalServerPrivateNetwork = (data) => {
|
|
@@ -216,10 +271,15 @@ const unmarshalServerOption = (data) => {
|
|
|
216
271
|
);
|
|
217
272
|
}
|
|
218
273
|
return {
|
|
274
|
+
certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
|
|
219
275
|
expiresAt: unmarshalDate(data.expires_at),
|
|
220
276
|
id: data.id,
|
|
277
|
+
license: data.license ? unmarshalLicenseOption(data.license) : void 0,
|
|
221
278
|
manageable: data.manageable,
|
|
222
279
|
name: data.name,
|
|
280
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
|
|
281
|
+
publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
|
|
282
|
+
remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
|
|
223
283
|
status: data.status
|
|
224
284
|
};
|
|
225
285
|
};
|
|
@@ -14,6 +14,18 @@ export type ServerPingStatus = 'ping_status_unknown' | 'ping_status_up' | 'ping_
|
|
|
14
14
|
export type ServerPrivateNetworkStatus = 'unknown' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
|
|
15
15
|
export type ServerStatus = 'unknown' | 'delivering' | 'ready' | 'stopping' | 'stopped' | 'starting' | 'error' | 'deleting' | 'locked' | 'out_of_stock' | 'ordered' | 'resetting';
|
|
16
16
|
export type SettingType = 'unknown' | 'smtp';
|
|
17
|
+
export interface CertificationOption {
|
|
18
|
+
}
|
|
19
|
+
export interface LicenseOption {
|
|
20
|
+
osId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PrivateNetworkOption {
|
|
23
|
+
}
|
|
24
|
+
export interface PublicBandwidthOption {
|
|
25
|
+
bandwidthInBps: number;
|
|
26
|
+
}
|
|
27
|
+
export interface RemoteAccessOption {
|
|
28
|
+
}
|
|
17
29
|
export interface OSOSField {
|
|
18
30
|
editable: boolean;
|
|
19
31
|
required: boolean;
|
|
@@ -63,8 +75,43 @@ export interface OfferOptionOffer {
|
|
|
63
75
|
price?: Money;
|
|
64
76
|
/** Boolean to know if option could be managed. */
|
|
65
77
|
manageable: boolean;
|
|
66
|
-
/**
|
|
78
|
+
/** @deprecated Deprecated, use LicenseOptionVars.os_id instead. */
|
|
67
79
|
osId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* License option, contains the ID of the OS linked to the option.
|
|
82
|
+
*
|
|
83
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
84
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
85
|
+
*/
|
|
86
|
+
license?: LicenseOption;
|
|
87
|
+
/**
|
|
88
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
89
|
+
*
|
|
90
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
91
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
92
|
+
*/
|
|
93
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
94
|
+
/**
|
|
95
|
+
* Private_network option.
|
|
96
|
+
*
|
|
97
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
98
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
99
|
+
*/
|
|
100
|
+
privateNetwork?: PrivateNetworkOption;
|
|
101
|
+
/**
|
|
102
|
+
* Remote_access option.
|
|
103
|
+
*
|
|
104
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
105
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
106
|
+
*/
|
|
107
|
+
remoteAccess?: RemoteAccessOption;
|
|
108
|
+
/**
|
|
109
|
+
* Certification option.
|
|
110
|
+
*
|
|
111
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
112
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
113
|
+
*/
|
|
114
|
+
certification?: CertificationOption;
|
|
68
115
|
}
|
|
69
116
|
export interface PersistentMemory {
|
|
70
117
|
/** Capacity of the memory in bytes. */
|
|
@@ -125,6 +172,41 @@ export interface ServerOption {
|
|
|
125
172
|
manageable: boolean;
|
|
126
173
|
/** Auto expiration date for compatible options. */
|
|
127
174
|
expiresAt?: Date;
|
|
175
|
+
/**
|
|
176
|
+
* License option, contains the ID of the OS linked to the option.
|
|
177
|
+
*
|
|
178
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
179
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
180
|
+
*/
|
|
181
|
+
license?: LicenseOption;
|
|
182
|
+
/**
|
|
183
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
184
|
+
*
|
|
185
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
186
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
187
|
+
*/
|
|
188
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
189
|
+
/**
|
|
190
|
+
* Private_network option.
|
|
191
|
+
*
|
|
192
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
193
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
194
|
+
*/
|
|
195
|
+
privateNetwork?: PrivateNetworkOption;
|
|
196
|
+
/**
|
|
197
|
+
* Remote_access option.
|
|
198
|
+
*
|
|
199
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
200
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
201
|
+
*/
|
|
202
|
+
remoteAccess?: RemoteAccessOption;
|
|
203
|
+
/**
|
|
204
|
+
* Certification option.
|
|
205
|
+
*
|
|
206
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
207
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
208
|
+
*/
|
|
209
|
+
certification?: CertificationOption;
|
|
128
210
|
}
|
|
129
211
|
export interface ServerRescueServer {
|
|
130
212
|
/** Rescue user name. */
|
|
@@ -173,6 +255,8 @@ export interface OS {
|
|
|
173
255
|
licenseRequired: boolean;
|
|
174
256
|
/** Defines if a specific Organization is allowed to install this OS type. */
|
|
175
257
|
allowed: boolean;
|
|
258
|
+
/** Defines if custom partitioning is supported by this OS. */
|
|
259
|
+
customPartitioningSupported: boolean;
|
|
176
260
|
}
|
|
177
261
|
export interface Offer {
|
|
178
262
|
/** ID of the offer. */
|
|
@@ -238,6 +322,41 @@ export interface Option {
|
|
|
238
322
|
name: string;
|
|
239
323
|
/** Defines whether the option is manageable (could be added or removed). */
|
|
240
324
|
manageable: boolean;
|
|
325
|
+
/**
|
|
326
|
+
* License option, contains the ID of the OS linked to the option.
|
|
327
|
+
*
|
|
328
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
329
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
330
|
+
*/
|
|
331
|
+
license?: LicenseOption;
|
|
332
|
+
/**
|
|
333
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
334
|
+
*
|
|
335
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
336
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
337
|
+
*/
|
|
338
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
339
|
+
/**
|
|
340
|
+
* Private_network option.
|
|
341
|
+
*
|
|
342
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
343
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
344
|
+
*/
|
|
345
|
+
privateNetwork?: PrivateNetworkOption;
|
|
346
|
+
/**
|
|
347
|
+
* Remote_access option.
|
|
348
|
+
*
|
|
349
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
350
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
351
|
+
*/
|
|
352
|
+
remoteAccess?: RemoteAccessOption;
|
|
353
|
+
/**
|
|
354
|
+
* Certification option.
|
|
355
|
+
*
|
|
356
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth',
|
|
357
|
+
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
358
|
+
*/
|
|
359
|
+
certification?: CertificationOption;
|
|
241
360
|
}
|
|
242
361
|
export interface ServerEvent {
|
|
243
362
|
/** ID of the server to which the action will be applied. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Region } from '../../../bridge';
|
|
2
2
|
export type DataSourceOrigin = 'unknown_origin' | 'scaleway' | 'external';
|
|
3
|
-
export type DataSourceType = 'unknown_type' | 'metrics' | 'logs' | 'traces';
|
|
3
|
+
export type DataSourceType = 'unknown_type' | 'metrics' | 'logs' | 'traces' | 'alerts';
|
|
4
4
|
export type GrafanaUserRole = 'unknown_role' | 'editor' | 'viewer';
|
|
5
5
|
export type ListDataSourcesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
|
|
6
6
|
export type ListGrafanaUsersRequestOrderBy = 'login_asc' | 'login_desc';
|
|
@@ -407,29 +407,6 @@ class API extends api.API {
|
|
|
407
407
|
},
|
|
408
408
|
marshalling_gen.unmarshalDomain
|
|
409
409
|
);
|
|
410
|
-
/**
|
|
411
|
-
* Create a JWT token. Deprecated in favor of CreateToken.
|
|
412
|
-
*
|
|
413
|
-
* @deprecated
|
|
414
|
-
* @param request - The request {@link IssueJWTRequest}
|
|
415
|
-
* @returns A Promise of Token
|
|
416
|
-
*/
|
|
417
|
-
issueJWT = (request = {}) => this.client.fetch(
|
|
418
|
-
{
|
|
419
|
-
method: "GET",
|
|
420
|
-
path: `/containers/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
|
|
421
|
-
urlParams: marshalling.urlParams(
|
|
422
|
-
["expires_at", request.expiresAt],
|
|
423
|
-
...Object.entries(
|
|
424
|
-
marshalling.resolveOneOf([
|
|
425
|
-
{ param: "container_id", value: request.containerId },
|
|
426
|
-
{ param: "namespace_id", value: request.namespaceId }
|
|
427
|
-
])
|
|
428
|
-
)
|
|
429
|
-
)
|
|
430
|
-
},
|
|
431
|
-
marshalling_gen.unmarshalToken
|
|
432
|
-
);
|
|
433
410
|
/**
|
|
434
411
|
* Create a new revocable token.
|
|
435
412
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest,
|
|
3
|
+
import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersResponse, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless Containers API.
|
|
6
6
|
*
|
|
@@ -204,14 +204,6 @@ export declare class API extends ParentAPI {
|
|
|
204
204
|
* @returns A Promise of Domain
|
|
205
205
|
*/
|
|
206
206
|
deleteDomain: (request: Readonly<DeleteDomainRequest>) => Promise<Domain>;
|
|
207
|
-
/**
|
|
208
|
-
* Create a JWT token. Deprecated in favor of CreateToken.
|
|
209
|
-
*
|
|
210
|
-
* @deprecated
|
|
211
|
-
* @param request - The request {@link IssueJWTRequest}
|
|
212
|
-
* @returns A Promise of Token
|
|
213
|
-
*/
|
|
214
|
-
issueJWT: (request?: Readonly<IssueJWTRequest>) => Promise<Token>;
|
|
215
207
|
/**
|
|
216
208
|
* Create a new revocable token.
|
|
217
209
|
*
|
|
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams, resolveOneOf } from "../../../helpers/mar
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { NAMESPACE_TRANSIENT_STATUSES, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest,
|
|
7
|
+
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
@@ -405,29 +405,6 @@ class API extends API$1 {
|
|
|
405
405
|
},
|
|
406
406
|
unmarshalDomain
|
|
407
407
|
);
|
|
408
|
-
/**
|
|
409
|
-
* Create a JWT token. Deprecated in favor of CreateToken.
|
|
410
|
-
*
|
|
411
|
-
* @deprecated
|
|
412
|
-
* @param request - The request {@link IssueJWTRequest}
|
|
413
|
-
* @returns A Promise of Token
|
|
414
|
-
*/
|
|
415
|
-
issueJWT = (request = {}) => this.client.fetch(
|
|
416
|
-
{
|
|
417
|
-
method: "GET",
|
|
418
|
-
path: `/containers/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
|
|
419
|
-
urlParams: urlParams(
|
|
420
|
-
["expires_at", request.expiresAt],
|
|
421
|
-
...Object.entries(
|
|
422
|
-
resolveOneOf([
|
|
423
|
-
{ param: "container_id", value: request.containerId },
|
|
424
|
-
{ param: "namespace_id", value: request.namespaceId }
|
|
425
|
-
])
|
|
426
|
-
)
|
|
427
|
-
)
|
|
428
|
-
},
|
|
429
|
-
unmarshalToken
|
|
430
|
-
);
|
|
431
408
|
/**
|
|
432
409
|
* Create a new revocable token.
|
|
433
410
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest,
|
|
3
|
+
export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -529,18 +529,6 @@ export type GetTriggerRequest = {
|
|
|
529
529
|
/** ID of the trigger to get. */
|
|
530
530
|
triggerId: string;
|
|
531
531
|
};
|
|
532
|
-
export type IssueJWTRequest = {
|
|
533
|
-
/**
|
|
534
|
-
* Region to target. If none is passed will use default region from the
|
|
535
|
-
* config.
|
|
536
|
-
*/
|
|
537
|
-
region?: Region;
|
|
538
|
-
/** One-of ('scope'): at most one of 'containerId', 'namespaceId' could be set. */
|
|
539
|
-
containerId?: string;
|
|
540
|
-
/** One-of ('scope'): at most one of 'containerId', 'namespaceId' could be set. */
|
|
541
|
-
namespaceId?: string;
|
|
542
|
-
expiresAt?: Date;
|
|
543
|
-
};
|
|
544
532
|
export type ListContainersRequest = {
|
|
545
533
|
/**
|
|
546
534
|
* Region to target. If none is passed will use default region from the
|