@scaleway/sdk 1.14.0 → 1.16.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/v2/api.gen.js +77 -60
- package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
- package/dist/api/baremetal/v1/api.gen.js +434 -378
- package/dist/api/baremetal/v1/api.utils.js +19 -22
- package/dist/api/billing/v2alpha1/api.gen.js +21 -17
- package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
- package/dist/api/container/v1beta1/api.gen.js +384 -337
- package/dist/api/domain/v2beta1/api.gen.js +754 -668
- package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
- package/dist/api/function/v1beta1/api.gen.js +467 -407
- package/dist/api/iam/v1alpha1/api.gen.js +641 -557
- package/dist/api/instance/v1/api.gen.js +803 -677
- package/dist/api/instance/v1/api.utils.js +337 -325
- package/dist/api/instance/v1/content.gen.js +4 -1
- package/dist/api/instance/v1/index.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +27 -4
- package/dist/api/iot/v1/api.gen.js +508 -452
- package/dist/api/ipfs/index.js +2 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
- package/dist/api/k8s/v1/api.gen.js +403 -342
- package/dist/api/k8s/v1/api.utils.js +7 -10
- package/dist/api/k8s/v1/marshalling.gen.js +19 -1
- package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
- package/dist/api/lb/v1/api.gen.js +1501 -1363
- package/dist/api/lb/v1/api.utils.js +71 -75
- package/dist/api/lb/v1/marshalling.gen.js +6 -0
- package/dist/api/marketplace/v1/api.gen.js +35 -32
- package/dist/api/marketplace/v2/api.gen.js +117 -102
- package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
- package/dist/api/rdb/v1/api.gen.js +897 -819
- package/dist/api/redis/v1/api.gen.js +358 -333
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/registry/v1/api.gen.js +211 -189
- package/dist/api/secret/v1alpha1/api.gen.js +295 -246
- package/dist/api/secret/v1alpha1/marshalling.gen.js +10 -1
- package/dist/api/tem/v1alpha1/api.gen.js +182 -147
- package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
- package/dist/api/test/v1/api.gen.js +116 -104
- package/dist/api/vpc/v1/api.gen.js +74 -65
- package/dist/api/vpc/v2/api.gen.js +200 -178
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +575 -501
- package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
- package/dist/api/webhosting/v1alpha1/content.gen.js +1 -1
- package/dist/index.cjs +924 -453
- package/dist/index.d.ts +2152 -1558
- package/dist/index.js +28 -26
- package/dist/internal/logger/console-logger.js +4 -5
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/scw-error.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.15.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -1577,7 +1577,7 @@ const createAdvancedClient = (...configs) => {
|
|
|
1577
1577
|
*/
|
|
1578
1578
|
const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
|
|
1579
1579
|
|
|
1580
|
-
var index$
|
|
1580
|
+
var index$u = /*#__PURE__*/Object.freeze({
|
|
1581
1581
|
__proto__: null,
|
|
1582
1582
|
AlreadyExistsError: AlreadyExistsError,
|
|
1583
1583
|
DeniedAuthenticationError: DeniedAuthenticationError,
|
|
@@ -1705,7 +1705,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
|
|
|
1705
1705
|
*
|
|
1706
1706
|
* @internal
|
|
1707
1707
|
*/
|
|
1708
|
-
let API$
|
|
1708
|
+
let API$s = class API {
|
|
1709
1709
|
constructor(client) {
|
|
1710
1710
|
this.client = client;
|
|
1711
1711
|
}
|
|
@@ -2067,7 +2067,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
|
|
|
2067
2067
|
|
|
2068
2068
|
// This file was automatically generated. DO NOT EDIT.
|
|
2069
2069
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2070
|
-
const jsonContentHeaders$
|
|
2070
|
+
const jsonContentHeaders$o = {
|
|
2071
2071
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2072
2072
|
};
|
|
2073
2073
|
|
|
@@ -2076,7 +2076,7 @@ const jsonContentHeaders$n = {
|
|
|
2076
2076
|
*
|
|
2077
2077
|
* User related data. This API allows you to manage projects.
|
|
2078
2078
|
*/
|
|
2079
|
-
let API$
|
|
2079
|
+
let API$r = class API extends API$s {
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Create a new Project for an Organization. Generate a new Project for an
|
|
2082
2082
|
* Organization, specifying its configuration including name and description.
|
|
@@ -2086,7 +2086,7 @@ let API$q = class API extends API$r {
|
|
|
2086
2086
|
*/
|
|
2087
2087
|
createProject = (request = {}) => this.client.fetch({
|
|
2088
2088
|
body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
|
|
2089
|
-
headers: jsonContentHeaders$
|
|
2089
|
+
headers: jsonContentHeaders$o,
|
|
2090
2090
|
method: 'POST',
|
|
2091
2091
|
path: `/account/v2/projects`
|
|
2092
2092
|
}, unmarshalProject);
|
|
@@ -2142,7 +2142,7 @@ let API$q = class API extends API$r {
|
|
|
2142
2142
|
*/
|
|
2143
2143
|
updateProject = (request = {}) => this.client.fetch({
|
|
2144
2144
|
body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
|
|
2145
|
-
headers: jsonContentHeaders$
|
|
2145
|
+
headers: jsonContentHeaders$o,
|
|
2146
2146
|
method: 'PATCH',
|
|
2147
2147
|
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
2148
2148
|
}, unmarshalProject);
|
|
@@ -2151,14 +2151,14 @@ let API$q = class API extends API$r {
|
|
|
2151
2151
|
// This file was automatically generated. DO NOT EDIT.
|
|
2152
2152
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2153
2153
|
|
|
2154
|
-
var index_gen$
|
|
2154
|
+
var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
2155
2155
|
__proto__: null,
|
|
2156
|
-
API: API$
|
|
2156
|
+
API: API$r
|
|
2157
2157
|
});
|
|
2158
2158
|
|
|
2159
|
-
var index$
|
|
2159
|
+
var index$t = /*#__PURE__*/Object.freeze({
|
|
2160
2160
|
__proto__: null,
|
|
2161
|
-
v2: index_gen$
|
|
2161
|
+
v2: index_gen$n
|
|
2162
2162
|
});
|
|
2163
2163
|
|
|
2164
2164
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2277,12 +2277,12 @@ const marshalUpdateServerRequest$2 = (request, defaults) => ({
|
|
|
2277
2277
|
|
|
2278
2278
|
// This file was automatically generated. DO NOT EDIT.
|
|
2279
2279
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2280
|
-
const jsonContentHeaders$
|
|
2280
|
+
const jsonContentHeaders$n = {
|
|
2281
2281
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2282
2282
|
};
|
|
2283
2283
|
|
|
2284
2284
|
/** Apple silicon API. */
|
|
2285
|
-
let API$
|
|
2285
|
+
let API$q = class API extends API$s {
|
|
2286
2286
|
/** Lists the available zones of the API. */
|
|
2287
2287
|
static LOCALITIES = ['fr-par-3'];
|
|
2288
2288
|
|
|
@@ -2320,7 +2320,7 @@ let API$p = class API extends API$r {
|
|
|
2320
2320
|
*/
|
|
2321
2321
|
createServer = request => this.client.fetch({
|
|
2322
2322
|
body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
|
|
2323
|
-
headers: jsonContentHeaders$
|
|
2323
|
+
headers: jsonContentHeaders$n,
|
|
2324
2324
|
method: 'POST',
|
|
2325
2325
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
2326
2326
|
}, unmarshalServer$2);
|
|
@@ -2398,7 +2398,7 @@ let API$p = class API extends API$r {
|
|
|
2398
2398
|
*/
|
|
2399
2399
|
updateServer = request => this.client.fetch({
|
|
2400
2400
|
body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
|
|
2401
|
-
headers: jsonContentHeaders$
|
|
2401
|
+
headers: jsonContentHeaders$n,
|
|
2402
2402
|
method: 'PATCH',
|
|
2403
2403
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
2404
2404
|
}, unmarshalServer$2);
|
|
@@ -2425,7 +2425,7 @@ let API$p = class API extends API$r {
|
|
|
2425
2425
|
*/
|
|
2426
2426
|
rebootServer = request => this.client.fetch({
|
|
2427
2427
|
body: '{}',
|
|
2428
|
-
headers: jsonContentHeaders$
|
|
2428
|
+
headers: jsonContentHeaders$n,
|
|
2429
2429
|
method: 'POST',
|
|
2430
2430
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
2431
2431
|
}, unmarshalServer$2);
|
|
@@ -2441,7 +2441,7 @@ let API$p = class API extends API$r {
|
|
|
2441
2441
|
*/
|
|
2442
2442
|
reinstallServer = request => this.client.fetch({
|
|
2443
2443
|
body: '{}',
|
|
2444
|
-
headers: jsonContentHeaders$
|
|
2444
|
+
headers: jsonContentHeaders$n,
|
|
2445
2445
|
method: 'POST',
|
|
2446
2446
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
|
|
2447
2447
|
}, unmarshalServer$2);
|
|
@@ -2450,15 +2450,15 @@ let API$p = class API extends API$r {
|
|
|
2450
2450
|
// This file was automatically generated. DO NOT EDIT.
|
|
2451
2451
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2452
2452
|
|
|
2453
|
-
var index_gen$
|
|
2453
|
+
var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
2454
2454
|
__proto__: null,
|
|
2455
|
-
API: API$
|
|
2455
|
+
API: API$q,
|
|
2456
2456
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
|
|
2457
2457
|
});
|
|
2458
2458
|
|
|
2459
|
-
var index$
|
|
2459
|
+
var index$s = /*#__PURE__*/Object.freeze({
|
|
2460
2460
|
__proto__: null,
|
|
2461
|
-
v1alpha1: index_gen$
|
|
2461
|
+
v1alpha1: index_gen$m
|
|
2462
2462
|
});
|
|
2463
2463
|
|
|
2464
2464
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2876,7 +2876,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
|
|
|
2876
2876
|
|
|
2877
2877
|
// This file was automatically generated. DO NOT EDIT.
|
|
2878
2878
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2879
|
-
const jsonContentHeaders$
|
|
2879
|
+
const jsonContentHeaders$m = {
|
|
2880
2880
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2881
2881
|
};
|
|
2882
2882
|
|
|
@@ -2885,7 +2885,7 @@ const jsonContentHeaders$l = {
|
|
|
2885
2885
|
*
|
|
2886
2886
|
* This API allows to manage your Elastic Metal server. Elastic Metal API.
|
|
2887
2887
|
*/
|
|
2888
|
-
let API$
|
|
2888
|
+
let API$p = class API extends API$s {
|
|
2889
2889
|
/** Lists the available zones of the API. */
|
|
2890
2890
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
2891
2891
|
pageOfListServers = (request = {}) => this.client.fetch({
|
|
@@ -2933,7 +2933,7 @@ let API$o = class API extends API$r {
|
|
|
2933
2933
|
*/
|
|
2934
2934
|
createServer = request => this.client.fetch({
|
|
2935
2935
|
body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
|
|
2936
|
-
headers: jsonContentHeaders$
|
|
2936
|
+
headers: jsonContentHeaders$m,
|
|
2937
2937
|
method: 'POST',
|
|
2938
2938
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
2939
2939
|
}, unmarshalServer$1);
|
|
@@ -2948,7 +2948,7 @@ let API$o = class API extends API$r {
|
|
|
2948
2948
|
*/
|
|
2949
2949
|
updateServer = request => this.client.fetch({
|
|
2950
2950
|
body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
|
|
2951
|
-
headers: jsonContentHeaders$
|
|
2951
|
+
headers: jsonContentHeaders$m,
|
|
2952
2952
|
method: 'PATCH',
|
|
2953
2953
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
2954
2954
|
}, unmarshalServer$1);
|
|
@@ -2962,7 +2962,7 @@ let API$o = class API extends API$r {
|
|
|
2962
2962
|
*/
|
|
2963
2963
|
installServer = request => this.client.fetch({
|
|
2964
2964
|
body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
|
|
2965
|
-
headers: jsonContentHeaders$
|
|
2965
|
+
headers: jsonContentHeaders$m,
|
|
2966
2966
|
method: 'POST',
|
|
2967
2967
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
|
|
2968
2968
|
}, unmarshalServer$1);
|
|
@@ -3000,7 +3000,7 @@ let API$o = class API extends API$r {
|
|
|
3000
3000
|
*/
|
|
3001
3001
|
rebootServer = request => this.client.fetch({
|
|
3002
3002
|
body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
|
|
3003
|
-
headers: jsonContentHeaders$
|
|
3003
|
+
headers: jsonContentHeaders$m,
|
|
3004
3004
|
method: 'POST',
|
|
3005
3005
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
3006
3006
|
}, unmarshalServer$1);
|
|
@@ -3013,7 +3013,7 @@ let API$o = class API extends API$r {
|
|
|
3013
3013
|
*/
|
|
3014
3014
|
startServer = request => this.client.fetch({
|
|
3015
3015
|
body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
|
|
3016
|
-
headers: jsonContentHeaders$
|
|
3016
|
+
headers: jsonContentHeaders$m,
|
|
3017
3017
|
method: 'POST',
|
|
3018
3018
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
|
|
3019
3019
|
}, unmarshalServer$1);
|
|
@@ -3028,7 +3028,7 @@ let API$o = class API extends API$r {
|
|
|
3028
3028
|
*/
|
|
3029
3029
|
stopServer = request => this.client.fetch({
|
|
3030
3030
|
body: '{}',
|
|
3031
|
-
headers: jsonContentHeaders$
|
|
3031
|
+
headers: jsonContentHeaders$m,
|
|
3032
3032
|
method: 'POST',
|
|
3033
3033
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
|
|
3034
3034
|
}, unmarshalServer$1);
|
|
@@ -3066,7 +3066,7 @@ let API$o = class API extends API$r {
|
|
|
3066
3066
|
*/
|
|
3067
3067
|
startBMCAccess = request => this.client.fetch({
|
|
3068
3068
|
body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
|
|
3069
|
-
headers: jsonContentHeaders$
|
|
3069
|
+
headers: jsonContentHeaders$m,
|
|
3070
3070
|
method: 'POST',
|
|
3071
3071
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
3072
3072
|
}, unmarshalBMCAccess);
|
|
@@ -3104,7 +3104,7 @@ let API$o = class API extends API$r {
|
|
|
3104
3104
|
*/
|
|
3105
3105
|
updateIP = request => this.client.fetch({
|
|
3106
3106
|
body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
|
|
3107
|
-
headers: jsonContentHeaders$
|
|
3107
|
+
headers: jsonContentHeaders$m,
|
|
3108
3108
|
method: 'PATCH',
|
|
3109
3109
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
3110
3110
|
}, unmarshalIP$1);
|
|
@@ -3118,7 +3118,7 @@ let API$o = class API extends API$r {
|
|
|
3118
3118
|
*/
|
|
3119
3119
|
addOptionServer = request => this.client.fetch({
|
|
3120
3120
|
body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
|
|
3121
|
-
headers: jsonContentHeaders$
|
|
3121
|
+
headers: jsonContentHeaders$m,
|
|
3122
3122
|
method: 'POST',
|
|
3123
3123
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
|
|
3124
3124
|
}, unmarshalServer$1);
|
|
@@ -3203,7 +3203,7 @@ let API$o = class API extends API$r {
|
|
|
3203
3203
|
*/
|
|
3204
3204
|
updateSetting = request => this.client.fetch({
|
|
3205
3205
|
body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
|
|
3206
|
-
headers: jsonContentHeaders$
|
|
3206
|
+
headers: jsonContentHeaders$m,
|
|
3207
3207
|
method: 'PATCH',
|
|
3208
3208
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
|
|
3209
3209
|
}, unmarshalSetting);
|
|
@@ -3235,7 +3235,7 @@ let API$o = class API extends API$r {
|
|
|
3235
3235
|
};
|
|
3236
3236
|
|
|
3237
3237
|
/** Elastic Metal Private Network API. */
|
|
3238
|
-
class PrivateNetworkAPI extends API$
|
|
3238
|
+
class PrivateNetworkAPI extends API$s {
|
|
3239
3239
|
/** Lists the available zones of the API. */
|
|
3240
3240
|
static LOCALITIES = ['fr-par-2'];
|
|
3241
3241
|
|
|
@@ -3248,7 +3248,7 @@ class PrivateNetworkAPI extends API$r {
|
|
|
3248
3248
|
*/
|
|
3249
3249
|
addServerPrivateNetwork = request => this.client.fetch({
|
|
3250
3250
|
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
3251
|
-
headers: jsonContentHeaders$
|
|
3251
|
+
headers: jsonContentHeaders$m,
|
|
3252
3252
|
method: 'POST',
|
|
3253
3253
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
3254
3254
|
}, unmarshalServerPrivateNetwork);
|
|
@@ -3262,7 +3262,7 @@ class PrivateNetworkAPI extends API$r {
|
|
|
3262
3262
|
*/
|
|
3263
3263
|
setServerPrivateNetworks = request => this.client.fetch({
|
|
3264
3264
|
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
3265
|
-
headers: jsonContentHeaders$
|
|
3265
|
+
headers: jsonContentHeaders$m,
|
|
3266
3266
|
method: 'PUT',
|
|
3267
3267
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
3268
3268
|
}, unmarshalSetServerPrivateNetworksResponse);
|
|
@@ -3293,7 +3293,7 @@ class PrivateNetworkAPI extends API$r {
|
|
|
3293
3293
|
});
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
|
-
class BaremetalV1UtilsAPI extends API$
|
|
3296
|
+
class BaremetalV1UtilsAPI extends API$p {
|
|
3297
3297
|
/**
|
|
3298
3298
|
* Waits for {@link ServerInstall} to be in a final state.
|
|
3299
3299
|
*
|
|
@@ -3437,7 +3437,7 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
|
3437
3437
|
UpdateServerRequest: UpdateServerRequest
|
|
3438
3438
|
});
|
|
3439
3439
|
|
|
3440
|
-
var index$
|
|
3440
|
+
var index$r = /*#__PURE__*/Object.freeze({
|
|
3441
3441
|
__proto__: null,
|
|
3442
3442
|
API: BaremetalV1UtilsAPI,
|
|
3443
3443
|
PrivateNetworkAPI: PrivateNetworkAPI,
|
|
@@ -3447,9 +3447,9 @@ var index$q = /*#__PURE__*/Object.freeze({
|
|
|
3447
3447
|
ValidationRules: validationRules_gen$4
|
|
3448
3448
|
});
|
|
3449
3449
|
|
|
3450
|
-
var index$
|
|
3450
|
+
var index$q = /*#__PURE__*/Object.freeze({
|
|
3451
3451
|
__proto__: null,
|
|
3452
|
-
v1: index$
|
|
3452
|
+
v1: index$r
|
|
3453
3453
|
});
|
|
3454
3454
|
|
|
3455
3455
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3507,7 +3507,7 @@ const unmarshalListInvoicesResponse = data => {
|
|
|
3507
3507
|
*
|
|
3508
3508
|
* This API allows you to query your consumption. Billing API.
|
|
3509
3509
|
*/
|
|
3510
|
-
let API$
|
|
3510
|
+
let API$o = class API extends API$s {
|
|
3511
3511
|
getConsumption = (request = {}) => this.client.fetch({
|
|
3512
3512
|
method: 'GET',
|
|
3513
3513
|
path: `/billing/v2alpha1/consumption`,
|
|
@@ -3530,14 +3530,14 @@ let API$n = class API extends API$r {
|
|
|
3530
3530
|
// This file was automatically generated. DO NOT EDIT.
|
|
3531
3531
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3532
3532
|
|
|
3533
|
-
var index_gen$
|
|
3533
|
+
var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
3534
3534
|
__proto__: null,
|
|
3535
|
-
API: API$
|
|
3535
|
+
API: API$o
|
|
3536
3536
|
});
|
|
3537
3537
|
|
|
3538
|
-
var index$
|
|
3538
|
+
var index$p = /*#__PURE__*/Object.freeze({
|
|
3539
3539
|
__proto__: null,
|
|
3540
|
-
v2alpha1: index_gen$
|
|
3540
|
+
v2alpha1: index_gen$l
|
|
3541
3541
|
});
|
|
3542
3542
|
|
|
3543
3543
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3761,7 +3761,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
3761
3761
|
|
|
3762
3762
|
// This file was automatically generated. DO NOT EDIT.
|
|
3763
3763
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3764
|
-
const jsonContentHeaders$
|
|
3764
|
+
const jsonContentHeaders$l = {
|
|
3765
3765
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3766
3766
|
};
|
|
3767
3767
|
|
|
@@ -3772,7 +3772,7 @@ const jsonContentHeaders$k = {
|
|
|
3772
3772
|
* Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated
|
|
3773
3773
|
* Grafana for dashboarding to visualize them.
|
|
3774
3774
|
*/
|
|
3775
|
-
let API$
|
|
3775
|
+
let API$n = class API extends API$s {
|
|
3776
3776
|
/**
|
|
3777
3777
|
* Activate a Cockpit. Activate the Cockpit of the specified Project ID.
|
|
3778
3778
|
*
|
|
@@ -3781,7 +3781,7 @@ let API$m = class API extends API$r {
|
|
|
3781
3781
|
*/
|
|
3782
3782
|
activateCockpit = (request = {}) => this.client.fetch({
|
|
3783
3783
|
body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
|
|
3784
|
-
headers: jsonContentHeaders$
|
|
3784
|
+
headers: jsonContentHeaders$l,
|
|
3785
3785
|
method: 'POST',
|
|
3786
3786
|
path: `/cockpit/v1beta1/activate`
|
|
3787
3787
|
}, unmarshalCockpit);
|
|
@@ -3828,7 +3828,7 @@ let API$m = class API extends API$r {
|
|
|
3828
3828
|
*/
|
|
3829
3829
|
deactivateCockpit = (request = {}) => this.client.fetch({
|
|
3830
3830
|
body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
|
|
3831
|
-
headers: jsonContentHeaders$
|
|
3831
|
+
headers: jsonContentHeaders$l,
|
|
3832
3832
|
method: 'POST',
|
|
3833
3833
|
path: `/cockpit/v1beta1/deactivate`
|
|
3834
3834
|
}, unmarshalCockpit);
|
|
@@ -3842,7 +3842,7 @@ let API$m = class API extends API$r {
|
|
|
3842
3842
|
*/
|
|
3843
3843
|
resetCockpitGrafana = (request = {}) => this.client.fetch({
|
|
3844
3844
|
body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
|
|
3845
|
-
headers: jsonContentHeaders$
|
|
3845
|
+
headers: jsonContentHeaders$l,
|
|
3846
3846
|
method: 'POST',
|
|
3847
3847
|
path: `/cockpit/v1beta1/reset-grafana`
|
|
3848
3848
|
}, unmarshalCockpit);
|
|
@@ -3855,7 +3855,7 @@ let API$m = class API extends API$r {
|
|
|
3855
3855
|
*/
|
|
3856
3856
|
createToken = (request = {}) => this.client.fetch({
|
|
3857
3857
|
body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
|
|
3858
|
-
headers: jsonContentHeaders$
|
|
3858
|
+
headers: jsonContentHeaders$l,
|
|
3859
3859
|
method: 'POST',
|
|
3860
3860
|
path: `/cockpit/v1beta1/tokens`
|
|
3861
3861
|
}, unmarshalToken$2);
|
|
@@ -3903,7 +3903,7 @@ let API$m = class API extends API$r {
|
|
|
3903
3903
|
*/
|
|
3904
3904
|
createContactPoint = (request = {}) => this.client.fetch({
|
|
3905
3905
|
body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
|
|
3906
|
-
headers: jsonContentHeaders$
|
|
3906
|
+
headers: jsonContentHeaders$l,
|
|
3907
3907
|
method: 'POST',
|
|
3908
3908
|
path: `/cockpit/v1beta1/contact-points`
|
|
3909
3909
|
}, unmarshalContactPoint);
|
|
@@ -3930,7 +3930,7 @@ let API$m = class API extends API$r {
|
|
|
3930
3930
|
*/
|
|
3931
3931
|
deleteContactPoint = (request = {}) => this.client.fetch({
|
|
3932
3932
|
body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
|
|
3933
|
-
headers: jsonContentHeaders$
|
|
3933
|
+
headers: jsonContentHeaders$l,
|
|
3934
3934
|
method: 'POST',
|
|
3935
3935
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
3936
3936
|
});
|
|
@@ -3943,7 +3943,7 @@ let API$m = class API extends API$r {
|
|
|
3943
3943
|
*/
|
|
3944
3944
|
enableManagedAlerts = (request = {}) => this.client.fetch({
|
|
3945
3945
|
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
|
|
3946
|
-
headers: jsonContentHeaders$
|
|
3946
|
+
headers: jsonContentHeaders$l,
|
|
3947
3947
|
method: 'POST',
|
|
3948
3948
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
3949
3949
|
});
|
|
@@ -3956,7 +3956,7 @@ let API$m = class API extends API$r {
|
|
|
3956
3956
|
*/
|
|
3957
3957
|
disableManagedAlerts = (request = {}) => this.client.fetch({
|
|
3958
3958
|
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
|
|
3959
|
-
headers: jsonContentHeaders$
|
|
3959
|
+
headers: jsonContentHeaders$l,
|
|
3960
3960
|
method: 'POST',
|
|
3961
3961
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
3962
3962
|
});
|
|
@@ -3969,7 +3969,7 @@ let API$m = class API extends API$r {
|
|
|
3969
3969
|
*/
|
|
3970
3970
|
triggerTestAlert = (request = {}) => this.client.fetch({
|
|
3971
3971
|
body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
|
|
3972
|
-
headers: jsonContentHeaders$
|
|
3972
|
+
headers: jsonContentHeaders$l,
|
|
3973
3973
|
method: 'POST',
|
|
3974
3974
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
3975
3975
|
});
|
|
@@ -3984,7 +3984,7 @@ let API$m = class API extends API$r {
|
|
|
3984
3984
|
*/
|
|
3985
3985
|
createGrafanaUser = request => this.client.fetch({
|
|
3986
3986
|
body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
|
|
3987
|
-
headers: jsonContentHeaders$
|
|
3987
|
+
headers: jsonContentHeaders$l,
|
|
3988
3988
|
method: 'POST',
|
|
3989
3989
|
path: `/cockpit/v1beta1/grafana-users`
|
|
3990
3990
|
}, unmarshalGrafanaUser);
|
|
@@ -4011,7 +4011,7 @@ let API$m = class API extends API$r {
|
|
|
4011
4011
|
*/
|
|
4012
4012
|
deleteGrafanaUser = request => this.client.fetch({
|
|
4013
4013
|
body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
|
|
4014
|
-
headers: jsonContentHeaders$
|
|
4014
|
+
headers: jsonContentHeaders$l,
|
|
4015
4015
|
method: 'POST',
|
|
4016
4016
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
4017
4017
|
});
|
|
@@ -4025,7 +4025,7 @@ let API$m = class API extends API$r {
|
|
|
4025
4025
|
*/
|
|
4026
4026
|
resetGrafanaUserPassword = request => this.client.fetch({
|
|
4027
4027
|
body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
|
|
4028
|
-
headers: jsonContentHeaders$
|
|
4028
|
+
headers: jsonContentHeaders$l,
|
|
4029
4029
|
method: 'POST',
|
|
4030
4030
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
4031
4031
|
}, unmarshalGrafanaUser);
|
|
@@ -4053,7 +4053,7 @@ let API$m = class API extends API$r {
|
|
|
4053
4053
|
*/
|
|
4054
4054
|
selectPlan = request => this.client.fetch({
|
|
4055
4055
|
body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
|
|
4056
|
-
headers: jsonContentHeaders$
|
|
4056
|
+
headers: jsonContentHeaders$l,
|
|
4057
4057
|
method: 'POST',
|
|
4058
4058
|
path: `/cockpit/v1beta1/select-plan`
|
|
4059
4059
|
}, unmarshalSelectPlanResponse);
|
|
@@ -4062,15 +4062,15 @@ let API$m = class API extends API$r {
|
|
|
4062
4062
|
// This file was automatically generated. DO NOT EDIT.
|
|
4063
4063
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4064
4064
|
|
|
4065
|
-
var index_gen$
|
|
4065
|
+
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
4066
4066
|
__proto__: null,
|
|
4067
|
-
API: API$
|
|
4067
|
+
API: API$n,
|
|
4068
4068
|
COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
|
|
4069
4069
|
});
|
|
4070
4070
|
|
|
4071
|
-
var index$
|
|
4071
|
+
var index$o = /*#__PURE__*/Object.freeze({
|
|
4072
4072
|
__proto__: null,
|
|
4073
|
-
v1beta1: index_gen$
|
|
4073
|
+
v1beta1: index_gen$k
|
|
4074
4074
|
});
|
|
4075
4075
|
|
|
4076
4076
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4338,12 +4338,12 @@ const marshalUpdateNamespaceRequest$3 = (request, defaults) => ({
|
|
|
4338
4338
|
|
|
4339
4339
|
// This file was automatically generated. DO NOT EDIT.
|
|
4340
4340
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4341
|
-
const jsonContentHeaders$
|
|
4341
|
+
const jsonContentHeaders$k = {
|
|
4342
4342
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4343
4343
|
};
|
|
4344
4344
|
|
|
4345
4345
|
/** Serverless Containers API. */
|
|
4346
|
-
let API$
|
|
4346
|
+
let API$m = class API extends API$s {
|
|
4347
4347
|
/** Lists the available regions of the API. */
|
|
4348
4348
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
4349
4349
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -4388,7 +4388,7 @@ let API$l = class API extends API$r {
|
|
|
4388
4388
|
*/
|
|
4389
4389
|
createNamespace = (request = {}) => this.client.fetch({
|
|
4390
4390
|
body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
|
|
4391
|
-
headers: jsonContentHeaders$
|
|
4391
|
+
headers: jsonContentHeaders$k,
|
|
4392
4392
|
method: 'POST',
|
|
4393
4393
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
4394
4394
|
}, unmarshalNamespace$3);
|
|
@@ -4402,7 +4402,7 @@ let API$l = class API extends API$r {
|
|
|
4402
4402
|
*/
|
|
4403
4403
|
updateNamespace = request => this.client.fetch({
|
|
4404
4404
|
body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
|
|
4405
|
-
headers: jsonContentHeaders$
|
|
4405
|
+
headers: jsonContentHeaders$k,
|
|
4406
4406
|
method: 'PATCH',
|
|
4407
4407
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
4408
4408
|
}, unmarshalNamespace$3);
|
|
@@ -4460,7 +4460,7 @@ let API$l = class API extends API$r {
|
|
|
4460
4460
|
*/
|
|
4461
4461
|
createContainer = request => this.client.fetch({
|
|
4462
4462
|
body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
|
|
4463
|
-
headers: jsonContentHeaders$
|
|
4463
|
+
headers: jsonContentHeaders$k,
|
|
4464
4464
|
method: 'POST',
|
|
4465
4465
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
|
|
4466
4466
|
}, unmarshalContainer);
|
|
@@ -4474,7 +4474,7 @@ let API$l = class API extends API$r {
|
|
|
4474
4474
|
*/
|
|
4475
4475
|
updateContainer = request => this.client.fetch({
|
|
4476
4476
|
body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
|
|
4477
|
-
headers: jsonContentHeaders$
|
|
4477
|
+
headers: jsonContentHeaders$k,
|
|
4478
4478
|
method: 'PATCH',
|
|
4479
4479
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
|
|
4480
4480
|
}, unmarshalContainer);
|
|
@@ -4498,7 +4498,7 @@ let API$l = class API extends API$r {
|
|
|
4498
4498
|
*/
|
|
4499
4499
|
deployContainer = request => this.client.fetch({
|
|
4500
4500
|
body: '{}',
|
|
4501
|
-
headers: jsonContentHeaders$
|
|
4501
|
+
headers: jsonContentHeaders$k,
|
|
4502
4502
|
method: 'POST',
|
|
4503
4503
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
|
|
4504
4504
|
}, unmarshalContainer);
|
|
@@ -4544,7 +4544,7 @@ let API$l = class API extends API$r {
|
|
|
4544
4544
|
*/
|
|
4545
4545
|
createCron = request => this.client.fetch({
|
|
4546
4546
|
body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
|
|
4547
|
-
headers: jsonContentHeaders$
|
|
4547
|
+
headers: jsonContentHeaders$k,
|
|
4548
4548
|
method: 'POST',
|
|
4549
4549
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
4550
4550
|
}, unmarshalCron$1);
|
|
@@ -4557,7 +4557,7 @@ let API$l = class API extends API$r {
|
|
|
4557
4557
|
*/
|
|
4558
4558
|
updateCron = request => this.client.fetch({
|
|
4559
4559
|
body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
|
|
4560
|
-
headers: jsonContentHeaders$
|
|
4560
|
+
headers: jsonContentHeaders$k,
|
|
4561
4561
|
method: 'PATCH',
|
|
4562
4562
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
4563
4563
|
}, unmarshalCron$1);
|
|
@@ -4631,7 +4631,7 @@ let API$l = class API extends API$r {
|
|
|
4631
4631
|
*/
|
|
4632
4632
|
createDomain = request => this.client.fetch({
|
|
4633
4633
|
body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
|
|
4634
|
-
headers: jsonContentHeaders$
|
|
4634
|
+
headers: jsonContentHeaders$k,
|
|
4635
4635
|
method: 'POST',
|
|
4636
4636
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
4637
4637
|
}, unmarshalDomain$3);
|
|
@@ -4673,7 +4673,7 @@ let API$l = class API extends API$r {
|
|
|
4673
4673
|
*/
|
|
4674
4674
|
createToken = (request = {}) => this.client.fetch({
|
|
4675
4675
|
body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
|
|
4676
|
-
headers: jsonContentHeaders$
|
|
4676
|
+
headers: jsonContentHeaders$k,
|
|
4677
4677
|
method: 'POST',
|
|
4678
4678
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
4679
4679
|
}, unmarshalToken$1);
|
|
@@ -4727,9 +4727,9 @@ let API$l = class API extends API$r {
|
|
|
4727
4727
|
// This file was automatically generated. DO NOT EDIT.
|
|
4728
4728
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4729
4729
|
|
|
4730
|
-
var index_gen$
|
|
4730
|
+
var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
4731
4731
|
__proto__: null,
|
|
4732
|
-
API: API$
|
|
4732
|
+
API: API$m,
|
|
4733
4733
|
CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
|
|
4734
4734
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
|
|
4735
4735
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
|
|
@@ -4737,9 +4737,9 @@ var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
|
4737
4737
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1
|
|
4738
4738
|
});
|
|
4739
4739
|
|
|
4740
|
-
var index$
|
|
4740
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
4741
4741
|
__proto__: null,
|
|
4742
|
-
v1beta1: index_gen$
|
|
4742
|
+
v1beta1: index_gen$j
|
|
4743
4743
|
});
|
|
4744
4744
|
|
|
4745
4745
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -5929,7 +5929,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
|
5929
5929
|
|
|
5930
5930
|
// This file was automatically generated. DO NOT EDIT.
|
|
5931
5931
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5932
|
-
const jsonContentHeaders$
|
|
5932
|
+
const jsonContentHeaders$j = {
|
|
5933
5933
|
'Content-Type': 'application/json; charset=utf-8'
|
|
5934
5934
|
};
|
|
5935
5935
|
|
|
@@ -5939,7 +5939,7 @@ const jsonContentHeaders$i = {
|
|
|
5939
5939
|
* Domains and DNS API. Manage your domains, DNS zones and records with the
|
|
5940
5940
|
* Domains and DNS API.
|
|
5941
5941
|
*/
|
|
5942
|
-
let API$
|
|
5942
|
+
let API$l = class API extends API$s {
|
|
5943
5943
|
pageOfListDNSZones = request => this.client.fetch({
|
|
5944
5944
|
method: 'GET',
|
|
5945
5945
|
path: `/domain/v2beta1/dns-zones`,
|
|
@@ -5964,7 +5964,7 @@ let API$k = class API extends API$r {
|
|
|
5964
5964
|
*/
|
|
5965
5965
|
createDNSZone = request => this.client.fetch({
|
|
5966
5966
|
body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
|
|
5967
|
-
headers: jsonContentHeaders$
|
|
5967
|
+
headers: jsonContentHeaders$j,
|
|
5968
5968
|
method: 'POST',
|
|
5969
5969
|
path: `/domain/v2beta1/dns-zones`
|
|
5970
5970
|
}, unmarshalDNSZone);
|
|
@@ -5977,7 +5977,7 @@ let API$k = class API extends API$r {
|
|
|
5977
5977
|
*/
|
|
5978
5978
|
updateDNSZone = request => this.client.fetch({
|
|
5979
5979
|
body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
|
|
5980
|
-
headers: jsonContentHeaders$
|
|
5980
|
+
headers: jsonContentHeaders$j,
|
|
5981
5981
|
method: 'PATCH',
|
|
5982
5982
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
5983
5983
|
}, unmarshalDNSZone);
|
|
@@ -5991,7 +5991,7 @@ let API$k = class API extends API$r {
|
|
|
5991
5991
|
*/
|
|
5992
5992
|
cloneDNSZone = request => this.client.fetch({
|
|
5993
5993
|
body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
|
|
5994
|
-
headers: jsonContentHeaders$
|
|
5994
|
+
headers: jsonContentHeaders$j,
|
|
5995
5995
|
method: 'POST',
|
|
5996
5996
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
5997
5997
|
}, unmarshalDNSZone);
|
|
@@ -6044,7 +6044,7 @@ let API$k = class API extends API$r {
|
|
|
6044
6044
|
*/
|
|
6045
6045
|
updateDNSZoneRecords = request => this.client.fetch({
|
|
6046
6046
|
body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
|
|
6047
|
-
headers: jsonContentHeaders$
|
|
6047
|
+
headers: jsonContentHeaders$j,
|
|
6048
6048
|
method: 'PATCH',
|
|
6049
6049
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
6050
6050
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
@@ -6071,7 +6071,7 @@ let API$k = class API extends API$r {
|
|
|
6071
6071
|
*/
|
|
6072
6072
|
updateDNSZoneNameservers = request => this.client.fetch({
|
|
6073
6073
|
body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
|
|
6074
|
-
headers: jsonContentHeaders$
|
|
6074
|
+
headers: jsonContentHeaders$j,
|
|
6075
6075
|
method: 'PUT',
|
|
6076
6076
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
6077
6077
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
@@ -6111,7 +6111,7 @@ let API$k = class API extends API$r {
|
|
|
6111
6111
|
*/
|
|
6112
6112
|
importRawDNSZone = request => this.client.fetch({
|
|
6113
6113
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
6114
|
-
headers: jsonContentHeaders$
|
|
6114
|
+
headers: jsonContentHeaders$j,
|
|
6115
6115
|
method: 'POST',
|
|
6116
6116
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
6117
6117
|
}, unmarshalImportRawDNSZoneResponse);
|
|
@@ -6125,7 +6125,7 @@ let API$k = class API extends API$r {
|
|
|
6125
6125
|
*/
|
|
6126
6126
|
importProviderDNSZone = request => this.client.fetch({
|
|
6127
6127
|
body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
|
|
6128
|
-
headers: jsonContentHeaders$
|
|
6128
|
+
headers: jsonContentHeaders$j,
|
|
6129
6129
|
method: 'POST',
|
|
6130
6130
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
6131
6131
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
@@ -6140,7 +6140,7 @@ let API$k = class API extends API$r {
|
|
|
6140
6140
|
*/
|
|
6141
6141
|
refreshDNSZone = request => this.client.fetch({
|
|
6142
6142
|
body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
|
|
6143
|
-
headers: jsonContentHeaders$
|
|
6143
|
+
headers: jsonContentHeaders$j,
|
|
6144
6144
|
method: 'POST',
|
|
6145
6145
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
|
|
6146
6146
|
}, unmarshalRefreshDNSZoneResponse);
|
|
@@ -6195,7 +6195,7 @@ let API$k = class API extends API$r {
|
|
|
6195
6195
|
*/
|
|
6196
6196
|
restoreDNSZoneVersion = request => this.client.fetch({
|
|
6197
6197
|
body: '{}',
|
|
6198
|
-
headers: jsonContentHeaders$
|
|
6198
|
+
headers: jsonContentHeaders$j,
|
|
6199
6199
|
method: 'POST',
|
|
6200
6200
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
6201
6201
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
@@ -6230,7 +6230,7 @@ let API$k = class API extends API$r {
|
|
|
6230
6230
|
*/
|
|
6231
6231
|
createSSLCertificate = request => this.client.fetch({
|
|
6232
6232
|
body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
|
|
6233
|
-
headers: jsonContentHeaders$
|
|
6233
|
+
headers: jsonContentHeaders$j,
|
|
6234
6234
|
method: 'POST',
|
|
6235
6235
|
path: `/domain/v2beta1/ssl-certificates`
|
|
6236
6236
|
}, unmarshalSSLCertificate);
|
|
@@ -6291,7 +6291,7 @@ let API$k = class API extends API$r {
|
|
|
6291
6291
|
*
|
|
6292
6292
|
* Domains and DNS - Registrar API. Manage your domains and contacts.
|
|
6293
6293
|
*/
|
|
6294
|
-
class RegistrarAPI extends API$
|
|
6294
|
+
class RegistrarAPI extends API$s {
|
|
6295
6295
|
pageOfListTasks = (request = {}) => this.client.fetch({
|
|
6296
6296
|
method: 'GET',
|
|
6297
6297
|
path: `/domain/v2beta1/tasks`,
|
|
@@ -6299,7 +6299,8 @@ class RegistrarAPI extends API$r {
|
|
|
6299
6299
|
}, unmarshalListTasksResponse);
|
|
6300
6300
|
|
|
6301
6301
|
/**
|
|
6302
|
-
* List tasks. List all account
|
|
6302
|
+
* List tasks. List all operations performed on the account. You can filter
|
|
6303
|
+
* the list of tasks by domain name.
|
|
6303
6304
|
*
|
|
6304
6305
|
* @param request - The request {@link RegistrarApiListTasksRequest}
|
|
6305
6306
|
* @returns A Promise of ListTasksResponse
|
|
@@ -6307,59 +6308,62 @@ class RegistrarAPI extends API$r {
|
|
|
6307
6308
|
listTasks = (request = {}) => enrichForPagination('tasks', this.pageOfListTasks, request);
|
|
6308
6309
|
|
|
6309
6310
|
/**
|
|
6310
|
-
*
|
|
6311
|
-
*
|
|
6311
|
+
* Purchase domains. Request the registration of domain names. You can provide
|
|
6312
|
+
* a domain's already existing contact or a new contact.
|
|
6312
6313
|
*
|
|
6313
6314
|
* @param request - The request {@link RegistrarApiBuyDomainsRequest}
|
|
6314
6315
|
* @returns A Promise of OrderResponse
|
|
6315
6316
|
*/
|
|
6316
6317
|
buyDomains = request => this.client.fetch({
|
|
6317
6318
|
body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
|
|
6318
|
-
headers: jsonContentHeaders$
|
|
6319
|
+
headers: jsonContentHeaders$j,
|
|
6319
6320
|
method: 'POST',
|
|
6320
6321
|
path: `/domain/v2beta1/buy-domains`
|
|
6321
6322
|
}, unmarshalOrderResponse);
|
|
6322
6323
|
|
|
6323
6324
|
/**
|
|
6324
|
-
* Renew
|
|
6325
|
+
* Renew domains. Request the renewal of one or more domain names.
|
|
6325
6326
|
*
|
|
6326
6327
|
* @param request - The request {@link RegistrarApiRenewDomainsRequest}
|
|
6327
6328
|
* @returns A Promise of OrderResponse
|
|
6328
6329
|
*/
|
|
6329
6330
|
renewDomains = request => this.client.fetch({
|
|
6330
6331
|
body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
|
|
6331
|
-
headers: jsonContentHeaders$
|
|
6332
|
+
headers: jsonContentHeaders$j,
|
|
6332
6333
|
method: 'POST',
|
|
6333
6334
|
path: `/domain/v2beta1/renew-domains`
|
|
6334
6335
|
}, unmarshalOrderResponse);
|
|
6335
6336
|
|
|
6336
6337
|
/**
|
|
6337
|
-
* Transfer a domain. Request the transfer from another registrar
|
|
6338
|
-
* Scaleway.
|
|
6338
|
+
* Transfer a domain. Request the transfer of a domain from another registrar
|
|
6339
|
+
* to Scaleway Domains and DNS.
|
|
6339
6340
|
*
|
|
6340
6341
|
* @param request - The request {@link RegistrarApiTransferInDomainRequest}
|
|
6341
6342
|
* @returns A Promise of OrderResponse
|
|
6342
6343
|
*/
|
|
6343
6344
|
transferInDomain = request => this.client.fetch({
|
|
6344
6345
|
body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
|
|
6345
|
-
headers: jsonContentHeaders$
|
|
6346
|
+
headers: jsonContentHeaders$j,
|
|
6346
6347
|
method: 'POST',
|
|
6347
6348
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
6348
6349
|
}, unmarshalOrderResponse);
|
|
6349
6350
|
|
|
6350
6351
|
/**
|
|
6351
|
-
* Trade a domain contact. Request
|
|
6352
|
-
* `organization_id`
|
|
6353
|
-
*
|
|
6354
|
-
*
|
|
6355
|
-
*
|
|
6352
|
+
* Trade a domain's contact. Request to change a domain's contact owner.<br/>
|
|
6353
|
+
* If you specify the `organization_id` of the domain's new owner, the contact
|
|
6354
|
+
* will change from the current owner's Scaleway account to the new owner's
|
|
6355
|
+
* Scaleway account.<br/> If the new owner's current contact information is
|
|
6356
|
+
* not available, the first ever contact they have created for previous
|
|
6357
|
+
* domains is taken into account to operate the change.<br/> If the new owner
|
|
6358
|
+
* has never created a contact to register domains before, an error message
|
|
6359
|
+
* displays.
|
|
6356
6360
|
*
|
|
6357
6361
|
* @param request - The request {@link RegistrarApiTradeDomainRequest}
|
|
6358
6362
|
* @returns A Promise of OrderResponse
|
|
6359
6363
|
*/
|
|
6360
6364
|
tradeDomain = request => this.client.fetch({
|
|
6361
6365
|
body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
|
|
6362
|
-
headers: jsonContentHeaders$
|
|
6366
|
+
headers: jsonContentHeaders$j,
|
|
6363
6367
|
method: 'POST',
|
|
6364
6368
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
6365
6369
|
}, unmarshalOrderResponse);
|
|
@@ -6374,7 +6378,7 @@ class RegistrarAPI extends API$r {
|
|
|
6374
6378
|
*/
|
|
6375
6379
|
registerExternalDomain = request => this.client.fetch({
|
|
6376
6380
|
body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
|
|
6377
|
-
headers: jsonContentHeaders$
|
|
6381
|
+
headers: jsonContentHeaders$j,
|
|
6378
6382
|
method: 'POST',
|
|
6379
6383
|
path: `/domain/v2beta1/external-domains`
|
|
6380
6384
|
}, unmarshalRegisterExternalDomainResponse);
|
|
@@ -6391,9 +6395,10 @@ class RegistrarAPI extends API$r {
|
|
|
6391
6395
|
}, unmarshalDeleteExternalDomainResponse);
|
|
6392
6396
|
|
|
6393
6397
|
/**
|
|
6394
|
-
* Check if contacts are compatible
|
|
6395
|
-
* contacts are compatible
|
|
6396
|
-
* the information
|
|
6398
|
+
* Check if contacts are compatible with a domain or a TLD. Check whether
|
|
6399
|
+
* contacts are compatible with a domain or a TLD. If contacts are not
|
|
6400
|
+
* compatible with either the domain or the TLD, the information that needs to
|
|
6401
|
+
* be corrected is returned.
|
|
6397
6402
|
*
|
|
6398
6403
|
* @param request - The request
|
|
6399
6404
|
* {@link RegistrarApiCheckContactsCompatibilityRequest}
|
|
@@ -6401,7 +6406,7 @@ class RegistrarAPI extends API$r {
|
|
|
6401
6406
|
*/
|
|
6402
6407
|
checkContactsCompatibility = (request = {}) => this.client.fetch({
|
|
6403
6408
|
body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
|
|
6404
|
-
headers: jsonContentHeaders$
|
|
6409
|
+
headers: jsonContentHeaders$j,
|
|
6405
6410
|
method: 'POST',
|
|
6406
6411
|
path: `/domain/v2beta1/check-contacts-compatibility`
|
|
6407
6412
|
}, unmarshalCheckContactsCompatibilityResponse);
|
|
@@ -6412,8 +6417,8 @@ class RegistrarAPI extends API$r {
|
|
|
6412
6417
|
}, unmarshalListContactsResponse);
|
|
6413
6418
|
|
|
6414
6419
|
/**
|
|
6415
|
-
* List contacts.
|
|
6416
|
-
* can filter the list by domain name.
|
|
6420
|
+
* List contacts. Retrieve the list of contacts and their associated domains
|
|
6421
|
+
* and roles. You can filter the list by domain name.
|
|
6417
6422
|
*
|
|
6418
6423
|
* @param request - The request {@link RegistrarApiListContactsRequest}
|
|
6419
6424
|
* @returns A Promise of ListContactsResponse
|
|
@@ -6421,8 +6426,8 @@ class RegistrarAPI extends API$r {
|
|
|
6421
6426
|
listContacts = (request = {}) => enrichForPagination('contacts', this.pageOfListContacts, request);
|
|
6422
6427
|
|
|
6423
6428
|
/**
|
|
6424
|
-
* Get a contact.
|
|
6425
|
-
*
|
|
6429
|
+
* Get a contact. Retrieve a contact's details from the registrar using the
|
|
6430
|
+
* given contact's ID.
|
|
6426
6431
|
*
|
|
6427
6432
|
* @param request - The request {@link RegistrarApiGetContactRequest}
|
|
6428
6433
|
* @returns A Promise of Contact
|
|
@@ -6433,14 +6438,14 @@ class RegistrarAPI extends API$r {
|
|
|
6433
6438
|
}, unmarshalContact);
|
|
6434
6439
|
|
|
6435
6440
|
/**
|
|
6436
|
-
* Update contact.
|
|
6441
|
+
* Update contact. Edit the contact's information.
|
|
6437
6442
|
*
|
|
6438
6443
|
* @param request - The request {@link RegistrarApiUpdateContactRequest}
|
|
6439
6444
|
* @returns A Promise of Contact
|
|
6440
6445
|
*/
|
|
6441
6446
|
updateContact = request => this.client.fetch({
|
|
6442
6447
|
body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
|
|
6443
|
-
headers: jsonContentHeaders$
|
|
6448
|
+
headers: jsonContentHeaders$j,
|
|
6444
6449
|
method: 'PATCH',
|
|
6445
6450
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
6446
6451
|
}, unmarshalContact);
|
|
@@ -6451,7 +6456,7 @@ class RegistrarAPI extends API$r {
|
|
|
6451
6456
|
}, unmarshalListDomainsResponse$2);
|
|
6452
6457
|
|
|
6453
6458
|
/**
|
|
6454
|
-
* List domains.
|
|
6459
|
+
* List domains. Retrieve the list of domains you own.
|
|
6455
6460
|
*
|
|
6456
6461
|
* @param request - The request {@link RegistrarApiListDomainsRequest}
|
|
6457
6462
|
* @returns A Promise of ListDomainsResponse
|
|
@@ -6464,9 +6469,9 @@ class RegistrarAPI extends API$r {
|
|
|
6464
6469
|
}, unmarshalListRenewableDomainsResponse);
|
|
6465
6470
|
|
|
6466
6471
|
/**
|
|
6467
|
-
* List
|
|
6468
|
-
*
|
|
6469
|
-
*
|
|
6472
|
+
* List domains that can be renewed. Retrieve the list of domains you own that
|
|
6473
|
+
* can be renewed. You can also see the maximum renewal duration in years for
|
|
6474
|
+
* your domains that are renewable.
|
|
6470
6475
|
*
|
|
6471
6476
|
* @param request - The request {@link RegistrarApiListRenewableDomainsRequest}
|
|
6472
6477
|
* @returns A Promise of ListRenewableDomainsResponse
|
|
@@ -6474,7 +6479,8 @@ class RegistrarAPI extends API$r {
|
|
|
6474
6479
|
listRenewableDomains = (request = {}) => enrichForPagination('domains', this.pageOfListRenewableDomains, request);
|
|
6475
6480
|
|
|
6476
6481
|
/**
|
|
6477
|
-
* Get domain.
|
|
6482
|
+
* Get domain. Retrieve a specific domain and display the domain's
|
|
6483
|
+
* information.
|
|
6478
6484
|
*
|
|
6479
6485
|
* @param request - The request {@link RegistrarApiGetDomainRequest}
|
|
6480
6486
|
* @returns A Promise of Domain
|
|
@@ -6494,50 +6500,54 @@ class RegistrarAPI extends API$r {
|
|
|
6494
6500
|
waitForDomain = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES$2.includes(res.status))), this.getDomain, request, options);
|
|
6495
6501
|
|
|
6496
6502
|
/**
|
|
6497
|
-
* Update a domain. Update
|
|
6498
|
-
* you add the same contact for multiple roles
|
|
6499
|
-
* and used for all of
|
|
6503
|
+
* Update a domain's contacts. Update contacts for a specific domain or create
|
|
6504
|
+
* a new contact.<br/> If you add the same contact for multiple roles (owner,
|
|
6505
|
+
* administrative, technical), only one ID will be created and used for all of
|
|
6506
|
+
* the roles.
|
|
6500
6507
|
*
|
|
6501
6508
|
* @param request - The request {@link RegistrarApiUpdateDomainRequest}
|
|
6502
6509
|
* @returns A Promise of Domain
|
|
6503
6510
|
*/
|
|
6504
6511
|
updateDomain = request => this.client.fetch({
|
|
6505
6512
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
|
|
6506
|
-
headers: jsonContentHeaders$
|
|
6513
|
+
headers: jsonContentHeaders$j,
|
|
6507
6514
|
method: 'PATCH',
|
|
6508
6515
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
6509
6516
|
}, unmarshalDomain$2);
|
|
6510
6517
|
|
|
6511
6518
|
/**
|
|
6512
|
-
* Lock
|
|
6513
|
-
* be transferred and the
|
|
6519
|
+
* Lock the transfer of a domain. Lock the transfer of a domain. This means
|
|
6520
|
+
* that the domain cannot be transferred and the authorization code cannot be
|
|
6521
|
+
* requested to your current registrar.
|
|
6514
6522
|
*
|
|
6515
6523
|
* @param request - The request {@link RegistrarApiLockDomainTransferRequest}
|
|
6516
6524
|
* @returns A Promise of Domain
|
|
6517
6525
|
*/
|
|
6518
6526
|
lockDomainTransfer = request => this.client.fetch({
|
|
6519
6527
|
body: '{}',
|
|
6520
|
-
headers: jsonContentHeaders$
|
|
6528
|
+
headers: jsonContentHeaders$j,
|
|
6521
6529
|
method: 'POST',
|
|
6522
6530
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
6523
6531
|
}, unmarshalDomain$2);
|
|
6524
6532
|
|
|
6525
6533
|
/**
|
|
6526
|
-
* Unlock
|
|
6527
|
-
* transferred and the
|
|
6534
|
+
* Unlock the transfer of a domain. Unlock the transfer of a domain. This
|
|
6535
|
+
* means that the domain can be transferred and the authorization code can be
|
|
6536
|
+
* requested to your current registrar.
|
|
6528
6537
|
*
|
|
6529
6538
|
* @param request - The request {@link RegistrarApiUnlockDomainTransferRequest}
|
|
6530
6539
|
* @returns A Promise of Domain
|
|
6531
6540
|
*/
|
|
6532
6541
|
unlockDomainTransfer = request => this.client.fetch({
|
|
6533
6542
|
body: '{}',
|
|
6534
|
-
headers: jsonContentHeaders$
|
|
6543
|
+
headers: jsonContentHeaders$j,
|
|
6535
6544
|
method: 'POST',
|
|
6536
6545
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
6537
6546
|
}, unmarshalDomain$2);
|
|
6538
6547
|
|
|
6539
6548
|
/**
|
|
6540
|
-
* Enable
|
|
6549
|
+
* Enable auto renew. Enable the `auto renew` feature for a domain. This means
|
|
6550
|
+
* the domain will be automatically renewed before its expiry date.
|
|
6541
6551
|
*
|
|
6542
6552
|
* @param request - The request
|
|
6543
6553
|
* {@link RegistrarApiEnableDomainAutoRenewRequest}
|
|
@@ -6545,13 +6555,14 @@ class RegistrarAPI extends API$r {
|
|
|
6545
6555
|
*/
|
|
6546
6556
|
enableDomainAutoRenew = request => this.client.fetch({
|
|
6547
6557
|
body: '{}',
|
|
6548
|
-
headers: jsonContentHeaders$
|
|
6558
|
+
headers: jsonContentHeaders$j,
|
|
6549
6559
|
method: 'POST',
|
|
6550
6560
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
6551
6561
|
}, unmarshalDomain$2);
|
|
6552
6562
|
|
|
6553
6563
|
/**
|
|
6554
|
-
* Disable
|
|
6564
|
+
* Disable auto renew. Disable the `auto renew` feature for a domain. This
|
|
6565
|
+
* means the domain will not be renewed before its expiry date.
|
|
6555
6566
|
*
|
|
6556
6567
|
* @param request - The request
|
|
6557
6568
|
* {@link RegistrarApiDisableDomainAutoRenewRequest}
|
|
@@ -6559,16 +6570,17 @@ class RegistrarAPI extends API$r {
|
|
|
6559
6570
|
*/
|
|
6560
6571
|
disableDomainAutoRenew = request => this.client.fetch({
|
|
6561
6572
|
body: '{}',
|
|
6562
|
-
headers: jsonContentHeaders$
|
|
6573
|
+
headers: jsonContentHeaders$j,
|
|
6563
6574
|
method: 'POST',
|
|
6564
6575
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
6565
6576
|
}, unmarshalDomain$2);
|
|
6566
6577
|
|
|
6567
6578
|
/**
|
|
6568
|
-
*
|
|
6569
|
-
* domain
|
|
6570
|
-
*
|
|
6571
|
-
* information
|
|
6579
|
+
* Get a domain's authorization code. Retrieve the authorization code to
|
|
6580
|
+
* tranfer an unlocked domain. The output returns an error if the domain is
|
|
6581
|
+
* locked. Some TLDs may have a different procedure to retrieve the
|
|
6582
|
+
* authorization code. In that case, the information displays in the message
|
|
6583
|
+
* field.
|
|
6572
6584
|
*
|
|
6573
6585
|
* @param request - The request {@link RegistrarApiGetDomainAuthCodeRequest}
|
|
6574
6586
|
* @returns A Promise of GetDomainAuthCodeResponse
|
|
@@ -6587,29 +6599,30 @@ class RegistrarAPI extends API$r {
|
|
|
6587
6599
|
*/
|
|
6588
6600
|
enableDomainDNSSEC = request => this.client.fetch({
|
|
6589
6601
|
body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
|
|
6590
|
-
headers: jsonContentHeaders$
|
|
6602
|
+
headers: jsonContentHeaders$j,
|
|
6591
6603
|
method: 'POST',
|
|
6592
6604
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
6593
6605
|
}, unmarshalDomain$2);
|
|
6594
6606
|
|
|
6595
6607
|
/**
|
|
6596
|
-
* Disable domain DNSSEC.
|
|
6608
|
+
* Disable a domain's DNSSEC. Disable DNSSEC for a domain.
|
|
6597
6609
|
*
|
|
6598
6610
|
* @param request - The request {@link RegistrarApiDisableDomainDNSSECRequest}
|
|
6599
6611
|
* @returns A Promise of Domain
|
|
6600
6612
|
*/
|
|
6601
6613
|
disableDomainDNSSEC = request => this.client.fetch({
|
|
6602
6614
|
body: '{}',
|
|
6603
|
-
headers: jsonContentHeaders$
|
|
6615
|
+
headers: jsonContentHeaders$j,
|
|
6604
6616
|
method: 'POST',
|
|
6605
6617
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
6606
6618
|
}, unmarshalDomain$2);
|
|
6607
6619
|
|
|
6608
6620
|
/**
|
|
6609
|
-
* Search available domains. Search a domain
|
|
6621
|
+
* Search available domains. Search a domain or a maximum of 10 domains that
|
|
6622
|
+
* are available.
|
|
6610
6623
|
*
|
|
6611
|
-
* If the TLD list is empty or not set the search returns the results from
|
|
6612
|
-
* most popular TLDs.
|
|
6624
|
+
* If the TLD list is empty or not set, the search returns the results from
|
|
6625
|
+
* the most popular TLDs.
|
|
6613
6626
|
*
|
|
6614
6627
|
* @param request - The request
|
|
6615
6628
|
* {@link RegistrarApiSearchAvailableDomainsRequest}
|
|
@@ -6622,14 +6635,15 @@ class RegistrarAPI extends API$r {
|
|
|
6622
6635
|
}, unmarshalSearchAvailableDomainsResponse);
|
|
6623
6636
|
|
|
6624
6637
|
/**
|
|
6625
|
-
* Create domain hostname with glue
|
|
6638
|
+
* Create a hostname for a domain. Create a hostname for a domain with glue
|
|
6639
|
+
* IPs.
|
|
6626
6640
|
*
|
|
6627
6641
|
* @param request - The request {@link RegistrarApiCreateDomainHostRequest}
|
|
6628
6642
|
* @returns A Promise of Host
|
|
6629
6643
|
*/
|
|
6630
6644
|
createDomainHost = request => this.client.fetch({
|
|
6631
6645
|
body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
|
|
6632
|
-
headers: jsonContentHeaders$
|
|
6646
|
+
headers: jsonContentHeaders$j,
|
|
6633
6647
|
method: 'POST',
|
|
6634
6648
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
|
|
6635
6649
|
}, unmarshalHost);
|
|
@@ -6640,7 +6654,7 @@ class RegistrarAPI extends API$r {
|
|
|
6640
6654
|
}, unmarshalListDomainHostsResponse);
|
|
6641
6655
|
|
|
6642
6656
|
/**
|
|
6643
|
-
* List domain hostnames
|
|
6657
|
+
* List a domain's hostnames. List a domain's hostnames using their glue IPs.
|
|
6644
6658
|
*
|
|
6645
6659
|
* @param request - The request {@link RegistrarApiListDomainHostsRequest}
|
|
6646
6660
|
* @returns A Promise of ListDomainHostsResponse
|
|
@@ -6648,20 +6662,20 @@ class RegistrarAPI extends API$r {
|
|
|
6648
6662
|
listDomainHosts = request => enrichForPagination('hosts', this.pageOfListDomainHosts, request);
|
|
6649
6663
|
|
|
6650
6664
|
/**
|
|
6651
|
-
* Update domain hostname with glue IPs.
|
|
6665
|
+
* Update a domain's hostname. Update a domain's hostname with glue IPs.
|
|
6652
6666
|
*
|
|
6653
6667
|
* @param request - The request {@link RegistrarApiUpdateDomainHostRequest}
|
|
6654
6668
|
* @returns A Promise of Host
|
|
6655
6669
|
*/
|
|
6656
6670
|
updateDomainHost = request => this.client.fetch({
|
|
6657
6671
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
|
|
6658
|
-
headers: jsonContentHeaders$
|
|
6672
|
+
headers: jsonContentHeaders$j,
|
|
6659
6673
|
method: 'PATCH',
|
|
6660
6674
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
6661
6675
|
}, unmarshalHost);
|
|
6662
6676
|
|
|
6663
6677
|
/**
|
|
6664
|
-
* Delete domain hostname.
|
|
6678
|
+
* Delete a domain's hostname. Delete a domain's hostname.
|
|
6665
6679
|
*
|
|
6666
6680
|
* @param request - The request {@link RegistrarApiDeleteDomainHostRequest}
|
|
6667
6681
|
* @returns A Promise of Host
|
|
@@ -6675,9 +6689,9 @@ class RegistrarAPI extends API$r {
|
|
|
6675
6689
|
// This file was automatically generated. DO NOT EDIT.
|
|
6676
6690
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6677
6691
|
|
|
6678
|
-
var index_gen$
|
|
6692
|
+
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
6679
6693
|
__proto__: null,
|
|
6680
|
-
API: API$
|
|
6694
|
+
API: API$l,
|
|
6681
6695
|
DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
|
|
6682
6696
|
DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
|
|
6683
6697
|
DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
|
|
@@ -6688,9 +6702,9 @@ var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
|
6688
6702
|
TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
|
|
6689
6703
|
});
|
|
6690
6704
|
|
|
6691
|
-
var index$
|
|
6705
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
6692
6706
|
__proto__: null,
|
|
6693
|
-
v2beta1: index_gen$
|
|
6707
|
+
v2beta1: index_gen$i
|
|
6694
6708
|
});
|
|
6695
6709
|
|
|
6696
6710
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -6797,12 +6811,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
|
|
|
6797
6811
|
|
|
6798
6812
|
// This file was automatically generated. DO NOT EDIT.
|
|
6799
6813
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6800
|
-
const jsonContentHeaders$
|
|
6814
|
+
const jsonContentHeaders$i = {
|
|
6801
6815
|
'Content-Type': 'application/json; charset=utf-8'
|
|
6802
6816
|
};
|
|
6803
6817
|
|
|
6804
6818
|
/** Elastic Metal - Flexible IP API. */
|
|
6805
|
-
let API$
|
|
6819
|
+
let API$k = class API extends API$s {
|
|
6806
6820
|
/** Lists the available zones of the API. */
|
|
6807
6821
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
6808
6822
|
|
|
@@ -6815,7 +6829,7 @@ let API$j = class API extends API$r {
|
|
|
6815
6829
|
*/
|
|
6816
6830
|
createFlexibleIP = request => this.client.fetch({
|
|
6817
6831
|
body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
|
|
6818
|
-
headers: jsonContentHeaders$
|
|
6832
|
+
headers: jsonContentHeaders$i,
|
|
6819
6833
|
method: 'POST',
|
|
6820
6834
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
6821
6835
|
}, unmarshalFlexibleIP);
|
|
@@ -6865,7 +6879,7 @@ let API$j = class API extends API$r {
|
|
|
6865
6879
|
*/
|
|
6866
6880
|
updateFlexibleIP = request => this.client.fetch({
|
|
6867
6881
|
body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
|
|
6868
|
-
headers: jsonContentHeaders$
|
|
6882
|
+
headers: jsonContentHeaders$i,
|
|
6869
6883
|
method: 'PATCH',
|
|
6870
6884
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
6871
6885
|
}, unmarshalFlexibleIP);
|
|
@@ -6891,7 +6905,7 @@ let API$j = class API extends API$r {
|
|
|
6891
6905
|
*/
|
|
6892
6906
|
attachFlexibleIP = request => this.client.fetch({
|
|
6893
6907
|
body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
|
|
6894
|
-
headers: jsonContentHeaders$
|
|
6908
|
+
headers: jsonContentHeaders$i,
|
|
6895
6909
|
method: 'POST',
|
|
6896
6910
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
6897
6911
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
@@ -6905,7 +6919,7 @@ let API$j = class API extends API$r {
|
|
|
6905
6919
|
*/
|
|
6906
6920
|
detachFlexibleIP = request => this.client.fetch({
|
|
6907
6921
|
body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
|
|
6908
|
-
headers: jsonContentHeaders$
|
|
6922
|
+
headers: jsonContentHeaders$i,
|
|
6909
6923
|
method: 'POST',
|
|
6910
6924
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
6911
6925
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
@@ -6919,7 +6933,7 @@ let API$j = class API extends API$r {
|
|
|
6919
6933
|
*/
|
|
6920
6934
|
generateMACAddr = request => this.client.fetch({
|
|
6921
6935
|
body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
|
|
6922
|
-
headers: jsonContentHeaders$
|
|
6936
|
+
headers: jsonContentHeaders$i,
|
|
6923
6937
|
method: 'POST',
|
|
6924
6938
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
6925
6939
|
}, unmarshalFlexibleIP);
|
|
@@ -6934,7 +6948,7 @@ let API$j = class API extends API$r {
|
|
|
6934
6948
|
*/
|
|
6935
6949
|
duplicateMACAddr = request => this.client.fetch({
|
|
6936
6950
|
body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
|
|
6937
|
-
headers: jsonContentHeaders$
|
|
6951
|
+
headers: jsonContentHeaders$i,
|
|
6938
6952
|
method: 'POST',
|
|
6939
6953
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
6940
6954
|
}, unmarshalFlexibleIP);
|
|
@@ -6949,7 +6963,7 @@ let API$j = class API extends API$r {
|
|
|
6949
6963
|
*/
|
|
6950
6964
|
moveMACAddr = request => this.client.fetch({
|
|
6951
6965
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
6952
|
-
headers: jsonContentHeaders$
|
|
6966
|
+
headers: jsonContentHeaders$i,
|
|
6953
6967
|
method: 'POST',
|
|
6954
6968
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
6955
6969
|
}, unmarshalFlexibleIP);
|
|
@@ -6987,17 +7001,17 @@ var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
|
|
|
6987
7001
|
// This file was automatically generated. DO NOT EDIT.
|
|
6988
7002
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6989
7003
|
|
|
6990
|
-
var index_gen$
|
|
7004
|
+
var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
6991
7005
|
__proto__: null,
|
|
6992
|
-
API: API$
|
|
7006
|
+
API: API$k,
|
|
6993
7007
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
6994
7008
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
6995
7009
|
ValidationRules: validationRules_gen$3
|
|
6996
7010
|
});
|
|
6997
7011
|
|
|
6998
|
-
var index$
|
|
7012
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
6999
7013
|
__proto__: null,
|
|
7000
|
-
v1alpha1: index_gen$
|
|
7014
|
+
v1alpha1: index_gen$h
|
|
7001
7015
|
});
|
|
7002
7016
|
|
|
7003
7017
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -7412,12 +7426,12 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
7412
7426
|
|
|
7413
7427
|
// This file was automatically generated. DO NOT EDIT.
|
|
7414
7428
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7415
|
-
const jsonContentHeaders$
|
|
7429
|
+
const jsonContentHeaders$h = {
|
|
7416
7430
|
'Content-Type': 'application/json; charset=utf-8'
|
|
7417
7431
|
};
|
|
7418
7432
|
|
|
7419
7433
|
/** Serverless Functions API. */
|
|
7420
|
-
let API$
|
|
7434
|
+
let API$j = class API extends API$s {
|
|
7421
7435
|
/** Lists the available regions of the API. */
|
|
7422
7436
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
7423
7437
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -7464,7 +7478,7 @@ let API$i = class API extends API$r {
|
|
|
7464
7478
|
*/
|
|
7465
7479
|
createNamespace = (request = {}) => this.client.fetch({
|
|
7466
7480
|
body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
|
|
7467
|
-
headers: jsonContentHeaders$
|
|
7481
|
+
headers: jsonContentHeaders$h,
|
|
7468
7482
|
method: 'POST',
|
|
7469
7483
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
7470
7484
|
}, unmarshalNamespace$2);
|
|
@@ -7478,7 +7492,7 @@ let API$i = class API extends API$r {
|
|
|
7478
7492
|
*/
|
|
7479
7493
|
updateNamespace = request => this.client.fetch({
|
|
7480
7494
|
body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
|
|
7481
|
-
headers: jsonContentHeaders$
|
|
7495
|
+
headers: jsonContentHeaders$h,
|
|
7482
7496
|
method: 'PATCH',
|
|
7483
7497
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
7484
7498
|
}, unmarshalNamespace$2);
|
|
@@ -7537,7 +7551,7 @@ let API$i = class API extends API$r {
|
|
|
7537
7551
|
*/
|
|
7538
7552
|
createFunction = request => this.client.fetch({
|
|
7539
7553
|
body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
|
|
7540
|
-
headers: jsonContentHeaders$
|
|
7554
|
+
headers: jsonContentHeaders$h,
|
|
7541
7555
|
method: 'POST',
|
|
7542
7556
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
7543
7557
|
}, unmarshalFunction);
|
|
@@ -7551,7 +7565,7 @@ let API$i = class API extends API$r {
|
|
|
7551
7565
|
*/
|
|
7552
7566
|
updateFunction = request => this.client.fetch({
|
|
7553
7567
|
body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
|
|
7554
|
-
headers: jsonContentHeaders$
|
|
7568
|
+
headers: jsonContentHeaders$h,
|
|
7555
7569
|
method: 'PATCH',
|
|
7556
7570
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
7557
7571
|
}, unmarshalFunction);
|
|
@@ -7575,7 +7589,7 @@ let API$i = class API extends API$r {
|
|
|
7575
7589
|
*/
|
|
7576
7590
|
deployFunction = request => this.client.fetch({
|
|
7577
7591
|
body: '{}',
|
|
7578
|
-
headers: jsonContentHeaders$
|
|
7592
|
+
headers: jsonContentHeaders$h,
|
|
7579
7593
|
method: 'POST',
|
|
7580
7594
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
7581
7595
|
}, unmarshalFunction);
|
|
@@ -7658,7 +7672,7 @@ let API$i = class API extends API$r {
|
|
|
7658
7672
|
*/
|
|
7659
7673
|
createCron = request => this.client.fetch({
|
|
7660
7674
|
body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
|
|
7661
|
-
headers: jsonContentHeaders$
|
|
7675
|
+
headers: jsonContentHeaders$h,
|
|
7662
7676
|
method: 'POST',
|
|
7663
7677
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
7664
7678
|
}, unmarshalCron);
|
|
@@ -7671,7 +7685,7 @@ let API$i = class API extends API$r {
|
|
|
7671
7685
|
*/
|
|
7672
7686
|
updateCron = request => this.client.fetch({
|
|
7673
7687
|
body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
|
|
7674
|
-
headers: jsonContentHeaders$
|
|
7688
|
+
headers: jsonContentHeaders$h,
|
|
7675
7689
|
method: 'PATCH',
|
|
7676
7690
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
7677
7691
|
}, unmarshalCron);
|
|
@@ -7745,7 +7759,7 @@ let API$i = class API extends API$r {
|
|
|
7745
7759
|
*/
|
|
7746
7760
|
createDomain = request => this.client.fetch({
|
|
7747
7761
|
body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
|
|
7748
|
-
headers: jsonContentHeaders$
|
|
7762
|
+
headers: jsonContentHeaders$h,
|
|
7749
7763
|
method: 'POST',
|
|
7750
7764
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
7751
7765
|
}, unmarshalDomain$1);
|
|
@@ -7787,7 +7801,7 @@ let API$i = class API extends API$r {
|
|
|
7787
7801
|
*/
|
|
7788
7802
|
createToken = (request = {}) => this.client.fetch({
|
|
7789
7803
|
body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
|
|
7790
|
-
headers: jsonContentHeaders$
|
|
7804
|
+
headers: jsonContentHeaders$h,
|
|
7791
7805
|
method: 'POST',
|
|
7792
7806
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
7793
7807
|
}, unmarshalToken);
|
|
@@ -7837,7 +7851,7 @@ let API$i = class API extends API$r {
|
|
|
7837
7851
|
}, unmarshalToken);
|
|
7838
7852
|
createTrigger = request => this.client.fetch({
|
|
7839
7853
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
7840
|
-
headers: jsonContentHeaders$
|
|
7854
|
+
headers: jsonContentHeaders$h,
|
|
7841
7855
|
method: 'POST',
|
|
7842
7856
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
7843
7857
|
}, unmarshalTrigger);
|
|
@@ -7872,7 +7886,7 @@ let API$i = class API extends API$r {
|
|
|
7872
7886
|
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
7873
7887
|
updateTrigger = request => this.client.fetch({
|
|
7874
7888
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
7875
|
-
headers: jsonContentHeaders$
|
|
7889
|
+
headers: jsonContentHeaders$h,
|
|
7876
7890
|
method: 'PATCH',
|
|
7877
7891
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
7878
7892
|
}, unmarshalTrigger);
|
|
@@ -7885,9 +7899,9 @@ let API$i = class API extends API$r {
|
|
|
7885
7899
|
// This file was automatically generated. DO NOT EDIT.
|
|
7886
7900
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7887
7901
|
|
|
7888
|
-
var index_gen$
|
|
7902
|
+
var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
7889
7903
|
__proto__: null,
|
|
7890
|
-
API: API$
|
|
7904
|
+
API: API$j,
|
|
7891
7905
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
|
|
7892
7906
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
|
|
7893
7907
|
FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
|
|
@@ -7896,9 +7910,9 @@ var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
|
7896
7910
|
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES
|
|
7897
7911
|
});
|
|
7898
7912
|
|
|
7899
|
-
var index$
|
|
7913
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
7900
7914
|
__proto__: null,
|
|
7901
|
-
v1beta1: index_gen$
|
|
7915
|
+
v1beta1: index_gen$g
|
|
7902
7916
|
});
|
|
7903
7917
|
|
|
7904
7918
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -8277,12 +8291,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
8277
8291
|
|
|
8278
8292
|
// This file was automatically generated. DO NOT EDIT.
|
|
8279
8293
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
8280
|
-
const jsonContentHeaders$
|
|
8294
|
+
const jsonContentHeaders$g = {
|
|
8281
8295
|
'Content-Type': 'application/json; charset=utf-8'
|
|
8282
8296
|
};
|
|
8283
8297
|
|
|
8284
8298
|
/** IAM API. */
|
|
8285
|
-
let API$
|
|
8299
|
+
let API$i = class API extends API$s {
|
|
8286
8300
|
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
8287
8301
|
method: 'GET',
|
|
8288
8302
|
path: `/iam/v1alpha1/ssh-keys`,
|
|
@@ -8309,7 +8323,7 @@ let API$h = class API extends API$r {
|
|
|
8309
8323
|
*/
|
|
8310
8324
|
createSSHKey = request => this.client.fetch({
|
|
8311
8325
|
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
8312
|
-
headers: jsonContentHeaders$
|
|
8326
|
+
headers: jsonContentHeaders$g,
|
|
8313
8327
|
method: 'POST',
|
|
8314
8328
|
path: `/iam/v1alpha1/ssh-keys`
|
|
8315
8329
|
}, unmarshalSSHKey);
|
|
@@ -8336,7 +8350,7 @@ let API$h = class API extends API$r {
|
|
|
8336
8350
|
*/
|
|
8337
8351
|
updateSSHKey = request => this.client.fetch({
|
|
8338
8352
|
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
8339
|
-
headers: jsonContentHeaders$
|
|
8353
|
+
headers: jsonContentHeaders$g,
|
|
8340
8354
|
method: 'PATCH',
|
|
8341
8355
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
8342
8356
|
}, unmarshalSSHKey);
|
|
@@ -8424,7 +8438,7 @@ let API$h = class API extends API$r {
|
|
|
8424
8438
|
*/
|
|
8425
8439
|
createApplication = request => this.client.fetch({
|
|
8426
8440
|
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
8427
|
-
headers: jsonContentHeaders$
|
|
8441
|
+
headers: jsonContentHeaders$g,
|
|
8428
8442
|
method: 'POST',
|
|
8429
8443
|
path: `/iam/v1alpha1/applications`
|
|
8430
8444
|
}, unmarshalApplication);
|
|
@@ -8452,7 +8466,7 @@ let API$h = class API extends API$r {
|
|
|
8452
8466
|
*/
|
|
8453
8467
|
updateApplication = request => this.client.fetch({
|
|
8454
8468
|
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
8455
|
-
headers: jsonContentHeaders$
|
|
8469
|
+
headers: jsonContentHeaders$g,
|
|
8456
8470
|
method: 'PATCH',
|
|
8457
8471
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
8458
8472
|
}, unmarshalApplication);
|
|
@@ -8496,7 +8510,7 @@ let API$h = class API extends API$r {
|
|
|
8496
8510
|
*/
|
|
8497
8511
|
createGroup = request => this.client.fetch({
|
|
8498
8512
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
8499
|
-
headers: jsonContentHeaders$
|
|
8513
|
+
headers: jsonContentHeaders$g,
|
|
8500
8514
|
method: 'POST',
|
|
8501
8515
|
path: `/iam/v1alpha1/groups`
|
|
8502
8516
|
}, unmarshalGroup);
|
|
@@ -8523,7 +8537,7 @@ let API$h = class API extends API$r {
|
|
|
8523
8537
|
*/
|
|
8524
8538
|
updateGroup = request => this.client.fetch({
|
|
8525
8539
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
8526
|
-
headers: jsonContentHeaders$
|
|
8540
|
+
headers: jsonContentHeaders$g,
|
|
8527
8541
|
method: 'PATCH',
|
|
8528
8542
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
8529
8543
|
}, unmarshalGroup);
|
|
@@ -8538,7 +8552,7 @@ let API$h = class API extends API$r {
|
|
|
8538
8552
|
*/
|
|
8539
8553
|
setGroupMembers = request => this.client.fetch({
|
|
8540
8554
|
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
8541
|
-
headers: jsonContentHeaders$
|
|
8555
|
+
headers: jsonContentHeaders$g,
|
|
8542
8556
|
method: 'PUT',
|
|
8543
8557
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
|
|
8544
8558
|
}, unmarshalGroup);
|
|
@@ -8553,7 +8567,7 @@ let API$h = class API extends API$r {
|
|
|
8553
8567
|
*/
|
|
8554
8568
|
addGroupMember = request => this.client.fetch({
|
|
8555
8569
|
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
8556
|
-
headers: jsonContentHeaders$
|
|
8570
|
+
headers: jsonContentHeaders$g,
|
|
8557
8571
|
method: 'POST',
|
|
8558
8572
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
8559
8573
|
}, unmarshalGroup);
|
|
@@ -8571,7 +8585,7 @@ let API$h = class API extends API$r {
|
|
|
8571
8585
|
*/
|
|
8572
8586
|
addGroupMembers = request => this.client.fetch({
|
|
8573
8587
|
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
8574
|
-
headers: jsonContentHeaders$
|
|
8588
|
+
headers: jsonContentHeaders$g,
|
|
8575
8589
|
method: 'POST',
|
|
8576
8590
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
8577
8591
|
}, unmarshalGroup);
|
|
@@ -8590,7 +8604,7 @@ let API$h = class API extends API$r {
|
|
|
8590
8604
|
*/
|
|
8591
8605
|
removeGroupMember = request => this.client.fetch({
|
|
8592
8606
|
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
8593
|
-
headers: jsonContentHeaders$
|
|
8607
|
+
headers: jsonContentHeaders$g,
|
|
8594
8608
|
method: 'POST',
|
|
8595
8609
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
|
|
8596
8610
|
}, unmarshalGroup);
|
|
@@ -8636,7 +8650,7 @@ let API$h = class API extends API$r {
|
|
|
8636
8650
|
*/
|
|
8637
8651
|
createPolicy = request => this.client.fetch({
|
|
8638
8652
|
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
8639
|
-
headers: jsonContentHeaders$
|
|
8653
|
+
headers: jsonContentHeaders$g,
|
|
8640
8654
|
method: 'POST',
|
|
8641
8655
|
path: `/iam/v1alpha1/policies`
|
|
8642
8656
|
}, unmarshalPolicy);
|
|
@@ -8665,7 +8679,7 @@ let API$h = class API extends API$r {
|
|
|
8665
8679
|
*/
|
|
8666
8680
|
updatePolicy = request => this.client.fetch({
|
|
8667
8681
|
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
8668
|
-
headers: jsonContentHeaders$
|
|
8682
|
+
headers: jsonContentHeaders$g,
|
|
8669
8683
|
method: 'PATCH',
|
|
8670
8684
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
|
|
8671
8685
|
}, unmarshalPolicy);
|
|
@@ -8692,7 +8706,7 @@ let API$h = class API extends API$r {
|
|
|
8692
8706
|
*/
|
|
8693
8707
|
clonePolicy = request => this.client.fetch({
|
|
8694
8708
|
body: '{}',
|
|
8695
|
-
headers: jsonContentHeaders$
|
|
8709
|
+
headers: jsonContentHeaders$g,
|
|
8696
8710
|
method: 'POST',
|
|
8697
8711
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
|
|
8698
8712
|
}, unmarshalPolicy);
|
|
@@ -8710,7 +8724,7 @@ let API$h = class API extends API$r {
|
|
|
8710
8724
|
*/
|
|
8711
8725
|
setRules = request => this.client.fetch({
|
|
8712
8726
|
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
8713
|
-
headers: jsonContentHeaders$
|
|
8727
|
+
headers: jsonContentHeaders$g,
|
|
8714
8728
|
method: 'PUT',
|
|
8715
8729
|
path: `/iam/v1alpha1/rules`
|
|
8716
8730
|
}, unmarshalSetRulesResponse);
|
|
@@ -8781,7 +8795,7 @@ let API$h = class API extends API$r {
|
|
|
8781
8795
|
*/
|
|
8782
8796
|
createAPIKey = request => this.client.fetch({
|
|
8783
8797
|
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
8784
|
-
headers: jsonContentHeaders$
|
|
8798
|
+
headers: jsonContentHeaders$g,
|
|
8785
8799
|
method: 'POST',
|
|
8786
8800
|
path: `/iam/v1alpha1/api-keys`
|
|
8787
8801
|
}, unmarshalAPIKey);
|
|
@@ -8811,7 +8825,7 @@ let API$h = class API extends API$r {
|
|
|
8811
8825
|
*/
|
|
8812
8826
|
updateAPIKey = request => this.client.fetch({
|
|
8813
8827
|
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
8814
|
-
headers: jsonContentHeaders$
|
|
8828
|
+
headers: jsonContentHeaders$g,
|
|
8815
8829
|
method: 'PATCH',
|
|
8816
8830
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
8817
8831
|
}, unmarshalAPIKey);
|
|
@@ -9128,15 +9142,15 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
|
9128
9142
|
// This file was automatically generated. DO NOT EDIT.
|
|
9129
9143
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9130
9144
|
|
|
9131
|
-
var index_gen$
|
|
9145
|
+
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
9132
9146
|
__proto__: null,
|
|
9133
|
-
API: API$
|
|
9147
|
+
API: API$i,
|
|
9134
9148
|
ValidationRules: validationRules_gen$2
|
|
9135
9149
|
});
|
|
9136
9150
|
|
|
9137
|
-
var index$
|
|
9151
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
9138
9152
|
__proto__: null,
|
|
9139
|
-
v1alpha1: index_gen$
|
|
9153
|
+
v1alpha1: index_gen$f
|
|
9140
9154
|
});
|
|
9141
9155
|
|
|
9142
9156
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9187,7 +9201,7 @@ const unmarshalServerTypeVolumeConstraintSizes = data => {
|
|
|
9187
9201
|
minSize: data.min_size
|
|
9188
9202
|
};
|
|
9189
9203
|
};
|
|
9190
|
-
const unmarshalVolume$
|
|
9204
|
+
const unmarshalVolume$2 = data => {
|
|
9191
9205
|
if (!isJSONObject(data)) {
|
|
9192
9206
|
throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
|
|
9193
9207
|
}
|
|
@@ -9226,7 +9240,7 @@ const unmarshalImage$3 = data => {
|
|
|
9226
9240
|
arch: data.arch,
|
|
9227
9241
|
creationDate: unmarshalDate(data.creation_date),
|
|
9228
9242
|
defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) : undefined,
|
|
9229
|
-
extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume$
|
|
9243
|
+
extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume$2),
|
|
9230
9244
|
fromServer: data.from_server,
|
|
9231
9245
|
id: data.id,
|
|
9232
9246
|
modificationDate: unmarshalDate(data.modification_date),
|
|
@@ -9285,7 +9299,11 @@ const unmarshalServerIp = data => {
|
|
|
9285
9299
|
return {
|
|
9286
9300
|
address: data.address,
|
|
9287
9301
|
dynamic: data.dynamic,
|
|
9288
|
-
|
|
9302
|
+
family: data.family,
|
|
9303
|
+
gateway: data.gateway,
|
|
9304
|
+
id: data.id,
|
|
9305
|
+
netmask: data.netmask,
|
|
9306
|
+
provisioningMode: data.provisioning_mode
|
|
9289
9307
|
};
|
|
9290
9308
|
};
|
|
9291
9309
|
const unmarshalServerIpv6 = data => {
|
|
@@ -9430,10 +9448,13 @@ const unmarshalIp$1 = data => {
|
|
|
9430
9448
|
address: data.address,
|
|
9431
9449
|
id: data.id,
|
|
9432
9450
|
organization: data.organization,
|
|
9451
|
+
prefix: data.prefix,
|
|
9433
9452
|
project: data.project,
|
|
9434
9453
|
reverse: data.reverse,
|
|
9435
9454
|
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
9455
|
+
state: data.state,
|
|
9436
9456
|
tags: data.tags,
|
|
9457
|
+
type: data.type,
|
|
9437
9458
|
zone: data.zone
|
|
9438
9459
|
};
|
|
9439
9460
|
};
|
|
@@ -9506,6 +9527,7 @@ const unmarshalServer = data => {
|
|
|
9506
9527
|
image: data.image ? unmarshalImage$3(data.image) : undefined,
|
|
9507
9528
|
ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : undefined,
|
|
9508
9529
|
location: data.location ? unmarshalServerLocation(data.location) : undefined,
|
|
9530
|
+
macAddress: data.mac_address,
|
|
9509
9531
|
maintenances: unmarshalArrayOfObject(data.maintenances, unmarshalServerMaintenance),
|
|
9510
9532
|
modificationDate: unmarshalDate(data.modification_date),
|
|
9511
9533
|
name: data.name,
|
|
@@ -9516,6 +9538,8 @@ const unmarshalServer = data => {
|
|
|
9516
9538
|
project: data.project,
|
|
9517
9539
|
protected: data.protected,
|
|
9518
9540
|
publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : undefined,
|
|
9541
|
+
publicIps: unmarshalArrayOfObject(data.public_ips, unmarshalServerIp),
|
|
9542
|
+
routedIpEnabled: data.routed_ip_enabled,
|
|
9519
9543
|
securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : undefined,
|
|
9520
9544
|
state: data.state,
|
|
9521
9545
|
stateDetail: data.state_detail,
|
|
@@ -9659,7 +9683,7 @@ const unmarshalCreateVolumeResponse = data => {
|
|
|
9659
9683
|
throw new TypeError(`Unmarshalling the type 'CreateVolumeResponse' failed as data isn't a dictionary.`);
|
|
9660
9684
|
}
|
|
9661
9685
|
return {
|
|
9662
|
-
volume: data.volume ? unmarshalVolume$
|
|
9686
|
+
volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
|
|
9663
9687
|
};
|
|
9664
9688
|
};
|
|
9665
9689
|
const unmarshalExportSnapshotResponse = data => {
|
|
@@ -9755,7 +9779,8 @@ const unmarshalGetServerTypesAvailabilityResponse = data => {
|
|
|
9755
9779
|
throw new TypeError(`Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`);
|
|
9756
9780
|
}
|
|
9757
9781
|
return {
|
|
9758
|
-
servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability)
|
|
9782
|
+
servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability),
|
|
9783
|
+
totalCount: data.total_count
|
|
9759
9784
|
};
|
|
9760
9785
|
};
|
|
9761
9786
|
const unmarshalGetSnapshotResponse = data => {
|
|
@@ -9771,7 +9796,7 @@ const unmarshalGetVolumeResponse = data => {
|
|
|
9771
9796
|
throw new TypeError(`Unmarshalling the type 'GetVolumeResponse' failed as data isn't a dictionary.`);
|
|
9772
9797
|
}
|
|
9773
9798
|
return {
|
|
9774
|
-
volume: data.volume ? unmarshalVolume$
|
|
9799
|
+
volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
|
|
9775
9800
|
};
|
|
9776
9801
|
};
|
|
9777
9802
|
const unmarshalListBootscriptsResponse = data => {
|
|
@@ -9880,13 +9905,13 @@ const unmarshalListSnapshotsResponse$1 = data => {
|
|
|
9880
9905
|
totalCount: data.total_count
|
|
9881
9906
|
};
|
|
9882
9907
|
};
|
|
9883
|
-
const unmarshalListVolumesResponse = data => {
|
|
9908
|
+
const unmarshalListVolumesResponse$1 = data => {
|
|
9884
9909
|
if (!isJSONObject(data)) {
|
|
9885
9910
|
throw new TypeError(`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`);
|
|
9886
9911
|
}
|
|
9887
9912
|
return {
|
|
9888
9913
|
totalCount: data.total_count,
|
|
9889
|
-
volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$
|
|
9914
|
+
volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$2)
|
|
9890
9915
|
};
|
|
9891
9916
|
};
|
|
9892
9917
|
const unmarshalListVolumesTypesResponse = data => {
|
|
@@ -10007,7 +10032,7 @@ const unmarshalUpdateVolumeResponse = data => {
|
|
|
10007
10032
|
throw new TypeError(`Unmarshalling the type 'UpdateVolumeResponse' failed as data isn't a dictionary.`);
|
|
10008
10033
|
}
|
|
10009
10034
|
return {
|
|
10010
|
-
volume: data.volume ? unmarshalVolume$
|
|
10035
|
+
volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
|
|
10011
10036
|
};
|
|
10012
10037
|
};
|
|
10013
10038
|
const marshalServerSummary$1 = (request, defaults) => ({
|
|
@@ -10102,7 +10127,11 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
10102
10127
|
const marshalServerIp = (request, defaults) => ({
|
|
10103
10128
|
address: request.address,
|
|
10104
10129
|
dynamic: request.dynamic,
|
|
10105
|
-
|
|
10130
|
+
family: request.family,
|
|
10131
|
+
gateway: request.gateway,
|
|
10132
|
+
id: request.id,
|
|
10133
|
+
netmask: request.netmask,
|
|
10134
|
+
provisioning_mode: request.provisioningMode
|
|
10106
10135
|
});
|
|
10107
10136
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
10108
10137
|
address: request.address,
|
|
@@ -10182,6 +10211,7 @@ const marshalCreateImageRequest = (request, defaults) => ({
|
|
|
10182
10211
|
const marshalCreateIpRequest$1 = (request, defaults) => ({
|
|
10183
10212
|
server: request.server,
|
|
10184
10213
|
tags: request.tags,
|
|
10214
|
+
type: request.type ?? 'unknown_iptype',
|
|
10185
10215
|
...resolveOneOf([{
|
|
10186
10216
|
default: defaults.defaultProjectId,
|
|
10187
10217
|
param: 'project',
|
|
@@ -10256,6 +10286,8 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
10256
10286
|
name: request.name || randomName('srv'),
|
|
10257
10287
|
placement_group: request.placementGroup,
|
|
10258
10288
|
public_ip: request.publicIp,
|
|
10289
|
+
public_ips: request.publicIps,
|
|
10290
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10259
10291
|
security_group: request.securityGroup,
|
|
10260
10292
|
tags: request.tags,
|
|
10261
10293
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
|
|
@@ -10290,7 +10322,7 @@ const marshalCreateSnapshotRequest$1 = (request, defaults) => ({
|
|
|
10290
10322
|
value: request.organization
|
|
10291
10323
|
}])
|
|
10292
10324
|
});
|
|
10293
|
-
const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
10325
|
+
const marshalCreateVolumeRequest$1 = (request, defaults) => ({
|
|
10294
10326
|
name: request.name || randomName('vol'),
|
|
10295
10327
|
tags: request.tags,
|
|
10296
10328
|
volume_type: request.volumeType ?? 'l_ssd',
|
|
@@ -10408,6 +10440,8 @@ const marshalSetServerRequest = (request, defaults) => ({
|
|
|
10408
10440
|
project: request.project,
|
|
10409
10441
|
protected: request.protected,
|
|
10410
10442
|
public_ip: request.publicIp ? marshalServerIp(request.publicIp) : undefined,
|
|
10443
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
10444
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10411
10445
|
security_group: request.securityGroup ? marshalSecurityGroupSummary(request.securityGroup) : undefined,
|
|
10412
10446
|
state: request.state,
|
|
10413
10447
|
state_detail: request.stateDetail,
|
|
@@ -10433,7 +10467,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
10433
10467
|
const marshalUpdateIpRequest$1 = (request, defaults) => ({
|
|
10434
10468
|
reverse: request.reverse,
|
|
10435
10469
|
server: request.server,
|
|
10436
|
-
tags: request.tags
|
|
10470
|
+
tags: request.tags,
|
|
10471
|
+
type: request.type ?? 'unknown_iptype'
|
|
10437
10472
|
});
|
|
10438
10473
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
10439
10474
|
name: request.name,
|
|
@@ -10456,6 +10491,8 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
10456
10491
|
placement_group: request.placementGroup,
|
|
10457
10492
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
10458
10493
|
protected: request.protected,
|
|
10494
|
+
public_ips: request.publicIps ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
|
|
10495
|
+
routed_ip_enabled: request.routedIpEnabled,
|
|
10459
10496
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
|
10460
10497
|
tags: request.tags,
|
|
10461
10498
|
volumes: request.volumes ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
|
|
@@ -10463,7 +10500,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
10463
10500
|
[key]: marshalVolumeServerTemplate(value)
|
|
10464
10501
|
}), {}) : undefined
|
|
10465
10502
|
});
|
|
10466
|
-
const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
10503
|
+
const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
|
|
10467
10504
|
name: request.name,
|
|
10468
10505
|
size: request.size,
|
|
10469
10506
|
tags: request.tags
|
|
@@ -10471,14 +10508,14 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
10471
10508
|
|
|
10472
10509
|
// This file was automatically generated. DO NOT EDIT.
|
|
10473
10510
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10474
|
-
const jsonContentHeaders$
|
|
10511
|
+
const jsonContentHeaders$f = {
|
|
10475
10512
|
'Content-Type': 'application/json; charset=utf-8'
|
|
10476
10513
|
};
|
|
10477
10514
|
|
|
10478
10515
|
/** Instance API. */
|
|
10479
|
-
let API$
|
|
10516
|
+
let API$h = class API extends API$s {
|
|
10480
10517
|
/** Lists the available zones of the API. */
|
|
10481
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
10518
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
10482
10519
|
|
|
10483
10520
|
/**
|
|
10484
10521
|
* Get availability. Get availability for all Instance types.
|
|
@@ -10532,7 +10569,7 @@ let API$g = class API extends API$r {
|
|
|
10532
10569
|
listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
|
|
10533
10570
|
_createServer = request => this.client.fetch({
|
|
10534
10571
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
10535
|
-
headers: jsonContentHeaders$
|
|
10572
|
+
headers: jsonContentHeaders$f,
|
|
10536
10573
|
method: 'POST',
|
|
10537
10574
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
10538
10575
|
}, unmarshalCreateServerResponse);
|
|
@@ -10559,13 +10596,13 @@ let API$g = class API extends API$r {
|
|
|
10559
10596
|
}, unmarshalGetServerResponse);
|
|
10560
10597
|
_setServer = request => this.client.fetch({
|
|
10561
10598
|
body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
|
|
10562
|
-
headers: jsonContentHeaders$
|
|
10599
|
+
headers: jsonContentHeaders$f,
|
|
10563
10600
|
method: 'PUT',
|
|
10564
10601
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
|
|
10565
10602
|
}, unmarshalSetServerResponse);
|
|
10566
10603
|
_updateServer = request => this.client.fetch({
|
|
10567
10604
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
10568
|
-
headers: jsonContentHeaders$
|
|
10605
|
+
headers: jsonContentHeaders$f,
|
|
10569
10606
|
method: 'PATCH',
|
|
10570
10607
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
10571
10608
|
}, unmarshalUpdateServerResponse);
|
|
@@ -10589,6 +10626,7 @@ let API$g = class API extends API$r {
|
|
|
10589
10626
|
* keep the slot on the hypervisor. `reboot`: Stop the instance and restart
|
|
10590
10627
|
* it. `backup`: Create an image with all the volumes of an Instance.
|
|
10591
10628
|
* `terminate`: Delete the Instance along with all attached volumes.
|
|
10629
|
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
|
|
10592
10630
|
*
|
|
10593
10631
|
* Keep in mind that terminating an Instance will result in the deletion of
|
|
10594
10632
|
* all attached volumes, including local and block storage. If you want to
|
|
@@ -10602,7 +10640,7 @@ let API$g = class API extends API$r {
|
|
|
10602
10640
|
*/
|
|
10603
10641
|
serverAction = request => this.client.fetch({
|
|
10604
10642
|
body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
|
|
10605
|
-
headers: jsonContentHeaders$
|
|
10643
|
+
headers: jsonContentHeaders$f,
|
|
10606
10644
|
method: 'POST',
|
|
10607
10645
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
|
|
10608
10646
|
}, unmarshalServerActionResponse);
|
|
@@ -10661,13 +10699,13 @@ let API$g = class API extends API$r {
|
|
|
10661
10699
|
*/
|
|
10662
10700
|
createImage = request => this.client.fetch({
|
|
10663
10701
|
body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
|
|
10664
|
-
headers: jsonContentHeaders$
|
|
10702
|
+
headers: jsonContentHeaders$f,
|
|
10665
10703
|
method: 'POST',
|
|
10666
10704
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
|
|
10667
10705
|
}, unmarshalCreateImageResponse);
|
|
10668
10706
|
_setImage = request => this.client.fetch({
|
|
10669
10707
|
body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
|
|
10670
|
-
headers: jsonContentHeaders$
|
|
10708
|
+
headers: jsonContentHeaders$f,
|
|
10671
10709
|
method: 'PUT',
|
|
10672
10710
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
|
|
10673
10711
|
}, unmarshalSetImageResponse);
|
|
@@ -10706,7 +10744,7 @@ let API$g = class API extends API$r {
|
|
|
10706
10744
|
*/
|
|
10707
10745
|
createSnapshot = (request = {}) => this.client.fetch({
|
|
10708
10746
|
body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
|
|
10709
|
-
headers: jsonContentHeaders$
|
|
10747
|
+
headers: jsonContentHeaders$f,
|
|
10710
10748
|
method: 'POST',
|
|
10711
10749
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
10712
10750
|
}, unmarshalCreateSnapshotResponse);
|
|
@@ -10723,7 +10761,7 @@ let API$g = class API extends API$r {
|
|
|
10723
10761
|
}, unmarshalGetSnapshotResponse);
|
|
10724
10762
|
_setSnapshot = request => this.client.fetch({
|
|
10725
10763
|
body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
|
|
10726
|
-
headers: jsonContentHeaders$
|
|
10764
|
+
headers: jsonContentHeaders$f,
|
|
10727
10765
|
method: 'PUT',
|
|
10728
10766
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
10729
10767
|
}, unmarshalSetSnapshotResponse);
|
|
@@ -10747,7 +10785,7 @@ let API$g = class API extends API$r {
|
|
|
10747
10785
|
*/
|
|
10748
10786
|
exportSnapshot = request => this.client.fetch({
|
|
10749
10787
|
body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
|
|
10750
|
-
headers: jsonContentHeaders$
|
|
10788
|
+
headers: jsonContentHeaders$f,
|
|
10751
10789
|
method: 'POST',
|
|
10752
10790
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
|
|
10753
10791
|
}, unmarshalExportSnapshotResponse);
|
|
@@ -10755,7 +10793,7 @@ let API$g = class API extends API$r {
|
|
|
10755
10793
|
method: 'GET',
|
|
10756
10794
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`,
|
|
10757
10795
|
urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['volume_type', request.volumeType])
|
|
10758
|
-
}, unmarshalListVolumesResponse);
|
|
10796
|
+
}, unmarshalListVolumesResponse$1);
|
|
10759
10797
|
|
|
10760
10798
|
/**
|
|
10761
10799
|
* List volumes. List volumes in the specified Availability Zone. You can
|
|
@@ -10774,8 +10812,8 @@ let API$g = class API extends API$r {
|
|
|
10774
10812
|
* @returns A Promise of CreateVolumeResponse
|
|
10775
10813
|
*/
|
|
10776
10814
|
createVolume = (request = {}) => this.client.fetch({
|
|
10777
|
-
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
10778
|
-
headers: jsonContentHeaders$
|
|
10815
|
+
body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
|
|
10816
|
+
headers: jsonContentHeaders$f,
|
|
10779
10817
|
method: 'POST',
|
|
10780
10818
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
10781
10819
|
}, unmarshalCreateVolumeResponse);
|
|
@@ -10800,8 +10838,8 @@ let API$g = class API extends API$r {
|
|
|
10800
10838
|
* @returns A Promise of UpdateVolumeResponse
|
|
10801
10839
|
*/
|
|
10802
10840
|
updateVolume = request => this.client.fetch({
|
|
10803
|
-
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
10804
|
-
headers: jsonContentHeaders$
|
|
10841
|
+
body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
|
|
10842
|
+
headers: jsonContentHeaders$f,
|
|
10805
10843
|
method: 'PATCH',
|
|
10806
10844
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
10807
10845
|
}, unmarshalUpdateVolumeResponse);
|
|
@@ -10838,7 +10876,7 @@ let API$g = class API extends API$r {
|
|
|
10838
10876
|
*/
|
|
10839
10877
|
createSecurityGroup = request => this.client.fetch({
|
|
10840
10878
|
body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
|
|
10841
|
-
headers: jsonContentHeaders$
|
|
10879
|
+
headers: jsonContentHeaders$f,
|
|
10842
10880
|
method: 'POST',
|
|
10843
10881
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
10844
10882
|
}, unmarshalCreateSecurityGroupResponse);
|
|
@@ -10866,7 +10904,7 @@ let API$g = class API extends API$r {
|
|
|
10866
10904
|
});
|
|
10867
10905
|
_setSecurityGroup = request => this.client.fetch({
|
|
10868
10906
|
body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
|
|
10869
|
-
headers: jsonContentHeaders$
|
|
10907
|
+
headers: jsonContentHeaders$f,
|
|
10870
10908
|
method: 'PUT',
|
|
10871
10909
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
|
|
10872
10910
|
}, unmarshalSetSecurityGroupResponse);
|
|
@@ -10904,7 +10942,7 @@ let API$g = class API extends API$r {
|
|
|
10904
10942
|
*/
|
|
10905
10943
|
createSecurityGroupRule = request => this.client.fetch({
|
|
10906
10944
|
body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
|
|
10907
|
-
headers: jsonContentHeaders$
|
|
10945
|
+
headers: jsonContentHeaders$f,
|
|
10908
10946
|
method: 'POST',
|
|
10909
10947
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
10910
10948
|
}, unmarshalCreateSecurityGroupRuleResponse);
|
|
@@ -10920,7 +10958,7 @@ let API$g = class API extends API$r {
|
|
|
10920
10958
|
*/
|
|
10921
10959
|
setSecurityGroupRules = request => this.client.fetch({
|
|
10922
10960
|
body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
|
|
10923
|
-
headers: jsonContentHeaders$
|
|
10961
|
+
headers: jsonContentHeaders$f,
|
|
10924
10962
|
method: 'PUT',
|
|
10925
10963
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
10926
10964
|
}, unmarshalSetSecurityGroupRulesResponse);
|
|
@@ -10947,7 +10985,7 @@ let API$g = class API extends API$r {
|
|
|
10947
10985
|
}, unmarshalGetSecurityGroupRuleResponse);
|
|
10948
10986
|
_setSecurityGroupRule = request => this.client.fetch({
|
|
10949
10987
|
body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
|
|
10950
|
-
headers: jsonContentHeaders$
|
|
10988
|
+
headers: jsonContentHeaders$f,
|
|
10951
10989
|
method: 'PUT',
|
|
10952
10990
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
|
|
10953
10991
|
}, unmarshalSetSecurityGroupRuleResponse);
|
|
@@ -10975,7 +11013,7 @@ let API$g = class API extends API$r {
|
|
|
10975
11013
|
*/
|
|
10976
11014
|
createPlacementGroup = (request = {}) => this.client.fetch({
|
|
10977
11015
|
body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
|
|
10978
|
-
headers: jsonContentHeaders$
|
|
11016
|
+
headers: jsonContentHeaders$f,
|
|
10979
11017
|
method: 'POST',
|
|
10980
11018
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
10981
11019
|
}, unmarshalCreatePlacementGroupResponse);
|
|
@@ -10999,7 +11037,7 @@ let API$g = class API extends API$r {
|
|
|
10999
11037
|
*/
|
|
11000
11038
|
setPlacementGroup = request => this.client.fetch({
|
|
11001
11039
|
body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
|
|
11002
|
-
headers: jsonContentHeaders$
|
|
11040
|
+
headers: jsonContentHeaders$f,
|
|
11003
11041
|
method: 'PUT',
|
|
11004
11042
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
11005
11043
|
}, unmarshalSetPlacementGroupResponse);
|
|
@@ -11013,7 +11051,7 @@ let API$g = class API extends API$r {
|
|
|
11013
11051
|
*/
|
|
11014
11052
|
updatePlacementGroup = request => this.client.fetch({
|
|
11015
11053
|
body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
|
|
11016
|
-
headers: jsonContentHeaders$
|
|
11054
|
+
headers: jsonContentHeaders$f,
|
|
11017
11055
|
method: 'PATCH',
|
|
11018
11056
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
11019
11057
|
}, unmarshalUpdatePlacementGroupResponse);
|
|
@@ -11049,7 +11087,7 @@ let API$g = class API extends API$r {
|
|
|
11049
11087
|
*/
|
|
11050
11088
|
setPlacementGroupServers = request => this.client.fetch({
|
|
11051
11089
|
body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
|
|
11052
|
-
headers: jsonContentHeaders$
|
|
11090
|
+
headers: jsonContentHeaders$f,
|
|
11053
11091
|
method: 'PUT',
|
|
11054
11092
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
11055
11093
|
}, unmarshalSetPlacementGroupServersResponse);
|
|
@@ -11063,7 +11101,7 @@ let API$g = class API extends API$r {
|
|
|
11063
11101
|
*/
|
|
11064
11102
|
updatePlacementGroupServers = request => this.client.fetch({
|
|
11065
11103
|
body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
|
|
11066
|
-
headers: jsonContentHeaders$
|
|
11104
|
+
headers: jsonContentHeaders$f,
|
|
11067
11105
|
method: 'PATCH',
|
|
11068
11106
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
11069
11107
|
}, unmarshalUpdatePlacementGroupServersResponse);
|
|
@@ -11090,7 +11128,7 @@ let API$g = class API extends API$r {
|
|
|
11090
11128
|
*/
|
|
11091
11129
|
createIp = (request = {}) => this.client.fetch({
|
|
11092
11130
|
body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
|
|
11093
|
-
headers: jsonContentHeaders$
|
|
11131
|
+
headers: jsonContentHeaders$f,
|
|
11094
11132
|
method: 'POST',
|
|
11095
11133
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
11096
11134
|
}, unmarshalCreateIpResponse);
|
|
@@ -11115,7 +11153,7 @@ let API$g = class API extends API$r {
|
|
|
11115
11153
|
*/
|
|
11116
11154
|
updateIp = request => this.client.fetch({
|
|
11117
11155
|
body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
|
|
11118
|
-
headers: jsonContentHeaders$
|
|
11156
|
+
headers: jsonContentHeaders$f,
|
|
11119
11157
|
method: 'PATCH',
|
|
11120
11158
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
|
|
11121
11159
|
}, unmarshalUpdateIpResponse);
|
|
@@ -11151,7 +11189,7 @@ let API$g = class API extends API$r {
|
|
|
11151
11189
|
*/
|
|
11152
11190
|
createPrivateNIC = request => this.client.fetch({
|
|
11153
11191
|
body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
|
|
11154
|
-
headers: jsonContentHeaders$
|
|
11192
|
+
headers: jsonContentHeaders$f,
|
|
11155
11193
|
method: 'POST',
|
|
11156
11194
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
|
|
11157
11195
|
}, unmarshalCreatePrivateNICResponse);
|
|
@@ -11176,7 +11214,7 @@ let API$g = class API extends API$r {
|
|
|
11176
11214
|
*/
|
|
11177
11215
|
updatePrivateNIC = request => this.client.fetch({
|
|
11178
11216
|
body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
|
|
11179
|
-
headers: jsonContentHeaders$
|
|
11217
|
+
headers: jsonContentHeaders$f,
|
|
11180
11218
|
method: 'PATCH',
|
|
11181
11219
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
|
|
11182
11220
|
}, unmarshalPrivateNIC);
|
|
@@ -11229,6 +11267,9 @@ let API$g = class API extends API$r {
|
|
|
11229
11267
|
/** Lists transient statutes of the enum {@link ImageState}. */
|
|
11230
11268
|
const IMAGE_TRANSIENT_STATUSES$1 = ['creating'];
|
|
11231
11269
|
|
|
11270
|
+
/** Lists transient statutes of the enum {@link IpState}. */
|
|
11271
|
+
const IP_TRANSIENT_STATUSES = ['pending'];
|
|
11272
|
+
|
|
11232
11273
|
/** Lists transient statutes of the enum {@link PrivateNICState}. */
|
|
11233
11274
|
const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
|
|
11234
11275
|
|
|
@@ -11313,7 +11354,7 @@ const validateNotUndefined = obj => {
|
|
|
11313
11354
|
if (obj === undefined) throw new TypeError(`object was found undefined`);
|
|
11314
11355
|
return obj;
|
|
11315
11356
|
};
|
|
11316
|
-
class InstanceV1UtilsAPI extends API$
|
|
11357
|
+
class InstanceV1UtilsAPI extends API$h {
|
|
11317
11358
|
/**
|
|
11318
11359
|
* Waits for {@link Image} to be in a final state.
|
|
11319
11360
|
*
|
|
@@ -11670,10 +11711,11 @@ class InstanceV1UtilsAPI extends API$g {
|
|
|
11670
11711
|
});
|
|
11671
11712
|
}
|
|
11672
11713
|
|
|
11673
|
-
var index$
|
|
11714
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
11674
11715
|
__proto__: null,
|
|
11675
11716
|
API: InstanceV1UtilsAPI,
|
|
11676
11717
|
IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
|
|
11718
|
+
IP_TRANSIENT_STATUSES: IP_TRANSIENT_STATUSES,
|
|
11677
11719
|
PRIVATE_NIC_TRANSIENT_STATUSES: PRIVATE_NIC_TRANSIENT_STATUSES,
|
|
11678
11720
|
SECURITY_GROUP_TRANSIENT_STATUSES: SECURITY_GROUP_TRANSIENT_STATUSES,
|
|
11679
11721
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES,
|
|
@@ -11683,9 +11725,9 @@ var index$h = /*#__PURE__*/Object.freeze({
|
|
|
11683
11725
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
|
|
11684
11726
|
});
|
|
11685
11727
|
|
|
11686
|
-
var index$
|
|
11728
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
11687
11729
|
__proto__: null,
|
|
11688
|
-
v1: index$
|
|
11730
|
+
v1: index$i
|
|
11689
11731
|
});
|
|
11690
11732
|
|
|
11691
11733
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -12129,7 +12171,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
|
|
|
12129
12171
|
|
|
12130
12172
|
// This file was automatically generated. DO NOT EDIT.
|
|
12131
12173
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12132
|
-
const jsonContentHeaders$
|
|
12174
|
+
const jsonContentHeaders$e = {
|
|
12133
12175
|
'Content-Type': 'application/json; charset=utf-8'
|
|
12134
12176
|
};
|
|
12135
12177
|
|
|
@@ -12138,7 +12180,7 @@ const jsonContentHeaders$d = {
|
|
|
12138
12180
|
*
|
|
12139
12181
|
* This API allows you to manage IoT hubs and devices. IoT Hub API.
|
|
12140
12182
|
*/
|
|
12141
|
-
let API$
|
|
12183
|
+
let API$g = class API extends API$s {
|
|
12142
12184
|
/** Lists the available regions of the API. */
|
|
12143
12185
|
static LOCALITIES = ['fr-par'];
|
|
12144
12186
|
pageOfListHubs = (request = {}) => this.client.fetch({
|
|
@@ -12166,7 +12208,7 @@ let API$f = class API extends API$r {
|
|
|
12166
12208
|
*/
|
|
12167
12209
|
createHub = request => this.client.fetch({
|
|
12168
12210
|
body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
|
|
12169
|
-
headers: jsonContentHeaders$
|
|
12211
|
+
headers: jsonContentHeaders$e,
|
|
12170
12212
|
method: 'POST',
|
|
12171
12213
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
|
|
12172
12214
|
}, unmarshalHub);
|
|
@@ -12202,7 +12244,7 @@ let API$f = class API extends API$r {
|
|
|
12202
12244
|
*/
|
|
12203
12245
|
updateHub = request => this.client.fetch({
|
|
12204
12246
|
body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
|
|
12205
|
-
headers: jsonContentHeaders$
|
|
12247
|
+
headers: jsonContentHeaders$e,
|
|
12206
12248
|
method: 'PATCH',
|
|
12207
12249
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
|
|
12208
12250
|
}, unmarshalHub);
|
|
@@ -12215,7 +12257,7 @@ let API$f = class API extends API$r {
|
|
|
12215
12257
|
*/
|
|
12216
12258
|
enableHub = request => this.client.fetch({
|
|
12217
12259
|
body: '{}',
|
|
12218
|
-
headers: jsonContentHeaders$
|
|
12260
|
+
headers: jsonContentHeaders$e,
|
|
12219
12261
|
method: 'POST',
|
|
12220
12262
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
|
|
12221
12263
|
}, unmarshalHub);
|
|
@@ -12228,7 +12270,7 @@ let API$f = class API extends API$r {
|
|
|
12228
12270
|
*/
|
|
12229
12271
|
disableHub = request => this.client.fetch({
|
|
12230
12272
|
body: '{}',
|
|
12231
|
-
headers: jsonContentHeaders$
|
|
12273
|
+
headers: jsonContentHeaders$e,
|
|
12232
12274
|
method: 'POST',
|
|
12233
12275
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
|
|
12234
12276
|
}, unmarshalHub);
|
|
@@ -12268,7 +12310,7 @@ let API$f = class API extends API$r {
|
|
|
12268
12310
|
*/
|
|
12269
12311
|
setHubCA = request => this.client.fetch({
|
|
12270
12312
|
body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
|
|
12271
|
-
headers: jsonContentHeaders$
|
|
12313
|
+
headers: jsonContentHeaders$e,
|
|
12272
12314
|
method: 'POST',
|
|
12273
12315
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
|
|
12274
12316
|
}, unmarshalHub);
|
|
@@ -12308,7 +12350,7 @@ let API$f = class API extends API$r {
|
|
|
12308
12350
|
*/
|
|
12309
12351
|
createDevice = request => this.client.fetch({
|
|
12310
12352
|
body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
|
|
12311
|
-
headers: jsonContentHeaders$
|
|
12353
|
+
headers: jsonContentHeaders$e,
|
|
12312
12354
|
method: 'POST',
|
|
12313
12355
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
|
|
12314
12356
|
}, unmarshalCreateDeviceResponse);
|
|
@@ -12335,7 +12377,7 @@ let API$f = class API extends API$r {
|
|
|
12335
12377
|
*/
|
|
12336
12378
|
updateDevice = request => this.client.fetch({
|
|
12337
12379
|
body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
|
|
12338
|
-
headers: jsonContentHeaders$
|
|
12380
|
+
headers: jsonContentHeaders$e,
|
|
12339
12381
|
method: 'PATCH',
|
|
12340
12382
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
|
|
12341
12383
|
}, unmarshalDevice);
|
|
@@ -12348,7 +12390,7 @@ let API$f = class API extends API$r {
|
|
|
12348
12390
|
*/
|
|
12349
12391
|
enableDevice = request => this.client.fetch({
|
|
12350
12392
|
body: '{}',
|
|
12351
|
-
headers: jsonContentHeaders$
|
|
12393
|
+
headers: jsonContentHeaders$e,
|
|
12352
12394
|
method: 'POST',
|
|
12353
12395
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
|
|
12354
12396
|
}, unmarshalDevice);
|
|
@@ -12361,7 +12403,7 @@ let API$f = class API extends API$r {
|
|
|
12361
12403
|
*/
|
|
12362
12404
|
disableDevice = request => this.client.fetch({
|
|
12363
12405
|
body: '{}',
|
|
12364
|
-
headers: jsonContentHeaders$
|
|
12406
|
+
headers: jsonContentHeaders$e,
|
|
12365
12407
|
method: 'POST',
|
|
12366
12408
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
|
|
12367
12409
|
}, unmarshalDevice);
|
|
@@ -12375,7 +12417,7 @@ let API$f = class API extends API$r {
|
|
|
12375
12417
|
*/
|
|
12376
12418
|
renewDeviceCertificate = request => this.client.fetch({
|
|
12377
12419
|
body: '{}',
|
|
12378
|
-
headers: jsonContentHeaders$
|
|
12420
|
+
headers: jsonContentHeaders$e,
|
|
12379
12421
|
method: 'POST',
|
|
12380
12422
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
|
|
12381
12423
|
}, unmarshalRenewDeviceCertificateResponse);
|
|
@@ -12389,7 +12431,7 @@ let API$f = class API extends API$r {
|
|
|
12389
12431
|
*/
|
|
12390
12432
|
setDeviceCertificate = request => this.client.fetch({
|
|
12391
12433
|
body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
|
|
12392
|
-
headers: jsonContentHeaders$
|
|
12434
|
+
headers: jsonContentHeaders$e,
|
|
12393
12435
|
method: 'PUT',
|
|
12394
12436
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
|
|
12395
12437
|
}, unmarshalSetDeviceCertificateResponse);
|
|
@@ -12437,194 +12479,508 @@ let API$f = class API extends API$r {
|
|
|
12437
12479
|
urlParams: urlParams(['hub_id', request.hubId], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
12438
12480
|
}, unmarshalListRoutesResponse$1);
|
|
12439
12481
|
|
|
12440
|
-
/**
|
|
12441
|
-
* List routes. List all routes in the specified region. By default, returned
|
|
12442
|
-
* routes are ordered by creation date in ascending order, though this can be
|
|
12443
|
-
* modified via the `order_by` field.
|
|
12444
|
-
*
|
|
12445
|
-
* @param request - The request {@link ListRoutesRequest}
|
|
12446
|
-
* @returns A Promise of ListRoutesResponse
|
|
12447
|
-
*/
|
|
12448
|
-
listRoutes = (request = {}) => enrichForPagination('routes', this.pageOfListRoutes, request);
|
|
12482
|
+
/**
|
|
12483
|
+
* List routes. List all routes in the specified region. By default, returned
|
|
12484
|
+
* routes are ordered by creation date in ascending order, though this can be
|
|
12485
|
+
* modified via the `order_by` field.
|
|
12486
|
+
*
|
|
12487
|
+
* @param request - The request {@link ListRoutesRequest}
|
|
12488
|
+
* @returns A Promise of ListRoutesResponse
|
|
12489
|
+
*/
|
|
12490
|
+
listRoutes = (request = {}) => enrichForPagination('routes', this.pageOfListRoutes, request);
|
|
12491
|
+
|
|
12492
|
+
/**
|
|
12493
|
+
* Create a route. Multiple kinds of routes can be created, such as:
|
|
12494
|
+
*
|
|
12495
|
+
* - Database Route Create a route that will record subscribed MQTT messages
|
|
12496
|
+
* into your database. <b>You need to manage the database by yourself</b>.
|
|
12497
|
+
* - REST Route. Create a route that will call a REST API on received subscribed
|
|
12498
|
+
* MQTT messages.
|
|
12499
|
+
* - S3 Routes. Create a route that will put subscribed MQTT messages into an S3
|
|
12500
|
+
* bucket. You need to create the bucket yourself and grant write access.
|
|
12501
|
+
* Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket>
|
|
12502
|
+
* --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
|
|
12503
|
+
*
|
|
12504
|
+
* @param request - The request {@link CreateRouteRequest}
|
|
12505
|
+
* @returns A Promise of Route
|
|
12506
|
+
*/
|
|
12507
|
+
createRoute = request => this.client.fetch({
|
|
12508
|
+
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
12509
|
+
headers: jsonContentHeaders$e,
|
|
12510
|
+
method: 'POST',
|
|
12511
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
12512
|
+
}, unmarshalRoute$1);
|
|
12513
|
+
|
|
12514
|
+
/**
|
|
12515
|
+
* Update a route. Update the parameters of an existing route, specified by
|
|
12516
|
+
* its route ID.
|
|
12517
|
+
*
|
|
12518
|
+
* @param request - The request {@link UpdateRouteRequest}
|
|
12519
|
+
* @returns A Promise of Route
|
|
12520
|
+
*/
|
|
12521
|
+
updateRoute = request => this.client.fetch({
|
|
12522
|
+
body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
|
|
12523
|
+
headers: jsonContentHeaders$e,
|
|
12524
|
+
method: 'PATCH',
|
|
12525
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
12526
|
+
}, unmarshalRoute$1);
|
|
12527
|
+
|
|
12528
|
+
/**
|
|
12529
|
+
* Get a route. Get information for a particular route, specified by the route
|
|
12530
|
+
* ID. The response returns full details of the route, including its type, the
|
|
12531
|
+
* topic it subscribes to and its configuration.
|
|
12532
|
+
*
|
|
12533
|
+
* @param request - The request {@link GetRouteRequest}
|
|
12534
|
+
* @returns A Promise of Route
|
|
12535
|
+
*/
|
|
12536
|
+
getRoute = request => this.client.fetch({
|
|
12537
|
+
method: 'GET',
|
|
12538
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
12539
|
+
}, unmarshalRoute$1);
|
|
12540
|
+
|
|
12541
|
+
/**
|
|
12542
|
+
* Delete a route. Delete an existing route, specified by its route ID.
|
|
12543
|
+
* Deleting a route is permanent, and cannot be undone.
|
|
12544
|
+
*
|
|
12545
|
+
* @param request - The request {@link DeleteRouteRequest}
|
|
12546
|
+
*/
|
|
12547
|
+
deleteRoute = request => this.client.fetch({
|
|
12548
|
+
method: 'DELETE',
|
|
12549
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
12550
|
+
});
|
|
12551
|
+
pageOfListNetworks = (request = {}) => this.client.fetch({
|
|
12552
|
+
method: 'GET',
|
|
12553
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`,
|
|
12554
|
+
urlParams: urlParams(['hub_id', request.hubId], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['topic_prefix', request.topicPrefix])
|
|
12555
|
+
}, unmarshalListNetworksResponse);
|
|
12556
|
+
|
|
12557
|
+
/**
|
|
12558
|
+
* List the networks.
|
|
12559
|
+
*
|
|
12560
|
+
* @param request - The request {@link ListNetworksRequest}
|
|
12561
|
+
* @returns A Promise of ListNetworksResponse
|
|
12562
|
+
*/
|
|
12563
|
+
listNetworks = (request = {}) => enrichForPagination('networks', this.pageOfListNetworks, request);
|
|
12564
|
+
|
|
12565
|
+
/**
|
|
12566
|
+
* Create a new network. Create a new network for an existing hub. Beside the
|
|
12567
|
+
* default network, you can add networks for different data providers.
|
|
12568
|
+
* Possible network types are Sigfox and REST.
|
|
12569
|
+
*
|
|
12570
|
+
* @param request - The request {@link CreateNetworkRequest}
|
|
12571
|
+
* @returns A Promise of CreateNetworkResponse
|
|
12572
|
+
*/
|
|
12573
|
+
createNetwork = request => this.client.fetch({
|
|
12574
|
+
body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
|
|
12575
|
+
headers: jsonContentHeaders$e,
|
|
12576
|
+
method: 'POST',
|
|
12577
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
|
|
12578
|
+
}, unmarshalCreateNetworkResponse);
|
|
12579
|
+
|
|
12580
|
+
/**
|
|
12581
|
+
* Retrieve a specific network. Retrieve an existing network, specified by its
|
|
12582
|
+
* network ID. The response returns full details of the network, including its
|
|
12583
|
+
* type, the topic prefix and its endpoint.
|
|
12584
|
+
*
|
|
12585
|
+
* @param request - The request {@link GetNetworkRequest}
|
|
12586
|
+
* @returns A Promise of Network
|
|
12587
|
+
*/
|
|
12588
|
+
getNetwork = request => this.client.fetch({
|
|
12589
|
+
method: 'GET',
|
|
12590
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam('networkId', request.networkId)}`
|
|
12591
|
+
}, unmarshalNetwork);
|
|
12592
|
+
|
|
12593
|
+
/**
|
|
12594
|
+
* Delete a Network. Delete an existing network, specified by its network ID.
|
|
12595
|
+
* Deleting a network is permanent, and cannot be undone.
|
|
12596
|
+
*
|
|
12597
|
+
* @param request - The request {@link DeleteNetworkRequest}
|
|
12598
|
+
*/
|
|
12599
|
+
deleteNetwork = request => this.client.fetch({
|
|
12600
|
+
method: 'DELETE',
|
|
12601
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam('networkId', request.networkId)}`
|
|
12602
|
+
});
|
|
12603
|
+
|
|
12604
|
+
/**
|
|
12605
|
+
* BETA - Get a Cloud Twin Document.
|
|
12606
|
+
*
|
|
12607
|
+
* @param request - The request {@link GetTwinDocumentRequest}
|
|
12608
|
+
* @returns A Promise of TwinDocument
|
|
12609
|
+
*/
|
|
12610
|
+
getTwinDocument = request => this.client.fetch({
|
|
12611
|
+
method: 'GET',
|
|
12612
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
12613
|
+
}, unmarshalTwinDocument);
|
|
12614
|
+
|
|
12615
|
+
/**
|
|
12616
|
+
* BETA - Update a Cloud Twin Document.
|
|
12617
|
+
*
|
|
12618
|
+
* @param request - The request {@link PutTwinDocumentRequest}
|
|
12619
|
+
* @returns A Promise of TwinDocument
|
|
12620
|
+
*/
|
|
12621
|
+
putTwinDocument = request => this.client.fetch({
|
|
12622
|
+
body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
|
|
12623
|
+
headers: jsonContentHeaders$e,
|
|
12624
|
+
method: 'PUT',
|
|
12625
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
12626
|
+
}, unmarshalTwinDocument);
|
|
12627
|
+
|
|
12628
|
+
/**
|
|
12629
|
+
* BETA - Patch a Cloud Twin Document.
|
|
12630
|
+
*
|
|
12631
|
+
* @param request - The request {@link PatchTwinDocumentRequest}
|
|
12632
|
+
* @returns A Promise of TwinDocument
|
|
12633
|
+
*/
|
|
12634
|
+
patchTwinDocument = request => this.client.fetch({
|
|
12635
|
+
body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
|
|
12636
|
+
headers: jsonContentHeaders$e,
|
|
12637
|
+
method: 'PATCH',
|
|
12638
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
12639
|
+
}, unmarshalTwinDocument);
|
|
12640
|
+
|
|
12641
|
+
/**
|
|
12642
|
+
* BETA - Delete a Cloud Twin Document.
|
|
12643
|
+
*
|
|
12644
|
+
* @param request - The request {@link DeleteTwinDocumentRequest}
|
|
12645
|
+
*/
|
|
12646
|
+
deleteTwinDocument = request => this.client.fetch({
|
|
12647
|
+
method: 'DELETE',
|
|
12648
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
12649
|
+
});
|
|
12650
|
+
|
|
12651
|
+
/**
|
|
12652
|
+
* BETA - List the documents of a Cloud Twin.
|
|
12653
|
+
*
|
|
12654
|
+
* @param request - The request {@link ListTwinDocumentsRequest}
|
|
12655
|
+
* @returns A Promise of ListTwinDocumentsResponse
|
|
12656
|
+
*/
|
|
12657
|
+
listTwinDocuments = request => this.client.fetch({
|
|
12658
|
+
method: 'GET',
|
|
12659
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}`
|
|
12660
|
+
}, unmarshalListTwinDocumentsResponse);
|
|
12661
|
+
|
|
12662
|
+
/**
|
|
12663
|
+
* BETA - Delete all the documents of a Cloud Twin.
|
|
12664
|
+
*
|
|
12665
|
+
* @param request - The request {@link DeleteTwinDocumentsRequest}
|
|
12666
|
+
*/
|
|
12667
|
+
deleteTwinDocuments = request => this.client.fetch({
|
|
12668
|
+
method: 'DELETE',
|
|
12669
|
+
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}`
|
|
12670
|
+
});
|
|
12671
|
+
};
|
|
12672
|
+
|
|
12673
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
12674
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12675
|
+
|
|
12676
|
+
var index_gen$e = /*#__PURE__*/Object.freeze({
|
|
12677
|
+
__proto__: null,
|
|
12678
|
+
API: API$g,
|
|
12679
|
+
HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
|
|
12680
|
+
});
|
|
12681
|
+
|
|
12682
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
12683
|
+
__proto__: null,
|
|
12684
|
+
v1: index_gen$e
|
|
12685
|
+
});
|
|
12686
|
+
|
|
12687
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
12688
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12689
|
+
|
|
12690
|
+
/** Lists transient statutes of the enum {@link PinStatus}. */
|
|
12691
|
+
const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
|
|
12692
|
+
|
|
12693
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
12694
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12695
|
+
const unmarshalPinCIDMeta = data => {
|
|
12696
|
+
if (!isJSONObject(data)) {
|
|
12697
|
+
throw new TypeError(`Unmarshalling the type 'PinCIDMeta' failed as data isn't a dictionary.`);
|
|
12698
|
+
}
|
|
12699
|
+
return {
|
|
12700
|
+
id: data.id
|
|
12701
|
+
};
|
|
12702
|
+
};
|
|
12703
|
+
const unmarshalPinCID = data => {
|
|
12704
|
+
if (!isJSONObject(data)) {
|
|
12705
|
+
throw new TypeError(`Unmarshalling the type 'PinCID' failed as data isn't a dictionary.`);
|
|
12706
|
+
}
|
|
12707
|
+
return {
|
|
12708
|
+
cid: data.cid,
|
|
12709
|
+
meta: data.meta ? unmarshalPinCIDMeta(data.meta) : undefined,
|
|
12710
|
+
name: data.name,
|
|
12711
|
+
origins: data.origins
|
|
12712
|
+
};
|
|
12713
|
+
};
|
|
12714
|
+
const unmarshalPinInfo = data => {
|
|
12715
|
+
if (!isJSONObject(data)) {
|
|
12716
|
+
throw new TypeError(`Unmarshalling the type 'PinInfo' failed as data isn't a dictionary.`);
|
|
12717
|
+
}
|
|
12718
|
+
return {
|
|
12719
|
+
id: data.id,
|
|
12720
|
+
progress: data.progress,
|
|
12721
|
+
size: data.size,
|
|
12722
|
+
statusDetails: data.status_details,
|
|
12723
|
+
url: data.url
|
|
12724
|
+
};
|
|
12725
|
+
};
|
|
12726
|
+
const unmarshalPin = data => {
|
|
12727
|
+
if (!isJSONObject(data)) {
|
|
12728
|
+
throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
|
|
12729
|
+
}
|
|
12730
|
+
return {
|
|
12731
|
+
cid: data.cid ? unmarshalPinCID(data.cid) : undefined,
|
|
12732
|
+
createdAt: unmarshalDate(data.created_at),
|
|
12733
|
+
delegates: data.delegates,
|
|
12734
|
+
info: data.info ? unmarshalPinInfo(data.info) : undefined,
|
|
12735
|
+
pinId: data.pin_id,
|
|
12736
|
+
status: data.status
|
|
12737
|
+
};
|
|
12738
|
+
};
|
|
12739
|
+
const unmarshalVolume$1 = data => {
|
|
12740
|
+
if (!isJSONObject(data)) {
|
|
12741
|
+
throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
|
|
12742
|
+
}
|
|
12743
|
+
return {
|
|
12744
|
+
countPin: data.count_pin,
|
|
12745
|
+
createdAt: unmarshalDate(data.created_at),
|
|
12746
|
+
id: data.id,
|
|
12747
|
+
name: data.name,
|
|
12748
|
+
projectId: data.project_id,
|
|
12749
|
+
region: data.region,
|
|
12750
|
+
size: data.size,
|
|
12751
|
+
tags: data.tags,
|
|
12752
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
12753
|
+
};
|
|
12754
|
+
};
|
|
12755
|
+
const unmarshalListPinsResponse = data => {
|
|
12756
|
+
if (!isJSONObject(data)) {
|
|
12757
|
+
throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
|
|
12758
|
+
}
|
|
12759
|
+
return {
|
|
12760
|
+
pins: unmarshalArrayOfObject(data.pins, unmarshalPin),
|
|
12761
|
+
totalCount: data.total_count
|
|
12762
|
+
};
|
|
12763
|
+
};
|
|
12764
|
+
const unmarshalListVolumesResponse = data => {
|
|
12765
|
+
if (!isJSONObject(data)) {
|
|
12766
|
+
throw new TypeError(`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`);
|
|
12767
|
+
}
|
|
12768
|
+
return {
|
|
12769
|
+
totalCount: data.total_count,
|
|
12770
|
+
volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume$1)
|
|
12771
|
+
};
|
|
12772
|
+
};
|
|
12773
|
+
const unmarshalReplacePinResponse = data => {
|
|
12774
|
+
if (!isJSONObject(data)) {
|
|
12775
|
+
throw new TypeError(`Unmarshalling the type 'ReplacePinResponse' failed as data isn't a dictionary.`);
|
|
12776
|
+
}
|
|
12777
|
+
return {
|
|
12778
|
+
pin: data.pin ? unmarshalPin(data.pin) : undefined
|
|
12779
|
+
};
|
|
12780
|
+
};
|
|
12781
|
+
const marshalPinOptions = (request, defaults) => ({
|
|
12782
|
+
replication_count: request.replicationCount,
|
|
12783
|
+
required_zones: request.requiredZones
|
|
12784
|
+
});
|
|
12785
|
+
const marshalCreatePinByCIDRequest = (request, defaults) => ({
|
|
12786
|
+
cid: request.cid,
|
|
12787
|
+
name: request.name,
|
|
12788
|
+
origins: request.origins,
|
|
12789
|
+
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
12790
|
+
volume_id: request.volumeId
|
|
12791
|
+
});
|
|
12792
|
+
const marshalCreatePinByURLRequest = (request, defaults) => ({
|
|
12793
|
+
name: request.name,
|
|
12794
|
+
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
12795
|
+
url: request.url,
|
|
12796
|
+
volume_id: request.volumeId
|
|
12797
|
+
});
|
|
12798
|
+
const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
12799
|
+
name: request.name,
|
|
12800
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
12801
|
+
});
|
|
12802
|
+
const marshalReplacePinRequest = (request, defaults) => ({
|
|
12803
|
+
cid: request.cid,
|
|
12804
|
+
name: request.name,
|
|
12805
|
+
origins: request.origins,
|
|
12806
|
+
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
12807
|
+
volume_id: request.volumeId
|
|
12808
|
+
});
|
|
12809
|
+
const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
12810
|
+
name: request.name,
|
|
12811
|
+
tags: request.tags
|
|
12812
|
+
});
|
|
12813
|
+
|
|
12814
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
12815
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12816
|
+
const jsonContentHeaders$d = {
|
|
12817
|
+
'Content-Type': 'application/json; charset=utf-8'
|
|
12818
|
+
};
|
|
12449
12819
|
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
* into your database. <b>You need to manage the database by yourself</b>.
|
|
12455
|
-
* - REST Route. Create a route that will call a REST API on received subscribed
|
|
12456
|
-
* MQTT messages.
|
|
12457
|
-
* - S3 Routes. Create a route that will put subscribed MQTT messages into an S3
|
|
12458
|
-
* bucket. You need to create the bucket yourself and grant write access.
|
|
12459
|
-
* Granting can be done with s3cmd (`s3cmd setacl s3://<my-bucket>
|
|
12460
|
-
* --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
|
|
12461
|
-
*
|
|
12462
|
-
* @param request - The request {@link CreateRouteRequest}
|
|
12463
|
-
* @returns A Promise of Route
|
|
12464
|
-
*/
|
|
12465
|
-
createRoute = request => this.client.fetch({
|
|
12466
|
-
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
12467
|
-
headers: jsonContentHeaders$d,
|
|
12468
|
-
method: 'POST',
|
|
12469
|
-
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
12470
|
-
}, unmarshalRoute$1);
|
|
12820
|
+
/** IPFS Pinning service API. */
|
|
12821
|
+
let API$f = class API extends API$s {
|
|
12822
|
+
/** Lists the available regions of the API. */
|
|
12823
|
+
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
12471
12824
|
|
|
12472
12825
|
/**
|
|
12473
|
-
*
|
|
12474
|
-
*
|
|
12826
|
+
* Create a new volume. Create a new volume from a Project ID. Volume is
|
|
12827
|
+
* identified by an ID and used to host pin references. Volume is personal (at
|
|
12828
|
+
* least to your organization) even if IPFS blocks and CID are available to
|
|
12829
|
+
* anyone. Should be the first command you made because every pin must be
|
|
12830
|
+
* attached to a volume.
|
|
12475
12831
|
*
|
|
12476
|
-
* @param request - The request {@link
|
|
12477
|
-
* @returns A Promise of
|
|
12832
|
+
* @param request - The request {@link CreateVolumeRequest}
|
|
12833
|
+
* @returns A Promise of Volume
|
|
12478
12834
|
*/
|
|
12479
|
-
|
|
12480
|
-
body: JSON.stringify(
|
|
12835
|
+
createVolume = request => this.client.fetch({
|
|
12836
|
+
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
12481
12837
|
headers: jsonContentHeaders$d,
|
|
12482
|
-
method: '
|
|
12483
|
-
path: `/
|
|
12484
|
-
},
|
|
12838
|
+
method: 'POST',
|
|
12839
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`
|
|
12840
|
+
}, unmarshalVolume$1);
|
|
12485
12841
|
|
|
12486
12842
|
/**
|
|
12487
|
-
* Get a
|
|
12488
|
-
*
|
|
12489
|
-
* topic it subscribes to and its configuration.
|
|
12843
|
+
* Get information about a volume. Retrieve information about a specific
|
|
12844
|
+
* volume.
|
|
12490
12845
|
*
|
|
12491
|
-
* @param request - The request {@link
|
|
12492
|
-
* @returns A Promise of
|
|
12846
|
+
* @param request - The request {@link GetVolumeRequest}
|
|
12847
|
+
* @returns A Promise of Volume
|
|
12493
12848
|
*/
|
|
12494
|
-
|
|
12849
|
+
getVolume = request => this.client.fetch({
|
|
12495
12850
|
method: 'GET',
|
|
12496
|
-
path: `/
|
|
12497
|
-
},
|
|
12498
|
-
|
|
12499
|
-
/**
|
|
12500
|
-
* Delete a route. Delete an existing route, specified by its route ID.
|
|
12501
|
-
* Deleting a route is permanent, and cannot be undone.
|
|
12502
|
-
*
|
|
12503
|
-
* @param request - The request {@link DeleteRouteRequest}
|
|
12504
|
-
*/
|
|
12505
|
-
deleteRoute = request => this.client.fetch({
|
|
12506
|
-
method: 'DELETE',
|
|
12507
|
-
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
12508
|
-
});
|
|
12509
|
-
pageOfListNetworks = (request = {}) => this.client.fetch({
|
|
12851
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
12852
|
+
}, unmarshalVolume$1);
|
|
12853
|
+
pageOfListVolumes = (request = {}) => this.client.fetch({
|
|
12510
12854
|
method: 'GET',
|
|
12511
|
-
path: `/
|
|
12512
|
-
urlParams: urlParams(['
|
|
12513
|
-
},
|
|
12855
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`,
|
|
12856
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
12857
|
+
}, unmarshalListVolumesResponse);
|
|
12514
12858
|
|
|
12515
12859
|
/**
|
|
12516
|
-
* List
|
|
12860
|
+
* List all volumes by a Project ID. Retrieve information about all volumes
|
|
12861
|
+
* from a Project ID.
|
|
12517
12862
|
*
|
|
12518
|
-
* @param request - The request {@link
|
|
12519
|
-
* @returns A Promise of
|
|
12863
|
+
* @param request - The request {@link ListVolumesRequest}
|
|
12864
|
+
* @returns A Promise of ListVolumesResponse
|
|
12520
12865
|
*/
|
|
12521
|
-
|
|
12866
|
+
listVolumes = (request = {}) => enrichForPagination('volumes', this.pageOfListVolumes, request);
|
|
12522
12867
|
|
|
12523
12868
|
/**
|
|
12524
|
-
*
|
|
12525
|
-
* default network, you can add networks for different data providers.
|
|
12526
|
-
* Possible network types are Sigfox and REST.
|
|
12869
|
+
* Update volume information. Update volume information (tag, name...).
|
|
12527
12870
|
*
|
|
12528
|
-
* @param request - The request {@link
|
|
12529
|
-
* @returns A Promise of
|
|
12871
|
+
* @param request - The request {@link UpdateVolumeRequest}
|
|
12872
|
+
* @returns A Promise of Volume
|
|
12530
12873
|
*/
|
|
12531
|
-
|
|
12532
|
-
body: JSON.stringify(
|
|
12874
|
+
updateVolume = request => this.client.fetch({
|
|
12875
|
+
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
12533
12876
|
headers: jsonContentHeaders$d,
|
|
12534
|
-
method: '
|
|
12535
|
-
path: `/
|
|
12536
|
-
},
|
|
12537
|
-
|
|
12538
|
-
/**
|
|
12539
|
-
* Retrieve a specific network. Retrieve an existing network, specified by its
|
|
12540
|
-
* network ID. The response returns full details of the network, including its
|
|
12541
|
-
* type, the topic prefix and its endpoint.
|
|
12542
|
-
*
|
|
12543
|
-
* @param request - The request {@link GetNetworkRequest}
|
|
12544
|
-
* @returns A Promise of Network
|
|
12545
|
-
*/
|
|
12546
|
-
getNetwork = request => this.client.fetch({
|
|
12547
|
-
method: 'GET',
|
|
12548
|
-
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam('networkId', request.networkId)}`
|
|
12549
|
-
}, unmarshalNetwork);
|
|
12877
|
+
method: 'PATCH',
|
|
12878
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
12879
|
+
}, unmarshalVolume$1);
|
|
12550
12880
|
|
|
12551
12881
|
/**
|
|
12552
|
-
* Delete
|
|
12553
|
-
*
|
|
12882
|
+
* Delete an existing volume. Delete a volume by its ID and every pin attached
|
|
12883
|
+
* to this volume. This process can take a while to conclude, depending on the
|
|
12884
|
+
* size of your pinned content.
|
|
12554
12885
|
*
|
|
12555
|
-
* @param request - The request {@link
|
|
12886
|
+
* @param request - The request {@link DeleteVolumeRequest}
|
|
12556
12887
|
*/
|
|
12557
|
-
|
|
12888
|
+
deleteVolume = request => this.client.fetch({
|
|
12558
12889
|
method: 'DELETE',
|
|
12559
|
-
path: `/
|
|
12890
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
12560
12891
|
});
|
|
12561
12892
|
|
|
12562
12893
|
/**
|
|
12563
|
-
*
|
|
12894
|
+
* Create a pin by URL. Will fetch and store the content pointed by the
|
|
12895
|
+
* provided URL. The content must be available on the public IPFS network. The
|
|
12896
|
+
* content (IPFS blocks) will be host by the pinning service until pin
|
|
12897
|
+
* deletion. From that point, any other IPFS peer can fetch and host your
|
|
12898
|
+
* content: Make sure to pin public or encrypted content. Many pin requests
|
|
12899
|
+
* (from different users) can target the same CID. A pin is defined by its ID
|
|
12900
|
+
* (UUID), its status (queued, pinning, pinned or failed) and target CID.
|
|
12564
12901
|
*
|
|
12565
|
-
* @param request - The request {@link
|
|
12566
|
-
* @returns A Promise of
|
|
12902
|
+
* @param request - The request {@link CreatePinByURLRequest}
|
|
12903
|
+
* @returns A Promise of Pin
|
|
12567
12904
|
*/
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12905
|
+
createPinByURL = request => this.client.fetch({
|
|
12906
|
+
body: JSON.stringify(marshalCreatePinByURLRequest(request, this.client.settings)),
|
|
12907
|
+
headers: jsonContentHeaders$d,
|
|
12908
|
+
method: 'POST',
|
|
12909
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-url`
|
|
12910
|
+
}, unmarshalPin);
|
|
12572
12911
|
|
|
12573
12912
|
/**
|
|
12574
|
-
*
|
|
12913
|
+
* Create a pin by CID. Will fetch and store the content pointed by the
|
|
12914
|
+
* provided CID. The content must be available on the public IPFS network. The
|
|
12915
|
+
* content (IPFS blocks) will be host by the pinning service until pin
|
|
12916
|
+
* deletion. From that point, any other IPFS peer can fetch and host your
|
|
12917
|
+
* content: Make sure to pin public or encrypted content. Many pin requests
|
|
12918
|
+
* (from different users) can target the same CID. A pin is defined by its ID
|
|
12919
|
+
* (UUID), its status (queued, pinning, pinned or failed) and target CID.
|
|
12575
12920
|
*
|
|
12576
|
-
* @param request - The request {@link
|
|
12577
|
-
* @returns A Promise of
|
|
12921
|
+
* @param request - The request {@link CreatePinByCIDRequest}
|
|
12922
|
+
* @returns A Promise of Pin
|
|
12578
12923
|
*/
|
|
12579
|
-
|
|
12580
|
-
body: JSON.stringify(
|
|
12924
|
+
createPinByCID = request => this.client.fetch({
|
|
12925
|
+
body: JSON.stringify(marshalCreatePinByCIDRequest(request, this.client.settings)),
|
|
12581
12926
|
headers: jsonContentHeaders$d,
|
|
12582
|
-
method: '
|
|
12583
|
-
path: `/
|
|
12584
|
-
},
|
|
12927
|
+
method: 'POST',
|
|
12928
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-cid`
|
|
12929
|
+
}, unmarshalPin);
|
|
12930
|
+
replacePin = request => this.client.fetch({
|
|
12931
|
+
body: JSON.stringify(marshalReplacePinRequest(request, this.client.settings)),
|
|
12932
|
+
headers: jsonContentHeaders$d,
|
|
12933
|
+
method: 'POST',
|
|
12934
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}/replace`
|
|
12935
|
+
}, unmarshalReplacePinResponse);
|
|
12585
12936
|
|
|
12586
12937
|
/**
|
|
12587
|
-
*
|
|
12938
|
+
* Get pin information. Retrieve information about the provided **pin ID**,
|
|
12939
|
+
* such as status, last modification, and CID.
|
|
12588
12940
|
*
|
|
12589
|
-
* @param request - The request {@link
|
|
12590
|
-
* @returns A Promise of
|
|
12941
|
+
* @param request - The request {@link GetPinRequest}
|
|
12942
|
+
* @returns A Promise of Pin
|
|
12591
12943
|
*/
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
}, unmarshalTwinDocument);
|
|
12944
|
+
getPin = request => this.client.fetch({
|
|
12945
|
+
method: 'GET',
|
|
12946
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
|
|
12947
|
+
urlParams: urlParams(['volume_id', request.volumeId])
|
|
12948
|
+
}, unmarshalPin);
|
|
12598
12949
|
|
|
12599
12950
|
/**
|
|
12600
|
-
*
|
|
12951
|
+
* Waits for {@link Pin} to be in a final state.
|
|
12601
12952
|
*
|
|
12602
|
-
* @param request - The request {@link
|
|
12953
|
+
* @param request - The request {@link GetPinRequest}
|
|
12954
|
+
* @param options - The waiting options
|
|
12955
|
+
* @returns A Promise of Pin
|
|
12603
12956
|
*/
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12957
|
+
waitForPin = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!PIN_TRANSIENT_STATUSES.includes(res.status))), this.getPin, request, options);
|
|
12958
|
+
pageOfListPins = request => this.client.fetch({
|
|
12959
|
+
method: 'GET',
|
|
12960
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins`,
|
|
12961
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['status', request.status ?? 'unknown_status'], ['volume_id', request.volumeId])
|
|
12962
|
+
}, unmarshalListPinsResponse);
|
|
12608
12963
|
|
|
12609
12964
|
/**
|
|
12610
|
-
*
|
|
12965
|
+
* List all pins within a volume. Retrieve information about all pins into a
|
|
12966
|
+
* volume.
|
|
12611
12967
|
*
|
|
12612
|
-
* @param request - The request {@link
|
|
12613
|
-
* @returns A Promise of
|
|
12968
|
+
* @param request - The request {@link ListPinsRequest}
|
|
12969
|
+
* @returns A Promise of ListPinsResponse
|
|
12614
12970
|
*/
|
|
12615
|
-
|
|
12616
|
-
method: 'GET',
|
|
12617
|
-
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}`
|
|
12618
|
-
}, unmarshalListTwinDocumentsResponse);
|
|
12971
|
+
listPins = request => enrichForPagination('pins', this.pageOfListPins, request);
|
|
12619
12972
|
|
|
12620
12973
|
/**
|
|
12621
|
-
*
|
|
12974
|
+
* Create an unpin request. An unpin request means that you no longer own the
|
|
12975
|
+
* content. This content can therefore be removed and no longer provided on
|
|
12976
|
+
* the IPFS network.
|
|
12622
12977
|
*
|
|
12623
|
-
* @param request - The request {@link
|
|
12978
|
+
* @param request - The request {@link DeletePinRequest}
|
|
12624
12979
|
*/
|
|
12625
|
-
|
|
12980
|
+
deletePin = request => this.client.fetch({
|
|
12626
12981
|
method: 'DELETE',
|
|
12627
|
-
path: `/
|
|
12982
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
|
|
12983
|
+
urlParams: urlParams(['volume_id', request.volumeId])
|
|
12628
12984
|
});
|
|
12629
12985
|
};
|
|
12630
12986
|
|
|
@@ -12634,12 +12990,12 @@ let API$f = class API extends API$r {
|
|
|
12634
12990
|
var index_gen$d = /*#__PURE__*/Object.freeze({
|
|
12635
12991
|
__proto__: null,
|
|
12636
12992
|
API: API$f,
|
|
12637
|
-
|
|
12993
|
+
PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
|
|
12638
12994
|
});
|
|
12639
12995
|
|
|
12640
12996
|
var index$f = /*#__PURE__*/Object.freeze({
|
|
12641
12997
|
__proto__: null,
|
|
12642
|
-
|
|
12998
|
+
v1alpha1: index_gen$d
|
|
12643
12999
|
});
|
|
12644
13000
|
|
|
12645
13001
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -12746,6 +13102,15 @@ const unmarshalCluster$1 = data => {
|
|
|
12746
13102
|
version: data.version
|
|
12747
13103
|
};
|
|
12748
13104
|
};
|
|
13105
|
+
const unmarshalClusterType = data => {
|
|
13106
|
+
if (!isJSONObject(data)) {
|
|
13107
|
+
throw new TypeError(`Unmarshalling the type 'ClusterType' failed as data isn't a dictionary.`);
|
|
13108
|
+
}
|
|
13109
|
+
return {
|
|
13110
|
+
availability: data.availability,
|
|
13111
|
+
name: data.name
|
|
13112
|
+
};
|
|
13113
|
+
};
|
|
12749
13114
|
const unmarshalNode = data => {
|
|
12750
13115
|
if (!isJSONObject(data)) {
|
|
12751
13116
|
throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
|
|
@@ -12834,6 +13199,15 @@ const unmarshalListClusterAvailableVersionsResponse = data => {
|
|
|
12834
13199
|
versions: unmarshalArrayOfObject(data.versions, unmarshalVersion$2)
|
|
12835
13200
|
};
|
|
12836
13201
|
};
|
|
13202
|
+
const unmarshalListClusterTypesResponse = data => {
|
|
13203
|
+
if (!isJSONObject(data)) {
|
|
13204
|
+
throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
|
|
13205
|
+
}
|
|
13206
|
+
return {
|
|
13207
|
+
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
13208
|
+
totalCount: data.total_count
|
|
13209
|
+
};
|
|
13210
|
+
};
|
|
12837
13211
|
const unmarshalListClustersResponse$1 = data => {
|
|
12838
13212
|
if (!isJSONObject(data)) {
|
|
12839
13213
|
throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
|
|
@@ -13040,7 +13414,7 @@ const jsonContentHeaders$c = {
|
|
|
13040
13414
|
};
|
|
13041
13415
|
|
|
13042
13416
|
/** Kubernetes API. */
|
|
13043
|
-
let API$e = class API extends API$
|
|
13417
|
+
let API$e = class API extends API$s {
|
|
13044
13418
|
/** Lists the available regions of the API. */
|
|
13045
13419
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
13046
13420
|
pageOfListClusters = (request = {}) => this.client.fetch({
|
|
@@ -13408,6 +13782,20 @@ let API$e = class API extends API$r {
|
|
|
13408
13782
|
method: 'GET',
|
|
13409
13783
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/versions/${validatePathParam('versionName', request.versionName)}`
|
|
13410
13784
|
}, unmarshalVersion$2);
|
|
13785
|
+
pageOfListClusterTypes = (request = {}) => this.client.fetch({
|
|
13786
|
+
method: 'GET',
|
|
13787
|
+
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/cluster-types`,
|
|
13788
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
13789
|
+
}, unmarshalListClusterTypesResponse);
|
|
13790
|
+
|
|
13791
|
+
/**
|
|
13792
|
+
* List cluster types. List available cluster types and their technical
|
|
13793
|
+
* details.
|
|
13794
|
+
*
|
|
13795
|
+
* @param request - The request {@link ListClusterTypesRequest}
|
|
13796
|
+
* @returns A Promise of ListClusterTypesResponse
|
|
13797
|
+
*/
|
|
13798
|
+
listClusterTypes = (request = {}) => enrichForPagination('clusterTypes', this.pageOfListClusterTypes, request);
|
|
13411
13799
|
};
|
|
13412
13800
|
|
|
13413
13801
|
class K8SUtilsAPI extends API$e {
|
|
@@ -13458,6 +13846,15 @@ const CreatePoolRequest = {
|
|
|
13458
13846
|
minLength: 1
|
|
13459
13847
|
}
|
|
13460
13848
|
};
|
|
13849
|
+
const ListClusterTypesRequest = {
|
|
13850
|
+
page: {
|
|
13851
|
+
greaterThan: 0
|
|
13852
|
+
},
|
|
13853
|
+
pageSize: {
|
|
13854
|
+
greaterThan: 0,
|
|
13855
|
+
lessThanOrEqual: 100
|
|
13856
|
+
}
|
|
13857
|
+
};
|
|
13461
13858
|
const ListClustersRequest = {
|
|
13462
13859
|
name: {
|
|
13463
13860
|
minLength: 1
|
|
@@ -13518,6 +13915,7 @@ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
|
|
|
13518
13915
|
CreateClusterRequestOpenIDConnectConfig: CreateClusterRequestOpenIDConnectConfig,
|
|
13519
13916
|
CreateClusterRequestPoolConfig: CreateClusterRequestPoolConfig,
|
|
13520
13917
|
CreatePoolRequest: CreatePoolRequest,
|
|
13918
|
+
ListClusterTypesRequest: ListClusterTypesRequest,
|
|
13521
13919
|
ListClustersRequest: ListClustersRequest,
|
|
13522
13920
|
ListNodesRequest: ListNodesRequest,
|
|
13523
13921
|
ListPoolsRequest: ListPoolsRequest,
|
|
@@ -14199,6 +14597,7 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
14199
14597
|
timeout_client: request.timeoutClient
|
|
14200
14598
|
});
|
|
14201
14599
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
14600
|
+
is_ipv6: request.isIpv6,
|
|
14202
14601
|
reverse: request.reverse,
|
|
14203
14602
|
...resolveOneOf([{
|
|
14204
14603
|
default: defaults.defaultProjectId,
|
|
@@ -14211,8 +14610,10 @@ const marshalCreateIpRequest = (request, defaults) => ({
|
|
|
14211
14610
|
}])
|
|
14212
14611
|
});
|
|
14213
14612
|
const marshalCreateLbRequest = (request, defaults) => ({
|
|
14613
|
+
assign_flexible_ip: request.assignFlexibleIp,
|
|
14214
14614
|
description: request.description,
|
|
14215
14615
|
ip_id: request.ipId,
|
|
14616
|
+
ip_ids: request.ipIds,
|
|
14216
14617
|
name: request.name || randomName('lb'),
|
|
14217
14618
|
ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
|
|
14218
14619
|
tags: request.tags,
|
|
@@ -14421,6 +14822,7 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
14421
14822
|
timeout_client: request.timeoutClient
|
|
14422
14823
|
});
|
|
14423
14824
|
const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
14825
|
+
is_ipv6: request.isIpv6,
|
|
14424
14826
|
reverse: request.reverse,
|
|
14425
14827
|
...resolveOneOf([{
|
|
14426
14828
|
default: defaults.defaultProjectId,
|
|
@@ -14433,8 +14835,10 @@ const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
|
14433
14835
|
}])
|
|
14434
14836
|
});
|
|
14435
14837
|
const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
14838
|
+
assign_flexible_ip: request.assignFlexibleIp,
|
|
14436
14839
|
description: request.description,
|
|
14437
14840
|
ip_id: request.ipId,
|
|
14841
|
+
ip_ids: request.ipIds,
|
|
14438
14842
|
name: request.name || randomName('lb'),
|
|
14439
14843
|
ssl_compatibility_level: request.sslCompatibilityLevel ?? 'ssl_compatibility_level_unknown',
|
|
14440
14844
|
tags: request.tags,
|
|
@@ -14593,7 +14997,7 @@ const jsonContentHeaders$b = {
|
|
|
14593
14997
|
*
|
|
14594
14998
|
* This API allows you to manage your load balancer service. Load balancer API.
|
|
14595
14999
|
*/
|
|
14596
|
-
let API$d = class API extends API$
|
|
15000
|
+
let API$d = class API extends API$s {
|
|
14597
15001
|
/** Lists the available regions of the API. */
|
|
14598
15002
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
14599
15003
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -14699,7 +15103,7 @@ let API$d = class API extends API$r {
|
|
|
14699
15103
|
* @param request - The request {@link CreateIpRequest}
|
|
14700
15104
|
* @returns A Promise of Ip
|
|
14701
15105
|
*/
|
|
14702
|
-
createIp =
|
|
15106
|
+
createIp = request => this.client.fetch({
|
|
14703
15107
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
14704
15108
|
headers: jsonContentHeaders$b,
|
|
14705
15109
|
method: 'POST',
|
|
@@ -14987,7 +15391,7 @@ let API$d = class API extends API$r {
|
|
|
14987
15391
|
pageOfListBackendStats = request => this.client.fetch({
|
|
14988
15392
|
method: 'GET',
|
|
14989
15393
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
|
|
14990
|
-
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
15394
|
+
urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
14991
15395
|
}, unmarshalListBackendStatsResponse);
|
|
14992
15396
|
listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
|
|
14993
15397
|
pageOfListAcls = request => this.client.fetch({
|
|
@@ -15263,7 +15667,7 @@ let API$d = class API extends API$r {
|
|
|
15263
15667
|
* This API allows you to manage your Scaleway Load Balancer services. Load
|
|
15264
15668
|
* Balancer API.
|
|
15265
15669
|
*/
|
|
15266
|
-
class ZonedAPI extends API$
|
|
15670
|
+
class ZonedAPI extends API$s {
|
|
15267
15671
|
/** Lists the available zones of the API. */
|
|
15268
15672
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
15269
15673
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -15387,7 +15791,7 @@ class ZonedAPI extends API$r {
|
|
|
15387
15791
|
* @param request - The request {@link ZonedApiCreateIpRequest}
|
|
15388
15792
|
* @returns A Promise of Ip
|
|
15389
15793
|
*/
|
|
15390
|
-
createIp =
|
|
15794
|
+
createIp = request => this.client.fetch({
|
|
15391
15795
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
15392
15796
|
headers: jsonContentHeaders$b,
|
|
15393
15797
|
method: 'POST',
|
|
@@ -15726,7 +16130,7 @@ class ZonedAPI extends API$r {
|
|
|
15726
16130
|
pageOfListBackendStats = request => this.client.fetch({
|
|
15727
16131
|
method: 'GET',
|
|
15728
16132
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
|
|
15729
|
-
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
16133
|
+
urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
15730
16134
|
}, unmarshalListBackendStatsResponse);
|
|
15731
16135
|
|
|
15732
16136
|
/**
|
|
@@ -16243,7 +16647,7 @@ const unmarshalListVersionsResponse$1 = data => {
|
|
|
16243
16647
|
// This file was automatically generated. DO NOT EDIT.
|
|
16244
16648
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16245
16649
|
/** Marketplace API. */
|
|
16246
|
-
let API$c = class API extends API$
|
|
16650
|
+
let API$c = class API extends API$s {
|
|
16247
16651
|
pageOfListImages = (request = {}) => this.client.fetch({
|
|
16248
16652
|
method: 'GET',
|
|
16249
16653
|
path: `/marketplace/v1/images`,
|
|
@@ -16378,7 +16782,7 @@ const unmarshalListVersionsResponse = data => {
|
|
|
16378
16782
|
// This file was automatically generated. DO NOT EDIT.
|
|
16379
16783
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16380
16784
|
/** Marketplace API. */
|
|
16381
|
-
let API$b = class API extends API$
|
|
16785
|
+
let API$b = class API extends API$s {
|
|
16382
16786
|
pageOfListImages = request => this.client.fetch({
|
|
16383
16787
|
method: 'GET',
|
|
16384
16788
|
path: `/marketplace/v2/images`,
|
|
@@ -16646,7 +17050,7 @@ const jsonContentHeaders$a = {
|
|
|
16646
17050
|
* This API allows you to manage Scaleway Messaging and Queueing brokers.
|
|
16647
17051
|
* Messaging and Queuing API.
|
|
16648
17052
|
*/
|
|
16649
|
-
let API$a = class API extends API$
|
|
17053
|
+
let API$a = class API extends API$s {
|
|
16650
17054
|
/** Lists the available regions of the API. */
|
|
16651
17055
|
static LOCALITIES = ['fr-par'];
|
|
16652
17056
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -17518,7 +17922,7 @@ const jsonContentHeaders$9 = {
|
|
|
17518
17922
|
};
|
|
17519
17923
|
|
|
17520
17924
|
/** Managed Database for PostgreSQL and MySQL API. */
|
|
17521
|
-
let API$9 = class API extends API$
|
|
17925
|
+
let API$9 = class API extends API$s {
|
|
17522
17926
|
/** Lists the available regions of the API. */
|
|
17523
17927
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
17524
17928
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -18344,9 +18748,7 @@ let API$9 = class API extends API$r {
|
|
|
18344
18748
|
/**
|
|
18345
18749
|
* Create a new Database Instance endpoint. Create a new endpoint for a
|
|
18346
18750
|
* Database Instance. You can add `load_balancer` and `private_network`
|
|
18347
|
-
* specifications to the body of the request.
|
|
18348
|
-
* your current endpoint, which means you might need to update any environment
|
|
18349
|
-
* configurations that point to the old endpoint.
|
|
18751
|
+
* specifications to the body of the request.
|
|
18350
18752
|
*
|
|
18351
18753
|
* @param request - The request {@link CreateEndpointRequest}
|
|
18352
18754
|
* @returns A Promise of Endpoint
|
|
@@ -18432,6 +18834,7 @@ const unmarshalPrivateNetwork$2 = data => {
|
|
|
18432
18834
|
}
|
|
18433
18835
|
return {
|
|
18434
18836
|
id: data.id,
|
|
18837
|
+
provisioningMode: data.provisioning_mode,
|
|
18435
18838
|
serviceIps: data.service_ips,
|
|
18436
18839
|
zone: data.zone
|
|
18437
18840
|
};
|
|
@@ -18707,7 +19110,7 @@ const jsonContentHeaders$8 = {
|
|
|
18707
19110
|
};
|
|
18708
19111
|
|
|
18709
19112
|
/** Managed Database for Redis™ API. */
|
|
18710
|
-
let API$8 = class API extends API$
|
|
19113
|
+
let API$8 = class API extends API$s {
|
|
18711
19114
|
/** Lists the available zones of the API. */
|
|
18712
19115
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
18713
19116
|
|
|
@@ -19163,7 +19566,7 @@ const unmarshalListNamespacesResponse = data => {
|
|
|
19163
19566
|
totalCount: data.total_count
|
|
19164
19567
|
};
|
|
19165
19568
|
};
|
|
19166
|
-
const unmarshalListTagsResponse = data => {
|
|
19569
|
+
const unmarshalListTagsResponse$1 = data => {
|
|
19167
19570
|
if (!isJSONObject(data)) {
|
|
19168
19571
|
throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
19169
19572
|
}
|
|
@@ -19201,7 +19604,7 @@ const jsonContentHeaders$7 = {
|
|
|
19201
19604
|
};
|
|
19202
19605
|
|
|
19203
19606
|
/** Container Registry API. */
|
|
19204
|
-
let API$7 = class API extends API$
|
|
19607
|
+
let API$7 = class API extends API$s {
|
|
19205
19608
|
/** Lists the available regions of the API. */
|
|
19206
19609
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
19207
19610
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -19357,7 +19760,7 @@ let API$7 = class API extends API$r {
|
|
|
19357
19760
|
method: 'GET',
|
|
19358
19761
|
path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}/tags`,
|
|
19359
19762
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
19360
|
-
}, unmarshalListTagsResponse);
|
|
19763
|
+
}, unmarshalListTagsResponse$1);
|
|
19361
19764
|
|
|
19362
19765
|
/**
|
|
19363
19766
|
* List tags. List all tags for a given image, specified by region. By
|
|
@@ -19485,6 +19888,15 @@ const unmarshalListSecretsResponse = data => {
|
|
|
19485
19888
|
totalCount: data.total_count
|
|
19486
19889
|
};
|
|
19487
19890
|
};
|
|
19891
|
+
const unmarshalListTagsResponse = data => {
|
|
19892
|
+
if (!isJSONObject(data)) {
|
|
19893
|
+
throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
19894
|
+
}
|
|
19895
|
+
return {
|
|
19896
|
+
tags: data.tags,
|
|
19897
|
+
totalCount: data.total_count
|
|
19898
|
+
};
|
|
19899
|
+
};
|
|
19488
19900
|
const marshalPasswordGenerationParams = (request, defaults) => ({
|
|
19489
19901
|
additional_chars: request.additionalChars,
|
|
19490
19902
|
length: request.length,
|
|
@@ -19542,7 +19954,7 @@ const jsonContentHeaders$6 = {
|
|
|
19542
19954
|
* Secret Manager API. This API allows you to conveniently store, access and
|
|
19543
19955
|
* share sensitive data.
|
|
19544
19956
|
*/
|
|
19545
|
-
let API$6 = class API extends API$
|
|
19957
|
+
let API$6 = class API extends API$s {
|
|
19546
19958
|
/** Lists the available regions of the API. */
|
|
19547
19959
|
static LOCALITIES = ['fr-par'];
|
|
19548
19960
|
|
|
@@ -19560,8 +19972,8 @@ let API$6 = class API extends API$r {
|
|
|
19560
19972
|
}, unmarshalSecret);
|
|
19561
19973
|
|
|
19562
19974
|
/**
|
|
19563
|
-
* Get metadata using the secret's
|
|
19564
|
-
* specified by the `region` and
|
|
19975
|
+
* Get metadata using the secret's ID. Retrieve the metadata of a secret
|
|
19976
|
+
* specified by the `region` and `secret_id` parameters.
|
|
19565
19977
|
*
|
|
19566
19978
|
* @param request - The request {@link GetSecretRequest}
|
|
19567
19979
|
* @returns A Promise of Secret
|
|
@@ -19572,8 +19984,8 @@ let API$6 = class API extends API$r {
|
|
|
19572
19984
|
}, unmarshalSecret);
|
|
19573
19985
|
|
|
19574
19986
|
/**
|
|
19575
|
-
* Get metadata using the secret's
|
|
19576
|
-
* specified by the `region
|
|
19987
|
+
* Get metadata using the secret's name. Retrieve the metadata of a secret
|
|
19988
|
+
* specified by the `region` and `secret_name` parameters.
|
|
19577
19989
|
*
|
|
19578
19990
|
* @param request - The request {@link GetSecretByNameRequest}
|
|
19579
19991
|
* @returns A Promise of Secret
|
|
@@ -19805,6 +20217,19 @@ let API$6 = class API extends API$r {
|
|
|
19805
20217
|
method: 'POST',
|
|
19806
20218
|
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
|
|
19807
20219
|
}, unmarshalSecretVersion);
|
|
20220
|
+
pageOfListTags = (request = {}) => this.client.fetch({
|
|
20221
|
+
method: 'GET',
|
|
20222
|
+
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags`,
|
|
20223
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20224
|
+
}, unmarshalListTagsResponse);
|
|
20225
|
+
|
|
20226
|
+
/**
|
|
20227
|
+
* List tags. List all tags associated to secrets in one or several Projects.
|
|
20228
|
+
*
|
|
20229
|
+
* @param request - The request {@link ListTagsRequest}
|
|
20230
|
+
* @returns A Promise of ListTagsResponse
|
|
20231
|
+
*/
|
|
20232
|
+
listTags = (request = {}) => enrichForPagination('tags', this.pageOfListTags, request);
|
|
19808
20233
|
};
|
|
19809
20234
|
|
|
19810
20235
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -19923,7 +20348,7 @@ const jsonContentHeaders$5 = {
|
|
|
19923
20348
|
* access-key. Then, you can use other test commands by setting the
|
|
19924
20349
|
* SCW_SECRET_KEY env variable.
|
|
19925
20350
|
*/
|
|
19926
|
-
let API$5 = class API extends API$
|
|
20351
|
+
let API$5 = class API extends API$s {
|
|
19927
20352
|
/**
|
|
19928
20353
|
* Register a user. Register a human and return a access-key and a secret-key
|
|
19929
20354
|
* that must be used in all other commands.
|
|
@@ -20108,6 +20533,26 @@ const unmarshalDomain = data => {
|
|
|
20108
20533
|
status: data.status
|
|
20109
20534
|
};
|
|
20110
20535
|
};
|
|
20536
|
+
const unmarshalDomainLastStatusDkimRecord = data => {
|
|
20537
|
+
if (!isJSONObject(data)) {
|
|
20538
|
+
throw new TypeError(`Unmarshalling the type 'DomainLastStatusDkimRecord' failed as data isn't a dictionary.`);
|
|
20539
|
+
}
|
|
20540
|
+
return {
|
|
20541
|
+
error: data.error,
|
|
20542
|
+
lastValidAt: unmarshalDate(data.last_valid_at),
|
|
20543
|
+
status: data.status
|
|
20544
|
+
};
|
|
20545
|
+
};
|
|
20546
|
+
const unmarshalDomainLastStatusSpfRecord = data => {
|
|
20547
|
+
if (!isJSONObject(data)) {
|
|
20548
|
+
throw new TypeError(`Unmarshalling the type 'DomainLastStatusSpfRecord' failed as data isn't a dictionary.`);
|
|
20549
|
+
}
|
|
20550
|
+
return {
|
|
20551
|
+
error: data.error,
|
|
20552
|
+
lastValidAt: unmarshalDate(data.last_valid_at),
|
|
20553
|
+
status: data.status
|
|
20554
|
+
};
|
|
20555
|
+
};
|
|
20111
20556
|
const unmarshalEmail = data => {
|
|
20112
20557
|
if (!isJSONObject(data)) {
|
|
20113
20558
|
throw new TypeError(`Unmarshalling the type 'Email' failed as data isn't a dictionary.`);
|
|
@@ -20137,6 +20582,17 @@ const unmarshalCreateEmailResponse = data => {
|
|
|
20137
20582
|
emails: unmarshalArrayOfObject(data.emails, unmarshalEmail)
|
|
20138
20583
|
};
|
|
20139
20584
|
};
|
|
20585
|
+
const unmarshalDomainLastStatus = data => {
|
|
20586
|
+
if (!isJSONObject(data)) {
|
|
20587
|
+
throw new TypeError(`Unmarshalling the type 'DomainLastStatus' failed as data isn't a dictionary.`);
|
|
20588
|
+
}
|
|
20589
|
+
return {
|
|
20590
|
+
dkimRecord: data.dkim_record ? unmarshalDomainLastStatusDkimRecord(data.dkim_record) : undefined,
|
|
20591
|
+
domainId: data.domain_id,
|
|
20592
|
+
domainName: data.domain_name,
|
|
20593
|
+
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : undefined
|
|
20594
|
+
};
|
|
20595
|
+
};
|
|
20140
20596
|
const unmarshalListDomainsResponse = data => {
|
|
20141
20597
|
if (!isJSONObject(data)) {
|
|
20142
20598
|
throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
|
|
@@ -20202,7 +20658,7 @@ const jsonContentHeaders$4 = {
|
|
|
20202
20658
|
};
|
|
20203
20659
|
|
|
20204
20660
|
/** Transactional Email API. */
|
|
20205
|
-
let API$4 = class API extends API$
|
|
20661
|
+
let API$4 = class API extends API$s {
|
|
20206
20662
|
/** Lists the available regions of the API. */
|
|
20207
20663
|
static LOCALITIES = ['fr-par'];
|
|
20208
20664
|
|
|
@@ -20361,6 +20817,19 @@ let API$4 = class API extends API$r {
|
|
|
20361
20817
|
method: 'POST',
|
|
20362
20818
|
path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/check`
|
|
20363
20819
|
}, unmarshalDomain);
|
|
20820
|
+
|
|
20821
|
+
/**
|
|
20822
|
+
* Display SPF and DKIM records status and potential errors. Display SPF and
|
|
20823
|
+
* DKIM records status and potential errors, including the found records to
|
|
20824
|
+
* make debugging easier.
|
|
20825
|
+
*
|
|
20826
|
+
* @param request - The request {@link GetDomainLastStatusRequest}
|
|
20827
|
+
* @returns A Promise of DomainLastStatus
|
|
20828
|
+
*/
|
|
20829
|
+
getDomainLastStatus = request => this.client.fetch({
|
|
20830
|
+
method: 'GET',
|
|
20831
|
+
path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/verification`
|
|
20832
|
+
}, unmarshalDomainLastStatus);
|
|
20364
20833
|
};
|
|
20365
20834
|
|
|
20366
20835
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -20424,9 +20893,9 @@ const jsonContentHeaders$3 = {
|
|
|
20424
20893
|
};
|
|
20425
20894
|
|
|
20426
20895
|
/** VPC API. */
|
|
20427
|
-
let API$3 = class API extends API$
|
|
20896
|
+
let API$3 = class API extends API$s {
|
|
20428
20897
|
/** Lists the available zones of the API. */
|
|
20429
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
20898
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
20430
20899
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
20431
20900
|
method: 'GET',
|
|
20432
20901
|
path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks`,
|
|
@@ -20605,6 +21074,7 @@ const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
|
|
|
20605
21074
|
vpc_id: request.vpcId
|
|
20606
21075
|
});
|
|
20607
21076
|
const marshalCreateVPCRequest = (request, defaults) => ({
|
|
21077
|
+
default_private_network_name: request.defaultPrivateNetworkName,
|
|
20608
21078
|
name: request.name || randomName('vpc'),
|
|
20609
21079
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
20610
21080
|
tags: request.tags
|
|
@@ -20643,7 +21113,7 @@ const jsonContentHeaders$2 = {
|
|
|
20643
21113
|
};
|
|
20644
21114
|
|
|
20645
21115
|
/** VPC API. */
|
|
20646
|
-
let API$2 = class API extends API$
|
|
21116
|
+
let API$2 = class API extends API$s {
|
|
20647
21117
|
/** Lists the available regions of the API. */
|
|
20648
21118
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
20649
21119
|
pageOfListVPCs = (request = {}) => this.client.fetch({
|
|
@@ -20666,7 +21136,7 @@ let API$2 = class API extends API$r {
|
|
|
20666
21136
|
* @param request - The request {@link CreateVPCRequest}
|
|
20667
21137
|
* @returns A Promise of VPC
|
|
20668
21138
|
*/
|
|
20669
|
-
createVPC =
|
|
21139
|
+
createVPC = request => this.client.fetch({
|
|
20670
21140
|
body: JSON.stringify(marshalCreateVPCRequest(request, this.client.settings)),
|
|
20671
21141
|
headers: jsonContentHeaders$2,
|
|
20672
21142
|
method: 'POST',
|
|
@@ -21200,7 +21670,7 @@ const jsonContentHeaders$1 = {
|
|
|
21200
21670
|
};
|
|
21201
21671
|
|
|
21202
21672
|
/** Public Gateways API. */
|
|
21203
|
-
let API$1 = class API extends API$
|
|
21673
|
+
let API$1 = class API extends API$s {
|
|
21204
21674
|
/** Lists the available zones of the API. */
|
|
21205
21675
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
21206
21676
|
pageOfListGateways = (request = {}) => this.client.fetch({
|
|
@@ -21761,7 +22231,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
21761
22231
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
21762
22232
|
|
|
21763
22233
|
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
21764
|
-
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting'];
|
|
22234
|
+
const HOSTING_TRANSIENT_STATUSES = ['delivering', 'deleting', 'migrating'];
|
|
21765
22235
|
|
|
21766
22236
|
// This file was automatically generated. DO NOT EDIT.
|
|
21767
22237
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -21908,7 +22378,7 @@ const jsonContentHeaders = {
|
|
|
21908
22378
|
};
|
|
21909
22379
|
|
|
21910
22380
|
/** Web Hosting API. */
|
|
21911
|
-
class API extends API$
|
|
22381
|
+
class API extends API$s {
|
|
21912
22382
|
/** Lists the available regions of the API. */
|
|
21913
22383
|
static LOCALITIES = ['fr-par'];
|
|
21914
22384
|
|
|
@@ -22068,20 +22538,21 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
22068
22538
|
v1alpha1: index_gen
|
|
22069
22539
|
});
|
|
22070
22540
|
|
|
22071
|
-
exports.API = API$
|
|
22072
|
-
exports.Account = index$
|
|
22073
|
-
exports.AppleSilicon = index$
|
|
22074
|
-
exports.BareMetal = index$
|
|
22075
|
-
exports.Billing = index$
|
|
22076
|
-
exports.Cockpit = index$
|
|
22077
|
-
exports.Container = index$
|
|
22078
|
-
exports.Domain = index$
|
|
22079
|
-
exports.Errors = index$
|
|
22080
|
-
exports.FlexibleIP = index$
|
|
22081
|
-
exports.Function = index$
|
|
22082
|
-
exports.IAM = index$
|
|
22083
|
-
exports.IOT = index$
|
|
22084
|
-
exports.
|
|
22541
|
+
exports.API = API$s;
|
|
22542
|
+
exports.Account = index$t;
|
|
22543
|
+
exports.AppleSilicon = index$s;
|
|
22544
|
+
exports.BareMetal = index$q;
|
|
22545
|
+
exports.Billing = index$p;
|
|
22546
|
+
exports.Cockpit = index$o;
|
|
22547
|
+
exports.Container = index$n;
|
|
22548
|
+
exports.Domain = index$m;
|
|
22549
|
+
exports.Errors = index$u;
|
|
22550
|
+
exports.FlexibleIP = index$l;
|
|
22551
|
+
exports.Function = index$k;
|
|
22552
|
+
exports.IAM = index$j;
|
|
22553
|
+
exports.IOT = index$g;
|
|
22554
|
+
exports.IPFS = index$f;
|
|
22555
|
+
exports.Instance = index$h;
|
|
22085
22556
|
exports.K8S = index$d;
|
|
22086
22557
|
exports.LB = index$b;
|
|
22087
22558
|
exports.MNQ = index$9;
|