@scaleway/sdk 2.46.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/baremetal/v1/api.gen.cjs +3 -1
- package/dist/api/baremetal/v1/api.gen.js +3 -1
- 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/iam/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +2 -0
- package/dist/api/index.d.ts +65 -35
- 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/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/mnq/index.gen.cjs +4 -0
- package/dist/api/mnq/index.gen.js +4 -0
- package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -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.js +19 -0
- package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -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.js +320 -0
- package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
- package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
- package/dist/api/tem/index.gen.cjs +4 -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/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 +51 -0
- 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/webhosting/index.gen.cjs +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.js +620 -0
- package/dist/api/webhosting/v1/content.gen.cjs +14 -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.js +15 -0
- package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
- package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +5 -0
- package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -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
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
2
|
+
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
|
|
3
|
+
import "../../../vendor/base64/index.js";
|
|
4
|
+
const unmarshalScalewayLb = (data) => {
|
|
5
|
+
if (!isJSONObject(data)) {
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
domainName: data.domain_name,
|
|
12
|
+
frontendId: data.frontend_id,
|
|
13
|
+
id: data.id,
|
|
14
|
+
isSsl: data.is_ssl,
|
|
15
|
+
zone: data.zone
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const unmarshalScalewayLbBackendConfig = (data) => {
|
|
19
|
+
if (!isJSONObject(data)) {
|
|
20
|
+
throw new TypeError(
|
|
21
|
+
`Unmarshalling the type 'ScalewayLbBackendConfig' failed as data isn't a dictionary.`
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
lbs: unmarshalArrayOfObject(data.lbs, unmarshalScalewayLb)
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const unmarshalScalewayS3BackendConfig = (data) => {
|
|
29
|
+
if (!isJSONObject(data)) {
|
|
30
|
+
throw new TypeError(
|
|
31
|
+
`Unmarshalling the type 'ScalewayS3BackendConfig' failed as data isn't a dictionary.`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
bucketName: data.bucket_name,
|
|
36
|
+
bucketRegion: data.bucket_region,
|
|
37
|
+
isWebsite: data.is_website
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const unmarshalBackendStage = (data) => {
|
|
41
|
+
if (!isJSONObject(data)) {
|
|
42
|
+
throw new TypeError(
|
|
43
|
+
`Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
createdAt: unmarshalDate(data.created_at),
|
|
48
|
+
id: data.id,
|
|
49
|
+
pipelineId: data.pipeline_id,
|
|
50
|
+
projectId: data.project_id,
|
|
51
|
+
scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : void 0,
|
|
52
|
+
scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
|
|
53
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
const unmarshalCacheStage = (data) => {
|
|
57
|
+
if (!isJSONObject(data)) {
|
|
58
|
+
throw new TypeError(
|
|
59
|
+
`Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
backendStageId: data.backend_stage_id,
|
|
64
|
+
createdAt: unmarshalDate(data.created_at),
|
|
65
|
+
fallbackTtl: data.fallback_ttl,
|
|
66
|
+
id: data.id,
|
|
67
|
+
pipelineId: data.pipeline_id,
|
|
68
|
+
projectId: data.project_id,
|
|
69
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
const unmarshalDNSStage = (data) => {
|
|
73
|
+
if (!isJSONObject(data)) {
|
|
74
|
+
throw new TypeError(
|
|
75
|
+
`Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
backendStageId: data.backend_stage_id,
|
|
80
|
+
cacheStageId: data.cache_stage_id,
|
|
81
|
+
createdAt: unmarshalDate(data.created_at),
|
|
82
|
+
fqdns: data.fqdns,
|
|
83
|
+
id: data.id,
|
|
84
|
+
pipelineId: data.pipeline_id,
|
|
85
|
+
projectId: data.project_id,
|
|
86
|
+
tlsStageId: data.tls_stage_id,
|
|
87
|
+
type: data.type,
|
|
88
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const unmarshalPipelineError = (data) => {
|
|
92
|
+
if (!isJSONObject(data)) {
|
|
93
|
+
throw new TypeError(
|
|
94
|
+
`Unmarshalling the type 'PipelineError' failed as data isn't a dictionary.`
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
code: data.code,
|
|
99
|
+
message: data.message,
|
|
100
|
+
severity: data.severity,
|
|
101
|
+
stage: data.stage,
|
|
102
|
+
type: data.type
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const unmarshalPipeline = (data) => {
|
|
106
|
+
if (!isJSONObject(data)) {
|
|
107
|
+
throw new TypeError(
|
|
108
|
+
`Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
createdAt: unmarshalDate(data.created_at),
|
|
113
|
+
description: data.description,
|
|
114
|
+
dnsStageId: data.dns_stage_id,
|
|
115
|
+
errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
|
|
116
|
+
id: data.id,
|
|
117
|
+
name: data.name,
|
|
118
|
+
projectId: data.project_id,
|
|
119
|
+
status: data.status,
|
|
120
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
const unmarshalPurgeRequest = (data) => {
|
|
124
|
+
if (!isJSONObject(data)) {
|
|
125
|
+
throw new TypeError(
|
|
126
|
+
`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
all: data.all,
|
|
131
|
+
assets: data.assets,
|
|
132
|
+
createdAt: unmarshalDate(data.created_at),
|
|
133
|
+
id: data.id,
|
|
134
|
+
pipelineId: data.pipeline_id,
|
|
135
|
+
status: data.status,
|
|
136
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
const unmarshalTLSSecret = (data) => {
|
|
140
|
+
if (!isJSONObject(data)) {
|
|
141
|
+
throw new TypeError(
|
|
142
|
+
`Unmarshalling the type 'TLSSecret' failed as data isn't a dictionary.`
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
region: data.region,
|
|
147
|
+
secretId: data.secret_id
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
const unmarshalTLSStage = (data) => {
|
|
151
|
+
if (!isJSONObject(data)) {
|
|
152
|
+
throw new TypeError(
|
|
153
|
+
`Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
backendStageId: data.backend_stage_id,
|
|
158
|
+
cacheStageId: data.cache_stage_id,
|
|
159
|
+
certificateExpiresAt: unmarshalDate(data.certificate_expires_at),
|
|
160
|
+
createdAt: unmarshalDate(data.created_at),
|
|
161
|
+
id: data.id,
|
|
162
|
+
managedCertificate: data.managed_certificate,
|
|
163
|
+
pipelineId: data.pipeline_id,
|
|
164
|
+
projectId: data.project_id,
|
|
165
|
+
secrets: unmarshalArrayOfObject(data.secrets, unmarshalTLSSecret),
|
|
166
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
const unmarshalCheckDomainResponse = (data) => {
|
|
170
|
+
if (!isJSONObject(data)) {
|
|
171
|
+
throw new TypeError(
|
|
172
|
+
`Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
return {
|
|
176
|
+
isValid: data.is_valid
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
const unmarshalCheckLbOriginResponse = (data) => {
|
|
180
|
+
if (!isJSONObject(data)) {
|
|
181
|
+
throw new TypeError(
|
|
182
|
+
`Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
errorType: data.error_type,
|
|
187
|
+
isValid: data.is_valid
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const unmarshalCheckPEMChainResponse = (data) => {
|
|
191
|
+
if (!isJSONObject(data)) {
|
|
192
|
+
throw new TypeError(
|
|
193
|
+
`Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
isValid: data.is_valid
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
const unmarshalListBackendStagesResponse = (data) => {
|
|
201
|
+
if (!isJSONObject(data)) {
|
|
202
|
+
throw new TypeError(
|
|
203
|
+
`Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
|
|
208
|
+
totalCount: data.total_count
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
const unmarshalListCacheStagesResponse = (data) => {
|
|
212
|
+
if (!isJSONObject(data)) {
|
|
213
|
+
throw new TypeError(
|
|
214
|
+
`Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
|
|
219
|
+
totalCount: data.total_count
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
const unmarshalListDNSStagesResponse = (data) => {
|
|
223
|
+
if (!isJSONObject(data)) {
|
|
224
|
+
throw new TypeError(
|
|
225
|
+
`Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
|
|
230
|
+
totalCount: data.total_count
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
const unmarshalListPipelinesResponse = (data) => {
|
|
234
|
+
if (!isJSONObject(data)) {
|
|
235
|
+
throw new TypeError(
|
|
236
|
+
`Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
|
|
241
|
+
totalCount: data.total_count
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
const unmarshalListPurgeRequestsResponse = (data) => {
|
|
245
|
+
if (!isJSONObject(data)) {
|
|
246
|
+
throw new TypeError(
|
|
247
|
+
`Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
purgeRequests: unmarshalArrayOfObject(
|
|
252
|
+
data.purge_requests,
|
|
253
|
+
unmarshalPurgeRequest
|
|
254
|
+
),
|
|
255
|
+
totalCount: data.total_count
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
const unmarshalListTLSStagesResponse = (data) => {
|
|
259
|
+
if (!isJSONObject(data)) {
|
|
260
|
+
throw new TypeError(
|
|
261
|
+
`Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
return {
|
|
265
|
+
stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
|
|
266
|
+
totalCount: data.total_count
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
const marshalCheckDomainRequest = (request, defaults) => ({
|
|
270
|
+
cname: request.cname,
|
|
271
|
+
fqdn: request.fqdn,
|
|
272
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
273
|
+
});
|
|
274
|
+
const marshalScalewayLb = (request, defaults) => ({
|
|
275
|
+
domain_name: request.domainName,
|
|
276
|
+
frontend_id: request.frontendId,
|
|
277
|
+
id: request.id,
|
|
278
|
+
is_ssl: request.isSsl,
|
|
279
|
+
zone: request.zone
|
|
280
|
+
});
|
|
281
|
+
const marshalCheckLbOriginRequest = (request, defaults) => ({
|
|
282
|
+
lb: request.lb !== void 0 ? marshalScalewayLb(request.lb) : void 0
|
|
283
|
+
});
|
|
284
|
+
const marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
|
|
285
|
+
secret_id: request.secretId,
|
|
286
|
+
secret_region: request.secretRegion
|
|
287
|
+
});
|
|
288
|
+
const marshalCheckPEMChainRequest = (request, defaults) => ({
|
|
289
|
+
fqdn: request.fqdn,
|
|
290
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
291
|
+
...resolveOneOf([
|
|
292
|
+
{
|
|
293
|
+
param: "secret",
|
|
294
|
+
value: request.secret !== void 0 ? marshalCheckPEMChainRequestSecretChain(request.secret) : void 0
|
|
295
|
+
},
|
|
296
|
+
{ param: "raw", value: request.raw }
|
|
297
|
+
])
|
|
298
|
+
});
|
|
299
|
+
const marshalScalewayLbBackendConfig = (request, defaults) => ({
|
|
300
|
+
lbs: request.lbs.map((elt) => marshalScalewayLb(elt))
|
|
301
|
+
});
|
|
302
|
+
const marshalScalewayS3BackendConfig = (request, defaults) => ({
|
|
303
|
+
bucket_name: request.bucketName,
|
|
304
|
+
bucket_region: request.bucketRegion,
|
|
305
|
+
is_website: request.isWebsite
|
|
306
|
+
});
|
|
307
|
+
const marshalCreateBackendStageRequest = (request, defaults) => ({
|
|
308
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
309
|
+
...resolveOneOf([
|
|
310
|
+
{
|
|
311
|
+
param: "scaleway_s3",
|
|
312
|
+
value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
param: "scaleway_lb",
|
|
316
|
+
value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
|
|
317
|
+
}
|
|
318
|
+
])
|
|
319
|
+
});
|
|
320
|
+
const marshalCreateCacheStageRequest = (request, defaults) => ({
|
|
321
|
+
fallback_ttl: request.fallbackTtl,
|
|
322
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
323
|
+
...resolveOneOf([
|
|
324
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
325
|
+
])
|
|
326
|
+
});
|
|
327
|
+
const marshalCreateDNSStageRequest = (request, defaults) => ({
|
|
328
|
+
fqdns: request.fqdns,
|
|
329
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
330
|
+
...resolveOneOf([
|
|
331
|
+
{ param: "tls_stage_id", value: request.tlsStageId },
|
|
332
|
+
{ param: "cache_stage_id", value: request.cacheStageId },
|
|
333
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
334
|
+
])
|
|
335
|
+
});
|
|
336
|
+
const marshalCreatePipelineRequest = (request, defaults) => ({
|
|
337
|
+
description: request.description,
|
|
338
|
+
name: request.name,
|
|
339
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
340
|
+
...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
|
|
341
|
+
});
|
|
342
|
+
const marshalCreatePurgeRequestRequest = (request, defaults) => ({
|
|
343
|
+
pipeline_id: request.pipelineId,
|
|
344
|
+
...resolveOneOf([
|
|
345
|
+
{ param: "assets", value: request.assets },
|
|
346
|
+
{ param: "all", value: request.all }
|
|
347
|
+
])
|
|
348
|
+
});
|
|
349
|
+
const marshalTLSSecret = (request, defaults) => ({
|
|
350
|
+
region: request.region,
|
|
351
|
+
secret_id: request.secretId
|
|
352
|
+
});
|
|
353
|
+
const marshalCreateTLSStageRequest = (request, defaults) => ({
|
|
354
|
+
managed_certificate: request.managedCertificate,
|
|
355
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
356
|
+
secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt)) : void 0,
|
|
357
|
+
...resolveOneOf([
|
|
358
|
+
{ param: "cache_stage_id", value: request.cacheStageId },
|
|
359
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
360
|
+
])
|
|
361
|
+
});
|
|
362
|
+
const marshalUpdateBackendStageRequest = (request, defaults) => ({
|
|
363
|
+
...resolveOneOf([
|
|
364
|
+
{
|
|
365
|
+
param: "scaleway_s3",
|
|
366
|
+
value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
param: "scaleway_lb",
|
|
370
|
+
value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
|
|
371
|
+
}
|
|
372
|
+
])
|
|
373
|
+
});
|
|
374
|
+
const marshalUpdateCacheStageRequest = (request, defaults) => ({
|
|
375
|
+
fallback_ttl: request.fallbackTtl,
|
|
376
|
+
...resolveOneOf([
|
|
377
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
378
|
+
])
|
|
379
|
+
});
|
|
380
|
+
const marshalUpdateDNSStageRequest = (request, defaults) => ({
|
|
381
|
+
fqdns: request.fqdns,
|
|
382
|
+
...resolveOneOf([
|
|
383
|
+
{ param: "tls_stage_id", value: request.tlsStageId },
|
|
384
|
+
{ param: "cache_stage_id", value: request.cacheStageId },
|
|
385
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
386
|
+
])
|
|
387
|
+
});
|
|
388
|
+
const marshalUpdatePipelineRequest = (request, defaults) => ({
|
|
389
|
+
description: request.description,
|
|
390
|
+
name: request.name,
|
|
391
|
+
...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
|
|
392
|
+
});
|
|
393
|
+
const marshalTLSSecretsConfig = (request, defaults) => ({
|
|
394
|
+
tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt))
|
|
395
|
+
});
|
|
396
|
+
const marshalUpdateTLSStageRequest = (request, defaults) => ({
|
|
397
|
+
managed_certificate: request.managedCertificate,
|
|
398
|
+
tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig) : void 0,
|
|
399
|
+
...resolveOneOf([
|
|
400
|
+
{ param: "cache_stage_id", value: request.cacheStageId },
|
|
401
|
+
{ param: "backend_stage_id", value: request.backendStageId }
|
|
402
|
+
])
|
|
403
|
+
});
|
|
404
|
+
export {
|
|
405
|
+
marshalCheckDomainRequest,
|
|
406
|
+
marshalCheckLbOriginRequest,
|
|
407
|
+
marshalCheckPEMChainRequest,
|
|
408
|
+
marshalCreateBackendStageRequest,
|
|
409
|
+
marshalCreateCacheStageRequest,
|
|
410
|
+
marshalCreateDNSStageRequest,
|
|
411
|
+
marshalCreatePipelineRequest,
|
|
412
|
+
marshalCreatePurgeRequestRequest,
|
|
413
|
+
marshalCreateTLSStageRequest,
|
|
414
|
+
marshalUpdateBackendStageRequest,
|
|
415
|
+
marshalUpdateCacheStageRequest,
|
|
416
|
+
marshalUpdateDNSStageRequest,
|
|
417
|
+
marshalUpdatePipelineRequest,
|
|
418
|
+
marshalUpdateTLSStageRequest,
|
|
419
|
+
unmarshalBackendStage,
|
|
420
|
+
unmarshalCacheStage,
|
|
421
|
+
unmarshalCheckDomainResponse,
|
|
422
|
+
unmarshalCheckLbOriginResponse,
|
|
423
|
+
unmarshalCheckPEMChainResponse,
|
|
424
|
+
unmarshalDNSStage,
|
|
425
|
+
unmarshalListBackendStagesResponse,
|
|
426
|
+
unmarshalListCacheStagesResponse,
|
|
427
|
+
unmarshalListDNSStagesResponse,
|
|
428
|
+
unmarshalListPipelinesResponse,
|
|
429
|
+
unmarshalListPurgeRequestsResponse,
|
|
430
|
+
unmarshalListTLSStagesResponse,
|
|
431
|
+
unmarshalPipeline,
|
|
432
|
+
unmarshalPurgeRequest,
|
|
433
|
+
unmarshalTLSStage
|
|
434
|
+
};
|
|
@@ -320,6 +320,8 @@ export interface User {
|
|
|
320
320
|
accountRootUserId: string;
|
|
321
321
|
/** Tags associated with the user. */
|
|
322
322
|
tags: string[];
|
|
323
|
+
/** Defines whether the user is locked. */
|
|
324
|
+
locked: boolean;
|
|
323
325
|
}
|
|
324
326
|
export type AddGroupMemberRequest = {
|
|
325
327
|
/** ID of the group. */
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,35 +1,65 @@
|
|
|
1
|
-
export *
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export * as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export * as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export * as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export * as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export * as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export * as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export * as
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
export * from './index.gen';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use Applesilicon namespace
|
|
4
|
+
*/
|
|
5
|
+
export * as AppleSilicon from './applesilicon/index.gen';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use Baremetal namespace
|
|
8
|
+
*/
|
|
9
|
+
export * as BareMetal from './baremetal/index.gen';
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use DocumentDb namespace
|
|
12
|
+
*/
|
|
13
|
+
export * as DocumentDB from './document_db/index.gen';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use Flexibleip namespace
|
|
16
|
+
*/
|
|
17
|
+
export * as FlexibleIP from './flexibleip/index.gen';
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use Iam namespace
|
|
20
|
+
*/
|
|
21
|
+
export * as IAM from './iam/index.gen';
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated use Iot namespace
|
|
24
|
+
*/
|
|
25
|
+
export * as IOT from './iot/index.gen';
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use Ipam namespace
|
|
28
|
+
*/
|
|
29
|
+
export * as IPAM from './ipam/index.gen';
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated use Ipfs namespace
|
|
32
|
+
*/
|
|
33
|
+
export * as IPFS from './ipfs/index.gen';
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated use Lb namespace
|
|
36
|
+
*/
|
|
37
|
+
export * as LB from './lb/index.gen';
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use Llm_Inference namespace
|
|
40
|
+
*/
|
|
41
|
+
export * as LLMInference from './llm_inference/index.gen';
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated use Mnq namespace
|
|
44
|
+
*/
|
|
45
|
+
export * as MNQ from './mnq/index.gen';
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated use Rdb namespace
|
|
48
|
+
*/
|
|
49
|
+
export * as RDB from './rdb/index.gen';
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use ServerlessSqldb namespace
|
|
52
|
+
*/
|
|
53
|
+
export * as ServerlessSQLDB from './serverless_sqldb/index.gen';
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use Tem namespace
|
|
56
|
+
*/
|
|
57
|
+
export * as TransactionalEmail from './tem/index.gen';
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated use Vpc namespace
|
|
60
|
+
*/
|
|
61
|
+
export * as VPC from './vpc/index.gen';
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated use Vpcgw namespace
|
|
64
|
+
*/
|
|
65
|
+
export * as VPCGW from './vpcgw/index.gen';
|