@scaleway/sdk 0.1.0-beta.30 → 0.1.0-beta.32
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.js +2 -2
- package/dist/api/account/v2/api.gen.js +3 -3
- package/dist/api/account/v2/index.gen.js +3 -0
- package/dist/api/account/v2alpha1/api.gen.js +2 -2
- package/dist/api/applesilicon/index.js +2 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.js +4 -4
- package/dist/api/applesilicon/v1alpha1/index.gen.js +4 -0
- package/dist/api/baremetal/v1/api.gen.js +6 -6
- package/dist/api/baremetal/v1/api.utils.js +2 -2
- package/dist/api/baremetal/v1/index.js +3 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +2 -2
- package/dist/api/baremetal/v1/validation-rules.gen.js +109 -0
- package/dist/api/container/index.js +2 -2
- package/dist/api/container/v1beta1/api.gen.js +4 -4
- package/dist/api/container/v1beta1/{index.js → index.gen.js} +3 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +6 -6
- package/dist/api/domain/index.js +2 -2
- package/dist/api/domain/v2beta1/api.gen.js +5 -5
- package/dist/api/domain/v2beta1/{index.js → index.gen.js} +3 -1
- package/dist/api/domain/v2beta1/marshalling.gen.js +1 -1
- package/dist/api/flexibleip/index.js +2 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.js +4 -4
- package/dist/api/flexibleip/v1alpha1/index.gen.js +6 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +14 -0
- package/dist/api/function/index.js +2 -2
- package/dist/api/function/v1beta1/api.gen.js +4 -4
- package/dist/api/function/v1beta1/{index.js → index.gen.js} +3 -1
- package/dist/api/function/v1beta1/marshalling.gen.js +7 -7
- package/dist/api/iam/index.js +2 -2
- package/dist/api/iam/v1alpha1/api.gen.js +3 -3
- package/dist/api/iam/v1alpha1/index.gen.js +5 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +181 -0
- package/dist/api/instance/v1/api.gen.js +37 -22
- package/dist/api/instance/v1/api.utils.js +23 -2
- package/dist/api/instance/v1/marshalling.gen.js +8 -8
- package/dist/api/instance/v1/marshalling.utils.js +63 -0
- package/dist/api/iot/index.js +2 -2
- package/dist/api/iot/v1/api.gen.js +4 -4
- package/dist/api/iot/v1/index.gen.js +4 -0
- package/dist/api/iot/v1/marshalling.gen.js +1 -1
- package/dist/api/k8s/index.js +2 -2
- package/dist/api/k8s/v1/api.gen.js +4 -4
- package/dist/api/k8s/v1/index.gen.js +6 -0
- package/dist/api/k8s/v1/marshalling.gen.js +2 -2
- package/dist/api/k8s/v1/validation-rules.gen.js +92 -0
- package/dist/api/lb/v1/api.gen.js +6 -6
- package/dist/api/lb/v1/api.utils.js +3 -3
- package/dist/api/lb/v1/marshalling.gen.js +12 -12
- package/dist/api/marketplace/index.js +4 -4
- package/dist/api/marketplace/v1/api.gen.js +3 -3
- package/dist/api/marketplace/v1/index.gen.js +3 -0
- package/dist/api/marketplace/v2/api.gen.js +3 -3
- package/dist/api/marketplace/v2/index.gen.js +3 -0
- package/dist/api/mnq/index.js +2 -2
- package/dist/api/mnq/v1alpha1/api.gen.js +4 -4
- package/dist/api/mnq/v1alpha1/index.gen.js +3 -0
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +0 -21
- package/dist/api/rdb/index.js +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -5
- package/dist/api/rdb/v1/{index.js → index.gen.js} +3 -1
- package/dist/api/rdb/v1/marshalling.gen.js +2 -2
- package/dist/api/redis/index.js +2 -2
- package/dist/api/redis/v1/api.gen.js +4 -4
- package/dist/api/redis/v1/index.gen.js +4 -0
- package/dist/api/redis/v1alpha1/api.gen.js +2 -2
- package/dist/api/registry/index.js +2 -2
- package/dist/api/registry/v1/api.gen.js +4 -4
- package/dist/api/registry/v1/{index.js → index.gen.js} +3 -1
- package/dist/api/registry/v1/marshalling.gen.js +1 -1
- package/dist/api/tem/index.js +2 -2
- package/dist/api/tem/v1alpha1/api.gen.js +4 -4
- package/dist/api/tem/v1alpha1/index.gen.js +4 -0
- package/dist/api/test/index.js +2 -2
- package/dist/api/test/v1/api.gen.js +3 -3
- package/dist/api/test/v1/index.gen.js +4 -0
- package/dist/api/test/v1/marshalling.gen.js +2 -2
- package/dist/api/vpc/index.js +2 -2
- package/dist/api/vpc/v1/api.gen.js +4 -4
- package/dist/api/vpc/v1/index.gen.js +3 -0
- package/dist/api/vpcgw/index.js +2 -2
- package/dist/api/vpcgw/v1/api.gen.js +4 -4
- package/dist/api/vpcgw/v1/{index.js → index.gen.js} +3 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +2 -2
- package/dist/index.cjs +818 -262
- package/dist/index.d.ts +3432 -3002
- package/dist/scw/api.js +3 -3
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
- package/dist/api/account/v2/index.js +0 -1
- package/dist/api/applesilicon/v1alpha1/index.js +0 -2
- package/dist/api/flexibleip/v1alpha1/index.js +0 -2
- package/dist/api/iam/v1alpha1/index.js +0 -1
- package/dist/api/iot/v1/index.js +0 -2
- package/dist/api/k8s/v1/index.js +0 -2
- package/dist/api/marketplace/v1/index.js +0 -1
- package/dist/api/marketplace/v2/index.js +0 -1
- package/dist/api/mnq/v1alpha1/index.js +0 -1
- package/dist/api/redis/v1/index.js +0 -2
- package/dist/api/tem/v1alpha1/index.js +0 -1
- package/dist/api/test/v1/index.js +0 -1
- package/dist/api/vpc/v1/index.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API } from '../../../scw/api.js';
|
|
1
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { urlParams, validatePathParam } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
4
|
import { marshalCreateProjectRequest, unmarshalProject, unmarshalListProjectsResponse, marshalUpdateProjectRequest } from './marshalling.gen.js';
|
|
@@ -13,7 +13,7 @@ const jsonContentHeaders = {
|
|
|
13
13
|
*
|
|
14
14
|
* This API allows you to manage projects.
|
|
15
15
|
*/
|
|
16
|
-
class
|
|
16
|
+
class API extends API$1 {
|
|
17
17
|
constructor() {
|
|
18
18
|
var _this;
|
|
19
19
|
super(...arguments);
|
|
@@ -72,4 +72,4 @@ class AccountV2GenAPI extends API {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { API };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API } from '../../../scw/api.js';
|
|
1
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { urlParams, validatePathParam } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
4
|
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest } from './marshalling.gen.js';
|
|
@@ -9,7 +9,7 @@ const jsonContentHeaders = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
/** Account API. */
|
|
12
|
-
class AccountV2Alpha1GenAPI extends API {
|
|
12
|
+
class AccountV2Alpha1GenAPI extends API$1 {
|
|
13
13
|
constructor() {
|
|
14
14
|
var _this;
|
|
15
15
|
super(...arguments);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v1alpha1/index.gen.js';
|
|
2
|
+
export { index_gen as v1alpha1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { SERVER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -31,7 +31,7 @@ const jsonContentHeaders = {
|
|
|
31
31
|
* Cisco in the U.S. and other countries and is used by Apple under license.
|
|
32
32
|
* Scaleway is not affiliated with Apple Inc.
|
|
33
33
|
*/
|
|
34
|
-
class
|
|
34
|
+
class API extends API$1 {
|
|
35
35
|
constructor() {
|
|
36
36
|
var _this;
|
|
37
37
|
super(...arguments);
|
|
@@ -120,6 +120,6 @@ class ApplesiliconV1Alpha1GenAPI extends API {
|
|
|
120
120
|
}, unmarshalServer);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
API.LOCALITIES = ['fr-par-3'];
|
|
124
124
|
|
|
125
|
-
export {
|
|
125
|
+
export { API };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { SERVER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -15,7 +15,7 @@ const jsonContentHeaders = {
|
|
|
15
15
|
*
|
|
16
16
|
* This API allows to manage your Bare metal server.
|
|
17
17
|
*/
|
|
18
|
-
class
|
|
18
|
+
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
var _this;
|
|
21
21
|
super(...arguments);
|
|
@@ -207,8 +207,8 @@ class BaremetalV1GenAPI extends API {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/** Elastic Metal Private Network API. */
|
|
210
|
-
|
|
211
|
-
class
|
|
210
|
+
API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
211
|
+
class PrivateNetworkAPI extends API$1 {
|
|
212
212
|
constructor() {
|
|
213
213
|
var _this2;
|
|
214
214
|
super(...arguments);
|
|
@@ -247,6 +247,6 @@ class BaremetalPrivateNetworkV1GenAPI extends API {
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
PrivateNetworkAPI.LOCALITIES = ['fr-par-2'];
|
|
251
251
|
|
|
252
|
-
export {
|
|
252
|
+
export { API, PrivateNetworkAPI };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tryAtIntervals, createExponentialBackoffStrategy } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import {
|
|
2
|
+
import { API } from './api.gen.js';
|
|
3
3
|
import { SERVER_INSTALL_TRANSIENT_STATUSES } from './content.gen.js';
|
|
4
4
|
|
|
5
|
-
class BaremetalV1UtilsAPI extends
|
|
5
|
+
class BaremetalV1UtilsAPI extends API {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
this.waitForServerInstall = (request, options) => tryAtIntervals(async () => {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { BaremetalV1UtilsAPI as API } from './api.utils.js';
|
|
2
|
-
export {
|
|
2
|
+
export { PrivateNetworkAPI } from './api.gen.js';
|
|
3
3
|
export { SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
4
|
+
import * as validationRules_gen from './validation-rules.gen.js';
|
|
5
|
+
export { validationRules_gen as ValidationRules };
|
|
@@ -378,13 +378,13 @@ const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (request, defaul
|
|
|
378
378
|
private_network_ids: request.privateNetworkIds
|
|
379
379
|
});
|
|
380
380
|
const marshalRebootServerRequest = (request, defaults) => ({
|
|
381
|
-
boot_type: request.bootType
|
|
381
|
+
boot_type: request.bootType ?? 'unknown_boot_type'
|
|
382
382
|
});
|
|
383
383
|
const marshalStartBMCAccessRequest = (request, defaults) => ({
|
|
384
384
|
ip: request.ip
|
|
385
385
|
});
|
|
386
386
|
const marshalStartServerRequest = (request, defaults) => ({
|
|
387
|
-
boot_type: request.bootType
|
|
387
|
+
boot_type: request.bootType ?? 'unknown_boot_type'
|
|
388
388
|
});
|
|
389
389
|
const marshalUpdateIPRequest = (request, defaults) => ({
|
|
390
390
|
reverse: request.reverse
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
2
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3
|
+
|
|
4
|
+
const CreateServerRequest = {
|
|
5
|
+
description: {
|
|
6
|
+
maxLength: 255
|
|
7
|
+
},
|
|
8
|
+
name: {
|
|
9
|
+
minLength: 1
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const CreateServerRequestInstall = {
|
|
13
|
+
hostname: {
|
|
14
|
+
maxLength: 255
|
|
15
|
+
},
|
|
16
|
+
password: {
|
|
17
|
+
maxLength: 255
|
|
18
|
+
},
|
|
19
|
+
servicePassword: {
|
|
20
|
+
maxLength: 255
|
|
21
|
+
},
|
|
22
|
+
serviceUser: {
|
|
23
|
+
maxLength: 255
|
|
24
|
+
},
|
|
25
|
+
user: {
|
|
26
|
+
maxLength: 255
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const InstallServerRequest = {
|
|
30
|
+
hostname: {
|
|
31
|
+
maxLength: 255
|
|
32
|
+
},
|
|
33
|
+
password: {
|
|
34
|
+
maxLength: 255
|
|
35
|
+
},
|
|
36
|
+
servicePassword: {
|
|
37
|
+
maxLength: 255
|
|
38
|
+
},
|
|
39
|
+
serviceUser: {
|
|
40
|
+
maxLength: 255
|
|
41
|
+
},
|
|
42
|
+
user: {
|
|
43
|
+
maxLength: 255
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const ListOSRequest = {
|
|
47
|
+
page: {
|
|
48
|
+
greaterThan: 0
|
|
49
|
+
},
|
|
50
|
+
pageSize: {
|
|
51
|
+
greaterThan: 0,
|
|
52
|
+
lessThanOrEqual: 100
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const ListOffersRequest = {
|
|
56
|
+
page: {
|
|
57
|
+
greaterThan: 0
|
|
58
|
+
},
|
|
59
|
+
pageSize: {
|
|
60
|
+
greaterThan: 0,
|
|
61
|
+
lessThanOrEqual: 100
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const ListOptionsRequest = {
|
|
65
|
+
page: {
|
|
66
|
+
greaterThan: 0
|
|
67
|
+
},
|
|
68
|
+
pageSize: {
|
|
69
|
+
greaterThan: 0,
|
|
70
|
+
lessThanOrEqual: 100
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const ListServerEventsRequest = {
|
|
74
|
+
page: {
|
|
75
|
+
greaterThan: 0
|
|
76
|
+
},
|
|
77
|
+
pageSize: {
|
|
78
|
+
greaterThan: 0,
|
|
79
|
+
lessThanOrEqual: 100
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const ListServersRequest = {
|
|
83
|
+
page: {
|
|
84
|
+
greaterThan: 0
|
|
85
|
+
},
|
|
86
|
+
pageSize: {
|
|
87
|
+
greaterThan: 0,
|
|
88
|
+
lessThanOrEqual: 100
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const ListSettingsRequest = {
|
|
92
|
+
page: {
|
|
93
|
+
greaterThan: 0
|
|
94
|
+
},
|
|
95
|
+
pageSize: {
|
|
96
|
+
greaterThan: 0,
|
|
97
|
+
lessThanOrEqual: 100
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const UpdateServerRequest = {
|
|
101
|
+
description: {
|
|
102
|
+
maxLength: 255
|
|
103
|
+
},
|
|
104
|
+
name: {
|
|
105
|
+
maxLength: 255
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export { CreateServerRequest, CreateServerRequestInstall, InstallServerRequest, ListOSRequest, ListOffersRequest, ListOptionsRequest, ListServerEventsRequest, ListServersRequest, ListSettingsRequest, UpdateServerRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v1beta1/index.gen.js';
|
|
2
|
+
export { index_gen as v1beta1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { NAMESPACE_TRANSIENT_STATUSES, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -15,7 +15,7 @@ const jsonContentHeaders = {
|
|
|
15
15
|
*
|
|
16
16
|
* Serverless Containers API.
|
|
17
17
|
*/
|
|
18
|
-
class
|
|
18
|
+
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
var _this;
|
|
21
21
|
super(...arguments);
|
|
@@ -203,6 +203,6 @@ class ContainerV1Beta1GenAPI extends API {
|
|
|
203
203
|
}, unmarshalToken);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { API };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
|
+
|
|
4
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -174,7 +174,7 @@ const marshalSecret = (request, defaults) => ({
|
|
|
174
174
|
const marshalCreateContainerRequest = (request, defaults) => ({
|
|
175
175
|
description: request.description,
|
|
176
176
|
environment_variables: request.environmentVariables,
|
|
177
|
-
http_option: request.httpOption,
|
|
177
|
+
http_option: request.httpOption ?? 'unknown_http_option',
|
|
178
178
|
max_concurrency: request.maxConcurrency,
|
|
179
179
|
max_scale: request.maxScale,
|
|
180
180
|
memory_limit: request.memoryLimit,
|
|
@@ -182,8 +182,8 @@ const marshalCreateContainerRequest = (request, defaults) => ({
|
|
|
182
182
|
name: request.name || randomName('ctnr'),
|
|
183
183
|
namespace_id: request.namespaceId,
|
|
184
184
|
port: request.port,
|
|
185
|
-
privacy: request.privacy,
|
|
186
|
-
protocol: request.protocol,
|
|
185
|
+
privacy: request.privacy ?? 'unknown_privacy',
|
|
186
|
+
protocol: request.protocol ?? 'unknown_protocol',
|
|
187
187
|
registry_image: request.registryImage,
|
|
188
188
|
secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
|
189
189
|
timeout: request.timeout
|
|
@@ -219,14 +219,14 @@ const marshalCreateTokenRequest = (request, defaults) => ({
|
|
|
219
219
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
220
220
|
description: request.description,
|
|
221
221
|
environment_variables: request.environmentVariables,
|
|
222
|
-
http_option: request.httpOption,
|
|
222
|
+
http_option: request.httpOption ?? 'unknown_http_option',
|
|
223
223
|
max_concurrency: request.maxConcurrency,
|
|
224
224
|
max_scale: request.maxScale,
|
|
225
225
|
memory_limit: request.memoryLimit,
|
|
226
226
|
min_scale: request.minScale,
|
|
227
227
|
port: request.port,
|
|
228
|
-
privacy: request.privacy,
|
|
229
|
-
protocol: request.protocol,
|
|
228
|
+
privacy: request.privacy ?? 'unknown_privacy',
|
|
229
|
+
protocol: request.protocol ?? 'unknown_protocol',
|
|
230
230
|
redeploy: request.redeploy,
|
|
231
231
|
registry_image: request.registryImage,
|
|
232
232
|
secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
package/dist/api/domain/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v2beta1/index.gen.js';
|
|
2
|
+
export { index_gen as v2beta1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { unmarshalScwFile } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { urlParams, validatePathParam } from '../../../helpers/marshalling.js';
|
|
@@ -16,7 +16,7 @@ const jsonContentHeaders = {
|
|
|
16
16
|
*
|
|
17
17
|
* Manage your DNS zones and records.
|
|
18
18
|
*/
|
|
19
|
-
class
|
|
19
|
+
class API extends API$1 {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.pageOfListDNSZones = request => this.client.fetch({
|
|
@@ -78,7 +78,7 @@ class DomainV2Beta1GenAPI extends API {
|
|
|
78
78
|
this.exportRawDNSZone = request => this.client.fetch({
|
|
79
79
|
method: 'GET',
|
|
80
80
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`,
|
|
81
|
-
urlParams: urlParams(['format', request.format])
|
|
81
|
+
urlParams: urlParams(['format', request.format ?? 'unknown_raw_format'])
|
|
82
82
|
}, unmarshalScwFile);
|
|
83
83
|
this.importRawDNSZone = request => this.client.fetch({
|
|
84
84
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
@@ -157,7 +157,7 @@ class DomainV2Beta1GenAPI extends API {
|
|
|
157
157
|
*
|
|
158
158
|
* Manage your domains and contacts.
|
|
159
159
|
*/
|
|
160
|
-
class
|
|
160
|
+
class RegistrarAPI extends API$1 {
|
|
161
161
|
constructor() {
|
|
162
162
|
var _this;
|
|
163
163
|
super(...arguments);
|
|
@@ -352,4 +352,4 @@ class DomainRegistrarV2Beta1GenAPI extends API {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
export {
|
|
355
|
+
export { API, RegistrarAPI };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { API, RegistrarAPI } from './api.gen.js';
|
|
2
2
|
export { DNS_ZONE_TRANSIENT_STATUSES, DOMAIN_FEATURE_TRANSIENT_STATUSES, DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOST_TRANSIENT_STATUSES, SSL_CERTIFICATE_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
|
+
|
|
4
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -1110,7 +1110,7 @@ const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
|
1110
1110
|
extension_fr: request.extensionFr ? marshalContactExtensionFR(request.extensionFr) : undefined,
|
|
1111
1111
|
extension_nl: request.extensionNl ? marshalContactExtensionNL(request.extensionNl) : undefined,
|
|
1112
1112
|
fax_number: request.faxNumber,
|
|
1113
|
-
lang: request.lang,
|
|
1113
|
+
lang: request.lang ?? 'unknown_language_code',
|
|
1114
1114
|
phone_number: request.phoneNumber,
|
|
1115
1115
|
questions: request.questions ? request.questions.map(elt => marshalUpdateContactRequestQuestion(elt)) : undefined,
|
|
1116
1116
|
resale: request.resale,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v1alpha1/index.gen.js';
|
|
2
|
+
export { index_gen as v1alpha1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { FLEXIBLE_IP_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -11,7 +11,7 @@ const jsonContentHeaders = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/** Flexible IP API. */
|
|
14
|
-
class
|
|
14
|
+
class API extends API$1 {
|
|
15
15
|
constructor() {
|
|
16
16
|
var _this;
|
|
17
17
|
super(...arguments);
|
|
@@ -89,6 +89,6 @@ class FlexibleipV1Alpha1GenAPI extends API {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
93
93
|
|
|
94
|
-
export {
|
|
94
|
+
export { API };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export { FLEXIBLE_IP_TRANSIENT_STATUSES, MAC_ADDRESS_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
|
+
import * as validationRules_gen from './validation-rules.gen.js';
|
|
4
|
+
export { validationRules_gen as ValidationRules };
|
|
5
|
+
|
|
6
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
2
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3
|
+
|
|
4
|
+
const ListFlexibleIPsRequest = {
|
|
5
|
+
page: {
|
|
6
|
+
greaterThan: 0
|
|
7
|
+
},
|
|
8
|
+
pageSize: {
|
|
9
|
+
greaterThan: 0,
|
|
10
|
+
lessThanOrEqual: 100
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListFlexibleIPsRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v1beta1/index.gen.js';
|
|
2
|
+
export { index_gen as v1beta1 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { NAMESPACE_TRANSIENT_STATUSES, FUNCTION_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES, TRIGGER_INPUT_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -15,7 +15,7 @@ const jsonContentHeaders = {
|
|
|
15
15
|
*
|
|
16
16
|
* Serverless functions API.
|
|
17
17
|
*/
|
|
18
|
-
class
|
|
18
|
+
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
var _this;
|
|
21
21
|
super(...arguments);
|
|
@@ -281,6 +281,6 @@ class FunctionV1Beta1GenAPI extends API {
|
|
|
281
281
|
}, unmarshalTriggerInput);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
285
285
|
|
|
286
|
-
export {
|
|
286
|
+
export { API };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export { CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, FUNCTION_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_INPUT_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
|
+
|
|
4
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -382,14 +382,14 @@ const marshalCreateFunctionRequest = (request, defaults) => ({
|
|
|
382
382
|
description: request.description,
|
|
383
383
|
environment_variables: request.environmentVariables,
|
|
384
384
|
handler: request.handler,
|
|
385
|
-
http_option: request.httpOption,
|
|
385
|
+
http_option: request.httpOption ?? 'unknown_http_option',
|
|
386
386
|
max_scale: request.maxScale,
|
|
387
387
|
memory_limit: request.memoryLimit,
|
|
388
388
|
min_scale: request.minScale,
|
|
389
389
|
name: request.name || randomName('fn'),
|
|
390
390
|
namespace_id: request.namespaceId,
|
|
391
|
-
privacy: request.privacy,
|
|
392
|
-
runtime: request.runtime,
|
|
391
|
+
privacy: request.privacy ?? 'unknown_privacy',
|
|
392
|
+
runtime: request.runtime ?? 'unknown_runtime',
|
|
393
393
|
secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
|
394
394
|
timeout: request.timeout
|
|
395
395
|
});
|
|
@@ -426,7 +426,7 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
426
426
|
description: request.description,
|
|
427
427
|
function_id: request.functionId,
|
|
428
428
|
name: request.name,
|
|
429
|
-
type: request.type,
|
|
429
|
+
type: request.type ?? 'unknown_trigger_type',
|
|
430
430
|
...resolveOneOf([{
|
|
431
431
|
param: 'nats_failure_handling_policy',
|
|
432
432
|
value: request.natsFailureHandlingPolicy ? marshalCreateTriggerRequestNatsFailureHandlingPolicy(request.natsFailureHandlingPolicy) : undefined
|
|
@@ -455,13 +455,13 @@ const marshalUpdateFunctionRequest = (request, defaults) => ({
|
|
|
455
455
|
description: request.description,
|
|
456
456
|
environment_variables: request.environmentVariables,
|
|
457
457
|
handler: request.handler,
|
|
458
|
-
http_option: request.httpOption,
|
|
458
|
+
http_option: request.httpOption ?? 'unknown_http_option',
|
|
459
459
|
max_scale: request.maxScale,
|
|
460
460
|
memory_limit: request.memoryLimit,
|
|
461
461
|
min_scale: request.minScale,
|
|
462
|
-
privacy: request.privacy,
|
|
462
|
+
privacy: request.privacy ?? 'unknown_privacy',
|
|
463
463
|
redeploy: request.redeploy,
|
|
464
|
-
runtime: request.runtime,
|
|
464
|
+
runtime: request.runtime ?? 'unknown_runtime',
|
|
465
465
|
secret_environment_variables: request.secretEnvironmentVariables ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
|
466
466
|
timeout: request.timeout
|
|
467
467
|
});
|
package/dist/api/iam/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export {
|
|
1
|
+
import * as index_gen from './v1alpha1/index.gen.js';
|
|
2
|
+
export { index_gen as v1alpha1 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API } from '../../../scw/api.js';
|
|
1
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { urlParams, validatePathParam, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
4
|
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest } from './marshalling.gen.js';
|
|
@@ -9,7 +9,7 @@ const jsonContentHeaders = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
/** IAM API. */
|
|
12
|
-
class
|
|
12
|
+
class API extends API$1 {
|
|
13
13
|
constructor() {
|
|
14
14
|
var _this;
|
|
15
15
|
super(...arguments);
|
|
@@ -279,4 +279,4 @@ class IamV1Alpha1GenAPI extends API {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
export {
|
|
282
|
+
export { API };
|