@scaleway/sdk 2.73.0 → 2.74.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/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +94 -65
- package/dist/api/account/v3/marshalling.gen.js +94 -65
- package/dist/api/account/v3/types.gen.d.ts +79 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/api.gen.cjs +35 -3
- package/dist/api/cockpit/v1/api.gen.d.ts +17 -5
- package/dist/api/cockpit/v1/api.gen.js +36 -4
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +63 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +3 -3
- package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
- package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
- package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
- package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
- package/dist/api/file/index.gen.cjs +4 -0
- package/dist/api/file/index.gen.d.ts +5 -0
- package/dist/api/file/index.gen.js +4 -0
- package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
- package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
- package/dist/api/file/v1alpha1/api.gen.js +142 -0
- package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
- package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/file/v1alpha1/content.gen.js +7 -0
- package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/file/v1alpha1/index.gen.js +8 -0
- package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
- package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
- package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
- package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
- package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
- package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
- package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
- package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
- package/dist/api/iam/v1alpha1/api.gen.js +4 -4
- package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/index.gen.d.ts +3 -1
- package/dist/api/inference/v1beta1/api.gen.cjs +1 -1
- package/dist/api/inference/v1beta1/api.gen.d.ts +1 -1
- package/dist/api/inference/v1beta1/api.gen.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
- package/dist/api/instance/v1/marshalling.gen.js +4 -1
- package/dist/api/instance/v1/types.gen.d.ts +16 -1
- package/dist/api/interlink/v1beta1/api.gen.cjs +1 -1
- package/dist/api/interlink/v1beta1/api.gen.d.ts +1 -1
- package/dist/api/interlink/v1beta1/api.gen.js +1 -1
- package/dist/api/iot/v1/types.gen.d.ts +1 -1
- package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
- package/dist/api/lb/v1/marshalling.gen.js +4 -2
- package/dist/api/lb/v1/types.gen.d.ts +4 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/product_catalog/index.gen.cjs +4 -0
- package/dist/api/product_catalog/index.gen.d.ts +5 -0
- package/dist/api/product_catalog/index.gen.js +4 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
- package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
- package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
- package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
- package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
- package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.cjs +1 -1
- package/dist/api/rdb/v1/api.gen.d.ts +1 -1
- package/dist/api/rdb/v1/api.gen.js +1 -1
- package/dist/api/rdb/v1/types.gen.d.ts +2 -2
- package/dist/api/redis/v1/api.gen.cjs +1 -1
- package/dist/api/redis/v1/api.gen.d.ts +1 -1
- package/dist/api/redis/v1/api.gen.js +1 -1
- package/dist/api/registry/v1/types.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
- package/dist/api/vpcgw/v1/api.gen.js +37 -0
- package/dist/index.cjs +36 -32
- package/dist/index.js +36 -32
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ContractAPI, ProjectAPI, } from './api.gen.js';
|
|
2
|
-
export type { CheckContractSignatureResponse, Contract, ContractApiCheckContractSignatureRequest, ContractApiCreateContractSignatureRequest, ContractApiDownloadContractSignatureRequest, ContractApiListContractSignaturesRequest, ContractApiValidateContractSignatureRequest, ContractSignature, ContractType, ListContractSignaturesRequestOrderBy, ListContractSignaturesResponse, ListProjectsRequestOrderBy, ListProjectsResponse, Project, ProjectApiCreateProjectRequest, ProjectApiDeleteProjectRequest, ProjectApiGetProjectRequest, ProjectApiListProjectsRequest, ProjectApiSetProjectQualificationRequest, ProjectApiUpdateProjectRequest, ProjectQualification, Qualification, QualificationAiMachine, QualificationArchitectureType, QualificationArchiveData, QualificationContainer, QualificationDeploySoftware, QualificationHostApplication, QualificationHostApplicationSubUseCase, QualificationHostWebsite, QualificationHostWebsiteSubUseCase, QualificationOtherUseCase, QualificationSetScalewayEnvironment, QualificationShareData, } from './types.gen';
|
|
2
|
+
export type { CheckContractSignatureResponse, Contract, ContractApiCheckContractSignatureRequest, ContractApiCreateContractSignatureRequest, ContractApiDownloadContractSignatureRequest, ContractApiListContractSignaturesRequest, ContractApiValidateContractSignatureRequest, ContractSignature, ContractType, ListContractSignaturesRequestOrderBy, ListContractSignaturesResponse, ListProjectsRequestOrderBy, ListProjectsResponse, Project, ProjectApiCreateProjectRequest, ProjectApiDeleteProjectRequest, ProjectApiGetProjectRequest, ProjectApiListProjectsRequest, ProjectApiSetProjectQualificationRequest, ProjectApiUpdateProjectRequest, ProjectQualification, Qualification, QualificationAiMachine, QualificationAiMachineSubUseCase, QualificationArchitectureType, QualificationArchiveData, QualificationArchiveDataSubUseCase, QualificationContainer, QualificationContainerSubUseCase, QualificationDeploySoftware, QualificationDeploySoftwareSubUseCase, QualificationHostApplication, QualificationHostApplicationSubUseCase, QualificationHostWebsite, QualificationHostWebsiteSubUseCase, QualificationOtherUseCase, QualificationOtherUseCaseSubUseCase, QualificationSetScalewayEnvironment, QualificationSetScalewayEnvironmentSubUseCase, QualificationShareData, QualificationShareDataSubUseCase, } from './types.gen';
|
|
3
3
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -35,64 +35,15 @@ const unmarshalContractSignature = (data) => {
|
|
|
35
35
|
signedAt: marshalling.unmarshalDate(data.signed_at)
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
const unmarshalProject = (data) => {
|
|
39
|
-
if (!json.isJSONObject(data)) {
|
|
40
|
-
throw new TypeError(
|
|
41
|
-
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
46
|
-
description: data.description,
|
|
47
|
-
id: data.id,
|
|
48
|
-
name: data.name,
|
|
49
|
-
organizationId: data.organization_id,
|
|
50
|
-
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
const unmarshalCheckContractSignatureResponse = (data) => {
|
|
54
|
-
if (!json.isJSONObject(data)) {
|
|
55
|
-
throw new TypeError(
|
|
56
|
-
`Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
created: data.created,
|
|
61
|
-
validated: data.validated
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
const unmarshalListContractSignaturesResponse = (data) => {
|
|
65
|
-
if (!json.isJSONObject(data)) {
|
|
66
|
-
throw new TypeError(
|
|
67
|
-
`Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
contractSignatures: marshalling.unmarshalArrayOfObject(
|
|
72
|
-
data.contract_signatures,
|
|
73
|
-
unmarshalContractSignature
|
|
74
|
-
),
|
|
75
|
-
totalCount: data.total_count
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
const unmarshalListProjectsResponse = (data) => {
|
|
79
|
-
if (!json.isJSONObject(data)) {
|
|
80
|
-
throw new TypeError(
|
|
81
|
-
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
projects: marshalling.unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
86
|
-
totalCount: data.total_count
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
38
|
const unmarshalQualificationAiMachine = (data) => {
|
|
90
39
|
if (!json.isJSONObject(data)) {
|
|
91
40
|
throw new TypeError(
|
|
92
41
|
`Unmarshalling the type 'QualificationAiMachine' failed as data isn't a dictionary.`
|
|
93
42
|
);
|
|
94
43
|
}
|
|
95
|
-
return {
|
|
44
|
+
return {
|
|
45
|
+
subUseCase: data.sub_use_case
|
|
46
|
+
};
|
|
96
47
|
};
|
|
97
48
|
const unmarshalQualificationArchiveData = (data) => {
|
|
98
49
|
if (!json.isJSONObject(data)) {
|
|
@@ -100,7 +51,9 @@ const unmarshalQualificationArchiveData = (data) => {
|
|
|
100
51
|
`Unmarshalling the type 'QualificationArchiveData' failed as data isn't a dictionary.`
|
|
101
52
|
);
|
|
102
53
|
}
|
|
103
|
-
return {
|
|
54
|
+
return {
|
|
55
|
+
subUseCase: data.sub_use_case
|
|
56
|
+
};
|
|
104
57
|
};
|
|
105
58
|
const unmarshalQualificationContainer = (data) => {
|
|
106
59
|
if (!json.isJSONObject(data)) {
|
|
@@ -108,7 +61,9 @@ const unmarshalQualificationContainer = (data) => {
|
|
|
108
61
|
`Unmarshalling the type 'QualificationContainer' failed as data isn't a dictionary.`
|
|
109
62
|
);
|
|
110
63
|
}
|
|
111
|
-
return {
|
|
64
|
+
return {
|
|
65
|
+
subUseCase: data.sub_use_case
|
|
66
|
+
};
|
|
112
67
|
};
|
|
113
68
|
const unmarshalQualificationDeploySoftware = (data) => {
|
|
114
69
|
if (!json.isJSONObject(data)) {
|
|
@@ -116,7 +71,9 @@ const unmarshalQualificationDeploySoftware = (data) => {
|
|
|
116
71
|
`Unmarshalling the type 'QualificationDeploySoftware' failed as data isn't a dictionary.`
|
|
117
72
|
);
|
|
118
73
|
}
|
|
119
|
-
return {
|
|
74
|
+
return {
|
|
75
|
+
subUseCase: data.sub_use_case
|
|
76
|
+
};
|
|
120
77
|
};
|
|
121
78
|
const unmarshalQualificationHostApplication = (data) => {
|
|
122
79
|
if (!json.isJSONObject(data)) {
|
|
@@ -144,7 +101,9 @@ const unmarshalQualificationOtherUseCase = (data) => {
|
|
|
144
101
|
`Unmarshalling the type 'QualificationOtherUseCase' failed as data isn't a dictionary.`
|
|
145
102
|
);
|
|
146
103
|
}
|
|
147
|
-
return {
|
|
104
|
+
return {
|
|
105
|
+
subUseCase: data.sub_use_case
|
|
106
|
+
};
|
|
148
107
|
};
|
|
149
108
|
const unmarshalQualificationSetScalewayEnvironment = (data) => {
|
|
150
109
|
if (!json.isJSONObject(data)) {
|
|
@@ -152,7 +111,9 @@ const unmarshalQualificationSetScalewayEnvironment = (data) => {
|
|
|
152
111
|
`Unmarshalling the type 'QualificationSetScalewayEnvironment' failed as data isn't a dictionary.`
|
|
153
112
|
);
|
|
154
113
|
}
|
|
155
|
-
return {
|
|
114
|
+
return {
|
|
115
|
+
subUseCase: data.sub_use_case
|
|
116
|
+
};
|
|
156
117
|
};
|
|
157
118
|
const unmarshalQualificationShareData = (data) => {
|
|
158
119
|
if (!json.isJSONObject(data)) {
|
|
@@ -160,7 +121,9 @@ const unmarshalQualificationShareData = (data) => {
|
|
|
160
121
|
`Unmarshalling the type 'QualificationShareData' failed as data isn't a dictionary.`
|
|
161
122
|
);
|
|
162
123
|
}
|
|
163
|
-
return {
|
|
124
|
+
return {
|
|
125
|
+
subUseCase: data.sub_use_case
|
|
126
|
+
};
|
|
164
127
|
};
|
|
165
128
|
const unmarshalQualification = (data) => {
|
|
166
129
|
if (!json.isJSONObject(data)) {
|
|
@@ -183,6 +146,58 @@ const unmarshalQualification = (data) => {
|
|
|
183
146
|
shareData: data.share_data ? unmarshalQualificationShareData(data.share_data) : void 0
|
|
184
147
|
};
|
|
185
148
|
};
|
|
149
|
+
const unmarshalProject = (data) => {
|
|
150
|
+
if (!json.isJSONObject(data)) {
|
|
151
|
+
throw new TypeError(
|
|
152
|
+
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
157
|
+
description: data.description,
|
|
158
|
+
id: data.id,
|
|
159
|
+
name: data.name,
|
|
160
|
+
organizationId: data.organization_id,
|
|
161
|
+
qualification: data.qualification ? unmarshalQualification(data.qualification) : void 0,
|
|
162
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
const unmarshalCheckContractSignatureResponse = (data) => {
|
|
166
|
+
if (!json.isJSONObject(data)) {
|
|
167
|
+
throw new TypeError(
|
|
168
|
+
`Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
created: data.created,
|
|
173
|
+
validated: data.validated
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
const unmarshalListContractSignaturesResponse = (data) => {
|
|
177
|
+
if (!json.isJSONObject(data)) {
|
|
178
|
+
throw new TypeError(
|
|
179
|
+
`Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
contractSignatures: marshalling.unmarshalArrayOfObject(
|
|
184
|
+
data.contract_signatures,
|
|
185
|
+
unmarshalContractSignature
|
|
186
|
+
),
|
|
187
|
+
totalCount: data.total_count
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const unmarshalListProjectsResponse = (data) => {
|
|
191
|
+
if (!json.isJSONObject(data)) {
|
|
192
|
+
throw new TypeError(
|
|
193
|
+
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
projects: marshalling.unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
198
|
+
totalCount: data.total_count
|
|
199
|
+
};
|
|
200
|
+
};
|
|
186
201
|
const unmarshalProjectQualification = (data) => {
|
|
187
202
|
if (!json.isJSONObject(data)) {
|
|
188
203
|
throw new TypeError(
|
|
@@ -210,19 +225,33 @@ const marshalProjectApiCreateProjectRequest = (request, defaults) => ({
|
|
|
210
225
|
name: request.name || randomName("proj"),
|
|
211
226
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
212
227
|
});
|
|
213
|
-
const marshalQualificationAiMachine = (request, defaults) => ({
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const
|
|
228
|
+
const marshalQualificationAiMachine = (request, defaults) => ({
|
|
229
|
+
sub_use_case: request.subUseCase
|
|
230
|
+
});
|
|
231
|
+
const marshalQualificationArchiveData = (request, defaults) => ({
|
|
232
|
+
sub_use_case: request.subUseCase
|
|
233
|
+
});
|
|
234
|
+
const marshalQualificationContainer = (request, defaults) => ({
|
|
235
|
+
sub_use_case: request.subUseCase
|
|
236
|
+
});
|
|
237
|
+
const marshalQualificationDeploySoftware = (request, defaults) => ({
|
|
238
|
+
sub_use_case: request.subUseCase
|
|
239
|
+
});
|
|
217
240
|
const marshalQualificationHostApplication = (request, defaults) => ({
|
|
218
241
|
sub_use_case: request.subUseCase
|
|
219
242
|
});
|
|
220
243
|
const marshalQualificationHostWebsite = (request, defaults) => ({
|
|
221
244
|
sub_use_case: request.subUseCase
|
|
222
245
|
});
|
|
223
|
-
const marshalQualificationOtherUseCase = (request, defaults) => ({
|
|
224
|
-
|
|
225
|
-
|
|
246
|
+
const marshalQualificationOtherUseCase = (request, defaults) => ({
|
|
247
|
+
sub_use_case: request.subUseCase
|
|
248
|
+
});
|
|
249
|
+
const marshalQualificationSetScalewayEnvironment = (request, defaults) => ({
|
|
250
|
+
sub_use_case: request.subUseCase
|
|
251
|
+
});
|
|
252
|
+
const marshalQualificationShareData = (request, defaults) => ({
|
|
253
|
+
sub_use_case: request.subUseCase
|
|
254
|
+
});
|
|
226
255
|
const marshalQualification = (request, defaults) => ({
|
|
227
256
|
architecture_type: request.architectureType,
|
|
228
257
|
...marshalling.resolveOneOf([
|
|
@@ -33,64 +33,15 @@ const unmarshalContractSignature = (data) => {
|
|
|
33
33
|
signedAt: unmarshalDate(data.signed_at)
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
const unmarshalProject = (data) => {
|
|
37
|
-
if (!isJSONObject(data)) {
|
|
38
|
-
throw new TypeError(
|
|
39
|
-
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
createdAt: unmarshalDate(data.created_at),
|
|
44
|
-
description: data.description,
|
|
45
|
-
id: data.id,
|
|
46
|
-
name: data.name,
|
|
47
|
-
organizationId: data.organization_id,
|
|
48
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
const unmarshalCheckContractSignatureResponse = (data) => {
|
|
52
|
-
if (!isJSONObject(data)) {
|
|
53
|
-
throw new TypeError(
|
|
54
|
-
`Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
created: data.created,
|
|
59
|
-
validated: data.validated
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
const unmarshalListContractSignaturesResponse = (data) => {
|
|
63
|
-
if (!isJSONObject(data)) {
|
|
64
|
-
throw new TypeError(
|
|
65
|
-
`Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
contractSignatures: unmarshalArrayOfObject(
|
|
70
|
-
data.contract_signatures,
|
|
71
|
-
unmarshalContractSignature
|
|
72
|
-
),
|
|
73
|
-
totalCount: data.total_count
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
const unmarshalListProjectsResponse = (data) => {
|
|
77
|
-
if (!isJSONObject(data)) {
|
|
78
|
-
throw new TypeError(
|
|
79
|
-
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
84
|
-
totalCount: data.total_count
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
36
|
const unmarshalQualificationAiMachine = (data) => {
|
|
88
37
|
if (!isJSONObject(data)) {
|
|
89
38
|
throw new TypeError(
|
|
90
39
|
`Unmarshalling the type 'QualificationAiMachine' failed as data isn't a dictionary.`
|
|
91
40
|
);
|
|
92
41
|
}
|
|
93
|
-
return {
|
|
42
|
+
return {
|
|
43
|
+
subUseCase: data.sub_use_case
|
|
44
|
+
};
|
|
94
45
|
};
|
|
95
46
|
const unmarshalQualificationArchiveData = (data) => {
|
|
96
47
|
if (!isJSONObject(data)) {
|
|
@@ -98,7 +49,9 @@ const unmarshalQualificationArchiveData = (data) => {
|
|
|
98
49
|
`Unmarshalling the type 'QualificationArchiveData' failed as data isn't a dictionary.`
|
|
99
50
|
);
|
|
100
51
|
}
|
|
101
|
-
return {
|
|
52
|
+
return {
|
|
53
|
+
subUseCase: data.sub_use_case
|
|
54
|
+
};
|
|
102
55
|
};
|
|
103
56
|
const unmarshalQualificationContainer = (data) => {
|
|
104
57
|
if (!isJSONObject(data)) {
|
|
@@ -106,7 +59,9 @@ const unmarshalQualificationContainer = (data) => {
|
|
|
106
59
|
`Unmarshalling the type 'QualificationContainer' failed as data isn't a dictionary.`
|
|
107
60
|
);
|
|
108
61
|
}
|
|
109
|
-
return {
|
|
62
|
+
return {
|
|
63
|
+
subUseCase: data.sub_use_case
|
|
64
|
+
};
|
|
110
65
|
};
|
|
111
66
|
const unmarshalQualificationDeploySoftware = (data) => {
|
|
112
67
|
if (!isJSONObject(data)) {
|
|
@@ -114,7 +69,9 @@ const unmarshalQualificationDeploySoftware = (data) => {
|
|
|
114
69
|
`Unmarshalling the type 'QualificationDeploySoftware' failed as data isn't a dictionary.`
|
|
115
70
|
);
|
|
116
71
|
}
|
|
117
|
-
return {
|
|
72
|
+
return {
|
|
73
|
+
subUseCase: data.sub_use_case
|
|
74
|
+
};
|
|
118
75
|
};
|
|
119
76
|
const unmarshalQualificationHostApplication = (data) => {
|
|
120
77
|
if (!isJSONObject(data)) {
|
|
@@ -142,7 +99,9 @@ const unmarshalQualificationOtherUseCase = (data) => {
|
|
|
142
99
|
`Unmarshalling the type 'QualificationOtherUseCase' failed as data isn't a dictionary.`
|
|
143
100
|
);
|
|
144
101
|
}
|
|
145
|
-
return {
|
|
102
|
+
return {
|
|
103
|
+
subUseCase: data.sub_use_case
|
|
104
|
+
};
|
|
146
105
|
};
|
|
147
106
|
const unmarshalQualificationSetScalewayEnvironment = (data) => {
|
|
148
107
|
if (!isJSONObject(data)) {
|
|
@@ -150,7 +109,9 @@ const unmarshalQualificationSetScalewayEnvironment = (data) => {
|
|
|
150
109
|
`Unmarshalling the type 'QualificationSetScalewayEnvironment' failed as data isn't a dictionary.`
|
|
151
110
|
);
|
|
152
111
|
}
|
|
153
|
-
return {
|
|
112
|
+
return {
|
|
113
|
+
subUseCase: data.sub_use_case
|
|
114
|
+
};
|
|
154
115
|
};
|
|
155
116
|
const unmarshalQualificationShareData = (data) => {
|
|
156
117
|
if (!isJSONObject(data)) {
|
|
@@ -158,7 +119,9 @@ const unmarshalQualificationShareData = (data) => {
|
|
|
158
119
|
`Unmarshalling the type 'QualificationShareData' failed as data isn't a dictionary.`
|
|
159
120
|
);
|
|
160
121
|
}
|
|
161
|
-
return {
|
|
122
|
+
return {
|
|
123
|
+
subUseCase: data.sub_use_case
|
|
124
|
+
};
|
|
162
125
|
};
|
|
163
126
|
const unmarshalQualification = (data) => {
|
|
164
127
|
if (!isJSONObject(data)) {
|
|
@@ -181,6 +144,58 @@ const unmarshalQualification = (data) => {
|
|
|
181
144
|
shareData: data.share_data ? unmarshalQualificationShareData(data.share_data) : void 0
|
|
182
145
|
};
|
|
183
146
|
};
|
|
147
|
+
const unmarshalProject = (data) => {
|
|
148
|
+
if (!isJSONObject(data)) {
|
|
149
|
+
throw new TypeError(
|
|
150
|
+
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
createdAt: unmarshalDate(data.created_at),
|
|
155
|
+
description: data.description,
|
|
156
|
+
id: data.id,
|
|
157
|
+
name: data.name,
|
|
158
|
+
organizationId: data.organization_id,
|
|
159
|
+
qualification: data.qualification ? unmarshalQualification(data.qualification) : void 0,
|
|
160
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
const unmarshalCheckContractSignatureResponse = (data) => {
|
|
164
|
+
if (!isJSONObject(data)) {
|
|
165
|
+
throw new TypeError(
|
|
166
|
+
`Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
created: data.created,
|
|
171
|
+
validated: data.validated
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
const unmarshalListContractSignaturesResponse = (data) => {
|
|
175
|
+
if (!isJSONObject(data)) {
|
|
176
|
+
throw new TypeError(
|
|
177
|
+
`Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
contractSignatures: unmarshalArrayOfObject(
|
|
182
|
+
data.contract_signatures,
|
|
183
|
+
unmarshalContractSignature
|
|
184
|
+
),
|
|
185
|
+
totalCount: data.total_count
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
const unmarshalListProjectsResponse = (data) => {
|
|
189
|
+
if (!isJSONObject(data)) {
|
|
190
|
+
throw new TypeError(
|
|
191
|
+
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
|
|
196
|
+
totalCount: data.total_count
|
|
197
|
+
};
|
|
198
|
+
};
|
|
184
199
|
const unmarshalProjectQualification = (data) => {
|
|
185
200
|
if (!isJSONObject(data)) {
|
|
186
201
|
throw new TypeError(
|
|
@@ -208,19 +223,33 @@ const marshalProjectApiCreateProjectRequest = (request, defaults) => ({
|
|
|
208
223
|
name: request.name || randomName("proj"),
|
|
209
224
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
210
225
|
});
|
|
211
|
-
const marshalQualificationAiMachine = (request, defaults) => ({
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const
|
|
226
|
+
const marshalQualificationAiMachine = (request, defaults) => ({
|
|
227
|
+
sub_use_case: request.subUseCase
|
|
228
|
+
});
|
|
229
|
+
const marshalQualificationArchiveData = (request, defaults) => ({
|
|
230
|
+
sub_use_case: request.subUseCase
|
|
231
|
+
});
|
|
232
|
+
const marshalQualificationContainer = (request, defaults) => ({
|
|
233
|
+
sub_use_case: request.subUseCase
|
|
234
|
+
});
|
|
235
|
+
const marshalQualificationDeploySoftware = (request, defaults) => ({
|
|
236
|
+
sub_use_case: request.subUseCase
|
|
237
|
+
});
|
|
215
238
|
const marshalQualificationHostApplication = (request, defaults) => ({
|
|
216
239
|
sub_use_case: request.subUseCase
|
|
217
240
|
});
|
|
218
241
|
const marshalQualificationHostWebsite = (request, defaults) => ({
|
|
219
242
|
sub_use_case: request.subUseCase
|
|
220
243
|
});
|
|
221
|
-
const marshalQualificationOtherUseCase = (request, defaults) => ({
|
|
222
|
-
|
|
223
|
-
|
|
244
|
+
const marshalQualificationOtherUseCase = (request, defaults) => ({
|
|
245
|
+
sub_use_case: request.subUseCase
|
|
246
|
+
});
|
|
247
|
+
const marshalQualificationSetScalewayEnvironment = (request, defaults) => ({
|
|
248
|
+
sub_use_case: request.subUseCase
|
|
249
|
+
});
|
|
250
|
+
const marshalQualificationShareData = (request, defaults) => ({
|
|
251
|
+
sub_use_case: request.subUseCase
|
|
252
|
+
});
|
|
224
253
|
const marshalQualification = (request, defaults) => ({
|
|
225
254
|
architecture_type: request.architectureType,
|
|
226
255
|
...resolveOneOf([
|
|
@@ -2,42 +2,27 @@ import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
|
|
|
2
2
|
export type ContractType = 'unknown_type' | 'global' | 'k8s' | 'instance' | 'container' | 'baremetal';
|
|
3
3
|
export type ListContractSignaturesRequestOrderBy = 'signed_at_asc' | 'signed_at_desc' | 'expires_at_asc' | 'expires_at_desc' | 'name_asc' | 'name_desc';
|
|
4
4
|
export type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
|
+
export type QualificationAiMachineSubUseCase = 'unknown_sub_use_case';
|
|
5
6
|
export type QualificationArchitectureType = 'unknown_architecture_type' | 'object_storage' | 'web_hosting' | 'instance' | 'elastic' | 'kubernetes' | 'serverless' | 'dedicated_server' | 'other_architecture_type';
|
|
7
|
+
export type QualificationArchiveDataSubUseCase = 'unknown_sub_use_case';
|
|
8
|
+
export type QualificationContainerSubUseCase = 'unknown_sub_use_case';
|
|
9
|
+
export type QualificationDeploySoftwareSubUseCase = 'unknown_sub_use_case';
|
|
6
10
|
export type QualificationHostApplicationSubUseCase = 'unknown_sub_use_case' | 'saas_app' | 'government_app';
|
|
7
11
|
export type QualificationHostWebsiteSubUseCase = 'unknown_sub_use_case' | 'information_website' | 'ecommerce_website' | 'high_website' | 'other_sub_use_case';
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
/**
|
|
14
|
-
* The type of the contract.
|
|
15
|
-
*/
|
|
16
|
-
type: ContractType;
|
|
17
|
-
/**
|
|
18
|
-
* The name of the contract.
|
|
19
|
-
*/
|
|
20
|
-
name: string;
|
|
21
|
-
/**
|
|
22
|
-
* The version of the contract.
|
|
23
|
-
*/
|
|
24
|
-
version: number;
|
|
25
|
-
/**
|
|
26
|
-
* The creation date of the contract.
|
|
27
|
-
*/
|
|
28
|
-
createdAt?: Date;
|
|
29
|
-
/**
|
|
30
|
-
* The last modification date of the contract.
|
|
31
|
-
*/
|
|
32
|
-
updatedAt?: Date;
|
|
33
|
-
}
|
|
12
|
+
export type QualificationOtherUseCaseSubUseCase = 'unknown_sub_use_case';
|
|
13
|
+
export type QualificationSetScalewayEnvironmentSubUseCase = 'unknown_sub_use_case';
|
|
14
|
+
export type QualificationShareDataSubUseCase = 'unknown_sub_use_case';
|
|
34
15
|
export interface QualificationAiMachine {
|
|
16
|
+
subUseCase: QualificationAiMachineSubUseCase;
|
|
35
17
|
}
|
|
36
18
|
export interface QualificationArchiveData {
|
|
19
|
+
subUseCase: QualificationArchiveDataSubUseCase;
|
|
37
20
|
}
|
|
38
21
|
export interface QualificationContainer {
|
|
22
|
+
subUseCase: QualificationContainerSubUseCase;
|
|
39
23
|
}
|
|
40
24
|
export interface QualificationDeploySoftware {
|
|
25
|
+
subUseCase: QualificationDeploySoftwareSubUseCase;
|
|
41
26
|
}
|
|
42
27
|
export interface QualificationHostApplication {
|
|
43
28
|
subUseCase: QualificationHostApplicationSubUseCase;
|
|
@@ -46,62 +31,39 @@ export interface QualificationHostWebsite {
|
|
|
46
31
|
subUseCase: QualificationHostWebsiteSubUseCase;
|
|
47
32
|
}
|
|
48
33
|
export interface QualificationOtherUseCase {
|
|
34
|
+
subUseCase: QualificationOtherUseCaseSubUseCase;
|
|
49
35
|
}
|
|
50
36
|
export interface QualificationSetScalewayEnvironment {
|
|
37
|
+
subUseCase: QualificationSetScalewayEnvironmentSubUseCase;
|
|
51
38
|
}
|
|
52
39
|
export interface QualificationShareData {
|
|
40
|
+
subUseCase: QualificationShareDataSubUseCase;
|
|
53
41
|
}
|
|
54
|
-
export interface
|
|
42
|
+
export interface Contract {
|
|
55
43
|
/**
|
|
56
|
-
* ID of the contract
|
|
44
|
+
* ID of the contract.
|
|
57
45
|
*/
|
|
58
46
|
id: string;
|
|
59
47
|
/**
|
|
60
|
-
* The
|
|
61
|
-
*/
|
|
62
|
-
organizationId: string;
|
|
63
|
-
/**
|
|
64
|
-
* The creation date of the contract signature.
|
|
65
|
-
*/
|
|
66
|
-
createdAt?: Date;
|
|
67
|
-
/**
|
|
68
|
-
* The signing date of the contract signature.
|
|
69
|
-
*/
|
|
70
|
-
signedAt?: Date;
|
|
71
|
-
/**
|
|
72
|
-
* The expiration date of the contract signature.
|
|
73
|
-
*/
|
|
74
|
-
expiresAt?: Date;
|
|
75
|
-
/**
|
|
76
|
-
* The contract signed.
|
|
77
|
-
*/
|
|
78
|
-
contract?: Contract;
|
|
79
|
-
}
|
|
80
|
-
export interface Project {
|
|
81
|
-
/**
|
|
82
|
-
* ID of the Project.
|
|
48
|
+
* The type of the contract.
|
|
83
49
|
*/
|
|
84
|
-
|
|
50
|
+
type: ContractType;
|
|
85
51
|
/**
|
|
86
|
-
*
|
|
52
|
+
* The name of the contract.
|
|
87
53
|
*/
|
|
88
54
|
name: string;
|
|
89
55
|
/**
|
|
90
|
-
*
|
|
56
|
+
* The version of the contract.
|
|
91
57
|
*/
|
|
92
|
-
|
|
58
|
+
version: number;
|
|
93
59
|
/**
|
|
94
|
-
*
|
|
60
|
+
* The creation date of the contract.
|
|
95
61
|
*/
|
|
96
62
|
createdAt?: Date;
|
|
97
63
|
/**
|
|
98
|
-
*
|
|
64
|
+
* The last modification date of the contract.
|
|
99
65
|
*/
|
|
100
66
|
updatedAt?: Date;
|
|
101
|
-
/**
|
|
102
|
-
* Description of the Project.
|
|
103
|
-
*/
|
|
104
|
-
description: string;
|
|
105
67
|
}
|
|
106
68
|
export interface Qualification {
|
|
107
69
|
/**
|
|
@@ -154,6 +116,62 @@ export interface Qualification {
|
|
|
154
116
|
*/
|
|
155
117
|
otherUseCase?: QualificationOtherUseCase;
|
|
156
118
|
}
|
|
119
|
+
export interface ContractSignature {
|
|
120
|
+
/**
|
|
121
|
+
* ID of the contract signature.
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* The Organization ID which signed the contract.
|
|
126
|
+
*/
|
|
127
|
+
organizationId: string;
|
|
128
|
+
/**
|
|
129
|
+
* The creation date of the contract signature.
|
|
130
|
+
*/
|
|
131
|
+
createdAt?: Date;
|
|
132
|
+
/**
|
|
133
|
+
* The signing date of the contract signature.
|
|
134
|
+
*/
|
|
135
|
+
signedAt?: Date;
|
|
136
|
+
/**
|
|
137
|
+
* The expiration date of the contract signature.
|
|
138
|
+
*/
|
|
139
|
+
expiresAt?: Date;
|
|
140
|
+
/**
|
|
141
|
+
* The contract signed.
|
|
142
|
+
*/
|
|
143
|
+
contract?: Contract;
|
|
144
|
+
}
|
|
145
|
+
export interface Project {
|
|
146
|
+
/**
|
|
147
|
+
* ID of the Project.
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
/**
|
|
151
|
+
* Name of the Project.
|
|
152
|
+
*/
|
|
153
|
+
name: string;
|
|
154
|
+
/**
|
|
155
|
+
* Organization ID of the Project.
|
|
156
|
+
*/
|
|
157
|
+
organizationId: string;
|
|
158
|
+
/**
|
|
159
|
+
* Creation date of the Project.
|
|
160
|
+
*/
|
|
161
|
+
createdAt?: Date;
|
|
162
|
+
/**
|
|
163
|
+
* Update date of the Project.
|
|
164
|
+
*/
|
|
165
|
+
updatedAt?: Date;
|
|
166
|
+
/**
|
|
167
|
+
* Description of the Project.
|
|
168
|
+
*/
|
|
169
|
+
description: string;
|
|
170
|
+
/**
|
|
171
|
+
* Qualification of the Project.
|
|
172
|
+
*/
|
|
173
|
+
qualification?: Qualification;
|
|
174
|
+
}
|
|
157
175
|
export interface CheckContractSignatureResponse {
|
|
158
176
|
/**
|
|
159
177
|
* Whether a signature has been requested for this contract.
|
|
@@ -447,7 +447,7 @@ export interface Offer {
|
|
|
447
447
|
*/
|
|
448
448
|
commercialRange: string;
|
|
449
449
|
/**
|
|
450
|
-
* Price of the offer for the next 60 minutes (a server order at 11h32 will be
|
|
450
|
+
* Price of the offer for the next 60 minutes (a server order at 11h32 will be paid until 12h32).
|
|
451
451
|
*/
|
|
452
452
|
pricePerHour?: Money;
|
|
453
453
|
/**
|