@scaleway/sdk 2.2.0 → 2.4.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/block/v1alpha1/api.gen.js +2 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +49 -70
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +1 -4
- package/dist/api/domain/v2beta1/marshalling.gen.js +2 -0
- package/dist/api/iam/v1alpha1/api.gen.js +4 -4
- package/dist/api/iam/v1alpha1/marshalling.gen.js +16 -5
- package/dist/api/instance/v1/api.gen.js +27 -1
- package/dist/api/instance/v1/marshalling.gen.js +132 -111
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +8 -2
- package/dist/api/mnq/index.js +2 -4
- package/dist/api/secret/v1alpha1/api.gen.js +21 -0
- package/dist/index.cjs +608 -825
- package/dist/index.d.ts +919 -1170
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
- package/dist/api/mnq/v1alpha1/api.gen.js +0 -197
- package/dist/api/mnq/v1alpha1/index.gen.js +0 -4
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +0 -126
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v2.
|
|
500
|
+
const version = 'v2.3.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -1707,7 +1707,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
|
|
|
1707
1707
|
*
|
|
1708
1708
|
* @internal
|
|
1709
1709
|
*/
|
|
1710
|
-
let API$
|
|
1710
|
+
let API$v = class API {
|
|
1711
1711
|
constructor(client) {
|
|
1712
1712
|
this.client = client;
|
|
1713
1713
|
}
|
|
@@ -2071,7 +2071,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
|
|
|
2071
2071
|
|
|
2072
2072
|
// This file was automatically generated. DO NOT EDIT.
|
|
2073
2073
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2074
|
-
const jsonContentHeaders$
|
|
2074
|
+
const jsonContentHeaders$t = {
|
|
2075
2075
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2076
2076
|
};
|
|
2077
2077
|
|
|
@@ -2080,7 +2080,7 @@ const jsonContentHeaders$u = {
|
|
|
2080
2080
|
*
|
|
2081
2081
|
* User related data. This API allows you to manage projects.
|
|
2082
2082
|
*/
|
|
2083
|
-
let API$
|
|
2083
|
+
let API$u = class API extends API$v {
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Create a new Project for an Organization. Deprecated in favor of Account
|
|
2086
2086
|
* API v3. Generate a new Project for an Organization, specifying its
|
|
@@ -2092,7 +2092,7 @@ let API$v = class API extends API$w {
|
|
|
2092
2092
|
*/
|
|
2093
2093
|
createProject = (request = {}) => this.client.fetch({
|
|
2094
2094
|
body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
|
|
2095
|
-
headers: jsonContentHeaders$
|
|
2095
|
+
headers: jsonContentHeaders$t,
|
|
2096
2096
|
method: 'POST',
|
|
2097
2097
|
path: `/account/v2/projects`
|
|
2098
2098
|
}, unmarshalProject$1);
|
|
@@ -2156,7 +2156,7 @@ let API$v = class API extends API$w {
|
|
|
2156
2156
|
*/
|
|
2157
2157
|
updateProject = (request = {}) => this.client.fetch({
|
|
2158
2158
|
body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
|
|
2159
|
-
headers: jsonContentHeaders$
|
|
2159
|
+
headers: jsonContentHeaders$t,
|
|
2160
2160
|
method: 'PATCH',
|
|
2161
2161
|
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
2162
2162
|
}, unmarshalProject$1);
|
|
@@ -2165,9 +2165,9 @@ let API$v = class API extends API$w {
|
|
|
2165
2165
|
// This file was automatically generated. DO NOT EDIT.
|
|
2166
2166
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2167
2167
|
|
|
2168
|
-
var index_gen$
|
|
2168
|
+
var index_gen$t = /*#__PURE__*/Object.freeze({
|
|
2169
2169
|
__proto__: null,
|
|
2170
|
-
API: API$
|
|
2170
|
+
API: API$u
|
|
2171
2171
|
});
|
|
2172
2172
|
|
|
2173
2173
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2206,7 +2206,7 @@ const marshalProjectApiUpdateProjectRequest = (request, defaults) => ({
|
|
|
2206
2206
|
|
|
2207
2207
|
// This file was automatically generated. DO NOT EDIT.
|
|
2208
2208
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2209
|
-
const jsonContentHeaders$
|
|
2209
|
+
const jsonContentHeaders$s = {
|
|
2210
2210
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2211
2211
|
};
|
|
2212
2212
|
|
|
@@ -2215,7 +2215,7 @@ const jsonContentHeaders$t = {
|
|
|
2215
2215
|
*
|
|
2216
2216
|
* This API allows you to manage projects.
|
|
2217
2217
|
*/
|
|
2218
|
-
class ProjectAPI extends API$
|
|
2218
|
+
class ProjectAPI extends API$v {
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Create a new Project for an Organization. Generate a new Project for an
|
|
2221
2221
|
* Organization, specifying its configuration including name and description.
|
|
@@ -2225,7 +2225,7 @@ class ProjectAPI extends API$w {
|
|
|
2225
2225
|
*/
|
|
2226
2226
|
createProject = request => this.client.fetch({
|
|
2227
2227
|
body: JSON.stringify(marshalProjectApiCreateProjectRequest(request, this.client.settings)),
|
|
2228
|
-
headers: jsonContentHeaders$
|
|
2228
|
+
headers: jsonContentHeaders$s,
|
|
2229
2229
|
method: 'POST',
|
|
2230
2230
|
path: `/account/v3/projects`
|
|
2231
2231
|
}, unmarshalProject);
|
|
@@ -2281,7 +2281,7 @@ class ProjectAPI extends API$w {
|
|
|
2281
2281
|
*/
|
|
2282
2282
|
updateProject = (request = {}) => this.client.fetch({
|
|
2283
2283
|
body: JSON.stringify(marshalProjectApiUpdateProjectRequest(request, this.client.settings)),
|
|
2284
|
-
headers: jsonContentHeaders$
|
|
2284
|
+
headers: jsonContentHeaders$s,
|
|
2285
2285
|
method: 'PATCH',
|
|
2286
2286
|
path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
2287
2287
|
}, unmarshalProject);
|
|
@@ -2335,7 +2335,7 @@ var validationRules_gen$d = /*#__PURE__*/Object.freeze({
|
|
|
2335
2335
|
// This file was automatically generated. DO NOT EDIT.
|
|
2336
2336
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2337
2337
|
|
|
2338
|
-
var index_gen$
|
|
2338
|
+
var index_gen$s = /*#__PURE__*/Object.freeze({
|
|
2339
2339
|
__proto__: null,
|
|
2340
2340
|
ProjectAPI: ProjectAPI,
|
|
2341
2341
|
ValidationRules: validationRules_gen$d
|
|
@@ -2343,8 +2343,8 @@ var index_gen$t = /*#__PURE__*/Object.freeze({
|
|
|
2343
2343
|
|
|
2344
2344
|
var index$x = /*#__PURE__*/Object.freeze({
|
|
2345
2345
|
__proto__: null,
|
|
2346
|
-
v2: index_gen$
|
|
2347
|
-
v3: index_gen$
|
|
2346
|
+
v2: index_gen$t,
|
|
2347
|
+
v3: index_gen$s
|
|
2348
2348
|
});
|
|
2349
2349
|
|
|
2350
2350
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2463,12 +2463,12 @@ const marshalUpdateServerRequest$2 = (request, defaults) => ({
|
|
|
2463
2463
|
|
|
2464
2464
|
// This file was automatically generated. DO NOT EDIT.
|
|
2465
2465
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2466
|
-
const jsonContentHeaders$
|
|
2466
|
+
const jsonContentHeaders$r = {
|
|
2467
2467
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
2470
2470
|
/** Apple silicon API. */
|
|
2471
|
-
let API$
|
|
2471
|
+
let API$t = class API extends API$v {
|
|
2472
2472
|
/** Lists the available zones of the API. */
|
|
2473
2473
|
static LOCALITIES = ['fr-par-3'];
|
|
2474
2474
|
|
|
@@ -2506,7 +2506,7 @@ let API$u = class API extends API$w {
|
|
|
2506
2506
|
*/
|
|
2507
2507
|
createServer = request => this.client.fetch({
|
|
2508
2508
|
body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
|
|
2509
|
-
headers: jsonContentHeaders$
|
|
2509
|
+
headers: jsonContentHeaders$r,
|
|
2510
2510
|
method: 'POST',
|
|
2511
2511
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
2512
2512
|
}, unmarshalServer$2);
|
|
@@ -2584,7 +2584,7 @@ let API$u = class API extends API$w {
|
|
|
2584
2584
|
*/
|
|
2585
2585
|
updateServer = request => this.client.fetch({
|
|
2586
2586
|
body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
|
|
2587
|
-
headers: jsonContentHeaders$
|
|
2587
|
+
headers: jsonContentHeaders$r,
|
|
2588
2588
|
method: 'PATCH',
|
|
2589
2589
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
2590
2590
|
}, unmarshalServer$2);
|
|
@@ -2611,7 +2611,7 @@ let API$u = class API extends API$w {
|
|
|
2611
2611
|
*/
|
|
2612
2612
|
rebootServer = request => this.client.fetch({
|
|
2613
2613
|
body: '{}',
|
|
2614
|
-
headers: jsonContentHeaders$
|
|
2614
|
+
headers: jsonContentHeaders$r,
|
|
2615
2615
|
method: 'POST',
|
|
2616
2616
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
2617
2617
|
}, unmarshalServer$2);
|
|
@@ -2627,7 +2627,7 @@ let API$u = class API extends API$w {
|
|
|
2627
2627
|
*/
|
|
2628
2628
|
reinstallServer = request => this.client.fetch({
|
|
2629
2629
|
body: '{}',
|
|
2630
|
-
headers: jsonContentHeaders$
|
|
2630
|
+
headers: jsonContentHeaders$r,
|
|
2631
2631
|
method: 'POST',
|
|
2632
2632
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
|
|
2633
2633
|
}, unmarshalServer$2);
|
|
@@ -2636,15 +2636,15 @@ let API$u = class API extends API$w {
|
|
|
2636
2636
|
// This file was automatically generated. DO NOT EDIT.
|
|
2637
2637
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2638
2638
|
|
|
2639
|
-
var index_gen$
|
|
2639
|
+
var index_gen$r = /*#__PURE__*/Object.freeze({
|
|
2640
2640
|
__proto__: null,
|
|
2641
|
-
API: API$
|
|
2641
|
+
API: API$t,
|
|
2642
2642
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
2645
|
var index$w = /*#__PURE__*/Object.freeze({
|
|
2646
2646
|
__proto__: null,
|
|
2647
|
-
v1alpha1: index_gen$
|
|
2647
|
+
v1alpha1: index_gen$r
|
|
2648
2648
|
});
|
|
2649
2649
|
|
|
2650
2650
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3062,7 +3062,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
|
|
|
3062
3062
|
|
|
3063
3063
|
// This file was automatically generated. DO NOT EDIT.
|
|
3064
3064
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3065
|
-
const jsonContentHeaders$
|
|
3065
|
+
const jsonContentHeaders$q = {
|
|
3066
3066
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3067
3067
|
};
|
|
3068
3068
|
|
|
@@ -3071,7 +3071,7 @@ const jsonContentHeaders$r = {
|
|
|
3071
3071
|
*
|
|
3072
3072
|
* This API allows to manage your Elastic Metal server.
|
|
3073
3073
|
*/
|
|
3074
|
-
let API$
|
|
3074
|
+
let API$s = class API extends API$v {
|
|
3075
3075
|
/** Lists the available zones of the API. */
|
|
3076
3076
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
|
|
3077
3077
|
pageOfListServers = (request = {}) => this.client.fetch({
|
|
@@ -3119,7 +3119,7 @@ let API$t = class API extends API$w {
|
|
|
3119
3119
|
*/
|
|
3120
3120
|
createServer = request => this.client.fetch({
|
|
3121
3121
|
body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
|
|
3122
|
-
headers: jsonContentHeaders$
|
|
3122
|
+
headers: jsonContentHeaders$q,
|
|
3123
3123
|
method: 'POST',
|
|
3124
3124
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
3125
3125
|
}, unmarshalServer$1);
|
|
@@ -3134,7 +3134,7 @@ let API$t = class API extends API$w {
|
|
|
3134
3134
|
*/
|
|
3135
3135
|
updateServer = request => this.client.fetch({
|
|
3136
3136
|
body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
|
|
3137
|
-
headers: jsonContentHeaders$
|
|
3137
|
+
headers: jsonContentHeaders$q,
|
|
3138
3138
|
method: 'PATCH',
|
|
3139
3139
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
3140
3140
|
}, unmarshalServer$1);
|
|
@@ -3148,7 +3148,7 @@ let API$t = class API extends API$w {
|
|
|
3148
3148
|
*/
|
|
3149
3149
|
installServer = request => this.client.fetch({
|
|
3150
3150
|
body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
|
|
3151
|
-
headers: jsonContentHeaders$
|
|
3151
|
+
headers: jsonContentHeaders$q,
|
|
3152
3152
|
method: 'POST',
|
|
3153
3153
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
|
|
3154
3154
|
}, unmarshalServer$1);
|
|
@@ -3186,7 +3186,7 @@ let API$t = class API extends API$w {
|
|
|
3186
3186
|
*/
|
|
3187
3187
|
rebootServer = request => this.client.fetch({
|
|
3188
3188
|
body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
|
|
3189
|
-
headers: jsonContentHeaders$
|
|
3189
|
+
headers: jsonContentHeaders$q,
|
|
3190
3190
|
method: 'POST',
|
|
3191
3191
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
3192
3192
|
}, unmarshalServer$1);
|
|
@@ -3199,7 +3199,7 @@ let API$t = class API extends API$w {
|
|
|
3199
3199
|
*/
|
|
3200
3200
|
startServer = request => this.client.fetch({
|
|
3201
3201
|
body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
|
|
3202
|
-
headers: jsonContentHeaders$
|
|
3202
|
+
headers: jsonContentHeaders$q,
|
|
3203
3203
|
method: 'POST',
|
|
3204
3204
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
|
|
3205
3205
|
}, unmarshalServer$1);
|
|
@@ -3214,7 +3214,7 @@ let API$t = class API extends API$w {
|
|
|
3214
3214
|
*/
|
|
3215
3215
|
stopServer = request => this.client.fetch({
|
|
3216
3216
|
body: '{}',
|
|
3217
|
-
headers: jsonContentHeaders$
|
|
3217
|
+
headers: jsonContentHeaders$q,
|
|
3218
3218
|
method: 'POST',
|
|
3219
3219
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
|
|
3220
3220
|
}, unmarshalServer$1);
|
|
@@ -3252,7 +3252,7 @@ let API$t = class API extends API$w {
|
|
|
3252
3252
|
*/
|
|
3253
3253
|
startBMCAccess = request => this.client.fetch({
|
|
3254
3254
|
body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
|
|
3255
|
-
headers: jsonContentHeaders$
|
|
3255
|
+
headers: jsonContentHeaders$q,
|
|
3256
3256
|
method: 'POST',
|
|
3257
3257
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
3258
3258
|
}, unmarshalBMCAccess);
|
|
@@ -3290,7 +3290,7 @@ let API$t = class API extends API$w {
|
|
|
3290
3290
|
*/
|
|
3291
3291
|
updateIP = request => this.client.fetch({
|
|
3292
3292
|
body: JSON.stringify(marshalUpdateIPRequest$2(request, this.client.settings)),
|
|
3293
|
-
headers: jsonContentHeaders$
|
|
3293
|
+
headers: jsonContentHeaders$q,
|
|
3294
3294
|
method: 'PATCH',
|
|
3295
3295
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
3296
3296
|
}, unmarshalIP$2);
|
|
@@ -3304,7 +3304,7 @@ let API$t = class API extends API$w {
|
|
|
3304
3304
|
*/
|
|
3305
3305
|
addOptionServer = request => this.client.fetch({
|
|
3306
3306
|
body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
|
|
3307
|
-
headers: jsonContentHeaders$
|
|
3307
|
+
headers: jsonContentHeaders$q,
|
|
3308
3308
|
method: 'POST',
|
|
3309
3309
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
|
|
3310
3310
|
}, unmarshalServer$1);
|
|
@@ -3389,7 +3389,7 @@ let API$t = class API extends API$w {
|
|
|
3389
3389
|
*/
|
|
3390
3390
|
updateSetting = request => this.client.fetch({
|
|
3391
3391
|
body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
|
|
3392
|
-
headers: jsonContentHeaders$
|
|
3392
|
+
headers: jsonContentHeaders$q,
|
|
3393
3393
|
method: 'PATCH',
|
|
3394
3394
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
|
|
3395
3395
|
}, unmarshalSetting);
|
|
@@ -3421,7 +3421,7 @@ let API$t = class API extends API$w {
|
|
|
3421
3421
|
};
|
|
3422
3422
|
|
|
3423
3423
|
/** Elastic Metal Private Network API. */
|
|
3424
|
-
class PrivateNetworkAPI extends API$
|
|
3424
|
+
class PrivateNetworkAPI extends API$v {
|
|
3425
3425
|
/** Lists the available zones of the API. */
|
|
3426
3426
|
static LOCALITIES = ['fr-par-2'];
|
|
3427
3427
|
|
|
@@ -3434,7 +3434,7 @@ class PrivateNetworkAPI extends API$w {
|
|
|
3434
3434
|
*/
|
|
3435
3435
|
addServerPrivateNetwork = request => this.client.fetch({
|
|
3436
3436
|
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
3437
|
-
headers: jsonContentHeaders$
|
|
3437
|
+
headers: jsonContentHeaders$q,
|
|
3438
3438
|
method: 'POST',
|
|
3439
3439
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
3440
3440
|
}, unmarshalServerPrivateNetwork);
|
|
@@ -3448,7 +3448,7 @@ class PrivateNetworkAPI extends API$w {
|
|
|
3448
3448
|
*/
|
|
3449
3449
|
setServerPrivateNetworks = request => this.client.fetch({
|
|
3450
3450
|
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
3451
|
-
headers: jsonContentHeaders$
|
|
3451
|
+
headers: jsonContentHeaders$q,
|
|
3452
3452
|
method: 'PUT',
|
|
3453
3453
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
3454
3454
|
}, unmarshalSetServerPrivateNetworksResponse);
|
|
@@ -3479,7 +3479,7 @@ class PrivateNetworkAPI extends API$w {
|
|
|
3479
3479
|
});
|
|
3480
3480
|
}
|
|
3481
3481
|
|
|
3482
|
-
class BaremetalV1UtilsAPI extends API$
|
|
3482
|
+
class BaremetalV1UtilsAPI extends API$s {
|
|
3483
3483
|
/**
|
|
3484
3484
|
* Waits for {@link ServerInstall} to be in a final state.
|
|
3485
3485
|
*
|
|
@@ -3738,7 +3738,7 @@ const unmarshalListInvoicesResponse = data => {
|
|
|
3738
3738
|
*
|
|
3739
3739
|
* This API allows you to query your consumption.
|
|
3740
3740
|
*/
|
|
3741
|
-
let API$
|
|
3741
|
+
let API$r = class API extends API$v {
|
|
3742
3742
|
/**
|
|
3743
3743
|
* Get current month's consumption. The consumption reflects the amount of
|
|
3744
3744
|
* money you have spent for the products you have used. The consumption value
|
|
@@ -3799,14 +3799,14 @@ let API$s = class API extends API$w {
|
|
|
3799
3799
|
// This file was automatically generated. DO NOT EDIT.
|
|
3800
3800
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3801
3801
|
|
|
3802
|
-
var index_gen$
|
|
3802
|
+
var index_gen$q = /*#__PURE__*/Object.freeze({
|
|
3803
3803
|
__proto__: null,
|
|
3804
|
-
API: API$
|
|
3804
|
+
API: API$r
|
|
3805
3805
|
});
|
|
3806
3806
|
|
|
3807
3807
|
var index$t = /*#__PURE__*/Object.freeze({
|
|
3808
3808
|
__proto__: null,
|
|
3809
|
-
v2alpha1: index_gen$
|
|
3809
|
+
v2alpha1: index_gen$q
|
|
3810
3810
|
});
|
|
3811
3811
|
|
|
3812
3812
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3852,6 +3852,7 @@ const unmarshalVolume$4 = data => {
|
|
|
3852
3852
|
return {
|
|
3853
3853
|
createdAt: unmarshalDate(data.created_at),
|
|
3854
3854
|
id: data.id,
|
|
3855
|
+
lastDetachedAt: unmarshalDate(data.last_detached_at),
|
|
3855
3856
|
name: data.name,
|
|
3856
3857
|
parentSnapshotId: data.parent_snapshot_id,
|
|
3857
3858
|
projectId: data.project_id,
|
|
@@ -4000,7 +4001,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
|
|
|
4000
4001
|
|
|
4001
4002
|
// This file was automatically generated. DO NOT EDIT.
|
|
4002
4003
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4003
|
-
const jsonContentHeaders$
|
|
4004
|
+
const jsonContentHeaders$p = {
|
|
4004
4005
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4005
4006
|
};
|
|
4006
4007
|
|
|
@@ -4009,7 +4010,7 @@ const jsonContentHeaders$q = {
|
|
|
4009
4010
|
*
|
|
4010
4011
|
* This API allows you to use and manage your Block Storage volumes.
|
|
4011
4012
|
*/
|
|
4012
|
-
let API$
|
|
4013
|
+
let API$q = class API extends API$v {
|
|
4013
4014
|
/** Lists the available zones of the API. */
|
|
4014
4015
|
static LOCALITIES = ['fr-par-1', 'pl-waw-3'];
|
|
4015
4016
|
pageOfListVolumeTypes = (request = {}) => this.client.fetch({
|
|
@@ -4029,7 +4030,7 @@ let API$r = class API extends API$w {
|
|
|
4029
4030
|
pageOfListVolumes = (request = {}) => this.client.fetch({
|
|
4030
4031
|
method: 'GET',
|
|
4031
4032
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`,
|
|
4032
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['product_resource_id', request.productResourceId], ['project_id', request.projectId])
|
|
4033
|
+
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['product_resource_id', request.productResourceId], ['project_id', request.projectId])
|
|
4033
4034
|
}, unmarshalListVolumesResponse$2);
|
|
4034
4035
|
|
|
4035
4036
|
/**
|
|
@@ -4055,7 +4056,7 @@ let API$r = class API extends API$w {
|
|
|
4055
4056
|
*/
|
|
4056
4057
|
createVolume = request => this.client.fetch({
|
|
4057
4058
|
body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
|
|
4058
|
-
headers: jsonContentHeaders$
|
|
4059
|
+
headers: jsonContentHeaders$p,
|
|
4059
4060
|
method: 'POST',
|
|
4060
4061
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
4061
4062
|
}, unmarshalVolume$4);
|
|
@@ -4103,14 +4104,14 @@ let API$r = class API extends API$w {
|
|
|
4103
4104
|
*/
|
|
4104
4105
|
updateVolume = request => this.client.fetch({
|
|
4105
4106
|
body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
|
|
4106
|
-
headers: jsonContentHeaders$
|
|
4107
|
+
headers: jsonContentHeaders$p,
|
|
4107
4108
|
method: 'PATCH',
|
|
4108
4109
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
4109
4110
|
}, unmarshalVolume$4);
|
|
4110
4111
|
pageOfListSnapshots = (request = {}) => this.client.fetch({
|
|
4111
4112
|
method: 'GET',
|
|
4112
4113
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`,
|
|
4113
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['volume_id', request.volumeId])
|
|
4114
|
+
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['volume_id', request.volumeId])
|
|
4114
4115
|
}, unmarshalListSnapshotsResponse$3);
|
|
4115
4116
|
|
|
4116
4117
|
/**
|
|
@@ -4155,13 +4156,13 @@ let API$r = class API extends API$w {
|
|
|
4155
4156
|
*/
|
|
4156
4157
|
createSnapshot = request => this.client.fetch({
|
|
4157
4158
|
body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
|
|
4158
|
-
headers: jsonContentHeaders$
|
|
4159
|
+
headers: jsonContentHeaders$p,
|
|
4159
4160
|
method: 'POST',
|
|
4160
4161
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
4161
4162
|
}, unmarshalSnapshot$3);
|
|
4162
4163
|
importSnapshotFromS3 = request => this.client.fetch({
|
|
4163
4164
|
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
4164
|
-
headers: jsonContentHeaders$
|
|
4165
|
+
headers: jsonContentHeaders$p,
|
|
4165
4166
|
method: 'POST',
|
|
4166
4167
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
4167
4168
|
}, unmarshalSnapshot$3);
|
|
@@ -4185,7 +4186,7 @@ let API$r = class API extends API$w {
|
|
|
4185
4186
|
*/
|
|
4186
4187
|
updateSnapshot = request => this.client.fetch({
|
|
4187
4188
|
body: JSON.stringify(marshalUpdateSnapshotRequest$2(request, this.client.settings)),
|
|
4188
|
-
headers: jsonContentHeaders$
|
|
4189
|
+
headers: jsonContentHeaders$p,
|
|
4189
4190
|
method: 'PATCH',
|
|
4190
4191
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
4191
4192
|
}, unmarshalSnapshot$3);
|
|
@@ -4256,9 +4257,9 @@ var validationRules_gen$b = /*#__PURE__*/Object.freeze({
|
|
|
4256
4257
|
// This file was automatically generated. DO NOT EDIT.
|
|
4257
4258
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4258
4259
|
|
|
4259
|
-
var index_gen$
|
|
4260
|
+
var index_gen$p = /*#__PURE__*/Object.freeze({
|
|
4260
4261
|
__proto__: null,
|
|
4261
|
-
API: API$
|
|
4262
|
+
API: API$q,
|
|
4262
4263
|
REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
|
|
4263
4264
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
|
|
4264
4265
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
|
|
@@ -4267,7 +4268,7 @@ var index_gen$q = /*#__PURE__*/Object.freeze({
|
|
|
4267
4268
|
|
|
4268
4269
|
var index$s = /*#__PURE__*/Object.freeze({
|
|
4269
4270
|
__proto__: null,
|
|
4270
|
-
v1alpha1: index_gen$
|
|
4271
|
+
v1alpha1: index_gen$p
|
|
4271
4272
|
});
|
|
4272
4273
|
|
|
4273
4274
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4531,9 +4532,6 @@ const marshalDisableManagedAlertsRequest = (request, defaults) => ({
|
|
|
4531
4532
|
const marshalEnableManagedAlertsRequest = (request, defaults) => ({
|
|
4532
4533
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
4533
4534
|
});
|
|
4534
|
-
const marshalResetCockpitGrafanaRequest = (request, defaults) => ({
|
|
4535
|
-
project_id: request.projectId ?? defaults.defaultProjectId
|
|
4536
|
-
});
|
|
4537
4535
|
const marshalResetGrafanaUserPasswordRequest = (request, defaults) => ({
|
|
4538
4536
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
4539
4537
|
});
|
|
@@ -4547,7 +4545,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
4547
4545
|
|
|
4548
4546
|
// This file was automatically generated. DO NOT EDIT.
|
|
4549
4547
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4550
|
-
const jsonContentHeaders$
|
|
4548
|
+
const jsonContentHeaders$o = {
|
|
4551
4549
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4552
4550
|
};
|
|
4553
4551
|
|
|
@@ -4558,7 +4556,7 @@ const jsonContentHeaders$p = {
|
|
|
4558
4556
|
* Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
|
|
4559
4557
|
* for dashboarding to visualize them.
|
|
4560
4558
|
*/
|
|
4561
|
-
let API$
|
|
4559
|
+
let API$p = class API extends API$v {
|
|
4562
4560
|
/**
|
|
4563
4561
|
* Activate the Cockpit of the specified Project ID.
|
|
4564
4562
|
*
|
|
@@ -4567,7 +4565,7 @@ let API$q = class API extends API$w {
|
|
|
4567
4565
|
*/
|
|
4568
4566
|
activateCockpit = (request = {}) => this.client.fetch({
|
|
4569
4567
|
body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
|
|
4570
|
-
headers: jsonContentHeaders$
|
|
4568
|
+
headers: jsonContentHeaders$o,
|
|
4571
4569
|
method: 'POST',
|
|
4572
4570
|
path: `/cockpit/v1beta1/activate`
|
|
4573
4571
|
}, unmarshalCockpit);
|
|
@@ -4613,24 +4611,11 @@ let API$q = class API extends API$w {
|
|
|
4613
4611
|
*/
|
|
4614
4612
|
deactivateCockpit = (request = {}) => this.client.fetch({
|
|
4615
4613
|
body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
|
|
4616
|
-
headers: jsonContentHeaders$
|
|
4614
|
+
headers: jsonContentHeaders$o,
|
|
4617
4615
|
method: 'POST',
|
|
4618
4616
|
path: `/cockpit/v1beta1/deactivate`
|
|
4619
4617
|
}, unmarshalCockpit);
|
|
4620
4618
|
|
|
4621
|
-
/**
|
|
4622
|
-
* Reset your Cockpit's Grafana associated with the specified Project ID.
|
|
4623
|
-
*
|
|
4624
|
-
* @param request - The request {@link ResetCockpitGrafanaRequest}
|
|
4625
|
-
* @returns A Promise of Cockpit
|
|
4626
|
-
*/
|
|
4627
|
-
resetCockpitGrafana = (request = {}) => this.client.fetch({
|
|
4628
|
-
body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
|
|
4629
|
-
headers: jsonContentHeaders$p,
|
|
4630
|
-
method: 'POST',
|
|
4631
|
-
path: `/cockpit/v1beta1/reset-grafana`
|
|
4632
|
-
}, unmarshalCockpit);
|
|
4633
|
-
|
|
4634
4619
|
/**
|
|
4635
4620
|
* Create a datasource for the specified Project ID and the given type.
|
|
4636
4621
|
*
|
|
@@ -4639,7 +4624,7 @@ let API$q = class API extends API$w {
|
|
|
4639
4624
|
*/
|
|
4640
4625
|
createDatasource = request => this.client.fetch({
|
|
4641
4626
|
body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
|
|
4642
|
-
headers: jsonContentHeaders$
|
|
4627
|
+
headers: jsonContentHeaders$o,
|
|
4643
4628
|
method: 'POST',
|
|
4644
4629
|
path: `/cockpit/v1beta1/datasources`
|
|
4645
4630
|
}, unmarshalDatasource);
|
|
@@ -4665,7 +4650,7 @@ let API$q = class API extends API$w {
|
|
|
4665
4650
|
*/
|
|
4666
4651
|
createToken = (request = {}) => this.client.fetch({
|
|
4667
4652
|
body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
|
|
4668
|
-
headers: jsonContentHeaders$
|
|
4653
|
+
headers: jsonContentHeaders$o,
|
|
4669
4654
|
method: 'POST',
|
|
4670
4655
|
path: `/cockpit/v1beta1/tokens`
|
|
4671
4656
|
}, unmarshalToken$2);
|
|
@@ -4712,7 +4697,7 @@ let API$q = class API extends API$w {
|
|
|
4712
4697
|
*/
|
|
4713
4698
|
createContactPoint = (request = {}) => this.client.fetch({
|
|
4714
4699
|
body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
|
|
4715
|
-
headers: jsonContentHeaders$
|
|
4700
|
+
headers: jsonContentHeaders$o,
|
|
4716
4701
|
method: 'POST',
|
|
4717
4702
|
path: `/cockpit/v1beta1/contact-points`
|
|
4718
4703
|
}, unmarshalContactPoint);
|
|
@@ -4738,7 +4723,7 @@ let API$q = class API extends API$w {
|
|
|
4738
4723
|
*/
|
|
4739
4724
|
deleteContactPoint = (request = {}) => this.client.fetch({
|
|
4740
4725
|
body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
|
|
4741
|
-
headers: jsonContentHeaders$
|
|
4726
|
+
headers: jsonContentHeaders$o,
|
|
4742
4727
|
method: 'POST',
|
|
4743
4728
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
4744
4729
|
});
|
|
@@ -4750,7 +4735,7 @@ let API$q = class API extends API$w {
|
|
|
4750
4735
|
*/
|
|
4751
4736
|
enableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4752
4737
|
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
|
|
4753
|
-
headers: jsonContentHeaders$
|
|
4738
|
+
headers: jsonContentHeaders$o,
|
|
4754
4739
|
method: 'POST',
|
|
4755
4740
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
4756
4741
|
});
|
|
@@ -4762,7 +4747,7 @@ let API$q = class API extends API$w {
|
|
|
4762
4747
|
*/
|
|
4763
4748
|
disableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4764
4749
|
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
|
|
4765
|
-
headers: jsonContentHeaders$
|
|
4750
|
+
headers: jsonContentHeaders$o,
|
|
4766
4751
|
method: 'POST',
|
|
4767
4752
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
4768
4753
|
});
|
|
@@ -4774,7 +4759,7 @@ let API$q = class API extends API$w {
|
|
|
4774
4759
|
*/
|
|
4775
4760
|
triggerTestAlert = (request = {}) => this.client.fetch({
|
|
4776
4761
|
body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
|
|
4777
|
-
headers: jsonContentHeaders$
|
|
4762
|
+
headers: jsonContentHeaders$o,
|
|
4778
4763
|
method: 'POST',
|
|
4779
4764
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
4780
4765
|
});
|
|
@@ -4788,7 +4773,7 @@ let API$q = class API extends API$w {
|
|
|
4788
4773
|
*/
|
|
4789
4774
|
createGrafanaUser = request => this.client.fetch({
|
|
4790
4775
|
body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
|
|
4791
|
-
headers: jsonContentHeaders$
|
|
4776
|
+
headers: jsonContentHeaders$o,
|
|
4792
4777
|
method: 'POST',
|
|
4793
4778
|
path: `/cockpit/v1beta1/grafana-users`
|
|
4794
4779
|
}, unmarshalGrafanaUser);
|
|
@@ -4815,7 +4800,7 @@ let API$q = class API extends API$w {
|
|
|
4815
4800
|
*/
|
|
4816
4801
|
deleteGrafanaUser = request => this.client.fetch({
|
|
4817
4802
|
body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
|
|
4818
|
-
headers: jsonContentHeaders$
|
|
4803
|
+
headers: jsonContentHeaders$o,
|
|
4819
4804
|
method: 'POST',
|
|
4820
4805
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
4821
4806
|
});
|
|
@@ -4829,7 +4814,7 @@ let API$q = class API extends API$w {
|
|
|
4829
4814
|
*/
|
|
4830
4815
|
resetGrafanaUserPassword = request => this.client.fetch({
|
|
4831
4816
|
body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
|
|
4832
|
-
headers: jsonContentHeaders$
|
|
4817
|
+
headers: jsonContentHeaders$o,
|
|
4833
4818
|
method: 'POST',
|
|
4834
4819
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
4835
4820
|
}, unmarshalGrafanaUser);
|
|
@@ -4856,7 +4841,7 @@ let API$q = class API extends API$w {
|
|
|
4856
4841
|
*/
|
|
4857
4842
|
selectPlan = request => this.client.fetch({
|
|
4858
4843
|
body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
|
|
4859
|
-
headers: jsonContentHeaders$
|
|
4844
|
+
headers: jsonContentHeaders$o,
|
|
4860
4845
|
method: 'POST',
|
|
4861
4846
|
path: `/cockpit/v1beta1/select-plan`
|
|
4862
4847
|
}, unmarshalSelectPlanResponse);
|
|
@@ -4891,15 +4876,15 @@ let API$q = class API extends API$w {
|
|
|
4891
4876
|
// This file was automatically generated. DO NOT EDIT.
|
|
4892
4877
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4893
4878
|
|
|
4894
|
-
var index_gen$
|
|
4879
|
+
var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
4895
4880
|
__proto__: null,
|
|
4896
|
-
API: API$
|
|
4881
|
+
API: API$p,
|
|
4897
4882
|
COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
|
|
4898
4883
|
});
|
|
4899
4884
|
|
|
4900
4885
|
var index$r = /*#__PURE__*/Object.freeze({
|
|
4901
4886
|
__proto__: null,
|
|
4902
|
-
v1beta1: index_gen$
|
|
4887
|
+
v1beta1: index_gen$o
|
|
4903
4888
|
});
|
|
4904
4889
|
|
|
4905
4890
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4988,7 +4973,7 @@ const unmarshalDomain$3 = data => {
|
|
|
4988
4973
|
url: data.url
|
|
4989
4974
|
};
|
|
4990
4975
|
};
|
|
4991
|
-
const unmarshalNamespace$
|
|
4976
|
+
const unmarshalNamespace$2 = data => {
|
|
4992
4977
|
if (!isJSONObject(data)) {
|
|
4993
4978
|
throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
4994
4979
|
}
|
|
@@ -5124,12 +5109,12 @@ const unmarshalListLogsResponse$2 = data => {
|
|
|
5124
5109
|
totalCount: data.total_count
|
|
5125
5110
|
};
|
|
5126
5111
|
};
|
|
5127
|
-
const unmarshalListNamespacesResponse$
|
|
5112
|
+
const unmarshalListNamespacesResponse$2 = data => {
|
|
5128
5113
|
if (!isJSONObject(data)) {
|
|
5129
5114
|
throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
5130
5115
|
}
|
|
5131
5116
|
return {
|
|
5132
|
-
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace$
|
|
5117
|
+
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace$2),
|
|
5133
5118
|
totalCount: data.total_count
|
|
5134
5119
|
};
|
|
5135
5120
|
};
|
|
@@ -5183,7 +5168,7 @@ const marshalCreateDomainRequest$2 = (request, defaults) => ({
|
|
|
5183
5168
|
container_id: request.containerId,
|
|
5184
5169
|
hostname: request.hostname
|
|
5185
5170
|
});
|
|
5186
|
-
const marshalCreateNamespaceRequest$
|
|
5171
|
+
const marshalCreateNamespaceRequest$2 = (request, defaults) => ({
|
|
5187
5172
|
description: request.description,
|
|
5188
5173
|
environment_variables: request.environmentVariables,
|
|
5189
5174
|
name: request.name || randomName('cns'),
|
|
@@ -5258,7 +5243,7 @@ const marshalUpdateCronRequest$1 = (request, defaults) => ({
|
|
|
5258
5243
|
name: request.name,
|
|
5259
5244
|
schedule: request.schedule
|
|
5260
5245
|
});
|
|
5261
|
-
const marshalUpdateNamespaceRequest$
|
|
5246
|
+
const marshalUpdateNamespaceRequest$2 = (request, defaults) => ({
|
|
5262
5247
|
description: request.description,
|
|
5263
5248
|
environment_variables: request.environmentVariables,
|
|
5264
5249
|
secret_environment_variables: request.secretEnvironmentVariables !== undefined ? request.secretEnvironmentVariables.map(elt => marshalSecret$1(elt)) : undefined
|
|
@@ -5278,19 +5263,19 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5278
5263
|
|
|
5279
5264
|
// This file was automatically generated. DO NOT EDIT.
|
|
5280
5265
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5281
|
-
const jsonContentHeaders$
|
|
5266
|
+
const jsonContentHeaders$n = {
|
|
5282
5267
|
'Content-Type': 'application/json; charset=utf-8'
|
|
5283
5268
|
};
|
|
5284
5269
|
|
|
5285
5270
|
/** Serverless Containers API. */
|
|
5286
|
-
let API$
|
|
5271
|
+
let API$o = class API extends API$v {
|
|
5287
5272
|
/** Lists the available regions of the API. */
|
|
5288
5273
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
5289
5274
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
5290
5275
|
method: 'GET',
|
|
5291
5276
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`,
|
|
5292
5277
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
5293
|
-
}, unmarshalListNamespacesResponse$
|
|
5278
|
+
}, unmarshalListNamespacesResponse$2);
|
|
5294
5279
|
|
|
5295
5280
|
/**
|
|
5296
5281
|
* List all your namespaces. List all namespaces in a specified region.
|
|
@@ -5309,7 +5294,7 @@ let API$p = class API extends API$w {
|
|
|
5309
5294
|
getNamespace = request => this.client.fetch({
|
|
5310
5295
|
method: 'GET',
|
|
5311
5296
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5312
|
-
}, unmarshalNamespace$
|
|
5297
|
+
}, unmarshalNamespace$2);
|
|
5313
5298
|
|
|
5314
5299
|
/**
|
|
5315
5300
|
* Waits for {@link Namespace} to be in a final state.
|
|
@@ -5327,11 +5312,11 @@ let API$p = class API extends API$w {
|
|
|
5327
5312
|
* @returns A Promise of Namespace
|
|
5328
5313
|
*/
|
|
5329
5314
|
createNamespace = (request = {}) => this.client.fetch({
|
|
5330
|
-
body: JSON.stringify(marshalCreateNamespaceRequest$
|
|
5331
|
-
headers: jsonContentHeaders$
|
|
5315
|
+
body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
|
|
5316
|
+
headers: jsonContentHeaders$n,
|
|
5332
5317
|
method: 'POST',
|
|
5333
5318
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
5334
|
-
}, unmarshalNamespace$
|
|
5319
|
+
}, unmarshalNamespace$2);
|
|
5335
5320
|
|
|
5336
5321
|
/**
|
|
5337
5322
|
* Update an existing namespace. Update the space associated with the
|
|
@@ -5341,11 +5326,11 @@ let API$p = class API extends API$w {
|
|
|
5341
5326
|
* @returns A Promise of Namespace
|
|
5342
5327
|
*/
|
|
5343
5328
|
updateNamespace = request => this.client.fetch({
|
|
5344
|
-
body: JSON.stringify(marshalUpdateNamespaceRequest$
|
|
5345
|
-
headers: jsonContentHeaders$
|
|
5329
|
+
body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
|
|
5330
|
+
headers: jsonContentHeaders$n,
|
|
5346
5331
|
method: 'PATCH',
|
|
5347
5332
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5348
|
-
}, unmarshalNamespace$
|
|
5333
|
+
}, unmarshalNamespace$2);
|
|
5349
5334
|
|
|
5350
5335
|
/**
|
|
5351
5336
|
* Delete an existing namespace. Delete the namespace associated with the
|
|
@@ -5357,7 +5342,7 @@ let API$p = class API extends API$w {
|
|
|
5357
5342
|
deleteNamespace = request => this.client.fetch({
|
|
5358
5343
|
method: 'DELETE',
|
|
5359
5344
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5360
|
-
}, unmarshalNamespace$
|
|
5345
|
+
}, unmarshalNamespace$2);
|
|
5361
5346
|
pageOfListContainers = request => this.client.fetch({
|
|
5362
5347
|
method: 'GET',
|
|
5363
5348
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`,
|
|
@@ -5400,7 +5385,7 @@ let API$p = class API extends API$w {
|
|
|
5400
5385
|
*/
|
|
5401
5386
|
createContainer = request => this.client.fetch({
|
|
5402
5387
|
body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
|
|
5403
|
-
headers: jsonContentHeaders$
|
|
5388
|
+
headers: jsonContentHeaders$n,
|
|
5404
5389
|
method: 'POST',
|
|
5405
5390
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
|
|
5406
5391
|
}, unmarshalContainer);
|
|
@@ -5414,7 +5399,7 @@ let API$p = class API extends API$w {
|
|
|
5414
5399
|
*/
|
|
5415
5400
|
updateContainer = request => this.client.fetch({
|
|
5416
5401
|
body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
|
|
5417
|
-
headers: jsonContentHeaders$
|
|
5402
|
+
headers: jsonContentHeaders$n,
|
|
5418
5403
|
method: 'PATCH',
|
|
5419
5404
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
|
|
5420
5405
|
}, unmarshalContainer);
|
|
@@ -5438,7 +5423,7 @@ let API$p = class API extends API$w {
|
|
|
5438
5423
|
*/
|
|
5439
5424
|
deployContainer = request => this.client.fetch({
|
|
5440
5425
|
body: '{}',
|
|
5441
|
-
headers: jsonContentHeaders$
|
|
5426
|
+
headers: jsonContentHeaders$n,
|
|
5442
5427
|
method: 'POST',
|
|
5443
5428
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
|
|
5444
5429
|
}, unmarshalContainer);
|
|
@@ -5484,7 +5469,7 @@ let API$p = class API extends API$w {
|
|
|
5484
5469
|
*/
|
|
5485
5470
|
createCron = request => this.client.fetch({
|
|
5486
5471
|
body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
|
|
5487
|
-
headers: jsonContentHeaders$
|
|
5472
|
+
headers: jsonContentHeaders$n,
|
|
5488
5473
|
method: 'POST',
|
|
5489
5474
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
5490
5475
|
}, unmarshalCron$1);
|
|
@@ -5497,7 +5482,7 @@ let API$p = class API extends API$w {
|
|
|
5497
5482
|
*/
|
|
5498
5483
|
updateCron = request => this.client.fetch({
|
|
5499
5484
|
body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
|
|
5500
|
-
headers: jsonContentHeaders$
|
|
5485
|
+
headers: jsonContentHeaders$n,
|
|
5501
5486
|
method: 'PATCH',
|
|
5502
5487
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
5503
5488
|
}, unmarshalCron$1);
|
|
@@ -5571,7 +5556,7 @@ let API$p = class API extends API$w {
|
|
|
5571
5556
|
*/
|
|
5572
5557
|
createDomain = request => this.client.fetch({
|
|
5573
5558
|
body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
|
|
5574
|
-
headers: jsonContentHeaders$
|
|
5559
|
+
headers: jsonContentHeaders$n,
|
|
5575
5560
|
method: 'POST',
|
|
5576
5561
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
5577
5562
|
}, unmarshalDomain$3);
|
|
@@ -5615,7 +5600,7 @@ let API$p = class API extends API$w {
|
|
|
5615
5600
|
*/
|
|
5616
5601
|
createToken = (request = {}) => this.client.fetch({
|
|
5617
5602
|
body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
|
|
5618
|
-
headers: jsonContentHeaders$
|
|
5603
|
+
headers: jsonContentHeaders$n,
|
|
5619
5604
|
method: 'POST',
|
|
5620
5605
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
5621
5606
|
}, unmarshalToken$1);
|
|
@@ -5673,7 +5658,7 @@ let API$p = class API extends API$w {
|
|
|
5673
5658
|
*/
|
|
5674
5659
|
createTrigger = request => this.client.fetch({
|
|
5675
5660
|
body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
|
|
5676
|
-
headers: jsonContentHeaders$
|
|
5661
|
+
headers: jsonContentHeaders$n,
|
|
5677
5662
|
method: 'POST',
|
|
5678
5663
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
5679
5664
|
}, unmarshalTrigger$1);
|
|
@@ -5730,7 +5715,7 @@ let API$p = class API extends API$w {
|
|
|
5730
5715
|
*/
|
|
5731
5716
|
updateTrigger = request => this.client.fetch({
|
|
5732
5717
|
body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
|
|
5733
|
-
headers: jsonContentHeaders$
|
|
5718
|
+
headers: jsonContentHeaders$n,
|
|
5734
5719
|
method: 'PATCH',
|
|
5735
5720
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
5736
5721
|
}, unmarshalTrigger$1);
|
|
@@ -5801,9 +5786,9 @@ var validationRules_gen$a = /*#__PURE__*/Object.freeze({
|
|
|
5801
5786
|
// This file was automatically generated. DO NOT EDIT.
|
|
5802
5787
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5803
5788
|
|
|
5804
|
-
var index_gen$
|
|
5789
|
+
var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
5805
5790
|
__proto__: null,
|
|
5806
|
-
API: API$
|
|
5791
|
+
API: API$o,
|
|
5807
5792
|
CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
|
|
5808
5793
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
|
|
5809
5794
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
|
|
@@ -5815,7 +5800,7 @@ var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
|
5815
5800
|
|
|
5816
5801
|
var index$q = /*#__PURE__*/Object.freeze({
|
|
5817
5802
|
__proto__: null,
|
|
5818
|
-
v1beta1: index_gen$
|
|
5803
|
+
v1beta1: index_gen$n
|
|
5819
5804
|
});
|
|
5820
5805
|
|
|
5821
5806
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -6468,12 +6453,12 @@ const marshalUpgradeInstanceRequest$1 = (request, defaults) => ({
|
|
|
6468
6453
|
|
|
6469
6454
|
// This file was automatically generated. DO NOT EDIT.
|
|
6470
6455
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6471
|
-
const jsonContentHeaders$
|
|
6456
|
+
const jsonContentHeaders$m = {
|
|
6472
6457
|
'Content-Type': 'application/json; charset=utf-8'
|
|
6473
6458
|
};
|
|
6474
6459
|
|
|
6475
6460
|
/** Managed Document Databases API. */
|
|
6476
|
-
let API$
|
|
6461
|
+
let API$n = class API extends API$v {
|
|
6477
6462
|
/** Lists the available regions of the API. */
|
|
6478
6463
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
6479
6464
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -6517,7 +6502,7 @@ let API$o = class API extends API$w {
|
|
|
6517
6502
|
*/
|
|
6518
6503
|
upgradeInstance = request => this.client.fetch({
|
|
6519
6504
|
body: JSON.stringify(marshalUpgradeInstanceRequest$1(request, this.client.settings)),
|
|
6520
|
-
headers: jsonContentHeaders$
|
|
6505
|
+
headers: jsonContentHeaders$m,
|
|
6521
6506
|
method: 'POST',
|
|
6522
6507
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
|
|
6523
6508
|
}, unmarshalInstance$2);
|
|
@@ -6575,7 +6560,7 @@ let API$o = class API extends API$w {
|
|
|
6575
6560
|
*/
|
|
6576
6561
|
createInstance = request => this.client.fetch({
|
|
6577
6562
|
body: JSON.stringify(marshalCreateInstanceRequest$1(request, this.client.settings)),
|
|
6578
|
-
headers: jsonContentHeaders$
|
|
6563
|
+
headers: jsonContentHeaders$m,
|
|
6579
6564
|
method: 'POST',
|
|
6580
6565
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
|
|
6581
6566
|
}, unmarshalInstance$2);
|
|
@@ -6589,7 +6574,7 @@ let API$o = class API extends API$w {
|
|
|
6589
6574
|
*/
|
|
6590
6575
|
updateInstance = request => this.client.fetch({
|
|
6591
6576
|
body: JSON.stringify(marshalUpdateInstanceRequest$1(request, this.client.settings)),
|
|
6592
|
-
headers: jsonContentHeaders$
|
|
6577
|
+
headers: jsonContentHeaders$m,
|
|
6593
6578
|
method: 'PATCH',
|
|
6594
6579
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
|
|
6595
6580
|
}, unmarshalInstance$2);
|
|
@@ -6620,7 +6605,7 @@ let API$o = class API extends API$w {
|
|
|
6620
6605
|
*/
|
|
6621
6606
|
cloneInstance = request => this.client.fetch({
|
|
6622
6607
|
body: JSON.stringify(marshalCloneInstanceRequest$1(request, this.client.settings)),
|
|
6623
|
-
headers: jsonContentHeaders$
|
|
6608
|
+
headers: jsonContentHeaders$m,
|
|
6624
6609
|
method: 'POST',
|
|
6625
6610
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
|
|
6626
6611
|
}, unmarshalInstance$2);
|
|
@@ -6635,7 +6620,7 @@ let API$o = class API extends API$w {
|
|
|
6635
6620
|
*/
|
|
6636
6621
|
restartInstance = request => this.client.fetch({
|
|
6637
6622
|
body: '{}',
|
|
6638
|
-
headers: jsonContentHeaders$
|
|
6623
|
+
headers: jsonContentHeaders$m,
|
|
6639
6624
|
method: 'POST',
|
|
6640
6625
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
|
|
6641
6626
|
}, unmarshalInstance$2);
|
|
@@ -6666,7 +6651,7 @@ let API$o = class API extends API$w {
|
|
|
6666
6651
|
*/
|
|
6667
6652
|
renewInstanceCertificate = request => this.client.fetch({
|
|
6668
6653
|
body: '{}',
|
|
6669
|
-
headers: jsonContentHeaders$
|
|
6654
|
+
headers: jsonContentHeaders$m,
|
|
6670
6655
|
method: 'POST',
|
|
6671
6656
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
|
|
6672
6657
|
});
|
|
@@ -6695,7 +6680,7 @@ let API$o = class API extends API$w {
|
|
|
6695
6680
|
*/
|
|
6696
6681
|
createReadReplica = request => this.client.fetch({
|
|
6697
6682
|
body: JSON.stringify(marshalCreateReadReplicaRequest$1(request, this.client.settings)),
|
|
6698
|
-
headers: jsonContentHeaders$
|
|
6683
|
+
headers: jsonContentHeaders$m,
|
|
6699
6684
|
method: 'POST',
|
|
6700
6685
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
|
|
6701
6686
|
}, unmarshalReadReplica$1);
|
|
@@ -6747,7 +6732,7 @@ let API$o = class API extends API$w {
|
|
|
6747
6732
|
*/
|
|
6748
6733
|
resetReadReplica = request => this.client.fetch({
|
|
6749
6734
|
body: '{}',
|
|
6750
|
-
headers: jsonContentHeaders$
|
|
6735
|
+
headers: jsonContentHeaders$m,
|
|
6751
6736
|
method: 'POST',
|
|
6752
6737
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
|
|
6753
6738
|
}, unmarshalReadReplica$1);
|
|
@@ -6761,7 +6746,7 @@ let API$o = class API extends API$w {
|
|
|
6761
6746
|
*/
|
|
6762
6747
|
promoteReadReplica = request => this.client.fetch({
|
|
6763
6748
|
body: '{}',
|
|
6764
|
-
headers: jsonContentHeaders$
|
|
6749
|
+
headers: jsonContentHeaders$m,
|
|
6765
6750
|
method: 'POST',
|
|
6766
6751
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
|
|
6767
6752
|
}, unmarshalInstance$2);
|
|
@@ -6776,7 +6761,7 @@ let API$o = class API extends API$w {
|
|
|
6776
6761
|
*/
|
|
6777
6762
|
createReadReplicaEndpoint = request => this.client.fetch({
|
|
6778
6763
|
body: JSON.stringify(marshalCreateReadReplicaEndpointRequest$1(request, this.client.settings)),
|
|
6779
|
-
headers: jsonContentHeaders$
|
|
6764
|
+
headers: jsonContentHeaders$m,
|
|
6780
6765
|
method: 'POST',
|
|
6781
6766
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
|
|
6782
6767
|
}, unmarshalReadReplica$1);
|
|
@@ -6828,7 +6813,7 @@ let API$o = class API extends API$w {
|
|
|
6828
6813
|
*/
|
|
6829
6814
|
purgeInstanceLogs = request => this.client.fetch({
|
|
6830
6815
|
body: JSON.stringify(marshalPurgeInstanceLogsRequest$1(request, this.client.settings)),
|
|
6831
|
-
headers: jsonContentHeaders$
|
|
6816
|
+
headers: jsonContentHeaders$m,
|
|
6832
6817
|
method: 'POST',
|
|
6833
6818
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
|
|
6834
6819
|
});
|
|
@@ -6856,7 +6841,7 @@ let API$o = class API extends API$w {
|
|
|
6856
6841
|
*/
|
|
6857
6842
|
addInstanceSettings = request => this.client.fetch({
|
|
6858
6843
|
body: JSON.stringify(marshalAddInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6859
|
-
headers: jsonContentHeaders$
|
|
6844
|
+
headers: jsonContentHeaders$m,
|
|
6860
6845
|
method: 'POST',
|
|
6861
6846
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6862
6847
|
}, unmarshalAddInstanceSettingsResponse$1);
|
|
@@ -6871,7 +6856,7 @@ let API$o = class API extends API$w {
|
|
|
6871
6856
|
*/
|
|
6872
6857
|
deleteInstanceSettings = request => this.client.fetch({
|
|
6873
6858
|
body: JSON.stringify(marshalDeleteInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6874
|
-
headers: jsonContentHeaders$
|
|
6859
|
+
headers: jsonContentHeaders$m,
|
|
6875
6860
|
method: 'DELETE',
|
|
6876
6861
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6877
6862
|
}, unmarshalDeleteInstanceSettingsResponse$1);
|
|
@@ -6886,7 +6871,7 @@ let API$o = class API extends API$w {
|
|
|
6886
6871
|
*/
|
|
6887
6872
|
setInstanceSettings = request => this.client.fetch({
|
|
6888
6873
|
body: JSON.stringify(marshalSetInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6889
|
-
headers: jsonContentHeaders$
|
|
6874
|
+
headers: jsonContentHeaders$m,
|
|
6890
6875
|
method: 'PUT',
|
|
6891
6876
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6892
6877
|
}, unmarshalSetInstanceSettingsResponse$1);
|
|
@@ -6916,7 +6901,7 @@ let API$o = class API extends API$w {
|
|
|
6916
6901
|
*/
|
|
6917
6902
|
addInstanceACLRules = request => this.client.fetch({
|
|
6918
6903
|
body: JSON.stringify(marshalAddInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6919
|
-
headers: jsonContentHeaders$
|
|
6904
|
+
headers: jsonContentHeaders$m,
|
|
6920
6905
|
method: 'POST',
|
|
6921
6906
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6922
6907
|
}, unmarshalAddInstanceACLRulesResponse$1);
|
|
@@ -6930,7 +6915,7 @@ let API$o = class API extends API$w {
|
|
|
6930
6915
|
*/
|
|
6931
6916
|
setInstanceACLRules = request => this.client.fetch({
|
|
6932
6917
|
body: JSON.stringify(marshalSetInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6933
|
-
headers: jsonContentHeaders$
|
|
6918
|
+
headers: jsonContentHeaders$m,
|
|
6934
6919
|
method: 'PUT',
|
|
6935
6920
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6936
6921
|
}, unmarshalSetInstanceACLRulesResponse$1);
|
|
@@ -6944,7 +6929,7 @@ let API$o = class API extends API$w {
|
|
|
6944
6929
|
*/
|
|
6945
6930
|
deleteInstanceACLRules = request => this.client.fetch({
|
|
6946
6931
|
body: JSON.stringify(marshalDeleteInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6947
|
-
headers: jsonContentHeaders$
|
|
6932
|
+
headers: jsonContentHeaders$m,
|
|
6948
6933
|
method: 'DELETE',
|
|
6949
6934
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6950
6935
|
}, unmarshalDeleteInstanceACLRulesResponse$1);
|
|
@@ -6975,7 +6960,7 @@ let API$o = class API extends API$w {
|
|
|
6975
6960
|
*/
|
|
6976
6961
|
createUser = request => this.client.fetch({
|
|
6977
6962
|
body: JSON.stringify(marshalCreateUserRequest$2(request, this.client.settings)),
|
|
6978
|
-
headers: jsonContentHeaders$
|
|
6963
|
+
headers: jsonContentHeaders$m,
|
|
6979
6964
|
method: 'POST',
|
|
6980
6965
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
|
|
6981
6966
|
}, unmarshalUser$2);
|
|
@@ -6990,7 +6975,7 @@ let API$o = class API extends API$w {
|
|
|
6990
6975
|
*/
|
|
6991
6976
|
updateUser = request => this.client.fetch({
|
|
6992
6977
|
body: JSON.stringify(marshalUpdateUserRequest$1(request, this.client.settings)),
|
|
6993
|
-
headers: jsonContentHeaders$
|
|
6978
|
+
headers: jsonContentHeaders$m,
|
|
6994
6979
|
method: 'PATCH',
|
|
6995
6980
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
|
|
6996
6981
|
}, unmarshalUser$2);
|
|
@@ -7033,7 +7018,7 @@ let API$o = class API extends API$w {
|
|
|
7033
7018
|
*/
|
|
7034
7019
|
createDatabase = request => this.client.fetch({
|
|
7035
7020
|
body: JSON.stringify(marshalCreateDatabaseRequest$1(request, this.client.settings)),
|
|
7036
|
-
headers: jsonContentHeaders$
|
|
7021
|
+
headers: jsonContentHeaders$m,
|
|
7037
7022
|
method: 'POST',
|
|
7038
7023
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
|
|
7039
7024
|
}, unmarshalDatabase$1);
|
|
@@ -7077,7 +7062,7 @@ let API$o = class API extends API$w {
|
|
|
7077
7062
|
*/
|
|
7078
7063
|
setPrivilege = request => this.client.fetch({
|
|
7079
7064
|
body: JSON.stringify(marshalSetPrivilegeRequest$1(request, this.client.settings)),
|
|
7080
|
-
headers: jsonContentHeaders$
|
|
7065
|
+
headers: jsonContentHeaders$m,
|
|
7081
7066
|
method: 'PUT',
|
|
7082
7067
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
|
|
7083
7068
|
}, unmarshalPrivilege$1);
|
|
@@ -7130,7 +7115,7 @@ let API$o = class API extends API$w {
|
|
|
7130
7115
|
*/
|
|
7131
7116
|
createSnapshot = request => this.client.fetch({
|
|
7132
7117
|
body: JSON.stringify(marshalCreateSnapshotRequest$2(request, this.client.settings)),
|
|
7133
|
-
headers: jsonContentHeaders$
|
|
7118
|
+
headers: jsonContentHeaders$m,
|
|
7134
7119
|
method: 'POST',
|
|
7135
7120
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
|
|
7136
7121
|
}, unmarshalSnapshot$2);
|
|
@@ -7145,7 +7130,7 @@ let API$o = class API extends API$w {
|
|
|
7145
7130
|
*/
|
|
7146
7131
|
updateSnapshot = request => this.client.fetch({
|
|
7147
7132
|
body: JSON.stringify(marshalUpdateSnapshotRequest$1(request, this.client.settings)),
|
|
7148
|
-
headers: jsonContentHeaders$
|
|
7133
|
+
headers: jsonContentHeaders$m,
|
|
7149
7134
|
method: 'PATCH',
|
|
7150
7135
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
7151
7136
|
}, unmarshalSnapshot$2);
|
|
@@ -7178,7 +7163,7 @@ let API$o = class API extends API$w {
|
|
|
7178
7163
|
*/
|
|
7179
7164
|
createInstanceFromSnapshot = request => this.client.fetch({
|
|
7180
7165
|
body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest$1(request, this.client.settings)),
|
|
7181
|
-
headers: jsonContentHeaders$
|
|
7166
|
+
headers: jsonContentHeaders$m,
|
|
7182
7167
|
method: 'POST',
|
|
7183
7168
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
|
|
7184
7169
|
}, unmarshalInstance$2);
|
|
@@ -7193,7 +7178,7 @@ let API$o = class API extends API$w {
|
|
|
7193
7178
|
*/
|
|
7194
7179
|
createEndpoint = request => this.client.fetch({
|
|
7195
7180
|
body: JSON.stringify(marshalCreateEndpointRequest$1(request, this.client.settings)),
|
|
7196
|
-
headers: jsonContentHeaders$
|
|
7181
|
+
headers: jsonContentHeaders$m,
|
|
7197
7182
|
method: 'POST',
|
|
7198
7183
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
|
|
7199
7184
|
}, unmarshalEndpoint$2);
|
|
@@ -7234,7 +7219,7 @@ let API$o = class API extends API$w {
|
|
|
7234
7219
|
*/
|
|
7235
7220
|
migrateEndpoint = request => this.client.fetch({
|
|
7236
7221
|
body: JSON.stringify(marshalMigrateEndpointRequest$1(request, this.client.settings)),
|
|
7237
|
-
headers: jsonContentHeaders$
|
|
7222
|
+
headers: jsonContentHeaders$m,
|
|
7238
7223
|
method: 'POST',
|
|
7239
7224
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
|
|
7240
7225
|
}, unmarshalEndpoint$2);
|
|
@@ -7257,9 +7242,9 @@ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
|
|
|
7257
7242
|
// This file was automatically generated. DO NOT EDIT.
|
|
7258
7243
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7259
7244
|
|
|
7260
|
-
var index_gen$
|
|
7245
|
+
var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
7261
7246
|
__proto__: null,
|
|
7262
|
-
API: API$
|
|
7247
|
+
API: API$n,
|
|
7263
7248
|
INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
|
|
7264
7249
|
INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES$2,
|
|
7265
7250
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
|
|
@@ -7270,7 +7255,7 @@ var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
|
7270
7255
|
|
|
7271
7256
|
var index$p = /*#__PURE__*/Object.freeze({
|
|
7272
7257
|
__proto__: null,
|
|
7273
|
-
v1beta1: index_gen$
|
|
7258
|
+
v1beta1: index_gen$m
|
|
7274
7259
|
});
|
|
7275
7260
|
|
|
7276
7261
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -7421,6 +7406,7 @@ const unmarshalDNSZone = data => {
|
|
|
7421
7406
|
}
|
|
7422
7407
|
return {
|
|
7423
7408
|
domain: data.domain,
|
|
7409
|
+
linkedProducts: data.linked_products,
|
|
7424
7410
|
message: data.message,
|
|
7425
7411
|
ns: data.ns,
|
|
7426
7412
|
nsDefault: data.ns_default,
|
|
@@ -7594,6 +7580,7 @@ const unmarshalDomain$2 = data => {
|
|
|
7594
7580
|
expiredAt: unmarshalDate(data.expired_at),
|
|
7595
7581
|
externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(data.external_domain_registration_status) : undefined,
|
|
7596
7582
|
isExternal: data.is_external,
|
|
7583
|
+
linkedProducts: data.linked_products,
|
|
7597
7584
|
organizationId: data.organization_id,
|
|
7598
7585
|
ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : undefined,
|
|
7599
7586
|
projectId: data.project_id,
|
|
@@ -8469,7 +8456,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
|
8469
8456
|
|
|
8470
8457
|
// This file was automatically generated. DO NOT EDIT.
|
|
8471
8458
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
8472
|
-
const jsonContentHeaders$
|
|
8459
|
+
const jsonContentHeaders$l = {
|
|
8473
8460
|
'Content-Type': 'application/json; charset=utf-8'
|
|
8474
8461
|
};
|
|
8475
8462
|
|
|
@@ -8478,7 +8465,7 @@ const jsonContentHeaders$m = {
|
|
|
8478
8465
|
*
|
|
8479
8466
|
* Manage your domains, DNS zones and records with the Domains and DNS API.
|
|
8480
8467
|
*/
|
|
8481
|
-
let API$
|
|
8468
|
+
let API$m = class API extends API$v {
|
|
8482
8469
|
pageOfListDNSZones = request => this.client.fetch({
|
|
8483
8470
|
method: 'GET',
|
|
8484
8471
|
path: `/domain/v2beta1/dns-zones`,
|
|
@@ -8503,7 +8490,7 @@ let API$n = class API extends API$w {
|
|
|
8503
8490
|
*/
|
|
8504
8491
|
createDNSZone = request => this.client.fetch({
|
|
8505
8492
|
body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
|
|
8506
|
-
headers: jsonContentHeaders$
|
|
8493
|
+
headers: jsonContentHeaders$l,
|
|
8507
8494
|
method: 'POST',
|
|
8508
8495
|
path: `/domain/v2beta1/dns-zones`
|
|
8509
8496
|
}, unmarshalDNSZone);
|
|
@@ -8516,7 +8503,7 @@ let API$n = class API extends API$w {
|
|
|
8516
8503
|
*/
|
|
8517
8504
|
updateDNSZone = request => this.client.fetch({
|
|
8518
8505
|
body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
|
|
8519
|
-
headers: jsonContentHeaders$
|
|
8506
|
+
headers: jsonContentHeaders$l,
|
|
8520
8507
|
method: 'PATCH',
|
|
8521
8508
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
8522
8509
|
}, unmarshalDNSZone);
|
|
@@ -8530,7 +8517,7 @@ let API$n = class API extends API$w {
|
|
|
8530
8517
|
*/
|
|
8531
8518
|
cloneDNSZone = request => this.client.fetch({
|
|
8532
8519
|
body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
|
|
8533
|
-
headers: jsonContentHeaders$
|
|
8520
|
+
headers: jsonContentHeaders$l,
|
|
8534
8521
|
method: 'POST',
|
|
8535
8522
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
8536
8523
|
}, unmarshalDNSZone);
|
|
@@ -8583,7 +8570,7 @@ let API$n = class API extends API$w {
|
|
|
8583
8570
|
*/
|
|
8584
8571
|
updateDNSZoneRecords = request => this.client.fetch({
|
|
8585
8572
|
body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
|
|
8586
|
-
headers: jsonContentHeaders$
|
|
8573
|
+
headers: jsonContentHeaders$l,
|
|
8587
8574
|
method: 'PATCH',
|
|
8588
8575
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
8589
8576
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
@@ -8610,7 +8597,7 @@ let API$n = class API extends API$w {
|
|
|
8610
8597
|
*/
|
|
8611
8598
|
updateDNSZoneNameservers = request => this.client.fetch({
|
|
8612
8599
|
body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
|
|
8613
|
-
headers: jsonContentHeaders$
|
|
8600
|
+
headers: jsonContentHeaders$l,
|
|
8614
8601
|
method: 'PUT',
|
|
8615
8602
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
8616
8603
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
@@ -8650,7 +8637,7 @@ let API$n = class API extends API$w {
|
|
|
8650
8637
|
*/
|
|
8651
8638
|
importRawDNSZone = request => this.client.fetch({
|
|
8652
8639
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
8653
|
-
headers: jsonContentHeaders$
|
|
8640
|
+
headers: jsonContentHeaders$l,
|
|
8654
8641
|
method: 'POST',
|
|
8655
8642
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
8656
8643
|
}, unmarshalImportRawDNSZoneResponse);
|
|
@@ -8664,7 +8651,7 @@ let API$n = class API extends API$w {
|
|
|
8664
8651
|
*/
|
|
8665
8652
|
importProviderDNSZone = request => this.client.fetch({
|
|
8666
8653
|
body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
|
|
8667
|
-
headers: jsonContentHeaders$
|
|
8654
|
+
headers: jsonContentHeaders$l,
|
|
8668
8655
|
method: 'POST',
|
|
8669
8656
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
8670
8657
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
@@ -8679,7 +8666,7 @@ let API$n = class API extends API$w {
|
|
|
8679
8666
|
*/
|
|
8680
8667
|
refreshDNSZone = request => this.client.fetch({
|
|
8681
8668
|
body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
|
|
8682
|
-
headers: jsonContentHeaders$
|
|
8669
|
+
headers: jsonContentHeaders$l,
|
|
8683
8670
|
method: 'POST',
|
|
8684
8671
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
|
|
8685
8672
|
}, unmarshalRefreshDNSZoneResponse);
|
|
@@ -8734,7 +8721,7 @@ let API$n = class API extends API$w {
|
|
|
8734
8721
|
*/
|
|
8735
8722
|
restoreDNSZoneVersion = request => this.client.fetch({
|
|
8736
8723
|
body: '{}',
|
|
8737
|
-
headers: jsonContentHeaders$
|
|
8724
|
+
headers: jsonContentHeaders$l,
|
|
8738
8725
|
method: 'POST',
|
|
8739
8726
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
8740
8727
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
@@ -8769,7 +8756,7 @@ let API$n = class API extends API$w {
|
|
|
8769
8756
|
*/
|
|
8770
8757
|
createSSLCertificate = request => this.client.fetch({
|
|
8771
8758
|
body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
|
|
8772
|
-
headers: jsonContentHeaders$
|
|
8759
|
+
headers: jsonContentHeaders$l,
|
|
8773
8760
|
method: 'POST',
|
|
8774
8761
|
path: `/domain/v2beta1/ssl-certificates`
|
|
8775
8762
|
}, unmarshalSSLCertificate);
|
|
@@ -8830,7 +8817,7 @@ let API$n = class API extends API$w {
|
|
|
8830
8817
|
*
|
|
8831
8818
|
* Manage your domains and contacts.
|
|
8832
8819
|
*/
|
|
8833
|
-
class RegistrarAPI extends API$
|
|
8820
|
+
class RegistrarAPI extends API$v {
|
|
8834
8821
|
pageOfListTasks = (request = {}) => this.client.fetch({
|
|
8835
8822
|
method: 'GET',
|
|
8836
8823
|
path: `/domain/v2beta1/tasks`,
|
|
@@ -8855,7 +8842,7 @@ class RegistrarAPI extends API$w {
|
|
|
8855
8842
|
*/
|
|
8856
8843
|
buyDomains = request => this.client.fetch({
|
|
8857
8844
|
body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
|
|
8858
|
-
headers: jsonContentHeaders$
|
|
8845
|
+
headers: jsonContentHeaders$l,
|
|
8859
8846
|
method: 'POST',
|
|
8860
8847
|
path: `/domain/v2beta1/buy-domains`
|
|
8861
8848
|
}, unmarshalOrderResponse);
|
|
@@ -8868,7 +8855,7 @@ class RegistrarAPI extends API$w {
|
|
|
8868
8855
|
*/
|
|
8869
8856
|
renewDomains = request => this.client.fetch({
|
|
8870
8857
|
body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
|
|
8871
|
-
headers: jsonContentHeaders$
|
|
8858
|
+
headers: jsonContentHeaders$l,
|
|
8872
8859
|
method: 'POST',
|
|
8873
8860
|
path: `/domain/v2beta1/renew-domains`
|
|
8874
8861
|
}, unmarshalOrderResponse);
|
|
@@ -8882,7 +8869,7 @@ class RegistrarAPI extends API$w {
|
|
|
8882
8869
|
*/
|
|
8883
8870
|
transferInDomain = request => this.client.fetch({
|
|
8884
8871
|
body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
|
|
8885
|
-
headers: jsonContentHeaders$
|
|
8872
|
+
headers: jsonContentHeaders$l,
|
|
8886
8873
|
method: 'POST',
|
|
8887
8874
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
8888
8875
|
}, unmarshalOrderResponse);
|
|
@@ -8902,7 +8889,7 @@ class RegistrarAPI extends API$w {
|
|
|
8902
8889
|
*/
|
|
8903
8890
|
tradeDomain = request => this.client.fetch({
|
|
8904
8891
|
body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
|
|
8905
|
-
headers: jsonContentHeaders$
|
|
8892
|
+
headers: jsonContentHeaders$l,
|
|
8906
8893
|
method: 'POST',
|
|
8907
8894
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
8908
8895
|
}, unmarshalOrderResponse);
|
|
@@ -8917,7 +8904,7 @@ class RegistrarAPI extends API$w {
|
|
|
8917
8904
|
*/
|
|
8918
8905
|
registerExternalDomain = request => this.client.fetch({
|
|
8919
8906
|
body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
|
|
8920
|
-
headers: jsonContentHeaders$
|
|
8907
|
+
headers: jsonContentHeaders$l,
|
|
8921
8908
|
method: 'POST',
|
|
8922
8909
|
path: `/domain/v2beta1/external-domains`
|
|
8923
8910
|
}, unmarshalRegisterExternalDomainResponse);
|
|
@@ -8945,7 +8932,7 @@ class RegistrarAPI extends API$w {
|
|
|
8945
8932
|
*/
|
|
8946
8933
|
checkContactsCompatibility = (request = {}) => this.client.fetch({
|
|
8947
8934
|
body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
|
|
8948
|
-
headers: jsonContentHeaders$
|
|
8935
|
+
headers: jsonContentHeaders$l,
|
|
8949
8936
|
method: 'POST',
|
|
8950
8937
|
path: `/domain/v2beta1/check-contacts-compatibility`
|
|
8951
8938
|
}, unmarshalCheckContactsCompatibilityResponse);
|
|
@@ -8984,7 +8971,7 @@ class RegistrarAPI extends API$w {
|
|
|
8984
8971
|
*/
|
|
8985
8972
|
updateContact = request => this.client.fetch({
|
|
8986
8973
|
body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
|
|
8987
|
-
headers: jsonContentHeaders$
|
|
8974
|
+
headers: jsonContentHeaders$l,
|
|
8988
8975
|
method: 'PATCH',
|
|
8989
8976
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
8990
8977
|
}, unmarshalContact);
|
|
@@ -9049,7 +9036,7 @@ class RegistrarAPI extends API$w {
|
|
|
9049
9036
|
*/
|
|
9050
9037
|
updateDomain = request => this.client.fetch({
|
|
9051
9038
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
|
|
9052
|
-
headers: jsonContentHeaders$
|
|
9039
|
+
headers: jsonContentHeaders$l,
|
|
9053
9040
|
method: 'PATCH',
|
|
9054
9041
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
9055
9042
|
}, unmarshalDomain$2);
|
|
@@ -9064,7 +9051,7 @@ class RegistrarAPI extends API$w {
|
|
|
9064
9051
|
*/
|
|
9065
9052
|
lockDomainTransfer = request => this.client.fetch({
|
|
9066
9053
|
body: '{}',
|
|
9067
|
-
headers: jsonContentHeaders$
|
|
9054
|
+
headers: jsonContentHeaders$l,
|
|
9068
9055
|
method: 'POST',
|
|
9069
9056
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
9070
9057
|
}, unmarshalDomain$2);
|
|
@@ -9079,7 +9066,7 @@ class RegistrarAPI extends API$w {
|
|
|
9079
9066
|
*/
|
|
9080
9067
|
unlockDomainTransfer = request => this.client.fetch({
|
|
9081
9068
|
body: '{}',
|
|
9082
|
-
headers: jsonContentHeaders$
|
|
9069
|
+
headers: jsonContentHeaders$l,
|
|
9083
9070
|
method: 'POST',
|
|
9084
9071
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
9085
9072
|
}, unmarshalDomain$2);
|
|
@@ -9094,7 +9081,7 @@ class RegistrarAPI extends API$w {
|
|
|
9094
9081
|
*/
|
|
9095
9082
|
enableDomainAutoRenew = request => this.client.fetch({
|
|
9096
9083
|
body: '{}',
|
|
9097
|
-
headers: jsonContentHeaders$
|
|
9084
|
+
headers: jsonContentHeaders$l,
|
|
9098
9085
|
method: 'POST',
|
|
9099
9086
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
9100
9087
|
}, unmarshalDomain$2);
|
|
@@ -9109,7 +9096,7 @@ class RegistrarAPI extends API$w {
|
|
|
9109
9096
|
*/
|
|
9110
9097
|
disableDomainAutoRenew = request => this.client.fetch({
|
|
9111
9098
|
body: '{}',
|
|
9112
|
-
headers: jsonContentHeaders$
|
|
9099
|
+
headers: jsonContentHeaders$l,
|
|
9113
9100
|
method: 'POST',
|
|
9114
9101
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
9115
9102
|
}, unmarshalDomain$2);
|
|
@@ -9138,7 +9125,7 @@ class RegistrarAPI extends API$w {
|
|
|
9138
9125
|
*/
|
|
9139
9126
|
enableDomainDNSSEC = request => this.client.fetch({
|
|
9140
9127
|
body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
|
|
9141
|
-
headers: jsonContentHeaders$
|
|
9128
|
+
headers: jsonContentHeaders$l,
|
|
9142
9129
|
method: 'POST',
|
|
9143
9130
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
9144
9131
|
}, unmarshalDomain$2);
|
|
@@ -9151,7 +9138,7 @@ class RegistrarAPI extends API$w {
|
|
|
9151
9138
|
*/
|
|
9152
9139
|
disableDomainDNSSEC = request => this.client.fetch({
|
|
9153
9140
|
body: '{}',
|
|
9154
|
-
headers: jsonContentHeaders$
|
|
9141
|
+
headers: jsonContentHeaders$l,
|
|
9155
9142
|
method: 'POST',
|
|
9156
9143
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
9157
9144
|
}, unmarshalDomain$2);
|
|
@@ -9195,7 +9182,7 @@ class RegistrarAPI extends API$w {
|
|
|
9195
9182
|
*/
|
|
9196
9183
|
createDomainHost = request => this.client.fetch({
|
|
9197
9184
|
body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
|
|
9198
|
-
headers: jsonContentHeaders$
|
|
9185
|
+
headers: jsonContentHeaders$l,
|
|
9199
9186
|
method: 'POST',
|
|
9200
9187
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
|
|
9201
9188
|
}, unmarshalHost);
|
|
@@ -9221,7 +9208,7 @@ class RegistrarAPI extends API$w {
|
|
|
9221
9208
|
*/
|
|
9222
9209
|
updateDomainHost = request => this.client.fetch({
|
|
9223
9210
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
|
|
9224
|
-
headers: jsonContentHeaders$
|
|
9211
|
+
headers: jsonContentHeaders$l,
|
|
9225
9212
|
method: 'PATCH',
|
|
9226
9213
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
9227
9214
|
}, unmarshalHost);
|
|
@@ -9241,9 +9228,9 @@ class RegistrarAPI extends API$w {
|
|
|
9241
9228
|
// This file was automatically generated. DO NOT EDIT.
|
|
9242
9229
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9243
9230
|
|
|
9244
|
-
var index_gen$
|
|
9231
|
+
var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
9245
9232
|
__proto__: null,
|
|
9246
|
-
API: API$
|
|
9233
|
+
API: API$m,
|
|
9247
9234
|
DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
|
|
9248
9235
|
DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
|
|
9249
9236
|
DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
|
|
@@ -9256,7 +9243,7 @@ var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
|
9256
9243
|
|
|
9257
9244
|
var index$o = /*#__PURE__*/Object.freeze({
|
|
9258
9245
|
__proto__: null,
|
|
9259
|
-
v2beta1: index_gen$
|
|
9246
|
+
v2beta1: index_gen$l
|
|
9260
9247
|
});
|
|
9261
9248
|
|
|
9262
9249
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9363,12 +9350,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
|
|
|
9363
9350
|
|
|
9364
9351
|
// This file was automatically generated. DO NOT EDIT.
|
|
9365
9352
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9366
|
-
const jsonContentHeaders$
|
|
9353
|
+
const jsonContentHeaders$k = {
|
|
9367
9354
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9368
9355
|
};
|
|
9369
9356
|
|
|
9370
9357
|
/** Elastic Metal - Flexible IP API. */
|
|
9371
|
-
let API$
|
|
9358
|
+
let API$l = class API extends API$v {
|
|
9372
9359
|
/** Lists the available zones of the API. */
|
|
9373
9360
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
9374
9361
|
|
|
@@ -9381,7 +9368,7 @@ let API$m = class API extends API$w {
|
|
|
9381
9368
|
*/
|
|
9382
9369
|
createFlexibleIP = request => this.client.fetch({
|
|
9383
9370
|
body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
|
|
9384
|
-
headers: jsonContentHeaders$
|
|
9371
|
+
headers: jsonContentHeaders$k,
|
|
9385
9372
|
method: 'POST',
|
|
9386
9373
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
9387
9374
|
}, unmarshalFlexibleIP);
|
|
@@ -9431,7 +9418,7 @@ let API$m = class API extends API$w {
|
|
|
9431
9418
|
*/
|
|
9432
9419
|
updateFlexibleIP = request => this.client.fetch({
|
|
9433
9420
|
body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
|
|
9434
|
-
headers: jsonContentHeaders$
|
|
9421
|
+
headers: jsonContentHeaders$k,
|
|
9435
9422
|
method: 'PATCH',
|
|
9436
9423
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
9437
9424
|
}, unmarshalFlexibleIP);
|
|
@@ -9457,7 +9444,7 @@ let API$m = class API extends API$w {
|
|
|
9457
9444
|
*/
|
|
9458
9445
|
attachFlexibleIP = request => this.client.fetch({
|
|
9459
9446
|
body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
|
|
9460
|
-
headers: jsonContentHeaders$
|
|
9447
|
+
headers: jsonContentHeaders$k,
|
|
9461
9448
|
method: 'POST',
|
|
9462
9449
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
9463
9450
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
@@ -9471,7 +9458,7 @@ let API$m = class API extends API$w {
|
|
|
9471
9458
|
*/
|
|
9472
9459
|
detachFlexibleIP = request => this.client.fetch({
|
|
9473
9460
|
body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
|
|
9474
|
-
headers: jsonContentHeaders$
|
|
9461
|
+
headers: jsonContentHeaders$k,
|
|
9475
9462
|
method: 'POST',
|
|
9476
9463
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
9477
9464
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
@@ -9485,7 +9472,7 @@ let API$m = class API extends API$w {
|
|
|
9485
9472
|
*/
|
|
9486
9473
|
generateMACAddr = request => this.client.fetch({
|
|
9487
9474
|
body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
|
|
9488
|
-
headers: jsonContentHeaders$
|
|
9475
|
+
headers: jsonContentHeaders$k,
|
|
9489
9476
|
method: 'POST',
|
|
9490
9477
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
9491
9478
|
}, unmarshalFlexibleIP);
|
|
@@ -9500,7 +9487,7 @@ let API$m = class API extends API$w {
|
|
|
9500
9487
|
*/
|
|
9501
9488
|
duplicateMACAddr = request => this.client.fetch({
|
|
9502
9489
|
body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
|
|
9503
|
-
headers: jsonContentHeaders$
|
|
9490
|
+
headers: jsonContentHeaders$k,
|
|
9504
9491
|
method: 'POST',
|
|
9505
9492
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
9506
9493
|
}, unmarshalFlexibleIP);
|
|
@@ -9515,7 +9502,7 @@ let API$m = class API extends API$w {
|
|
|
9515
9502
|
*/
|
|
9516
9503
|
moveMACAddr = request => this.client.fetch({
|
|
9517
9504
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
9518
|
-
headers: jsonContentHeaders$
|
|
9505
|
+
headers: jsonContentHeaders$k,
|
|
9519
9506
|
method: 'POST',
|
|
9520
9507
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
9521
9508
|
}, unmarshalFlexibleIP);
|
|
@@ -9553,9 +9540,9 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
|
9553
9540
|
// This file was automatically generated. DO NOT EDIT.
|
|
9554
9541
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9555
9542
|
|
|
9556
|
-
var index_gen$
|
|
9543
|
+
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
9557
9544
|
__proto__: null,
|
|
9558
|
-
API: API$
|
|
9545
|
+
API: API$l,
|
|
9559
9546
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
9560
9547
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
9561
9548
|
ValidationRules: validationRules_gen$8
|
|
@@ -9563,7 +9550,7 @@ var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
|
9563
9550
|
|
|
9564
9551
|
var index$n = /*#__PURE__*/Object.freeze({
|
|
9565
9552
|
__proto__: null,
|
|
9566
|
-
v1alpha1: index_gen$
|
|
9553
|
+
v1alpha1: index_gen$k
|
|
9567
9554
|
});
|
|
9568
9555
|
|
|
9569
9556
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9652,7 +9639,7 @@ const unmarshalFunction = data => {
|
|
|
9652
9639
|
timeout: data.timeout
|
|
9653
9640
|
};
|
|
9654
9641
|
};
|
|
9655
|
-
const unmarshalNamespace$
|
|
9642
|
+
const unmarshalNamespace$1 = data => {
|
|
9656
9643
|
if (!isJSONObject(data)) {
|
|
9657
9644
|
throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
9658
9645
|
}
|
|
@@ -9823,12 +9810,12 @@ const unmarshalListLogsResponse$1 = data => {
|
|
|
9823
9810
|
totalCount: data.total_count
|
|
9824
9811
|
};
|
|
9825
9812
|
};
|
|
9826
|
-
const unmarshalListNamespacesResponse$
|
|
9813
|
+
const unmarshalListNamespacesResponse$1 = data => {
|
|
9827
9814
|
if (!isJSONObject(data)) {
|
|
9828
9815
|
throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
9829
9816
|
}
|
|
9830
9817
|
return {
|
|
9831
|
-
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace$
|
|
9818
|
+
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace$1),
|
|
9832
9819
|
totalCount: data.total_count
|
|
9833
9820
|
};
|
|
9834
9821
|
};
|
|
@@ -9888,7 +9875,7 @@ const marshalCreateFunctionRequest = (request, defaults) => ({
|
|
|
9888
9875
|
secret_environment_variables: request.secretEnvironmentVariables !== undefined ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
|
9889
9876
|
timeout: request.timeout
|
|
9890
9877
|
});
|
|
9891
|
-
const marshalCreateNamespaceRequest$
|
|
9878
|
+
const marshalCreateNamespaceRequest$1 = (request, defaults) => ({
|
|
9892
9879
|
description: request.description,
|
|
9893
9880
|
environment_variables: request.environmentVariables,
|
|
9894
9881
|
name: request.name || randomName('ns'),
|
|
@@ -9960,7 +9947,7 @@ const marshalUpdateFunctionRequest = (request, defaults) => ({
|
|
|
9960
9947
|
secret_environment_variables: request.secretEnvironmentVariables !== undefined ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined,
|
|
9961
9948
|
timeout: request.timeout
|
|
9962
9949
|
});
|
|
9963
|
-
const marshalUpdateNamespaceRequest$
|
|
9950
|
+
const marshalUpdateNamespaceRequest$1 = (request, defaults) => ({
|
|
9964
9951
|
description: request.description,
|
|
9965
9952
|
environment_variables: request.environmentVariables,
|
|
9966
9953
|
secret_environment_variables: request.secretEnvironmentVariables !== undefined ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt)) : undefined
|
|
@@ -9980,19 +9967,19 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
9980
9967
|
|
|
9981
9968
|
// This file was automatically generated. DO NOT EDIT.
|
|
9982
9969
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9983
|
-
const jsonContentHeaders$
|
|
9970
|
+
const jsonContentHeaders$j = {
|
|
9984
9971
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9985
9972
|
};
|
|
9986
9973
|
|
|
9987
9974
|
/** Serverless Functions API. */
|
|
9988
|
-
let API$
|
|
9975
|
+
let API$k = class API extends API$v {
|
|
9989
9976
|
/** Lists the available regions of the API. */
|
|
9990
9977
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
9991
9978
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
9992
9979
|
method: 'GET',
|
|
9993
9980
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`,
|
|
9994
9981
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
9995
|
-
}, unmarshalListNamespacesResponse$
|
|
9982
|
+
}, unmarshalListNamespacesResponse$1);
|
|
9996
9983
|
|
|
9997
9984
|
/**
|
|
9998
9985
|
* List all your namespaces. List all existing namespaces in the specified
|
|
@@ -10012,7 +9999,7 @@ let API$l = class API extends API$w {
|
|
|
10012
9999
|
getNamespace = request => this.client.fetch({
|
|
10013
10000
|
method: 'GET',
|
|
10014
10001
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
10015
|
-
}, unmarshalNamespace$
|
|
10002
|
+
}, unmarshalNamespace$1);
|
|
10016
10003
|
|
|
10017
10004
|
/**
|
|
10018
10005
|
* Waits for {@link Namespace} to be in a final state.
|
|
@@ -10031,11 +10018,11 @@ let API$l = class API extends API$w {
|
|
|
10031
10018
|
* @returns A Promise of Namespace
|
|
10032
10019
|
*/
|
|
10033
10020
|
createNamespace = (request = {}) => this.client.fetch({
|
|
10034
|
-
body: JSON.stringify(marshalCreateNamespaceRequest$
|
|
10035
|
-
headers: jsonContentHeaders$
|
|
10021
|
+
body: JSON.stringify(marshalCreateNamespaceRequest$1(request, this.client.settings)),
|
|
10022
|
+
headers: jsonContentHeaders$j,
|
|
10036
10023
|
method: 'POST',
|
|
10037
10024
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
10038
|
-
}, unmarshalNamespace$
|
|
10025
|
+
}, unmarshalNamespace$1);
|
|
10039
10026
|
|
|
10040
10027
|
/**
|
|
10041
10028
|
* Update an existing namespace. Update the namespace associated with the
|
|
@@ -10045,11 +10032,11 @@ let API$l = class API extends API$w {
|
|
|
10045
10032
|
* @returns A Promise of Namespace
|
|
10046
10033
|
*/
|
|
10047
10034
|
updateNamespace = request => this.client.fetch({
|
|
10048
|
-
body: JSON.stringify(marshalUpdateNamespaceRequest$
|
|
10049
|
-
headers: jsonContentHeaders$
|
|
10035
|
+
body: JSON.stringify(marshalUpdateNamespaceRequest$1(request, this.client.settings)),
|
|
10036
|
+
headers: jsonContentHeaders$j,
|
|
10050
10037
|
method: 'PATCH',
|
|
10051
10038
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
10052
|
-
}, unmarshalNamespace$
|
|
10039
|
+
}, unmarshalNamespace$1);
|
|
10053
10040
|
|
|
10054
10041
|
/**
|
|
10055
10042
|
* Delete an existing namespace. Delete the namespace associated with the
|
|
@@ -10061,7 +10048,7 @@ let API$l = class API extends API$w {
|
|
|
10061
10048
|
deleteNamespace = request => this.client.fetch({
|
|
10062
10049
|
method: 'DELETE',
|
|
10063
10050
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
10064
|
-
}, unmarshalNamespace$
|
|
10051
|
+
}, unmarshalNamespace$1);
|
|
10065
10052
|
pageOfListFunctions = request => this.client.fetch({
|
|
10066
10053
|
method: 'GET',
|
|
10067
10054
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`,
|
|
@@ -10105,7 +10092,7 @@ let API$l = class API extends API$w {
|
|
|
10105
10092
|
*/
|
|
10106
10093
|
createFunction = request => this.client.fetch({
|
|
10107
10094
|
body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
|
|
10108
|
-
headers: jsonContentHeaders$
|
|
10095
|
+
headers: jsonContentHeaders$j,
|
|
10109
10096
|
method: 'POST',
|
|
10110
10097
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
10111
10098
|
}, unmarshalFunction);
|
|
@@ -10119,7 +10106,7 @@ let API$l = class API extends API$w {
|
|
|
10119
10106
|
*/
|
|
10120
10107
|
updateFunction = request => this.client.fetch({
|
|
10121
10108
|
body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
|
|
10122
|
-
headers: jsonContentHeaders$
|
|
10109
|
+
headers: jsonContentHeaders$j,
|
|
10123
10110
|
method: 'PATCH',
|
|
10124
10111
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
10125
10112
|
}, unmarshalFunction);
|
|
@@ -10143,7 +10130,7 @@ let API$l = class API extends API$w {
|
|
|
10143
10130
|
*/
|
|
10144
10131
|
deployFunction = request => this.client.fetch({
|
|
10145
10132
|
body: '{}',
|
|
10146
|
-
headers: jsonContentHeaders$
|
|
10133
|
+
headers: jsonContentHeaders$j,
|
|
10147
10134
|
method: 'POST',
|
|
10148
10135
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
10149
10136
|
}, unmarshalFunction);
|
|
@@ -10226,7 +10213,7 @@ let API$l = class API extends API$w {
|
|
|
10226
10213
|
*/
|
|
10227
10214
|
createCron = request => this.client.fetch({
|
|
10228
10215
|
body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
|
|
10229
|
-
headers: jsonContentHeaders$
|
|
10216
|
+
headers: jsonContentHeaders$j,
|
|
10230
10217
|
method: 'POST',
|
|
10231
10218
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
10232
10219
|
}, unmarshalCron);
|
|
@@ -10239,7 +10226,7 @@ let API$l = class API extends API$w {
|
|
|
10239
10226
|
*/
|
|
10240
10227
|
updateCron = request => this.client.fetch({
|
|
10241
10228
|
body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
|
|
10242
|
-
headers: jsonContentHeaders$
|
|
10229
|
+
headers: jsonContentHeaders$j,
|
|
10243
10230
|
method: 'PATCH',
|
|
10244
10231
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
10245
10232
|
}, unmarshalCron);
|
|
@@ -10313,7 +10300,7 @@ let API$l = class API extends API$w {
|
|
|
10313
10300
|
*/
|
|
10314
10301
|
createDomain = request => this.client.fetch({
|
|
10315
10302
|
body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
|
|
10316
|
-
headers: jsonContentHeaders$
|
|
10303
|
+
headers: jsonContentHeaders$j,
|
|
10317
10304
|
method: 'POST',
|
|
10318
10305
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
10319
10306
|
}, unmarshalDomain$1);
|
|
@@ -10357,7 +10344,7 @@ let API$l = class API extends API$w {
|
|
|
10357
10344
|
*/
|
|
10358
10345
|
createToken = (request = {}) => this.client.fetch({
|
|
10359
10346
|
body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
|
|
10360
|
-
headers: jsonContentHeaders$
|
|
10347
|
+
headers: jsonContentHeaders$j,
|
|
10361
10348
|
method: 'POST',
|
|
10362
10349
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
10363
10350
|
}, unmarshalToken);
|
|
@@ -10414,7 +10401,7 @@ let API$l = class API extends API$w {
|
|
|
10414
10401
|
*/
|
|
10415
10402
|
createTrigger = request => this.client.fetch({
|
|
10416
10403
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
10417
|
-
headers: jsonContentHeaders$
|
|
10404
|
+
headers: jsonContentHeaders$j,
|
|
10418
10405
|
method: 'POST',
|
|
10419
10406
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
10420
10407
|
}, unmarshalTrigger);
|
|
@@ -10471,7 +10458,7 @@ let API$l = class API extends API$w {
|
|
|
10471
10458
|
*/
|
|
10472
10459
|
updateTrigger = request => this.client.fetch({
|
|
10473
10460
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
10474
|
-
headers: jsonContentHeaders$
|
|
10461
|
+
headers: jsonContentHeaders$j,
|
|
10475
10462
|
method: 'PATCH',
|
|
10476
10463
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
10477
10464
|
}, unmarshalTrigger);
|
|
@@ -10542,9 +10529,9 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
|
10542
10529
|
// This file was automatically generated. DO NOT EDIT.
|
|
10543
10530
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10544
10531
|
|
|
10545
|
-
var index_gen$
|
|
10532
|
+
var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
10546
10533
|
__proto__: null,
|
|
10547
|
-
API: API$
|
|
10534
|
+
API: API$k,
|
|
10548
10535
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
|
|
10549
10536
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
|
|
10550
10537
|
FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
|
|
@@ -10556,7 +10543,7 @@ var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
|
10556
10543
|
|
|
10557
10544
|
var index$m = /*#__PURE__*/Object.freeze({
|
|
10558
10545
|
__proto__: null,
|
|
10559
|
-
v1beta1: index_gen$
|
|
10546
|
+
v1beta1: index_gen$j
|
|
10560
10547
|
});
|
|
10561
10548
|
|
|
10562
10549
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -10606,6 +10593,7 @@ const unmarshalApplication = data => {
|
|
|
10606
10593
|
name: data.name,
|
|
10607
10594
|
nbApiKeys: data.nb_api_keys,
|
|
10608
10595
|
organizationId: data.organization_id,
|
|
10596
|
+
tags: data.tags,
|
|
10609
10597
|
updatedAt: unmarshalDate(data.updated_at)
|
|
10610
10598
|
};
|
|
10611
10599
|
};
|
|
@@ -10620,6 +10608,7 @@ const unmarshalGroup = data => {
|
|
|
10620
10608
|
id: data.id,
|
|
10621
10609
|
name: data.name,
|
|
10622
10610
|
organizationId: data.organization_id,
|
|
10611
|
+
tags: data.tags,
|
|
10623
10612
|
updatedAt: unmarshalDate(data.updated_at),
|
|
10624
10613
|
userIds: data.user_ids
|
|
10625
10614
|
};
|
|
@@ -10657,6 +10646,7 @@ const unmarshalPolicy = data => {
|
|
|
10657
10646
|
nbScopes: data.nb_scopes,
|
|
10658
10647
|
noPrincipal: data.no_principal,
|
|
10659
10648
|
organizationId: data.organization_id,
|
|
10649
|
+
tags: data.tags,
|
|
10660
10650
|
updatedAt: unmarshalDate(data.updated_at),
|
|
10661
10651
|
userId: data.user_id
|
|
10662
10652
|
};
|
|
@@ -10701,6 +10691,7 @@ const unmarshalUser$1 = data => {
|
|
|
10701
10691
|
mfa: data.mfa,
|
|
10702
10692
|
organizationId: data.organization_id,
|
|
10703
10693
|
status: data.status,
|
|
10694
|
+
tags: data.tags,
|
|
10704
10695
|
twoFactorEnabled: data.two_factor_enabled,
|
|
10705
10696
|
type: data.type,
|
|
10706
10697
|
updatedAt: unmarshalDate(data.updated_at)
|
|
@@ -10866,12 +10857,14 @@ const marshalCreateAPIKeyRequest = (request, defaults) => ({
|
|
|
10866
10857
|
const marshalCreateApplicationRequest = (request, defaults) => ({
|
|
10867
10858
|
description: request.description,
|
|
10868
10859
|
name: request.name || randomName('app'),
|
|
10869
|
-
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
10860
|
+
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
10861
|
+
tags: request.tags
|
|
10870
10862
|
});
|
|
10871
10863
|
const marshalCreateGroupRequest = (request, defaults) => ({
|
|
10872
10864
|
description: request.description,
|
|
10873
10865
|
name: request.name || randomName('grp'),
|
|
10874
|
-
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
10866
|
+
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
10867
|
+
tags: request.tags
|
|
10875
10868
|
});
|
|
10876
10869
|
const marshalRuleSpecs = (request, defaults) => ({
|
|
10877
10870
|
permission_set_names: request.permissionSetNames,
|
|
@@ -10888,6 +10881,7 @@ const marshalCreatePolicyRequest = (request, defaults) => ({
|
|
|
10888
10881
|
name: request.name || randomName('pol'),
|
|
10889
10882
|
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
10890
10883
|
rules: request.rules !== undefined ? request.rules.map(elt => marshalRuleSpecs(elt)) : undefined,
|
|
10884
|
+
tags: request.tags,
|
|
10891
10885
|
...resolveOneOf([{
|
|
10892
10886
|
param: 'user_id',
|
|
10893
10887
|
value: request.userId
|
|
@@ -10909,7 +10903,8 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
|
|
|
10909
10903
|
});
|
|
10910
10904
|
const marshalCreateUserRequest$1 = (request, defaults) => ({
|
|
10911
10905
|
email: request.email,
|
|
10912
|
-
organization_id: request.organizationId ?? defaults.defaultOrganizationId
|
|
10906
|
+
organization_id: request.organizationId ?? defaults.defaultOrganizationId,
|
|
10907
|
+
tags: request.tags
|
|
10913
10908
|
});
|
|
10914
10909
|
const marshalRemoveGroupMemberRequest = (request, defaults) => ({
|
|
10915
10910
|
...resolveOneOf([{
|
|
@@ -10934,15 +10929,18 @@ const marshalUpdateAPIKeyRequest = (request, defaults) => ({
|
|
|
10934
10929
|
});
|
|
10935
10930
|
const marshalUpdateApplicationRequest = (request, defaults) => ({
|
|
10936
10931
|
description: request.description,
|
|
10937
|
-
name: request.name
|
|
10932
|
+
name: request.name,
|
|
10933
|
+
tags: request.tags
|
|
10938
10934
|
});
|
|
10939
10935
|
const marshalUpdateGroupRequest = (request, defaults) => ({
|
|
10940
10936
|
description: request.description,
|
|
10941
|
-
name: request.name
|
|
10937
|
+
name: request.name,
|
|
10938
|
+
tags: request.tags
|
|
10942
10939
|
});
|
|
10943
10940
|
const marshalUpdatePolicyRequest = (request, defaults) => ({
|
|
10944
10941
|
description: request.description,
|
|
10945
10942
|
name: request.name,
|
|
10943
|
+
tags: request.tags,
|
|
10946
10944
|
...resolveOneOf([{
|
|
10947
10945
|
param: 'user_id',
|
|
10948
10946
|
value: request.userId
|
|
@@ -10964,12 +10962,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
10964
10962
|
|
|
10965
10963
|
// This file was automatically generated. DO NOT EDIT.
|
|
10966
10964
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10967
|
-
const jsonContentHeaders$
|
|
10965
|
+
const jsonContentHeaders$i = {
|
|
10968
10966
|
'Content-Type': 'application/json; charset=utf-8'
|
|
10969
10967
|
};
|
|
10970
10968
|
|
|
10971
10969
|
/** IAM API. */
|
|
10972
|
-
let API$
|
|
10970
|
+
let API$j = class API extends API$v {
|
|
10973
10971
|
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
10974
10972
|
method: 'GET',
|
|
10975
10973
|
path: `/iam/v1alpha1/ssh-keys`,
|
|
@@ -10996,7 +10994,7 @@ let API$k = class API extends API$w {
|
|
|
10996
10994
|
*/
|
|
10997
10995
|
createSSHKey = request => this.client.fetch({
|
|
10998
10996
|
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
10999
|
-
headers: jsonContentHeaders$
|
|
10997
|
+
headers: jsonContentHeaders$i,
|
|
11000
10998
|
method: 'POST',
|
|
11001
10999
|
path: `/iam/v1alpha1/ssh-keys`
|
|
11002
11000
|
}, unmarshalSSHKey);
|
|
@@ -11023,7 +11021,7 @@ let API$k = class API extends API$w {
|
|
|
11023
11021
|
*/
|
|
11024
11022
|
updateSSHKey = request => this.client.fetch({
|
|
11025
11023
|
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
11026
|
-
headers: jsonContentHeaders$
|
|
11024
|
+
headers: jsonContentHeaders$i,
|
|
11027
11025
|
method: 'PATCH',
|
|
11028
11026
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
11029
11027
|
}, unmarshalSSHKey);
|
|
@@ -11042,7 +11040,7 @@ let API$k = class API extends API$w {
|
|
|
11042
11040
|
pageOfListUsers = (request = {}) => this.client.fetch({
|
|
11043
11041
|
method: 'GET',
|
|
11044
11042
|
path: `/iam/v1alpha1/users`,
|
|
11045
|
-
urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_ids', request.userIds])
|
|
11043
|
+
urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
11046
11044
|
}, unmarshalListUsersResponse$1);
|
|
11047
11045
|
|
|
11048
11046
|
/**
|
|
@@ -11093,14 +11091,14 @@ let API$k = class API extends API$w {
|
|
|
11093
11091
|
*/
|
|
11094
11092
|
createUser = request => this.client.fetch({
|
|
11095
11093
|
body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
|
|
11096
|
-
headers: jsonContentHeaders$
|
|
11094
|
+
headers: jsonContentHeaders$i,
|
|
11097
11095
|
method: 'POST',
|
|
11098
11096
|
path: `/iam/v1alpha1/users`
|
|
11099
11097
|
}, unmarshalUser$1);
|
|
11100
11098
|
pageOfListApplications = (request = {}) => this.client.fetch({
|
|
11101
11099
|
method: 'GET',
|
|
11102
11100
|
path: `/iam/v1alpha1/applications`,
|
|
11103
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
11101
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag])
|
|
11104
11102
|
}, unmarshalListApplicationsResponse);
|
|
11105
11103
|
|
|
11106
11104
|
/**
|
|
@@ -11125,7 +11123,7 @@ let API$k = class API extends API$w {
|
|
|
11125
11123
|
*/
|
|
11126
11124
|
createApplication = request => this.client.fetch({
|
|
11127
11125
|
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
11128
|
-
headers: jsonContentHeaders$
|
|
11126
|
+
headers: jsonContentHeaders$i,
|
|
11129
11127
|
method: 'POST',
|
|
11130
11128
|
path: `/iam/v1alpha1/applications`
|
|
11131
11129
|
}, unmarshalApplication);
|
|
@@ -11153,7 +11151,7 @@ let API$k = class API extends API$w {
|
|
|
11153
11151
|
*/
|
|
11154
11152
|
updateApplication = request => this.client.fetch({
|
|
11155
11153
|
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
11156
|
-
headers: jsonContentHeaders$
|
|
11154
|
+
headers: jsonContentHeaders$i,
|
|
11157
11155
|
method: 'PATCH',
|
|
11158
11156
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
11159
11157
|
}, unmarshalApplication);
|
|
@@ -11173,7 +11171,7 @@ let API$k = class API extends API$w {
|
|
|
11173
11171
|
pageOfListGroups = (request = {}) => this.client.fetch({
|
|
11174
11172
|
method: 'GET',
|
|
11175
11173
|
path: `/iam/v1alpha1/groups`,
|
|
11176
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_ids', request.userIds])
|
|
11174
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
|
|
11177
11175
|
}, unmarshalListGroupsResponse);
|
|
11178
11176
|
|
|
11179
11177
|
/**
|
|
@@ -11197,7 +11195,7 @@ let API$k = class API extends API$w {
|
|
|
11197
11195
|
*/
|
|
11198
11196
|
createGroup = request => this.client.fetch({
|
|
11199
11197
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
11200
|
-
headers: jsonContentHeaders$
|
|
11198
|
+
headers: jsonContentHeaders$i,
|
|
11201
11199
|
method: 'POST',
|
|
11202
11200
|
path: `/iam/v1alpha1/groups`
|
|
11203
11201
|
}, unmarshalGroup);
|
|
@@ -11224,7 +11222,7 @@ let API$k = class API extends API$w {
|
|
|
11224
11222
|
*/
|
|
11225
11223
|
updateGroup = request => this.client.fetch({
|
|
11226
11224
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
11227
|
-
headers: jsonContentHeaders$
|
|
11225
|
+
headers: jsonContentHeaders$i,
|
|
11228
11226
|
method: 'PATCH',
|
|
11229
11227
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
11230
11228
|
}, unmarshalGroup);
|
|
@@ -11239,7 +11237,7 @@ let API$k = class API extends API$w {
|
|
|
11239
11237
|
*/
|
|
11240
11238
|
setGroupMembers = request => this.client.fetch({
|
|
11241
11239
|
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
11242
|
-
headers: jsonContentHeaders$
|
|
11240
|
+
headers: jsonContentHeaders$i,
|
|
11243
11241
|
method: 'PUT',
|
|
11244
11242
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
|
|
11245
11243
|
}, unmarshalGroup);
|
|
@@ -11254,7 +11252,7 @@ let API$k = class API extends API$w {
|
|
|
11254
11252
|
*/
|
|
11255
11253
|
addGroupMember = request => this.client.fetch({
|
|
11256
11254
|
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
11257
|
-
headers: jsonContentHeaders$
|
|
11255
|
+
headers: jsonContentHeaders$i,
|
|
11258
11256
|
method: 'POST',
|
|
11259
11257
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
11260
11258
|
}, unmarshalGroup);
|
|
@@ -11272,7 +11270,7 @@ let API$k = class API extends API$w {
|
|
|
11272
11270
|
*/
|
|
11273
11271
|
addGroupMembers = request => this.client.fetch({
|
|
11274
11272
|
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
11275
|
-
headers: jsonContentHeaders$
|
|
11273
|
+
headers: jsonContentHeaders$i,
|
|
11276
11274
|
method: 'POST',
|
|
11277
11275
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
11278
11276
|
}, unmarshalGroup);
|
|
@@ -11291,7 +11289,7 @@ let API$k = class API extends API$w {
|
|
|
11291
11289
|
*/
|
|
11292
11290
|
removeGroupMember = request => this.client.fetch({
|
|
11293
11291
|
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
11294
|
-
headers: jsonContentHeaders$
|
|
11292
|
+
headers: jsonContentHeaders$i,
|
|
11295
11293
|
method: 'POST',
|
|
11296
11294
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
|
|
11297
11295
|
}, unmarshalGroup);
|
|
@@ -11310,7 +11308,7 @@ let API$k = class API extends API$w {
|
|
|
11310
11308
|
pageOfListPolicies = (request = {}) => this.client.fetch({
|
|
11311
11309
|
method: 'GET',
|
|
11312
11310
|
path: `/iam/v1alpha1/policies`,
|
|
11313
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['policy_name', request.policyName], ['user_ids', request.userIds])
|
|
11311
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
|
|
11314
11312
|
}, unmarshalListPoliciesResponse);
|
|
11315
11313
|
|
|
11316
11314
|
/**
|
|
@@ -11337,7 +11335,7 @@ let API$k = class API extends API$w {
|
|
|
11337
11335
|
*/
|
|
11338
11336
|
createPolicy = request => this.client.fetch({
|
|
11339
11337
|
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
11340
|
-
headers: jsonContentHeaders$
|
|
11338
|
+
headers: jsonContentHeaders$i,
|
|
11341
11339
|
method: 'POST',
|
|
11342
11340
|
path: `/iam/v1alpha1/policies`
|
|
11343
11341
|
}, unmarshalPolicy);
|
|
@@ -11366,7 +11364,7 @@ let API$k = class API extends API$w {
|
|
|
11366
11364
|
*/
|
|
11367
11365
|
updatePolicy = request => this.client.fetch({
|
|
11368
11366
|
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
11369
|
-
headers: jsonContentHeaders$
|
|
11367
|
+
headers: jsonContentHeaders$i,
|
|
11370
11368
|
method: 'PATCH',
|
|
11371
11369
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
|
|
11372
11370
|
}, unmarshalPolicy);
|
|
@@ -11393,7 +11391,7 @@ let API$k = class API extends API$w {
|
|
|
11393
11391
|
*/
|
|
11394
11392
|
clonePolicy = request => this.client.fetch({
|
|
11395
11393
|
body: '{}',
|
|
11396
|
-
headers: jsonContentHeaders$
|
|
11394
|
+
headers: jsonContentHeaders$i,
|
|
11397
11395
|
method: 'POST',
|
|
11398
11396
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
|
|
11399
11397
|
}, unmarshalPolicy);
|
|
@@ -11411,7 +11409,7 @@ let API$k = class API extends API$w {
|
|
|
11411
11409
|
*/
|
|
11412
11410
|
setRules = request => this.client.fetch({
|
|
11413
11411
|
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
11414
|
-
headers: jsonContentHeaders$
|
|
11412
|
+
headers: jsonContentHeaders$i,
|
|
11415
11413
|
method: 'PUT',
|
|
11416
11414
|
path: `/iam/v1alpha1/rules`
|
|
11417
11415
|
}, unmarshalSetRulesResponse);
|
|
@@ -11482,7 +11480,7 @@ let API$k = class API extends API$w {
|
|
|
11482
11480
|
*/
|
|
11483
11481
|
createAPIKey = request => this.client.fetch({
|
|
11484
11482
|
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
11485
|
-
headers: jsonContentHeaders$
|
|
11483
|
+
headers: jsonContentHeaders$i,
|
|
11486
11484
|
method: 'POST',
|
|
11487
11485
|
path: `/iam/v1alpha1/api-keys`
|
|
11488
11486
|
}, unmarshalAPIKey);
|
|
@@ -11512,7 +11510,7 @@ let API$k = class API extends API$w {
|
|
|
11512
11510
|
*/
|
|
11513
11511
|
updateAPIKey = request => this.client.fetch({
|
|
11514
11512
|
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
11515
|
-
headers: jsonContentHeaders$
|
|
11513
|
+
headers: jsonContentHeaders$i,
|
|
11516
11514
|
method: 'PATCH',
|
|
11517
11515
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
11518
11516
|
}, unmarshalAPIKey);
|
|
@@ -11849,15 +11847,15 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
|
11849
11847
|
// This file was automatically generated. DO NOT EDIT.
|
|
11850
11848
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
11851
11849
|
|
|
11852
|
-
var index_gen$
|
|
11850
|
+
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
11853
11851
|
__proto__: null,
|
|
11854
|
-
API: API$
|
|
11852
|
+
API: API$j,
|
|
11855
11853
|
ValidationRules: validationRules_gen$6
|
|
11856
11854
|
});
|
|
11857
11855
|
|
|
11858
11856
|
var index$l = /*#__PURE__*/Object.freeze({
|
|
11859
11857
|
__proto__: null,
|
|
11860
|
-
v1alpha1: index_gen$
|
|
11858
|
+
v1alpha1: index_gen$i
|
|
11861
11859
|
});
|
|
11862
11860
|
|
|
11863
11861
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -11956,40 +11954,6 @@ const unmarshalImage$3 = data => {
|
|
|
11956
11954
|
zone: data.zone
|
|
11957
11955
|
};
|
|
11958
11956
|
};
|
|
11959
|
-
const unmarshalCreateImageResponse = data => {
|
|
11960
|
-
if (!isJSONObject(data)) {
|
|
11961
|
-
throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
|
|
11962
|
-
}
|
|
11963
|
-
return {
|
|
11964
|
-
image: data.image ? unmarshalImage$3(data.image) : undefined
|
|
11965
|
-
};
|
|
11966
|
-
};
|
|
11967
|
-
const unmarshalIp$1 = data => {
|
|
11968
|
-
if (!isJSONObject(data)) {
|
|
11969
|
-
throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
|
|
11970
|
-
}
|
|
11971
|
-
return {
|
|
11972
|
-
address: data.address,
|
|
11973
|
-
id: data.id,
|
|
11974
|
-
organization: data.organization,
|
|
11975
|
-
prefix: data.prefix,
|
|
11976
|
-
project: data.project,
|
|
11977
|
-
reverse: data.reverse,
|
|
11978
|
-
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
11979
|
-
state: data.state,
|
|
11980
|
-
tags: data.tags,
|
|
11981
|
-
type: data.type,
|
|
11982
|
-
zone: data.zone
|
|
11983
|
-
};
|
|
11984
|
-
};
|
|
11985
|
-
const unmarshalCreateIpResponse = data => {
|
|
11986
|
-
if (!isJSONObject(data)) {
|
|
11987
|
-
throw new TypeError(`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`);
|
|
11988
|
-
}
|
|
11989
|
-
return {
|
|
11990
|
-
ip: data.ip ? unmarshalIp$1(data.ip) : undefined
|
|
11991
|
-
};
|
|
11992
|
-
};
|
|
11993
11957
|
const unmarshalPlacementGroup = data => {
|
|
11994
11958
|
if (!isJSONObject(data)) {
|
|
11995
11959
|
throw new TypeError(`Unmarshalling the type 'PlacementGroup' failed as data isn't a dictionary.`);
|
|
@@ -12006,79 +11970,6 @@ const unmarshalPlacementGroup = data => {
|
|
|
12006
11970
|
zone: data.zone
|
|
12007
11971
|
};
|
|
12008
11972
|
};
|
|
12009
|
-
const unmarshalCreatePlacementGroupResponse = data => {
|
|
12010
|
-
if (!isJSONObject(data)) {
|
|
12011
|
-
throw new TypeError(`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`);
|
|
12012
|
-
}
|
|
12013
|
-
return {
|
|
12014
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
|
|
12015
|
-
};
|
|
12016
|
-
};
|
|
12017
|
-
const unmarshalCreatePrivateNICResponse = data => {
|
|
12018
|
-
if (!isJSONObject(data)) {
|
|
12019
|
-
throw new TypeError(`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`);
|
|
12020
|
-
}
|
|
12021
|
-
return {
|
|
12022
|
-
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
|
|
12023
|
-
};
|
|
12024
|
-
};
|
|
12025
|
-
const unmarshalSecurityGroup = data => {
|
|
12026
|
-
if (!isJSONObject(data)) {
|
|
12027
|
-
throw new TypeError(`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`);
|
|
12028
|
-
}
|
|
12029
|
-
return {
|
|
12030
|
-
creationDate: unmarshalDate(data.creation_date),
|
|
12031
|
-
description: data.description,
|
|
12032
|
-
enableDefaultSecurity: data.enable_default_security,
|
|
12033
|
-
id: data.id,
|
|
12034
|
-
inboundDefaultPolicy: data.inbound_default_policy,
|
|
12035
|
-
modificationDate: unmarshalDate(data.modification_date),
|
|
12036
|
-
name: data.name,
|
|
12037
|
-
organization: data.organization,
|
|
12038
|
-
organizationDefault: data.organization_default,
|
|
12039
|
-
outboundDefaultPolicy: data.outbound_default_policy,
|
|
12040
|
-
project: data.project,
|
|
12041
|
-
projectDefault: data.project_default,
|
|
12042
|
-
servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
12043
|
-
state: data.state,
|
|
12044
|
-
stateful: data.stateful,
|
|
12045
|
-
tags: data.tags,
|
|
12046
|
-
zone: data.zone
|
|
12047
|
-
};
|
|
12048
|
-
};
|
|
12049
|
-
const unmarshalCreateSecurityGroupResponse = data => {
|
|
12050
|
-
if (!isJSONObject(data)) {
|
|
12051
|
-
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`);
|
|
12052
|
-
}
|
|
12053
|
-
return {
|
|
12054
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
|
|
12055
|
-
};
|
|
12056
|
-
};
|
|
12057
|
-
const unmarshalSecurityGroupRule = data => {
|
|
12058
|
-
if (!isJSONObject(data)) {
|
|
12059
|
-
throw new TypeError(`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`);
|
|
12060
|
-
}
|
|
12061
|
-
return {
|
|
12062
|
-
action: data.action,
|
|
12063
|
-
destPortFrom: data.dest_port_from,
|
|
12064
|
-
destPortTo: data.dest_port_to,
|
|
12065
|
-
direction: data.direction,
|
|
12066
|
-
editable: data.editable,
|
|
12067
|
-
id: data.id,
|
|
12068
|
-
ipRange: data.ip_range,
|
|
12069
|
-
position: data.position,
|
|
12070
|
-
protocol: data.protocol,
|
|
12071
|
-
zone: data.zone
|
|
12072
|
-
};
|
|
12073
|
-
};
|
|
12074
|
-
const unmarshalCreateSecurityGroupRuleResponse = data => {
|
|
12075
|
-
if (!isJSONObject(data)) {
|
|
12076
|
-
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
|
|
12077
|
-
}
|
|
12078
|
-
return {
|
|
12079
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
|
|
12080
|
-
};
|
|
12081
|
-
};
|
|
12082
11973
|
const unmarshalSecurityGroupSummary = data => {
|
|
12083
11974
|
if (!isJSONObject(data)) {
|
|
12084
11975
|
throw new TypeError(`Unmarshalling the type 'SecurityGroupSummary' failed as data isn't a dictionary.`);
|
|
@@ -12193,6 +12084,121 @@ const unmarshalServer = data => {
|
|
|
12193
12084
|
zone: data.zone
|
|
12194
12085
|
};
|
|
12195
12086
|
};
|
|
12087
|
+
const unmarshalAttachServerVolumeResponse = data => {
|
|
12088
|
+
if (!isJSONObject(data)) {
|
|
12089
|
+
throw new TypeError(`Unmarshalling the type 'AttachServerVolumeResponse' failed as data isn't a dictionary.`);
|
|
12090
|
+
}
|
|
12091
|
+
return {
|
|
12092
|
+
server: data.server ? unmarshalServer(data.server) : undefined
|
|
12093
|
+
};
|
|
12094
|
+
};
|
|
12095
|
+
const unmarshalCreateImageResponse = data => {
|
|
12096
|
+
if (!isJSONObject(data)) {
|
|
12097
|
+
throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
|
|
12098
|
+
}
|
|
12099
|
+
return {
|
|
12100
|
+
image: data.image ? unmarshalImage$3(data.image) : undefined
|
|
12101
|
+
};
|
|
12102
|
+
};
|
|
12103
|
+
const unmarshalIp$1 = data => {
|
|
12104
|
+
if (!isJSONObject(data)) {
|
|
12105
|
+
throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
|
|
12106
|
+
}
|
|
12107
|
+
return {
|
|
12108
|
+
address: data.address,
|
|
12109
|
+
id: data.id,
|
|
12110
|
+
organization: data.organization,
|
|
12111
|
+
prefix: data.prefix,
|
|
12112
|
+
project: data.project,
|
|
12113
|
+
reverse: data.reverse,
|
|
12114
|
+
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
12115
|
+
state: data.state,
|
|
12116
|
+
tags: data.tags,
|
|
12117
|
+
type: data.type,
|
|
12118
|
+
zone: data.zone
|
|
12119
|
+
};
|
|
12120
|
+
};
|
|
12121
|
+
const unmarshalCreateIpResponse = data => {
|
|
12122
|
+
if (!isJSONObject(data)) {
|
|
12123
|
+
throw new TypeError(`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`);
|
|
12124
|
+
}
|
|
12125
|
+
return {
|
|
12126
|
+
ip: data.ip ? unmarshalIp$1(data.ip) : undefined
|
|
12127
|
+
};
|
|
12128
|
+
};
|
|
12129
|
+
const unmarshalCreatePlacementGroupResponse = data => {
|
|
12130
|
+
if (!isJSONObject(data)) {
|
|
12131
|
+
throw new TypeError(`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`);
|
|
12132
|
+
}
|
|
12133
|
+
return {
|
|
12134
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
|
|
12135
|
+
};
|
|
12136
|
+
};
|
|
12137
|
+
const unmarshalCreatePrivateNICResponse = data => {
|
|
12138
|
+
if (!isJSONObject(data)) {
|
|
12139
|
+
throw new TypeError(`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`);
|
|
12140
|
+
}
|
|
12141
|
+
return {
|
|
12142
|
+
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
|
|
12143
|
+
};
|
|
12144
|
+
};
|
|
12145
|
+
const unmarshalSecurityGroup = data => {
|
|
12146
|
+
if (!isJSONObject(data)) {
|
|
12147
|
+
throw new TypeError(`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`);
|
|
12148
|
+
}
|
|
12149
|
+
return {
|
|
12150
|
+
creationDate: unmarshalDate(data.creation_date),
|
|
12151
|
+
description: data.description,
|
|
12152
|
+
enableDefaultSecurity: data.enable_default_security,
|
|
12153
|
+
id: data.id,
|
|
12154
|
+
inboundDefaultPolicy: data.inbound_default_policy,
|
|
12155
|
+
modificationDate: unmarshalDate(data.modification_date),
|
|
12156
|
+
name: data.name,
|
|
12157
|
+
organization: data.organization,
|
|
12158
|
+
organizationDefault: data.organization_default,
|
|
12159
|
+
outboundDefaultPolicy: data.outbound_default_policy,
|
|
12160
|
+
project: data.project,
|
|
12161
|
+
projectDefault: data.project_default,
|
|
12162
|
+
servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
12163
|
+
state: data.state,
|
|
12164
|
+
stateful: data.stateful,
|
|
12165
|
+
tags: data.tags,
|
|
12166
|
+
zone: data.zone
|
|
12167
|
+
};
|
|
12168
|
+
};
|
|
12169
|
+
const unmarshalCreateSecurityGroupResponse = data => {
|
|
12170
|
+
if (!isJSONObject(data)) {
|
|
12171
|
+
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`);
|
|
12172
|
+
}
|
|
12173
|
+
return {
|
|
12174
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
|
|
12175
|
+
};
|
|
12176
|
+
};
|
|
12177
|
+
const unmarshalSecurityGroupRule = data => {
|
|
12178
|
+
if (!isJSONObject(data)) {
|
|
12179
|
+
throw new TypeError(`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`);
|
|
12180
|
+
}
|
|
12181
|
+
return {
|
|
12182
|
+
action: data.action,
|
|
12183
|
+
destPortFrom: data.dest_port_from,
|
|
12184
|
+
destPortTo: data.dest_port_to,
|
|
12185
|
+
direction: data.direction,
|
|
12186
|
+
editable: data.editable,
|
|
12187
|
+
id: data.id,
|
|
12188
|
+
ipRange: data.ip_range,
|
|
12189
|
+
position: data.position,
|
|
12190
|
+
protocol: data.protocol,
|
|
12191
|
+
zone: data.zone
|
|
12192
|
+
};
|
|
12193
|
+
};
|
|
12194
|
+
const unmarshalCreateSecurityGroupRuleResponse = data => {
|
|
12195
|
+
if (!isJSONObject(data)) {
|
|
12196
|
+
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
|
|
12197
|
+
}
|
|
12198
|
+
return {
|
|
12199
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
|
|
12200
|
+
};
|
|
12201
|
+
};
|
|
12196
12202
|
const unmarshalCreateServerResponse = data => {
|
|
12197
12203
|
if (!isJSONObject(data)) {
|
|
12198
12204
|
throw new TypeError(`Unmarshalling the type 'CreateServerResponse' failed as data isn't a dictionary.`);
|
|
@@ -12263,6 +12269,14 @@ const unmarshalCreateVolumeResponse = data => {
|
|
|
12263
12269
|
volume: data.volume ? unmarshalVolume$2(data.volume) : undefined
|
|
12264
12270
|
};
|
|
12265
12271
|
};
|
|
12272
|
+
const unmarshalDetachServerVolumeResponse = data => {
|
|
12273
|
+
if (!isJSONObject(data)) {
|
|
12274
|
+
throw new TypeError(`Unmarshalling the type 'DetachServerVolumeResponse' failed as data isn't a dictionary.`);
|
|
12275
|
+
}
|
|
12276
|
+
return {
|
|
12277
|
+
server: data.server ? unmarshalServer(data.server) : undefined
|
|
12278
|
+
};
|
|
12279
|
+
};
|
|
12266
12280
|
const unmarshalExportSnapshotResponse = data => {
|
|
12267
12281
|
if (!isJSONObject(data)) {
|
|
12268
12282
|
throw new TypeError(`Unmarshalling the type 'ExportSnapshotResponse' failed as data isn't a dictionary.`);
|
|
@@ -12765,6 +12779,11 @@ const marshalApplyBlockMigrationRequest = (request, defaults) => ({
|
|
|
12765
12779
|
value: request.snapshotId
|
|
12766
12780
|
}])
|
|
12767
12781
|
});
|
|
12782
|
+
const marshalAttachServerVolumeRequest = (request, defaults) => ({
|
|
12783
|
+
boot: request.boot,
|
|
12784
|
+
volume_id: request.volumeId,
|
|
12785
|
+
volume_type: request.volumeType
|
|
12786
|
+
});
|
|
12768
12787
|
const marshalVolumeTemplate = (request, defaults) => ({
|
|
12769
12788
|
id: request.id,
|
|
12770
12789
|
name: request.name,
|
|
@@ -12940,14 +12959,14 @@ const marshalCreateVolumeRequest$1 = (request, defaults) => ({
|
|
|
12940
12959
|
...resolveOneOf([{
|
|
12941
12960
|
param: 'size',
|
|
12942
12961
|
value: request.size
|
|
12943
|
-
}, {
|
|
12944
|
-
param: 'base_volume',
|
|
12945
|
-
value: request.baseVolume
|
|
12946
12962
|
}, {
|
|
12947
12963
|
param: 'base_snapshot',
|
|
12948
12964
|
value: request.baseSnapshot
|
|
12949
12965
|
}])
|
|
12950
12966
|
});
|
|
12967
|
+
const marshalDetachServerVolumeRequest = (request, defaults) => ({
|
|
12968
|
+
volume_id: request.volumeId
|
|
12969
|
+
});
|
|
12951
12970
|
const marshalExportSnapshotRequest = (request, defaults) => ({
|
|
12952
12971
|
bucket: request.bucket,
|
|
12953
12972
|
key: request.key
|
|
@@ -13251,12 +13270,12 @@ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
|
|
|
13251
13270
|
|
|
13252
13271
|
// This file was automatically generated. DO NOT EDIT.
|
|
13253
13272
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
13254
|
-
const jsonContentHeaders$
|
|
13273
|
+
const jsonContentHeaders$h = {
|
|
13255
13274
|
'Content-Type': 'application/json; charset=utf-8'
|
|
13256
13275
|
};
|
|
13257
13276
|
|
|
13258
13277
|
/** Instance API. */
|
|
13259
|
-
let API$
|
|
13278
|
+
let API$i = class API extends API$v {
|
|
13260
13279
|
/** Lists the available zones of the API. */
|
|
13261
13280
|
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', 'pl-waw-3'];
|
|
13262
13281
|
|
|
@@ -13312,7 +13331,7 @@ let API$j = class API extends API$w {
|
|
|
13312
13331
|
listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
|
|
13313
13332
|
_createServer = request => this.client.fetch({
|
|
13314
13333
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
13315
|
-
headers: jsonContentHeaders$
|
|
13334
|
+
headers: jsonContentHeaders$h,
|
|
13316
13335
|
method: 'POST',
|
|
13317
13336
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
13318
13337
|
}, unmarshalCreateServerResponse);
|
|
@@ -13339,13 +13358,13 @@ let API$j = class API extends API$w {
|
|
|
13339
13358
|
}, unmarshalGetServerResponse);
|
|
13340
13359
|
_setServer = request => this.client.fetch({
|
|
13341
13360
|
body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
|
|
13342
|
-
headers: jsonContentHeaders$
|
|
13361
|
+
headers: jsonContentHeaders$h,
|
|
13343
13362
|
method: 'PUT',
|
|
13344
13363
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
|
|
13345
13364
|
}, unmarshalSetServerResponse);
|
|
13346
13365
|
_updateServer = request => this.client.fetch({
|
|
13347
13366
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
13348
|
-
headers: jsonContentHeaders$
|
|
13367
|
+
headers: jsonContentHeaders$h,
|
|
13349
13368
|
method: 'PATCH',
|
|
13350
13369
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
13351
13370
|
}, unmarshalUpdateServerResponse);
|
|
@@ -13383,7 +13402,7 @@ let API$j = class API extends API$w {
|
|
|
13383
13402
|
*/
|
|
13384
13403
|
serverAction = request => this.client.fetch({
|
|
13385
13404
|
body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
|
|
13386
|
-
headers: jsonContentHeaders$
|
|
13405
|
+
headers: jsonContentHeaders$h,
|
|
13387
13406
|
method: 'POST',
|
|
13388
13407
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
|
|
13389
13408
|
}, unmarshalServerActionResponse);
|
|
@@ -13408,6 +13427,32 @@ let API$j = class API extends API$w {
|
|
|
13408
13427
|
method: 'DELETE',
|
|
13409
13428
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/user_data/${validatePathParam('key', request.key)}`
|
|
13410
13429
|
});
|
|
13430
|
+
|
|
13431
|
+
/**
|
|
13432
|
+
* Attach a volume to a server.
|
|
13433
|
+
*
|
|
13434
|
+
* @param request - The request {@link AttachServerVolumeRequest}
|
|
13435
|
+
* @returns A Promise of AttachServerVolumeResponse
|
|
13436
|
+
*/
|
|
13437
|
+
attachServerVolume = request => this.client.fetch({
|
|
13438
|
+
body: JSON.stringify(marshalAttachServerVolumeRequest(request, this.client.settings)),
|
|
13439
|
+
headers: jsonContentHeaders$h,
|
|
13440
|
+
method: 'POST',
|
|
13441
|
+
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/attach-volume`
|
|
13442
|
+
}, unmarshalAttachServerVolumeResponse);
|
|
13443
|
+
|
|
13444
|
+
/**
|
|
13445
|
+
* Detach a volume from a server.
|
|
13446
|
+
*
|
|
13447
|
+
* @param request - The request {@link DetachServerVolumeRequest}
|
|
13448
|
+
* @returns A Promise of DetachServerVolumeResponse
|
|
13449
|
+
*/
|
|
13450
|
+
detachServerVolume = request => this.client.fetch({
|
|
13451
|
+
body: JSON.stringify(marshalDetachServerVolumeRequest(request, this.client.settings)),
|
|
13452
|
+
headers: jsonContentHeaders$h,
|
|
13453
|
+
method: 'POST',
|
|
13454
|
+
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/detach-volume`
|
|
13455
|
+
}, unmarshalDetachServerVolumeResponse);
|
|
13411
13456
|
pageOfListImages = (request = {}) => this.client.fetch({
|
|
13412
13457
|
method: 'GET',
|
|
13413
13458
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`,
|
|
@@ -13442,13 +13487,13 @@ let API$j = class API extends API$w {
|
|
|
13442
13487
|
*/
|
|
13443
13488
|
createImage = request => this.client.fetch({
|
|
13444
13489
|
body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
|
|
13445
|
-
headers: jsonContentHeaders$
|
|
13490
|
+
headers: jsonContentHeaders$h,
|
|
13446
13491
|
method: 'POST',
|
|
13447
13492
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
|
|
13448
13493
|
}, unmarshalCreateImageResponse);
|
|
13449
13494
|
_setImage = request => this.client.fetch({
|
|
13450
13495
|
body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
|
|
13451
|
-
headers: jsonContentHeaders$
|
|
13496
|
+
headers: jsonContentHeaders$h,
|
|
13452
13497
|
method: 'PUT',
|
|
13453
13498
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
|
|
13454
13499
|
}, unmarshalSetImageResponse);
|
|
@@ -13487,7 +13532,7 @@ let API$j = class API extends API$w {
|
|
|
13487
13532
|
*/
|
|
13488
13533
|
createSnapshot = (request = {}) => this.client.fetch({
|
|
13489
13534
|
body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
|
|
13490
|
-
headers: jsonContentHeaders$
|
|
13535
|
+
headers: jsonContentHeaders$h,
|
|
13491
13536
|
method: 'POST',
|
|
13492
13537
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
13493
13538
|
}, unmarshalCreateSnapshotResponse);
|
|
@@ -13504,7 +13549,7 @@ let API$j = class API extends API$w {
|
|
|
13504
13549
|
}, unmarshalGetSnapshotResponse);
|
|
13505
13550
|
_setSnapshot = request => this.client.fetch({
|
|
13506
13551
|
body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
|
|
13507
|
-
headers: jsonContentHeaders$
|
|
13552
|
+
headers: jsonContentHeaders$h,
|
|
13508
13553
|
method: 'PUT',
|
|
13509
13554
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
13510
13555
|
}, unmarshalSetSnapshotResponse);
|
|
@@ -13528,7 +13573,7 @@ let API$j = class API extends API$w {
|
|
|
13528
13573
|
*/
|
|
13529
13574
|
exportSnapshot = request => this.client.fetch({
|
|
13530
13575
|
body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
|
|
13531
|
-
headers: jsonContentHeaders$
|
|
13576
|
+
headers: jsonContentHeaders$h,
|
|
13532
13577
|
method: 'POST',
|
|
13533
13578
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
|
|
13534
13579
|
}, unmarshalExportSnapshotResponse);
|
|
@@ -13556,7 +13601,7 @@ let API$j = class API extends API$w {
|
|
|
13556
13601
|
*/
|
|
13557
13602
|
createVolume = (request = {}) => this.client.fetch({
|
|
13558
13603
|
body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
|
|
13559
|
-
headers: jsonContentHeaders$
|
|
13604
|
+
headers: jsonContentHeaders$h,
|
|
13560
13605
|
method: 'POST',
|
|
13561
13606
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
13562
13607
|
}, unmarshalCreateVolumeResponse);
|
|
@@ -13582,7 +13627,7 @@ let API$j = class API extends API$w {
|
|
|
13582
13627
|
*/
|
|
13583
13628
|
updateVolume = request => this.client.fetch({
|
|
13584
13629
|
body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
|
|
13585
|
-
headers: jsonContentHeaders$
|
|
13630
|
+
headers: jsonContentHeaders$h,
|
|
13586
13631
|
method: 'PATCH',
|
|
13587
13632
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
13588
13633
|
}, unmarshalUpdateVolumeResponse);
|
|
@@ -13619,7 +13664,7 @@ let API$j = class API extends API$w {
|
|
|
13619
13664
|
*/
|
|
13620
13665
|
createSecurityGroup = request => this.client.fetch({
|
|
13621
13666
|
body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
|
|
13622
|
-
headers: jsonContentHeaders$
|
|
13667
|
+
headers: jsonContentHeaders$h,
|
|
13623
13668
|
method: 'POST',
|
|
13624
13669
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
13625
13670
|
}, unmarshalCreateSecurityGroupResponse);
|
|
@@ -13647,7 +13692,7 @@ let API$j = class API extends API$w {
|
|
|
13647
13692
|
});
|
|
13648
13693
|
_setSecurityGroup = request => this.client.fetch({
|
|
13649
13694
|
body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
|
|
13650
|
-
headers: jsonContentHeaders$
|
|
13695
|
+
headers: jsonContentHeaders$h,
|
|
13651
13696
|
method: 'PUT',
|
|
13652
13697
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
|
|
13653
13698
|
}, unmarshalSetSecurityGroupResponse);
|
|
@@ -13685,7 +13730,7 @@ let API$j = class API extends API$w {
|
|
|
13685
13730
|
*/
|
|
13686
13731
|
createSecurityGroupRule = request => this.client.fetch({
|
|
13687
13732
|
body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13688
|
-
headers: jsonContentHeaders$
|
|
13733
|
+
headers: jsonContentHeaders$h,
|
|
13689
13734
|
method: 'POST',
|
|
13690
13735
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13691
13736
|
}, unmarshalCreateSecurityGroupRuleResponse);
|
|
@@ -13701,7 +13746,7 @@ let API$j = class API extends API$w {
|
|
|
13701
13746
|
*/
|
|
13702
13747
|
setSecurityGroupRules = request => this.client.fetch({
|
|
13703
13748
|
body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
|
|
13704
|
-
headers: jsonContentHeaders$
|
|
13749
|
+
headers: jsonContentHeaders$h,
|
|
13705
13750
|
method: 'PUT',
|
|
13706
13751
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13707
13752
|
}, unmarshalSetSecurityGroupRulesResponse);
|
|
@@ -13728,7 +13773,7 @@ let API$j = class API extends API$w {
|
|
|
13728
13773
|
}, unmarshalGetSecurityGroupRuleResponse);
|
|
13729
13774
|
_setSecurityGroupRule = request => this.client.fetch({
|
|
13730
13775
|
body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13731
|
-
headers: jsonContentHeaders$
|
|
13776
|
+
headers: jsonContentHeaders$h,
|
|
13732
13777
|
method: 'PUT',
|
|
13733
13778
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
|
|
13734
13779
|
}, unmarshalSetSecurityGroupRuleResponse);
|
|
@@ -13756,7 +13801,7 @@ let API$j = class API extends API$w {
|
|
|
13756
13801
|
*/
|
|
13757
13802
|
createPlacementGroup = (request = {}) => this.client.fetch({
|
|
13758
13803
|
body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
|
|
13759
|
-
headers: jsonContentHeaders$
|
|
13804
|
+
headers: jsonContentHeaders$h,
|
|
13760
13805
|
method: 'POST',
|
|
13761
13806
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
13762
13807
|
}, unmarshalCreatePlacementGroupResponse);
|
|
@@ -13780,7 +13825,7 @@ let API$j = class API extends API$w {
|
|
|
13780
13825
|
*/
|
|
13781
13826
|
setPlacementGroup = request => this.client.fetch({
|
|
13782
13827
|
body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
|
|
13783
|
-
headers: jsonContentHeaders$
|
|
13828
|
+
headers: jsonContentHeaders$h,
|
|
13784
13829
|
method: 'PUT',
|
|
13785
13830
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13786
13831
|
}, unmarshalSetPlacementGroupResponse);
|
|
@@ -13794,7 +13839,7 @@ let API$j = class API extends API$w {
|
|
|
13794
13839
|
*/
|
|
13795
13840
|
updatePlacementGroup = request => this.client.fetch({
|
|
13796
13841
|
body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
|
|
13797
|
-
headers: jsonContentHeaders$
|
|
13842
|
+
headers: jsonContentHeaders$h,
|
|
13798
13843
|
method: 'PATCH',
|
|
13799
13844
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13800
13845
|
}, unmarshalUpdatePlacementGroupResponse);
|
|
@@ -13830,7 +13875,7 @@ let API$j = class API extends API$w {
|
|
|
13830
13875
|
*/
|
|
13831
13876
|
setPlacementGroupServers = request => this.client.fetch({
|
|
13832
13877
|
body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
|
|
13833
|
-
headers: jsonContentHeaders$
|
|
13878
|
+
headers: jsonContentHeaders$h,
|
|
13834
13879
|
method: 'PUT',
|
|
13835
13880
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13836
13881
|
}, unmarshalSetPlacementGroupServersResponse);
|
|
@@ -13844,7 +13889,7 @@ let API$j = class API extends API$w {
|
|
|
13844
13889
|
*/
|
|
13845
13890
|
updatePlacementGroupServers = request => this.client.fetch({
|
|
13846
13891
|
body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
|
|
13847
|
-
headers: jsonContentHeaders$
|
|
13892
|
+
headers: jsonContentHeaders$h,
|
|
13848
13893
|
method: 'PATCH',
|
|
13849
13894
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13850
13895
|
}, unmarshalUpdatePlacementGroupServersResponse);
|
|
@@ -13871,7 +13916,7 @@ let API$j = class API extends API$w {
|
|
|
13871
13916
|
*/
|
|
13872
13917
|
createIp = (request = {}) => this.client.fetch({
|
|
13873
13918
|
body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
|
|
13874
|
-
headers: jsonContentHeaders$
|
|
13919
|
+
headers: jsonContentHeaders$h,
|
|
13875
13920
|
method: 'POST',
|
|
13876
13921
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
13877
13922
|
}, unmarshalCreateIpResponse);
|
|
@@ -13896,7 +13941,7 @@ let API$j = class API extends API$w {
|
|
|
13896
13941
|
*/
|
|
13897
13942
|
updateIp = request => this.client.fetch({
|
|
13898
13943
|
body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
|
|
13899
|
-
headers: jsonContentHeaders$
|
|
13944
|
+
headers: jsonContentHeaders$h,
|
|
13900
13945
|
method: 'PATCH',
|
|
13901
13946
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
|
|
13902
13947
|
}, unmarshalUpdateIpResponse);
|
|
@@ -13932,7 +13977,7 @@ let API$j = class API extends API$w {
|
|
|
13932
13977
|
*/
|
|
13933
13978
|
createPrivateNIC = request => this.client.fetch({
|
|
13934
13979
|
body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
|
|
13935
|
-
headers: jsonContentHeaders$
|
|
13980
|
+
headers: jsonContentHeaders$h,
|
|
13936
13981
|
method: 'POST',
|
|
13937
13982
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
|
|
13938
13983
|
}, unmarshalCreatePrivateNICResponse);
|
|
@@ -13957,7 +14002,7 @@ let API$j = class API extends API$w {
|
|
|
13957
14002
|
*/
|
|
13958
14003
|
updatePrivateNIC = request => this.client.fetch({
|
|
13959
14004
|
body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
|
|
13960
|
-
headers: jsonContentHeaders$
|
|
14005
|
+
headers: jsonContentHeaders$h,
|
|
13961
14006
|
method: 'PATCH',
|
|
13962
14007
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
|
|
13963
14008
|
}, unmarshalPrivateNIC);
|
|
@@ -14017,7 +14062,7 @@ let API$j = class API extends API$w {
|
|
|
14017
14062
|
*/
|
|
14018
14063
|
planBlockMigration = (request = {}) => this.client.fetch({
|
|
14019
14064
|
body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
|
|
14020
|
-
headers: jsonContentHeaders$
|
|
14065
|
+
headers: jsonContentHeaders$h,
|
|
14021
14066
|
method: 'POST',
|
|
14022
14067
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
|
|
14023
14068
|
}, unmarshalMigrationPlan);
|
|
@@ -14032,7 +14077,7 @@ let API$j = class API extends API$w {
|
|
|
14032
14077
|
*/
|
|
14033
14078
|
applyBlockMigration = request => this.client.fetch({
|
|
14034
14079
|
body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
|
|
14035
|
-
headers: jsonContentHeaders$
|
|
14080
|
+
headers: jsonContentHeaders$h,
|
|
14036
14081
|
method: 'POST',
|
|
14037
14082
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
|
|
14038
14083
|
});
|
|
@@ -14134,7 +14179,7 @@ const validateNotUndefined = obj => {
|
|
|
14134
14179
|
if (obj === undefined) throw new TypeError(`object was found undefined`);
|
|
14135
14180
|
return obj;
|
|
14136
14181
|
};
|
|
14137
|
-
class InstanceV1UtilsAPI extends API$
|
|
14182
|
+
class InstanceV1UtilsAPI extends API$i {
|
|
14138
14183
|
/**
|
|
14139
14184
|
* Waits for {@link Image} to be in a final state.
|
|
14140
14185
|
*
|
|
@@ -14952,7 +14997,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
|
|
|
14952
14997
|
|
|
14953
14998
|
// This file was automatically generated. DO NOT EDIT.
|
|
14954
14999
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
14955
|
-
const jsonContentHeaders$
|
|
15000
|
+
const jsonContentHeaders$g = {
|
|
14956
15001
|
'Content-Type': 'application/json; charset=utf-8'
|
|
14957
15002
|
};
|
|
14958
15003
|
|
|
@@ -14961,7 +15006,7 @@ const jsonContentHeaders$h = {
|
|
|
14961
15006
|
*
|
|
14962
15007
|
* This API allows you to manage IoT hubs and devices.
|
|
14963
15008
|
*/
|
|
14964
|
-
let API$
|
|
15009
|
+
let API$h = class API extends API$v {
|
|
14965
15010
|
/** Lists the available regions of the API. */
|
|
14966
15011
|
static LOCALITIES = ['fr-par'];
|
|
14967
15012
|
pageOfListHubs = (request = {}) => this.client.fetch({
|
|
@@ -14989,7 +15034,7 @@ let API$i = class API extends API$w {
|
|
|
14989
15034
|
*/
|
|
14990
15035
|
createHub = request => this.client.fetch({
|
|
14991
15036
|
body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
|
|
14992
|
-
headers: jsonContentHeaders$
|
|
15037
|
+
headers: jsonContentHeaders$g,
|
|
14993
15038
|
method: 'POST',
|
|
14994
15039
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
|
|
14995
15040
|
}, unmarshalHub);
|
|
@@ -15025,7 +15070,7 @@ let API$i = class API extends API$w {
|
|
|
15025
15070
|
*/
|
|
15026
15071
|
updateHub = request => this.client.fetch({
|
|
15027
15072
|
body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
|
|
15028
|
-
headers: jsonContentHeaders$
|
|
15073
|
+
headers: jsonContentHeaders$g,
|
|
15029
15074
|
method: 'PATCH',
|
|
15030
15075
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
|
|
15031
15076
|
}, unmarshalHub);
|
|
@@ -15038,7 +15083,7 @@ let API$i = class API extends API$w {
|
|
|
15038
15083
|
*/
|
|
15039
15084
|
enableHub = request => this.client.fetch({
|
|
15040
15085
|
body: '{}',
|
|
15041
|
-
headers: jsonContentHeaders$
|
|
15086
|
+
headers: jsonContentHeaders$g,
|
|
15042
15087
|
method: 'POST',
|
|
15043
15088
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
|
|
15044
15089
|
}, unmarshalHub);
|
|
@@ -15051,7 +15096,7 @@ let API$i = class API extends API$w {
|
|
|
15051
15096
|
*/
|
|
15052
15097
|
disableHub = request => this.client.fetch({
|
|
15053
15098
|
body: '{}',
|
|
15054
|
-
headers: jsonContentHeaders$
|
|
15099
|
+
headers: jsonContentHeaders$g,
|
|
15055
15100
|
method: 'POST',
|
|
15056
15101
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
|
|
15057
15102
|
}, unmarshalHub);
|
|
@@ -15091,7 +15136,7 @@ let API$i = class API extends API$w {
|
|
|
15091
15136
|
*/
|
|
15092
15137
|
setHubCA = request => this.client.fetch({
|
|
15093
15138
|
body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
|
|
15094
|
-
headers: jsonContentHeaders$
|
|
15139
|
+
headers: jsonContentHeaders$g,
|
|
15095
15140
|
method: 'POST',
|
|
15096
15141
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
|
|
15097
15142
|
}, unmarshalHub);
|
|
@@ -15131,7 +15176,7 @@ let API$i = class API extends API$w {
|
|
|
15131
15176
|
*/
|
|
15132
15177
|
createDevice = request => this.client.fetch({
|
|
15133
15178
|
body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
|
|
15134
|
-
headers: jsonContentHeaders$
|
|
15179
|
+
headers: jsonContentHeaders$g,
|
|
15135
15180
|
method: 'POST',
|
|
15136
15181
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
|
|
15137
15182
|
}, unmarshalCreateDeviceResponse);
|
|
@@ -15158,7 +15203,7 @@ let API$i = class API extends API$w {
|
|
|
15158
15203
|
*/
|
|
15159
15204
|
updateDevice = request => this.client.fetch({
|
|
15160
15205
|
body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
|
|
15161
|
-
headers: jsonContentHeaders$
|
|
15206
|
+
headers: jsonContentHeaders$g,
|
|
15162
15207
|
method: 'PATCH',
|
|
15163
15208
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
|
|
15164
15209
|
}, unmarshalDevice);
|
|
@@ -15171,7 +15216,7 @@ let API$i = class API extends API$w {
|
|
|
15171
15216
|
*/
|
|
15172
15217
|
enableDevice = request => this.client.fetch({
|
|
15173
15218
|
body: '{}',
|
|
15174
|
-
headers: jsonContentHeaders$
|
|
15219
|
+
headers: jsonContentHeaders$g,
|
|
15175
15220
|
method: 'POST',
|
|
15176
15221
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
|
|
15177
15222
|
}, unmarshalDevice);
|
|
@@ -15184,7 +15229,7 @@ let API$i = class API extends API$w {
|
|
|
15184
15229
|
*/
|
|
15185
15230
|
disableDevice = request => this.client.fetch({
|
|
15186
15231
|
body: '{}',
|
|
15187
|
-
headers: jsonContentHeaders$
|
|
15232
|
+
headers: jsonContentHeaders$g,
|
|
15188
15233
|
method: 'POST',
|
|
15189
15234
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
|
|
15190
15235
|
}, unmarshalDevice);
|
|
@@ -15198,7 +15243,7 @@ let API$i = class API extends API$w {
|
|
|
15198
15243
|
*/
|
|
15199
15244
|
renewDeviceCertificate = request => this.client.fetch({
|
|
15200
15245
|
body: '{}',
|
|
15201
|
-
headers: jsonContentHeaders$
|
|
15246
|
+
headers: jsonContentHeaders$g,
|
|
15202
15247
|
method: 'POST',
|
|
15203
15248
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
|
|
15204
15249
|
}, unmarshalRenewDeviceCertificateResponse);
|
|
@@ -15212,7 +15257,7 @@ let API$i = class API extends API$w {
|
|
|
15212
15257
|
*/
|
|
15213
15258
|
setDeviceCertificate = request => this.client.fetch({
|
|
15214
15259
|
body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
|
|
15215
|
-
headers: jsonContentHeaders$
|
|
15260
|
+
headers: jsonContentHeaders$g,
|
|
15216
15261
|
method: 'PUT',
|
|
15217
15262
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
|
|
15218
15263
|
}, unmarshalSetDeviceCertificateResponse);
|
|
@@ -15287,7 +15332,7 @@ let API$i = class API extends API$w {
|
|
|
15287
15332
|
*/
|
|
15288
15333
|
createRoute = request => this.client.fetch({
|
|
15289
15334
|
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
15290
|
-
headers: jsonContentHeaders$
|
|
15335
|
+
headers: jsonContentHeaders$g,
|
|
15291
15336
|
method: 'POST',
|
|
15292
15337
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
15293
15338
|
}, unmarshalRoute$1);
|
|
@@ -15301,7 +15346,7 @@ let API$i = class API extends API$w {
|
|
|
15301
15346
|
*/
|
|
15302
15347
|
updateRoute = request => this.client.fetch({
|
|
15303
15348
|
body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
|
|
15304
|
-
headers: jsonContentHeaders$
|
|
15349
|
+
headers: jsonContentHeaders$g,
|
|
15305
15350
|
method: 'PATCH',
|
|
15306
15351
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
15307
15352
|
}, unmarshalRoute$1);
|
|
@@ -15353,7 +15398,7 @@ let API$i = class API extends API$w {
|
|
|
15353
15398
|
*/
|
|
15354
15399
|
createNetwork = request => this.client.fetch({
|
|
15355
15400
|
body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
|
|
15356
|
-
headers: jsonContentHeaders$
|
|
15401
|
+
headers: jsonContentHeaders$g,
|
|
15357
15402
|
method: 'POST',
|
|
15358
15403
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
|
|
15359
15404
|
}, unmarshalCreateNetworkResponse);
|
|
@@ -15401,7 +15446,7 @@ let API$i = class API extends API$w {
|
|
|
15401
15446
|
*/
|
|
15402
15447
|
putTwinDocument = request => this.client.fetch({
|
|
15403
15448
|
body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
|
|
15404
|
-
headers: jsonContentHeaders$
|
|
15449
|
+
headers: jsonContentHeaders$g,
|
|
15405
15450
|
method: 'PUT',
|
|
15406
15451
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15407
15452
|
}, unmarshalTwinDocument);
|
|
@@ -15414,7 +15459,7 @@ let API$i = class API extends API$w {
|
|
|
15414
15459
|
*/
|
|
15415
15460
|
patchTwinDocument = request => this.client.fetch({
|
|
15416
15461
|
body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
|
|
15417
|
-
headers: jsonContentHeaders$
|
|
15462
|
+
headers: jsonContentHeaders$g,
|
|
15418
15463
|
method: 'PATCH',
|
|
15419
15464
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15420
15465
|
}, unmarshalTwinDocument);
|
|
@@ -15454,15 +15499,15 @@ let API$i = class API extends API$w {
|
|
|
15454
15499
|
// This file was automatically generated. DO NOT EDIT.
|
|
15455
15500
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15456
15501
|
|
|
15457
|
-
var index_gen$
|
|
15502
|
+
var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
15458
15503
|
__proto__: null,
|
|
15459
|
-
API: API$
|
|
15504
|
+
API: API$h,
|
|
15460
15505
|
HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
|
|
15461
15506
|
});
|
|
15462
15507
|
|
|
15463
15508
|
var index$i = /*#__PURE__*/Object.freeze({
|
|
15464
15509
|
__proto__: null,
|
|
15465
|
-
v1: index_gen$
|
|
15510
|
+
v1: index_gen$h
|
|
15466
15511
|
});
|
|
15467
15512
|
|
|
15468
15513
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -15540,7 +15585,7 @@ const marshalUpdateIPRequest$1 = (request, defaults) => ({
|
|
|
15540
15585
|
|
|
15541
15586
|
// This file was automatically generated. DO NOT EDIT.
|
|
15542
15587
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15543
|
-
const jsonContentHeaders$
|
|
15588
|
+
const jsonContentHeaders$f = {
|
|
15544
15589
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15545
15590
|
};
|
|
15546
15591
|
|
|
@@ -15550,7 +15595,7 @@ const jsonContentHeaders$g = {
|
|
|
15550
15595
|
* This API allows you to manage IP addresses with Scaleway's IP Address
|
|
15551
15596
|
* Management tool.
|
|
15552
15597
|
*/
|
|
15553
|
-
let API$
|
|
15598
|
+
let API$g = class API extends API$v {
|
|
15554
15599
|
/** Lists the available regions of the API. */
|
|
15555
15600
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15556
15601
|
|
|
@@ -15563,7 +15608,7 @@ let API$h = class API extends API$w {
|
|
|
15563
15608
|
*/
|
|
15564
15609
|
bookIP = request => this.client.fetch({
|
|
15565
15610
|
body: JSON.stringify(marshalBookIPRequest(request, this.client.settings)),
|
|
15566
|
-
headers: jsonContentHeaders$
|
|
15611
|
+
headers: jsonContentHeaders$f,
|
|
15567
15612
|
method: 'POST',
|
|
15568
15613
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
|
|
15569
15614
|
}, unmarshalIP$1);
|
|
@@ -15576,7 +15621,7 @@ let API$h = class API extends API$w {
|
|
|
15576
15621
|
*/
|
|
15577
15622
|
releaseIP = request => this.client.fetch({
|
|
15578
15623
|
body: '{}',
|
|
15579
|
-
headers: jsonContentHeaders$
|
|
15624
|
+
headers: jsonContentHeaders$f,
|
|
15580
15625
|
method: 'DELETE',
|
|
15581
15626
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15582
15627
|
});
|
|
@@ -15600,7 +15645,7 @@ let API$h = class API extends API$w {
|
|
|
15600
15645
|
*/
|
|
15601
15646
|
updateIP = request => this.client.fetch({
|
|
15602
15647
|
body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
|
|
15603
|
-
headers: jsonContentHeaders$
|
|
15648
|
+
headers: jsonContentHeaders$f,
|
|
15604
15649
|
method: 'PATCH',
|
|
15605
15650
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15606
15651
|
}, unmarshalIP$1);
|
|
@@ -15647,15 +15692,15 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
15647
15692
|
// This file was automatically generated. DO NOT EDIT.
|
|
15648
15693
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15649
15694
|
|
|
15650
|
-
var index_gen$
|
|
15695
|
+
var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
15651
15696
|
__proto__: null,
|
|
15652
|
-
API: API$
|
|
15697
|
+
API: API$g,
|
|
15653
15698
|
ValidationRules: validationRules_gen$5
|
|
15654
15699
|
});
|
|
15655
15700
|
|
|
15656
15701
|
var index$h = /*#__PURE__*/Object.freeze({
|
|
15657
15702
|
__proto__: null,
|
|
15658
|
-
v1: index_gen$
|
|
15703
|
+
v1: index_gen$g
|
|
15659
15704
|
});
|
|
15660
15705
|
|
|
15661
15706
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -15838,12 +15883,12 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
15838
15883
|
|
|
15839
15884
|
// This file was automatically generated. DO NOT EDIT.
|
|
15840
15885
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15841
|
-
const jsonContentHeaders$
|
|
15886
|
+
const jsonContentHeaders$e = {
|
|
15842
15887
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15843
15888
|
};
|
|
15844
15889
|
|
|
15845
15890
|
/** IPFS Pinning service API. */
|
|
15846
|
-
let API$
|
|
15891
|
+
let API$f = class API extends API$v {
|
|
15847
15892
|
/** Lists the available regions of the API. */
|
|
15848
15893
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15849
15894
|
|
|
@@ -15859,7 +15904,7 @@ let API$g = class API extends API$w {
|
|
|
15859
15904
|
*/
|
|
15860
15905
|
createVolume = request => this.client.fetch({
|
|
15861
15906
|
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
15862
|
-
headers: jsonContentHeaders$
|
|
15907
|
+
headers: jsonContentHeaders$e,
|
|
15863
15908
|
method: 'POST',
|
|
15864
15909
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`
|
|
15865
15910
|
}, unmarshalVolume$1);
|
|
@@ -15898,7 +15943,7 @@ let API$g = class API extends API$w {
|
|
|
15898
15943
|
*/
|
|
15899
15944
|
updateVolume = request => this.client.fetch({
|
|
15900
15945
|
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
15901
|
-
headers: jsonContentHeaders$
|
|
15946
|
+
headers: jsonContentHeaders$e,
|
|
15902
15947
|
method: 'PATCH',
|
|
15903
15948
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
15904
15949
|
}, unmarshalVolume$1);
|
|
@@ -15929,7 +15974,7 @@ let API$g = class API extends API$w {
|
|
|
15929
15974
|
*/
|
|
15930
15975
|
createPinByURL = request => this.client.fetch({
|
|
15931
15976
|
body: JSON.stringify(marshalCreatePinByURLRequest(request, this.client.settings)),
|
|
15932
|
-
headers: jsonContentHeaders$
|
|
15977
|
+
headers: jsonContentHeaders$e,
|
|
15933
15978
|
method: 'POST',
|
|
15934
15979
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-url`
|
|
15935
15980
|
}, unmarshalPin);
|
|
@@ -15948,7 +15993,7 @@ let API$g = class API extends API$w {
|
|
|
15948
15993
|
*/
|
|
15949
15994
|
createPinByCID = request => this.client.fetch({
|
|
15950
15995
|
body: JSON.stringify(marshalCreatePinByCIDRequest(request, this.client.settings)),
|
|
15951
|
-
headers: jsonContentHeaders$
|
|
15996
|
+
headers: jsonContentHeaders$e,
|
|
15952
15997
|
method: 'POST',
|
|
15953
15998
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-cid`
|
|
15954
15999
|
}, unmarshalPin);
|
|
@@ -15969,7 +16014,7 @@ let API$g = class API extends API$w {
|
|
|
15969
16014
|
*/
|
|
15970
16015
|
replacePin = request => this.client.fetch({
|
|
15971
16016
|
body: JSON.stringify(marshalReplacePinRequest(request, this.client.settings)),
|
|
15972
|
-
headers: jsonContentHeaders$
|
|
16017
|
+
headers: jsonContentHeaders$e,
|
|
15973
16018
|
method: 'POST',
|
|
15974
16019
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}/replace`
|
|
15975
16020
|
}, unmarshalReplacePinResponse);
|
|
@@ -16025,7 +16070,7 @@ let API$g = class API extends API$w {
|
|
|
16025
16070
|
};
|
|
16026
16071
|
|
|
16027
16072
|
/** IPFS Naming service API. */
|
|
16028
|
-
class IpnsAPI extends API$
|
|
16073
|
+
class IpnsAPI extends API$v {
|
|
16029
16074
|
/** Lists the available regions of the API. */
|
|
16030
16075
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16031
16076
|
|
|
@@ -16038,7 +16083,7 @@ class IpnsAPI extends API$w {
|
|
|
16038
16083
|
*/
|
|
16039
16084
|
createName = request => this.client.fetch({
|
|
16040
16085
|
body: JSON.stringify(marshalIpnsApiCreateNameRequest(request, this.client.settings)),
|
|
16041
|
-
headers: jsonContentHeaders$
|
|
16086
|
+
headers: jsonContentHeaders$e,
|
|
16042
16087
|
method: 'POST',
|
|
16043
16088
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
|
|
16044
16089
|
}, unmarshalName);
|
|
@@ -16095,7 +16140,7 @@ class IpnsAPI extends API$w {
|
|
|
16095
16140
|
*/
|
|
16096
16141
|
updateName = request => this.client.fetch({
|
|
16097
16142
|
body: JSON.stringify(marshalIpnsApiUpdateNameRequest(request, this.client.settings)),
|
|
16098
|
-
headers: jsonContentHeaders$
|
|
16143
|
+
headers: jsonContentHeaders$e,
|
|
16099
16144
|
method: 'PATCH',
|
|
16100
16145
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
|
|
16101
16146
|
}, unmarshalName);
|
|
@@ -16119,7 +16164,7 @@ class IpnsAPI extends API$w {
|
|
|
16119
16164
|
*/
|
|
16120
16165
|
importKeyName = request => this.client.fetch({
|
|
16121
16166
|
body: JSON.stringify(marshalIpnsApiImportKeyNameRequest(request, this.client.settings)),
|
|
16122
|
-
headers: jsonContentHeaders$
|
|
16167
|
+
headers: jsonContentHeaders$e,
|
|
16123
16168
|
method: 'POST',
|
|
16124
16169
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
|
|
16125
16170
|
}, unmarshalName);
|
|
@@ -16128,9 +16173,9 @@ class IpnsAPI extends API$w {
|
|
|
16128
16173
|
// This file was automatically generated. DO NOT EDIT.
|
|
16129
16174
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16130
16175
|
|
|
16131
|
-
var index_gen$
|
|
16176
|
+
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
16132
16177
|
__proto__: null,
|
|
16133
|
-
API: API$
|
|
16178
|
+
API: API$f,
|
|
16134
16179
|
IpnsAPI: IpnsAPI,
|
|
16135
16180
|
NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
|
|
16136
16181
|
PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
|
|
@@ -16138,7 +16183,7 @@ var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
|
16138
16183
|
|
|
16139
16184
|
var index$g = /*#__PURE__*/Object.freeze({
|
|
16140
16185
|
__proto__: null,
|
|
16141
|
-
v1alpha1: index_gen$
|
|
16186
|
+
v1alpha1: index_gen$f
|
|
16142
16187
|
});
|
|
16143
16188
|
|
|
16144
16189
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -16222,12 +16267,12 @@ const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
|
|
|
16222
16267
|
|
|
16223
16268
|
// This file was automatically generated. DO NOT EDIT.
|
|
16224
16269
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16225
|
-
const jsonContentHeaders$
|
|
16270
|
+
const jsonContentHeaders$d = {
|
|
16226
16271
|
'Content-Type': 'application/json; charset=utf-8'
|
|
16227
16272
|
};
|
|
16228
16273
|
|
|
16229
16274
|
/** Serverless Jobs API. */
|
|
16230
|
-
let API$
|
|
16275
|
+
let API$e = class API extends API$v {
|
|
16231
16276
|
/** Lists the available regions of the API. */
|
|
16232
16277
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16233
16278
|
getServiceInfo = (request = {}) => this.client.fetch({
|
|
@@ -16236,7 +16281,7 @@ let API$f = class API extends API$w {
|
|
|
16236
16281
|
}, unmarshalServiceInfo);
|
|
16237
16282
|
createJobDefinition = request => this.client.fetch({
|
|
16238
16283
|
body: JSON.stringify(marshalCreateJobDefinitionRequest(request, this.client.settings)),
|
|
16239
|
-
headers: jsonContentHeaders$
|
|
16284
|
+
headers: jsonContentHeaders$d,
|
|
16240
16285
|
method: 'POST',
|
|
16241
16286
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`
|
|
16242
16287
|
}, unmarshalJobDefinition);
|
|
@@ -16252,7 +16297,7 @@ let API$f = class API extends API$w {
|
|
|
16252
16297
|
listJobDefinitions = (request = {}) => enrichForPagination('jobDefinitions', this.pageOfListJobDefinitions, request);
|
|
16253
16298
|
updateJobDefinition = request => this.client.fetch({
|
|
16254
16299
|
body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
|
|
16255
|
-
headers: jsonContentHeaders$
|
|
16300
|
+
headers: jsonContentHeaders$d,
|
|
16256
16301
|
method: 'PATCH',
|
|
16257
16302
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
|
|
16258
16303
|
}, unmarshalJobDefinition);
|
|
@@ -16262,7 +16307,7 @@ let API$f = class API extends API$w {
|
|
|
16262
16307
|
});
|
|
16263
16308
|
startJobDefinition = request => this.client.fetch({
|
|
16264
16309
|
body: '{}',
|
|
16265
|
-
headers: jsonContentHeaders$
|
|
16310
|
+
headers: jsonContentHeaders$d,
|
|
16266
16311
|
method: 'POST',
|
|
16267
16312
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}/start`
|
|
16268
16313
|
}, unmarshalJobRun);
|
|
@@ -16272,7 +16317,7 @@ let API$f = class API extends API$w {
|
|
|
16272
16317
|
}, unmarshalJobRun);
|
|
16273
16318
|
stopJobRun = request => this.client.fetch({
|
|
16274
16319
|
body: '{}',
|
|
16275
|
-
headers: jsonContentHeaders$
|
|
16320
|
+
headers: jsonContentHeaders$d,
|
|
16276
16321
|
method: 'POST',
|
|
16277
16322
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}/stop`
|
|
16278
16323
|
}, unmarshalJobRun);
|
|
@@ -16297,11 +16342,14 @@ const CreateJobDefinitionRequest = {
|
|
|
16297
16342
|
cpuLimit: {
|
|
16298
16343
|
greaterThan: 0
|
|
16299
16344
|
},
|
|
16345
|
+
imageUri: {
|
|
16346
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
16347
|
+
},
|
|
16300
16348
|
memoryLimit: {
|
|
16301
16349
|
greaterThan: 0
|
|
16302
16350
|
},
|
|
16303
16351
|
name: {
|
|
16304
|
-
|
|
16352
|
+
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
16305
16353
|
}
|
|
16306
16354
|
};
|
|
16307
16355
|
const ListJobDefinitionsRequest = {
|
|
@@ -16326,11 +16374,14 @@ const UpdateJobDefinitionRequest = {
|
|
|
16326
16374
|
cpuLimit: {
|
|
16327
16375
|
greaterThan: 0
|
|
16328
16376
|
},
|
|
16377
|
+
imageUri: {
|
|
16378
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
16379
|
+
},
|
|
16329
16380
|
memoryLimit: {
|
|
16330
16381
|
greaterThan: 0
|
|
16331
16382
|
},
|
|
16332
16383
|
name: {
|
|
16333
|
-
|
|
16384
|
+
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
16334
16385
|
}
|
|
16335
16386
|
};
|
|
16336
16387
|
|
|
@@ -16345,16 +16396,16 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
|
16345
16396
|
// This file was automatically generated. DO NOT EDIT.
|
|
16346
16397
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16347
16398
|
|
|
16348
|
-
var index_gen$
|
|
16399
|
+
var index_gen$e = /*#__PURE__*/Object.freeze({
|
|
16349
16400
|
__proto__: null,
|
|
16350
|
-
API: API$
|
|
16401
|
+
API: API$e,
|
|
16351
16402
|
JOB_RUN_TRANSIENT_STATUSES: JOB_RUN_TRANSIENT_STATUSES,
|
|
16352
16403
|
ValidationRules: validationRules_gen$4
|
|
16353
16404
|
});
|
|
16354
16405
|
|
|
16355
16406
|
var index$f = /*#__PURE__*/Object.freeze({
|
|
16356
16407
|
__proto__: null,
|
|
16357
|
-
v1alpha1: index_gen$
|
|
16408
|
+
v1alpha1: index_gen$e
|
|
16358
16409
|
});
|
|
16359
16410
|
|
|
16360
16411
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -16787,12 +16838,12 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
|
|
|
16787
16838
|
|
|
16788
16839
|
// This file was automatically generated. DO NOT EDIT.
|
|
16789
16840
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16790
|
-
const jsonContentHeaders$
|
|
16841
|
+
const jsonContentHeaders$c = {
|
|
16791
16842
|
'Content-Type': 'application/json; charset=utf-8'
|
|
16792
16843
|
};
|
|
16793
16844
|
|
|
16794
16845
|
/** Kubernetes API. */
|
|
16795
|
-
let API$
|
|
16846
|
+
let API$d = class API extends API$v {
|
|
16796
16847
|
/** Lists the available regions of the API. */
|
|
16797
16848
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16798
16849
|
pageOfListClusters = (request = {}) => this.client.fetch({
|
|
@@ -16817,7 +16868,7 @@ let API$e = class API extends API$w {
|
|
|
16817
16868
|
*/
|
|
16818
16869
|
createCluster = request => this.client.fetch({
|
|
16819
16870
|
body: JSON.stringify(marshalCreateClusterRequest$1(request, this.client.settings)),
|
|
16820
|
-
headers: jsonContentHeaders$
|
|
16871
|
+
headers: jsonContentHeaders$c,
|
|
16821
16872
|
method: 'POST',
|
|
16822
16873
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters`
|
|
16823
16874
|
}, unmarshalCluster$1);
|
|
@@ -16852,7 +16903,7 @@ let API$e = class API extends API$w {
|
|
|
16852
16903
|
*/
|
|
16853
16904
|
updateCluster = request => this.client.fetch({
|
|
16854
16905
|
body: JSON.stringify(marshalUpdateClusterRequest$1(request, this.client.settings)),
|
|
16855
|
-
headers: jsonContentHeaders$
|
|
16906
|
+
headers: jsonContentHeaders$c,
|
|
16856
16907
|
method: 'PATCH',
|
|
16857
16908
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
|
|
16858
16909
|
}, unmarshalCluster$1);
|
|
@@ -16880,7 +16931,7 @@ let API$e = class API extends API$w {
|
|
|
16880
16931
|
*/
|
|
16881
16932
|
upgradeCluster = request => this.client.fetch({
|
|
16882
16933
|
body: JSON.stringify(marshalUpgradeClusterRequest(request, this.client.settings)),
|
|
16883
|
-
headers: jsonContentHeaders$
|
|
16934
|
+
headers: jsonContentHeaders$c,
|
|
16884
16935
|
method: 'POST',
|
|
16885
16936
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/upgrade`
|
|
16886
16937
|
}, unmarshalCluster$1);
|
|
@@ -16896,7 +16947,7 @@ let API$e = class API extends API$w {
|
|
|
16896
16947
|
*/
|
|
16897
16948
|
setClusterType = request => this.client.fetch({
|
|
16898
16949
|
body: JSON.stringify(marshalSetClusterTypeRequest(request, this.client.settings)),
|
|
16899
|
-
headers: jsonContentHeaders$
|
|
16950
|
+
headers: jsonContentHeaders$c,
|
|
16900
16951
|
method: 'POST',
|
|
16901
16952
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/set-type`
|
|
16902
16953
|
}, unmarshalCluster$1);
|
|
@@ -16944,7 +16995,7 @@ let API$e = class API extends API$w {
|
|
|
16944
16995
|
*/
|
|
16945
16996
|
resetClusterAdminToken = request => this.client.fetch({
|
|
16946
16997
|
body: '{}',
|
|
16947
|
-
headers: jsonContentHeaders$
|
|
16998
|
+
headers: jsonContentHeaders$c,
|
|
16948
16999
|
method: 'POST',
|
|
16949
17000
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`
|
|
16950
17001
|
});
|
|
@@ -16959,7 +17010,7 @@ let API$e = class API extends API$w {
|
|
|
16959
17010
|
*/
|
|
16960
17011
|
migrateToPrivateNetworkCluster = request => this.client.fetch({
|
|
16961
17012
|
body: JSON.stringify(marshalMigrateToPrivateNetworkClusterRequest(request, this.client.settings)),
|
|
16962
|
-
headers: jsonContentHeaders$
|
|
17013
|
+
headers: jsonContentHeaders$c,
|
|
16963
17014
|
method: 'POST',
|
|
16964
17015
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-private-network`
|
|
16965
17016
|
}, unmarshalCluster$1);
|
|
@@ -16987,7 +17038,7 @@ let API$e = class API extends API$w {
|
|
|
16987
17038
|
*/
|
|
16988
17039
|
createPool = request => this.client.fetch({
|
|
16989
17040
|
body: JSON.stringify(marshalCreatePoolRequest(request, this.client.settings)),
|
|
16990
|
-
headers: jsonContentHeaders$
|
|
17041
|
+
headers: jsonContentHeaders$c,
|
|
16991
17042
|
method: 'POST',
|
|
16992
17043
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/pools`
|
|
16993
17044
|
}, unmarshalPool);
|
|
@@ -17023,7 +17074,7 @@ let API$e = class API extends API$w {
|
|
|
17023
17074
|
*/
|
|
17024
17075
|
upgradePool = request => this.client.fetch({
|
|
17025
17076
|
body: JSON.stringify(marshalUpgradePoolRequest(request, this.client.settings)),
|
|
17026
|
-
headers: jsonContentHeaders$
|
|
17077
|
+
headers: jsonContentHeaders$c,
|
|
17027
17078
|
method: 'POST',
|
|
17028
17079
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/upgrade`
|
|
17029
17080
|
}, unmarshalPool);
|
|
@@ -17037,7 +17088,7 @@ let API$e = class API extends API$w {
|
|
|
17037
17088
|
*/
|
|
17038
17089
|
updatePool = request => this.client.fetch({
|
|
17039
17090
|
body: JSON.stringify(marshalUpdatePoolRequest(request, this.client.settings)),
|
|
17040
|
-
headers: jsonContentHeaders$
|
|
17091
|
+
headers: jsonContentHeaders$c,
|
|
17041
17092
|
method: 'PATCH',
|
|
17042
17093
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}`
|
|
17043
17094
|
}, unmarshalPool);
|
|
@@ -17064,7 +17115,7 @@ let API$e = class API extends API$w {
|
|
|
17064
17115
|
*/
|
|
17065
17116
|
createExternalNode = request => this.client.fetch({
|
|
17066
17117
|
body: '{}',
|
|
17067
|
-
headers: jsonContentHeaders$
|
|
17118
|
+
headers: jsonContentHeaders$c,
|
|
17068
17119
|
method: 'POST',
|
|
17069
17120
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/external-nodes`
|
|
17070
17121
|
}, unmarshalExternalNode);
|
|
@@ -17117,7 +17168,7 @@ let API$e = class API extends API$w {
|
|
|
17117
17168
|
*/
|
|
17118
17169
|
replaceNode = request => this.client.fetch({
|
|
17119
17170
|
body: '{}',
|
|
17120
|
-
headers: jsonContentHeaders$
|
|
17171
|
+
headers: jsonContentHeaders$c,
|
|
17121
17172
|
method: 'POST',
|
|
17122
17173
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/replace`
|
|
17123
17174
|
}, unmarshalNode);
|
|
@@ -17134,7 +17185,7 @@ let API$e = class API extends API$w {
|
|
|
17134
17185
|
*/
|
|
17135
17186
|
rebootNode = request => this.client.fetch({
|
|
17136
17187
|
body: '{}',
|
|
17137
|
-
headers: jsonContentHeaders$
|
|
17188
|
+
headers: jsonContentHeaders$c,
|
|
17138
17189
|
method: 'POST',
|
|
17139
17190
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/reboot`
|
|
17140
17191
|
}, unmarshalNode);
|
|
@@ -17191,7 +17242,7 @@ let API$e = class API extends API$w {
|
|
|
17191
17242
|
listClusterTypes = (request = {}) => enrichForPagination('clusterTypes', this.pageOfListClusterTypes, request);
|
|
17192
17243
|
};
|
|
17193
17244
|
|
|
17194
|
-
class K8SUtilsAPI extends API$
|
|
17245
|
+
class K8SUtilsAPI extends API$d {
|
|
17195
17246
|
/**
|
|
17196
17247
|
* Get configuration of a kube cluster.
|
|
17197
17248
|
*
|
|
@@ -18382,7 +18433,7 @@ const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
|
|
|
18382
18433
|
|
|
18383
18434
|
// This file was automatically generated. DO NOT EDIT.
|
|
18384
18435
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
18385
|
-
const jsonContentHeaders$
|
|
18436
|
+
const jsonContentHeaders$b = {
|
|
18386
18437
|
'Content-Type': 'application/json; charset=utf-8'
|
|
18387
18438
|
};
|
|
18388
18439
|
|
|
@@ -18391,7 +18442,7 @@ const jsonContentHeaders$c = {
|
|
|
18391
18442
|
*
|
|
18392
18443
|
* This API allows you to manage your Scaleway Load Balancer services.
|
|
18393
18444
|
*/
|
|
18394
|
-
class ZonedAPI extends API$
|
|
18445
|
+
class ZonedAPI extends API$v {
|
|
18395
18446
|
/** Lists the available zones of the API. */
|
|
18396
18447
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
|
|
18397
18448
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -18421,7 +18472,7 @@ class ZonedAPI extends API$w {
|
|
|
18421
18472
|
*/
|
|
18422
18473
|
createLb = request => this.client.fetch({
|
|
18423
18474
|
body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
|
|
18424
|
-
headers: jsonContentHeaders$
|
|
18475
|
+
headers: jsonContentHeaders$b,
|
|
18425
18476
|
method: 'POST',
|
|
18426
18477
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`
|
|
18427
18478
|
}, unmarshalLb);
|
|
@@ -18458,7 +18509,7 @@ class ZonedAPI extends API$w {
|
|
|
18458
18509
|
*/
|
|
18459
18510
|
updateLb = request => this.client.fetch({
|
|
18460
18511
|
body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
|
|
18461
|
-
headers: jsonContentHeaders$
|
|
18512
|
+
headers: jsonContentHeaders$b,
|
|
18462
18513
|
method: 'PUT',
|
|
18463
18514
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
18464
18515
|
}, unmarshalLb);
|
|
@@ -18487,7 +18538,7 @@ class ZonedAPI extends API$w {
|
|
|
18487
18538
|
*/
|
|
18488
18539
|
migrateLb = request => this.client.fetch({
|
|
18489
18540
|
body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
|
|
18490
|
-
headers: jsonContentHeaders$
|
|
18541
|
+
headers: jsonContentHeaders$b,
|
|
18491
18542
|
method: 'POST',
|
|
18492
18543
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
18493
18544
|
}, unmarshalLb);
|
|
@@ -18517,7 +18568,7 @@ class ZonedAPI extends API$w {
|
|
|
18517
18568
|
*/
|
|
18518
18569
|
createIp = (request = {}) => this.client.fetch({
|
|
18519
18570
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
18520
|
-
headers: jsonContentHeaders$
|
|
18571
|
+
headers: jsonContentHeaders$b,
|
|
18521
18572
|
method: 'POST',
|
|
18522
18573
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
18523
18574
|
}, unmarshalIp);
|
|
@@ -18554,7 +18605,7 @@ class ZonedAPI extends API$w {
|
|
|
18554
18605
|
*/
|
|
18555
18606
|
updateIp = request => this.client.fetch({
|
|
18556
18607
|
body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
|
|
18557
|
-
headers: jsonContentHeaders$
|
|
18608
|
+
headers: jsonContentHeaders$b,
|
|
18558
18609
|
method: 'PATCH',
|
|
18559
18610
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
18560
18611
|
}, unmarshalIp);
|
|
@@ -18587,7 +18638,7 @@ class ZonedAPI extends API$w {
|
|
|
18587
18638
|
*/
|
|
18588
18639
|
createBackend = request => this.client.fetch({
|
|
18589
18640
|
body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
|
|
18590
|
-
headers: jsonContentHeaders$
|
|
18641
|
+
headers: jsonContentHeaders$b,
|
|
18591
18642
|
method: 'POST',
|
|
18592
18643
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
18593
18644
|
}, unmarshalBackend);
|
|
@@ -18616,7 +18667,7 @@ class ZonedAPI extends API$w {
|
|
|
18616
18667
|
*/
|
|
18617
18668
|
updateBackend = request => this.client.fetch({
|
|
18618
18669
|
body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
|
|
18619
|
-
headers: jsonContentHeaders$
|
|
18670
|
+
headers: jsonContentHeaders$b,
|
|
18620
18671
|
method: 'PUT',
|
|
18621
18672
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
18622
18673
|
}, unmarshalBackend);
|
|
@@ -18644,7 +18695,7 @@ class ZonedAPI extends API$w {
|
|
|
18644
18695
|
*/
|
|
18645
18696
|
addBackendServers = request => this.client.fetch({
|
|
18646
18697
|
body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
|
|
18647
|
-
headers: jsonContentHeaders$
|
|
18698
|
+
headers: jsonContentHeaders$b,
|
|
18648
18699
|
method: 'POST',
|
|
18649
18700
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18650
18701
|
}, unmarshalBackend);
|
|
@@ -18659,7 +18710,7 @@ class ZonedAPI extends API$w {
|
|
|
18659
18710
|
*/
|
|
18660
18711
|
removeBackendServers = request => this.client.fetch({
|
|
18661
18712
|
body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
|
|
18662
|
-
headers: jsonContentHeaders$
|
|
18713
|
+
headers: jsonContentHeaders$b,
|
|
18663
18714
|
method: 'DELETE',
|
|
18664
18715
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18665
18716
|
}, unmarshalBackend);
|
|
@@ -18675,7 +18726,7 @@ class ZonedAPI extends API$w {
|
|
|
18675
18726
|
*/
|
|
18676
18727
|
setBackendServers = request => this.client.fetch({
|
|
18677
18728
|
body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
|
|
18678
|
-
headers: jsonContentHeaders$
|
|
18729
|
+
headers: jsonContentHeaders$b,
|
|
18679
18730
|
method: 'PUT',
|
|
18680
18731
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18681
18732
|
}, unmarshalBackend);
|
|
@@ -18691,7 +18742,7 @@ class ZonedAPI extends API$w {
|
|
|
18691
18742
|
*/
|
|
18692
18743
|
updateHealthCheck = request => this.client.fetch({
|
|
18693
18744
|
body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
|
|
18694
|
-
headers: jsonContentHeaders$
|
|
18745
|
+
headers: jsonContentHeaders$b,
|
|
18695
18746
|
method: 'PUT',
|
|
18696
18747
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
18697
18748
|
}, unmarshalHealthCheck);
|
|
@@ -18724,7 +18775,7 @@ class ZonedAPI extends API$w {
|
|
|
18724
18775
|
*/
|
|
18725
18776
|
createFrontend = request => this.client.fetch({
|
|
18726
18777
|
body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
|
|
18727
|
-
headers: jsonContentHeaders$
|
|
18778
|
+
headers: jsonContentHeaders$b,
|
|
18728
18779
|
method: 'POST',
|
|
18729
18780
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
18730
18781
|
}, unmarshalFrontend);
|
|
@@ -18754,7 +18805,7 @@ class ZonedAPI extends API$w {
|
|
|
18754
18805
|
*/
|
|
18755
18806
|
updateFrontend = request => this.client.fetch({
|
|
18756
18807
|
body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
|
|
18757
|
-
headers: jsonContentHeaders$
|
|
18808
|
+
headers: jsonContentHeaders$b,
|
|
18758
18809
|
method: 'PUT',
|
|
18759
18810
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
18760
18811
|
}, unmarshalFrontend);
|
|
@@ -18796,7 +18847,7 @@ class ZonedAPI extends API$w {
|
|
|
18796
18847
|
*/
|
|
18797
18848
|
createRoute = request => this.client.fetch({
|
|
18798
18849
|
body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
|
|
18799
|
-
headers: jsonContentHeaders$
|
|
18850
|
+
headers: jsonContentHeaders$b,
|
|
18800
18851
|
method: 'POST',
|
|
18801
18852
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes`
|
|
18802
18853
|
}, unmarshalRoute);
|
|
@@ -18823,7 +18874,7 @@ class ZonedAPI extends API$w {
|
|
|
18823
18874
|
*/
|
|
18824
18875
|
updateRoute = request => this.client.fetch({
|
|
18825
18876
|
body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
|
|
18826
|
-
headers: jsonContentHeaders$
|
|
18877
|
+
headers: jsonContentHeaders$b,
|
|
18827
18878
|
method: 'PUT',
|
|
18828
18879
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
18829
18880
|
}, unmarshalRoute);
|
|
@@ -18893,7 +18944,7 @@ class ZonedAPI extends API$w {
|
|
|
18893
18944
|
*/
|
|
18894
18945
|
createAcl = request => this.client.fetch({
|
|
18895
18946
|
body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
|
|
18896
|
-
headers: jsonContentHeaders$
|
|
18947
|
+
headers: jsonContentHeaders$b,
|
|
18897
18948
|
method: 'POST',
|
|
18898
18949
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
18899
18950
|
}, unmarshalAcl);
|
|
@@ -18920,7 +18971,7 @@ class ZonedAPI extends API$w {
|
|
|
18920
18971
|
*/
|
|
18921
18972
|
updateAcl = request => this.client.fetch({
|
|
18922
18973
|
body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
|
|
18923
|
-
headers: jsonContentHeaders$
|
|
18974
|
+
headers: jsonContentHeaders$b,
|
|
18924
18975
|
method: 'PUT',
|
|
18925
18976
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
18926
18977
|
}, unmarshalAcl);
|
|
@@ -18946,7 +18997,7 @@ class ZonedAPI extends API$w {
|
|
|
18946
18997
|
*/
|
|
18947
18998
|
setAcls = request => this.client.fetch({
|
|
18948
18999
|
body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
|
|
18949
|
-
headers: jsonContentHeaders$
|
|
19000
|
+
headers: jsonContentHeaders$b,
|
|
18950
19001
|
method: 'PUT',
|
|
18951
19002
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
18952
19003
|
}, unmarshalSetAclsResponse);
|
|
@@ -18961,7 +19012,7 @@ class ZonedAPI extends API$w {
|
|
|
18961
19012
|
*/
|
|
18962
19013
|
createCertificate = request => this.client.fetch({
|
|
18963
19014
|
body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
|
|
18964
|
-
headers: jsonContentHeaders$
|
|
19015
|
+
headers: jsonContentHeaders$b,
|
|
18965
19016
|
method: 'POST',
|
|
18966
19017
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
18967
19018
|
}, unmarshalCertificate);
|
|
@@ -19014,7 +19065,7 @@ class ZonedAPI extends API$w {
|
|
|
19014
19065
|
*/
|
|
19015
19066
|
updateCertificate = request => this.client.fetch({
|
|
19016
19067
|
body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
|
|
19017
|
-
headers: jsonContentHeaders$
|
|
19068
|
+
headers: jsonContentHeaders$b,
|
|
19018
19069
|
method: 'PUT',
|
|
19019
19070
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
19020
19071
|
}, unmarshalCertificate);
|
|
@@ -19056,7 +19107,7 @@ class ZonedAPI extends API$w {
|
|
|
19056
19107
|
*/
|
|
19057
19108
|
createSubscriber = request => this.client.fetch({
|
|
19058
19109
|
body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
|
|
19059
|
-
headers: jsonContentHeaders$
|
|
19110
|
+
headers: jsonContentHeaders$b,
|
|
19060
19111
|
method: 'POST',
|
|
19061
19112
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`
|
|
19062
19113
|
}, unmarshalSubscriber);
|
|
@@ -19100,7 +19151,7 @@ class ZonedAPI extends API$w {
|
|
|
19100
19151
|
*/
|
|
19101
19152
|
updateSubscriber = request => this.client.fetch({
|
|
19102
19153
|
body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
|
|
19103
|
-
headers: jsonContentHeaders$
|
|
19154
|
+
headers: jsonContentHeaders$b,
|
|
19104
19155
|
method: 'PUT',
|
|
19105
19156
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
19106
19157
|
}, unmarshalSubscriber);
|
|
@@ -19125,7 +19176,7 @@ class ZonedAPI extends API$w {
|
|
|
19125
19176
|
*/
|
|
19126
19177
|
subscribeToLb = request => this.client.fetch({
|
|
19127
19178
|
body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
|
|
19128
|
-
headers: jsonContentHeaders$
|
|
19179
|
+
headers: jsonContentHeaders$b,
|
|
19129
19180
|
method: 'POST',
|
|
19130
19181
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
19131
19182
|
}, unmarshalLb);
|
|
@@ -19170,7 +19221,7 @@ class ZonedAPI extends API$w {
|
|
|
19170
19221
|
*/
|
|
19171
19222
|
attachPrivateNetwork = request => this.client.fetch({
|
|
19172
19223
|
body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
19173
|
-
headers: jsonContentHeaders$
|
|
19224
|
+
headers: jsonContentHeaders$b,
|
|
19174
19225
|
method: 'POST',
|
|
19175
19226
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
19176
19227
|
}, unmarshalPrivateNetwork$3);
|
|
@@ -19183,7 +19234,7 @@ class ZonedAPI extends API$w {
|
|
|
19183
19234
|
*/
|
|
19184
19235
|
detachPrivateNetwork = request => this.client.fetch({
|
|
19185
19236
|
body: '{}',
|
|
19186
|
-
headers: jsonContentHeaders$
|
|
19237
|
+
headers: jsonContentHeaders$b,
|
|
19187
19238
|
method: 'POST',
|
|
19188
19239
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
19189
19240
|
});
|
|
@@ -19194,7 +19245,7 @@ class ZonedAPI extends API$w {
|
|
|
19194
19245
|
*
|
|
19195
19246
|
* This API allows you to manage your load balancer service.
|
|
19196
19247
|
*/
|
|
19197
|
-
let API$
|
|
19248
|
+
let API$c = class API extends API$v {
|
|
19198
19249
|
/** Lists the available regions of the API. */
|
|
19199
19250
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
19200
19251
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -19219,7 +19270,7 @@ let API$d = class API extends API$w {
|
|
|
19219
19270
|
*/
|
|
19220
19271
|
createLb = request => this.client.fetch({
|
|
19221
19272
|
body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
|
|
19222
|
-
headers: jsonContentHeaders$
|
|
19273
|
+
headers: jsonContentHeaders$b,
|
|
19223
19274
|
method: 'POST',
|
|
19224
19275
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`
|
|
19225
19276
|
}, unmarshalLb);
|
|
@@ -19252,7 +19303,7 @@ let API$d = class API extends API$w {
|
|
|
19252
19303
|
*/
|
|
19253
19304
|
updateLb = request => this.client.fetch({
|
|
19254
19305
|
body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
|
|
19255
|
-
headers: jsonContentHeaders$
|
|
19306
|
+
headers: jsonContentHeaders$b,
|
|
19256
19307
|
method: 'PUT',
|
|
19257
19308
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
19258
19309
|
}, unmarshalLb);
|
|
@@ -19276,7 +19327,7 @@ let API$d = class API extends API$w {
|
|
|
19276
19327
|
*/
|
|
19277
19328
|
migrateLb = request => this.client.fetch({
|
|
19278
19329
|
body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
|
|
19279
|
-
headers: jsonContentHeaders$
|
|
19330
|
+
headers: jsonContentHeaders$b,
|
|
19280
19331
|
method: 'POST',
|
|
19281
19332
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
19282
19333
|
}, unmarshalLb);
|
|
@@ -19302,7 +19353,7 @@ let API$d = class API extends API$w {
|
|
|
19302
19353
|
*/
|
|
19303
19354
|
createIp = (request = {}) => this.client.fetch({
|
|
19304
19355
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
19305
|
-
headers: jsonContentHeaders$
|
|
19356
|
+
headers: jsonContentHeaders$b,
|
|
19306
19357
|
method: 'POST',
|
|
19307
19358
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
|
|
19308
19359
|
}, unmarshalIp);
|
|
@@ -19336,7 +19387,7 @@ let API$d = class API extends API$w {
|
|
|
19336
19387
|
*/
|
|
19337
19388
|
updateIp = request => this.client.fetch({
|
|
19338
19389
|
body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
|
|
19339
|
-
headers: jsonContentHeaders$
|
|
19390
|
+
headers: jsonContentHeaders$b,
|
|
19340
19391
|
method: 'PATCH',
|
|
19341
19392
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
19342
19393
|
}, unmarshalIp);
|
|
@@ -19362,7 +19413,7 @@ let API$d = class API extends API$w {
|
|
|
19362
19413
|
*/
|
|
19363
19414
|
createBackend = request => this.client.fetch({
|
|
19364
19415
|
body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
|
|
19365
|
-
headers: jsonContentHeaders$
|
|
19416
|
+
headers: jsonContentHeaders$b,
|
|
19366
19417
|
method: 'POST',
|
|
19367
19418
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
19368
19419
|
}, unmarshalBackend);
|
|
@@ -19386,7 +19437,7 @@ let API$d = class API extends API$w {
|
|
|
19386
19437
|
*/
|
|
19387
19438
|
updateBackend = request => this.client.fetch({
|
|
19388
19439
|
body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
|
|
19389
|
-
headers: jsonContentHeaders$
|
|
19440
|
+
headers: jsonContentHeaders$b,
|
|
19390
19441
|
method: 'PUT',
|
|
19391
19442
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
19392
19443
|
}, unmarshalBackend);
|
|
@@ -19409,7 +19460,7 @@ let API$d = class API extends API$w {
|
|
|
19409
19460
|
*/
|
|
19410
19461
|
addBackendServers = request => this.client.fetch({
|
|
19411
19462
|
body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
|
|
19412
|
-
headers: jsonContentHeaders$
|
|
19463
|
+
headers: jsonContentHeaders$b,
|
|
19413
19464
|
method: 'POST',
|
|
19414
19465
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
19415
19466
|
}, unmarshalBackend);
|
|
@@ -19422,7 +19473,7 @@ let API$d = class API extends API$w {
|
|
|
19422
19473
|
*/
|
|
19423
19474
|
removeBackendServers = request => this.client.fetch({
|
|
19424
19475
|
body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
|
|
19425
|
-
headers: jsonContentHeaders$
|
|
19476
|
+
headers: jsonContentHeaders$b,
|
|
19426
19477
|
method: 'DELETE',
|
|
19427
19478
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
19428
19479
|
}, unmarshalBackend);
|
|
@@ -19435,7 +19486,7 @@ let API$d = class API extends API$w {
|
|
|
19435
19486
|
*/
|
|
19436
19487
|
setBackendServers = request => this.client.fetch({
|
|
19437
19488
|
body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
|
|
19438
|
-
headers: jsonContentHeaders$
|
|
19489
|
+
headers: jsonContentHeaders$b,
|
|
19439
19490
|
method: 'PUT',
|
|
19440
19491
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
19441
19492
|
}, unmarshalBackend);
|
|
@@ -19448,7 +19499,7 @@ let API$d = class API extends API$w {
|
|
|
19448
19499
|
*/
|
|
19449
19500
|
updateHealthCheck = request => this.client.fetch({
|
|
19450
19501
|
body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
|
|
19451
|
-
headers: jsonContentHeaders$
|
|
19502
|
+
headers: jsonContentHeaders$b,
|
|
19452
19503
|
method: 'PUT',
|
|
19453
19504
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
19454
19505
|
}, unmarshalHealthCheck);
|
|
@@ -19474,7 +19525,7 @@ let API$d = class API extends API$w {
|
|
|
19474
19525
|
*/
|
|
19475
19526
|
createFrontend = request => this.client.fetch({
|
|
19476
19527
|
body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
|
|
19477
|
-
headers: jsonContentHeaders$
|
|
19528
|
+
headers: jsonContentHeaders$b,
|
|
19478
19529
|
method: 'POST',
|
|
19479
19530
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
19480
19531
|
}, unmarshalFrontend);
|
|
@@ -19498,7 +19549,7 @@ let API$d = class API extends API$w {
|
|
|
19498
19549
|
*/
|
|
19499
19550
|
updateFrontend = request => this.client.fetch({
|
|
19500
19551
|
body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
|
|
19501
|
-
headers: jsonContentHeaders$
|
|
19552
|
+
headers: jsonContentHeaders$b,
|
|
19502
19553
|
method: 'PUT',
|
|
19503
19554
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
19504
19555
|
}, unmarshalFrontend);
|
|
@@ -19534,7 +19585,7 @@ let API$d = class API extends API$w {
|
|
|
19534
19585
|
*/
|
|
19535
19586
|
createRoute = request => this.client.fetch({
|
|
19536
19587
|
body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
|
|
19537
|
-
headers: jsonContentHeaders$
|
|
19588
|
+
headers: jsonContentHeaders$b,
|
|
19538
19589
|
method: 'POST',
|
|
19539
19590
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
19540
19591
|
}, unmarshalRoute);
|
|
@@ -19558,7 +19609,7 @@ let API$d = class API extends API$w {
|
|
|
19558
19609
|
*/
|
|
19559
19610
|
updateRoute = request => this.client.fetch({
|
|
19560
19611
|
body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
|
|
19561
|
-
headers: jsonContentHeaders$
|
|
19612
|
+
headers: jsonContentHeaders$b,
|
|
19562
19613
|
method: 'PUT',
|
|
19563
19614
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
19564
19615
|
}, unmarshalRoute);
|
|
@@ -19620,7 +19671,7 @@ let API$d = class API extends API$w {
|
|
|
19620
19671
|
*/
|
|
19621
19672
|
createAcl = request => this.client.fetch({
|
|
19622
19673
|
body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
|
|
19623
|
-
headers: jsonContentHeaders$
|
|
19674
|
+
headers: jsonContentHeaders$b,
|
|
19624
19675
|
method: 'POST',
|
|
19625
19676
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
19626
19677
|
}, unmarshalAcl);
|
|
@@ -19644,7 +19695,7 @@ let API$d = class API extends API$w {
|
|
|
19644
19695
|
*/
|
|
19645
19696
|
updateAcl = request => this.client.fetch({
|
|
19646
19697
|
body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
|
|
19647
|
-
headers: jsonContentHeaders$
|
|
19698
|
+
headers: jsonContentHeaders$b,
|
|
19648
19699
|
method: 'PUT',
|
|
19649
19700
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
19650
19701
|
}, unmarshalAcl);
|
|
@@ -19668,7 +19719,7 @@ let API$d = class API extends API$w {
|
|
|
19668
19719
|
*/
|
|
19669
19720
|
createCertificate = request => this.client.fetch({
|
|
19670
19721
|
body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
|
|
19671
|
-
headers: jsonContentHeaders$
|
|
19722
|
+
headers: jsonContentHeaders$b,
|
|
19672
19723
|
method: 'POST',
|
|
19673
19724
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
19674
19725
|
}, unmarshalCertificate);
|
|
@@ -19714,7 +19765,7 @@ let API$d = class API extends API$w {
|
|
|
19714
19765
|
*/
|
|
19715
19766
|
updateCertificate = request => this.client.fetch({
|
|
19716
19767
|
body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
|
|
19717
|
-
headers: jsonContentHeaders$
|
|
19768
|
+
headers: jsonContentHeaders$b,
|
|
19718
19769
|
method: 'PUT',
|
|
19719
19770
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
19720
19771
|
}, unmarshalCertificate);
|
|
@@ -19750,7 +19801,7 @@ let API$d = class API extends API$w {
|
|
|
19750
19801
|
*/
|
|
19751
19802
|
createSubscriber = request => this.client.fetch({
|
|
19752
19803
|
body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
|
|
19753
|
-
headers: jsonContentHeaders$
|
|
19804
|
+
headers: jsonContentHeaders$b,
|
|
19754
19805
|
method: 'POST',
|
|
19755
19806
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`
|
|
19756
19807
|
}, unmarshalSubscriber);
|
|
@@ -19787,7 +19838,7 @@ let API$d = class API extends API$w {
|
|
|
19787
19838
|
*/
|
|
19788
19839
|
updateSubscriber = request => this.client.fetch({
|
|
19789
19840
|
body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
|
|
19790
|
-
headers: jsonContentHeaders$
|
|
19841
|
+
headers: jsonContentHeaders$b,
|
|
19791
19842
|
method: 'PUT',
|
|
19792
19843
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
19793
19844
|
}, unmarshalSubscriber);
|
|
@@ -19810,7 +19861,7 @@ let API$d = class API extends API$w {
|
|
|
19810
19861
|
*/
|
|
19811
19862
|
subscribeToLb = request => this.client.fetch({
|
|
19812
19863
|
body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
|
|
19813
|
-
headers: jsonContentHeaders$
|
|
19864
|
+
headers: jsonContentHeaders$b,
|
|
19814
19865
|
method: 'POST',
|
|
19815
19866
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
19816
19867
|
}, unmarshalLb);
|
|
@@ -19847,7 +19898,7 @@ let API$d = class API extends API$w {
|
|
|
19847
19898
|
*/
|
|
19848
19899
|
attachPrivateNetwork = request => this.client.fetch({
|
|
19849
19900
|
body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
19850
|
-
headers: jsonContentHeaders$
|
|
19901
|
+
headers: jsonContentHeaders$b,
|
|
19851
19902
|
method: 'POST',
|
|
19852
19903
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
19853
19904
|
}, unmarshalPrivateNetwork$3);
|
|
@@ -19859,13 +19910,13 @@ let API$d = class API extends API$w {
|
|
|
19859
19910
|
*/
|
|
19860
19911
|
detachPrivateNetwork = request => this.client.fetch({
|
|
19861
19912
|
body: '{}',
|
|
19862
|
-
headers: jsonContentHeaders$
|
|
19913
|
+
headers: jsonContentHeaders$b,
|
|
19863
19914
|
method: 'POST',
|
|
19864
19915
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
19865
19916
|
});
|
|
19866
19917
|
};
|
|
19867
19918
|
|
|
19868
|
-
class LbV1UtilsAPI extends API$
|
|
19919
|
+
class LbV1UtilsAPI extends API$c {
|
|
19869
19920
|
/**
|
|
19870
19921
|
* Waits for all private networks of a load balancer to be in a final state.
|
|
19871
19922
|
*
|
|
@@ -20047,7 +20098,7 @@ const unmarshalListVersionsResponse$1 = data => {
|
|
|
20047
20098
|
// This file was automatically generated. DO NOT EDIT.
|
|
20048
20099
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20049
20100
|
/** Marketplace API. */
|
|
20050
|
-
let API$
|
|
20101
|
+
let API$b = class API extends API$v {
|
|
20051
20102
|
pageOfListImages = (request = {}) => this.client.fetch({
|
|
20052
20103
|
method: 'GET',
|
|
20053
20104
|
path: `/marketplace/v1/images`,
|
|
@@ -20085,9 +20136,9 @@ let API$c = class API extends API$w {
|
|
|
20085
20136
|
// This file was automatically generated. DO NOT EDIT.
|
|
20086
20137
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20087
20138
|
|
|
20088
|
-
var index_gen$
|
|
20139
|
+
var index_gen$d = /*#__PURE__*/Object.freeze({
|
|
20089
20140
|
__proto__: null,
|
|
20090
|
-
API: API$
|
|
20141
|
+
API: API$b
|
|
20091
20142
|
});
|
|
20092
20143
|
|
|
20093
20144
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -20183,7 +20234,7 @@ const unmarshalListVersionsResponse = data => {
|
|
|
20183
20234
|
// This file was automatically generated. DO NOT EDIT.
|
|
20184
20235
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20185
20236
|
/** Marketplace API. */
|
|
20186
|
-
let API$
|
|
20237
|
+
let API$a = class API extends API$v {
|
|
20187
20238
|
pageOfListImages = request => this.client.fetch({
|
|
20188
20239
|
method: 'GET',
|
|
20189
20240
|
path: `/marketplace/v2/images`,
|
|
@@ -20307,303 +20358,15 @@ let API$b = class API extends API$w {
|
|
|
20307
20358
|
// This file was automatically generated. DO NOT EDIT.
|
|
20308
20359
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20309
20360
|
|
|
20310
|
-
var index_gen$
|
|
20361
|
+
var index_gen$c = /*#__PURE__*/Object.freeze({
|
|
20311
20362
|
__proto__: null,
|
|
20312
|
-
API: API$
|
|
20363
|
+
API: API$a
|
|
20313
20364
|
});
|
|
20314
20365
|
|
|
20315
20366
|
var index$a = /*#__PURE__*/Object.freeze({
|
|
20316
20367
|
__proto__: null,
|
|
20317
|
-
v1: index_gen$
|
|
20318
|
-
v2: index_gen$
|
|
20319
|
-
});
|
|
20320
|
-
|
|
20321
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
20322
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20323
|
-
const unmarshalNamespace$1 = data => {
|
|
20324
|
-
if (!isJSONObject(data)) {
|
|
20325
|
-
throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
20326
|
-
}
|
|
20327
|
-
return {
|
|
20328
|
-
createdAt: unmarshalDate(data.created_at),
|
|
20329
|
-
endpoint: data.endpoint,
|
|
20330
|
-
id: data.id,
|
|
20331
|
-
name: data.name,
|
|
20332
|
-
projectId: data.project_id,
|
|
20333
|
-
protocol: data.protocol,
|
|
20334
|
-
region: data.region,
|
|
20335
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
20336
|
-
};
|
|
20337
|
-
};
|
|
20338
|
-
const unmarshalPermissions = data => {
|
|
20339
|
-
if (!isJSONObject(data)) {
|
|
20340
|
-
throw new TypeError(`Unmarshalling the type 'Permissions' failed as data isn't a dictionary.`);
|
|
20341
|
-
}
|
|
20342
|
-
return {
|
|
20343
|
-
canManage: data.can_manage,
|
|
20344
|
-
canPublish: data.can_publish,
|
|
20345
|
-
canReceive: data.can_receive
|
|
20346
|
-
};
|
|
20347
|
-
};
|
|
20348
|
-
const unmarshalCredentialNATSCredsFile = data => {
|
|
20349
|
-
if (!isJSONObject(data)) {
|
|
20350
|
-
throw new TypeError(`Unmarshalling the type 'CredentialNATSCredsFile' failed as data isn't a dictionary.`);
|
|
20351
|
-
}
|
|
20352
|
-
return {
|
|
20353
|
-
content: data.content
|
|
20354
|
-
};
|
|
20355
|
-
};
|
|
20356
|
-
const unmarshalCredentialSQSSNSCreds = data => {
|
|
20357
|
-
if (!isJSONObject(data)) {
|
|
20358
|
-
throw new TypeError(`Unmarshalling the type 'CredentialSQSSNSCreds' failed as data isn't a dictionary.`);
|
|
20359
|
-
}
|
|
20360
|
-
return {
|
|
20361
|
-
accessKey: data.access_key,
|
|
20362
|
-
permissions: data.permissions ? unmarshalPermissions(data.permissions) : undefined,
|
|
20363
|
-
secretKey: data.secret_key
|
|
20364
|
-
};
|
|
20365
|
-
};
|
|
20366
|
-
const unmarshalCredential = data => {
|
|
20367
|
-
if (!isJSONObject(data)) {
|
|
20368
|
-
throw new TypeError(`Unmarshalling the type 'Credential' failed as data isn't a dictionary.`);
|
|
20369
|
-
}
|
|
20370
|
-
return {
|
|
20371
|
-
id: data.id,
|
|
20372
|
-
name: data.name,
|
|
20373
|
-
namespaceId: data.namespace_id,
|
|
20374
|
-
natsCredentials: data.nats_credentials ? unmarshalCredentialNATSCredsFile(data.nats_credentials) : undefined,
|
|
20375
|
-
protocol: data.protocol,
|
|
20376
|
-
sqsSnsCredentials: data.sqs_sns_credentials ? unmarshalCredentialSQSSNSCreds(data.sqs_sns_credentials) : undefined
|
|
20377
|
-
};
|
|
20378
|
-
};
|
|
20379
|
-
const unmarshalCredentialSummarySQSSNSCreds = data => {
|
|
20380
|
-
if (!isJSONObject(data)) {
|
|
20381
|
-
throw new TypeError(`Unmarshalling the type 'CredentialSummarySQSSNSCreds' failed as data isn't a dictionary.`);
|
|
20382
|
-
}
|
|
20383
|
-
return {
|
|
20384
|
-
accessKey: data.access_key,
|
|
20385
|
-
permissions: data.permissions ? unmarshalPermissions(data.permissions) : undefined
|
|
20386
|
-
};
|
|
20387
|
-
};
|
|
20388
|
-
const unmarshalCredentialSummary = data => {
|
|
20389
|
-
if (!isJSONObject(data)) {
|
|
20390
|
-
throw new TypeError(`Unmarshalling the type 'CredentialSummary' failed as data isn't a dictionary.`);
|
|
20391
|
-
}
|
|
20392
|
-
return {
|
|
20393
|
-
id: data.id,
|
|
20394
|
-
name: data.name,
|
|
20395
|
-
namespaceId: data.namespace_id,
|
|
20396
|
-
protocol: data.protocol,
|
|
20397
|
-
sqsSnsCredentials: data.sqs_sns_credentials ? unmarshalCredentialSummarySQSSNSCreds(data.sqs_sns_credentials) : undefined
|
|
20398
|
-
};
|
|
20399
|
-
};
|
|
20400
|
-
const unmarshalListCredentialsResponse = data => {
|
|
20401
|
-
if (!isJSONObject(data)) {
|
|
20402
|
-
throw new TypeError(`Unmarshalling the type 'ListCredentialsResponse' failed as data isn't a dictionary.`);
|
|
20403
|
-
}
|
|
20404
|
-
return {
|
|
20405
|
-
credentials: unmarshalArrayOfObject(data.credentials, unmarshalCredentialSummary),
|
|
20406
|
-
totalCount: data.total_count
|
|
20407
|
-
};
|
|
20408
|
-
};
|
|
20409
|
-
const unmarshalListNamespacesResponse$1 = data => {
|
|
20410
|
-
if (!isJSONObject(data)) {
|
|
20411
|
-
throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
20412
|
-
}
|
|
20413
|
-
return {
|
|
20414
|
-
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace$1),
|
|
20415
|
-
totalCount: data.total_count
|
|
20416
|
-
};
|
|
20417
|
-
};
|
|
20418
|
-
const marshalPermissions = (request, defaults) => ({
|
|
20419
|
-
can_manage: request.canManage,
|
|
20420
|
-
can_publish: request.canPublish,
|
|
20421
|
-
can_receive: request.canReceive
|
|
20422
|
-
});
|
|
20423
|
-
const marshalCreateCredentialRequest = (request, defaults) => ({
|
|
20424
|
-
name: request.name || randomName('mnq'),
|
|
20425
|
-
namespace_id: request.namespaceId,
|
|
20426
|
-
permissions: request.permissions !== undefined ? marshalPermissions(request.permissions) : undefined
|
|
20427
|
-
});
|
|
20428
|
-
const marshalCreateNamespaceRequest$1 = (request, defaults) => ({
|
|
20429
|
-
name: request.name || randomName('mnq'),
|
|
20430
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
20431
|
-
protocol: request.protocol
|
|
20432
|
-
});
|
|
20433
|
-
const marshalUpdateCredentialRequest = (request, defaults) => ({
|
|
20434
|
-
name: request.name,
|
|
20435
|
-
permissions: request.permissions !== undefined ? marshalPermissions(request.permissions) : undefined
|
|
20436
|
-
});
|
|
20437
|
-
const marshalUpdateNamespaceRequest$1 = (request, defaults) => ({
|
|
20438
|
-
name: request.name,
|
|
20439
|
-
namespace_id: request.namespaceId
|
|
20440
|
-
});
|
|
20441
|
-
|
|
20442
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
20443
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20444
|
-
const jsonContentHeaders$b = {
|
|
20445
|
-
'Content-Type': 'application/json; charset=utf-8'
|
|
20446
|
-
};
|
|
20447
|
-
|
|
20448
|
-
/**
|
|
20449
|
-
* Messaging and Queuing API.
|
|
20450
|
-
*
|
|
20451
|
-
* This API allows you to manage Scaleway Messaging and Queueing brokers.
|
|
20452
|
-
*/
|
|
20453
|
-
let API$a = class API extends API$w {
|
|
20454
|
-
/** Lists the available regions of the API. */
|
|
20455
|
-
static LOCALITIES = ['fr-par'];
|
|
20456
|
-
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
20457
|
-
method: 'GET',
|
|
20458
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`,
|
|
20459
|
-
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20460
|
-
}, unmarshalListNamespacesResponse$1);
|
|
20461
|
-
|
|
20462
|
-
/**
|
|
20463
|
-
* List namespaces. List all Messaging and Queuing namespaces in the specified
|
|
20464
|
-
* region, for a Scaleway Organization or Project. By default, the namespaces
|
|
20465
|
-
* returned in the list are ordered by creation date in ascending order,
|
|
20466
|
-
* though this can be modified via the `order_by` field.
|
|
20467
|
-
*
|
|
20468
|
-
* @param request - The request {@link ListNamespacesRequest}
|
|
20469
|
-
* @returns A Promise of ListNamespacesResponse
|
|
20470
|
-
*/
|
|
20471
|
-
listNamespaces = (request = {}) => enrichForPagination('namespaces', this.pageOfListNamespaces, request);
|
|
20472
|
-
|
|
20473
|
-
/**
|
|
20474
|
-
* Create a namespace. Create a Messaging and Queuing namespace, set to the
|
|
20475
|
-
* desired protocol.
|
|
20476
|
-
*
|
|
20477
|
-
* @param request - The request {@link CreateNamespaceRequest}
|
|
20478
|
-
* @returns A Promise of Namespace
|
|
20479
|
-
*/
|
|
20480
|
-
createNamespace = request => this.client.fetch({
|
|
20481
|
-
body: JSON.stringify(marshalCreateNamespaceRequest$1(request, this.client.settings)),
|
|
20482
|
-
headers: jsonContentHeaders$b,
|
|
20483
|
-
method: 'POST',
|
|
20484
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
20485
|
-
}, unmarshalNamespace$1);
|
|
20486
|
-
|
|
20487
|
-
/**
|
|
20488
|
-
* Update the name of a namespace. Update the name of a Messaging and Queuing
|
|
20489
|
-
* namespace, specified by its namespace ID.
|
|
20490
|
-
*
|
|
20491
|
-
* @param request - The request {@link UpdateNamespaceRequest}
|
|
20492
|
-
* @returns A Promise of Namespace
|
|
20493
|
-
*/
|
|
20494
|
-
updateNamespace = request => this.client.fetch({
|
|
20495
|
-
body: JSON.stringify(marshalUpdateNamespaceRequest$1(request, this.client.settings)),
|
|
20496
|
-
headers: jsonContentHeaders$b,
|
|
20497
|
-
method: 'PATCH',
|
|
20498
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
20499
|
-
}, unmarshalNamespace$1);
|
|
20500
|
-
|
|
20501
|
-
/**
|
|
20502
|
-
* Get a namespace. Retrieve information about an existing Messaging and
|
|
20503
|
-
* Queuing namespace, identified by its namespace ID. Its full details,
|
|
20504
|
-
* including name, endpoint and protocol, are returned in the response.
|
|
20505
|
-
*
|
|
20506
|
-
* @param request - The request {@link GetNamespaceRequest}
|
|
20507
|
-
* @returns A Promise of Namespace
|
|
20508
|
-
*/
|
|
20509
|
-
getNamespace = request => this.client.fetch({
|
|
20510
|
-
method: 'GET',
|
|
20511
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
20512
|
-
}, unmarshalNamespace$1);
|
|
20513
|
-
|
|
20514
|
-
/**
|
|
20515
|
-
* Delete a namespace. Delete a Messaging and Queuing namespace, specified by
|
|
20516
|
-
* its namespace ID. Note that deleting a namespace is irreversible, and any
|
|
20517
|
-
* URLs, credentials and queued messages belonging to this namespace will also
|
|
20518
|
-
* be deleted.
|
|
20519
|
-
*
|
|
20520
|
-
* @param request - The request {@link DeleteNamespaceRequest}
|
|
20521
|
-
*/
|
|
20522
|
-
deleteNamespace = request => this.client.fetch({
|
|
20523
|
-
method: 'DELETE',
|
|
20524
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
20525
|
-
});
|
|
20526
|
-
|
|
20527
|
-
/**
|
|
20528
|
-
* Create credentials. Create a set of credentials for a Messaging and Queuing
|
|
20529
|
-
* namespace, specified by its namespace ID. If creating credentials for a
|
|
20530
|
-
* NATS namespace, the `permissions` object must not be included in the
|
|
20531
|
-
* request. If creating credentials for an SQS/SNS namespace, the
|
|
20532
|
-
* `permissions` object is required, with all three of its child attributes.
|
|
20533
|
-
*
|
|
20534
|
-
* @param request - The request {@link CreateCredentialRequest}
|
|
20535
|
-
* @returns A Promise of Credential
|
|
20536
|
-
*/
|
|
20537
|
-
createCredential = request => this.client.fetch({
|
|
20538
|
-
body: JSON.stringify(marshalCreateCredentialRequest(request, this.client.settings)),
|
|
20539
|
-
headers: jsonContentHeaders$b,
|
|
20540
|
-
method: 'POST',
|
|
20541
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials`
|
|
20542
|
-
}, unmarshalCredential);
|
|
20543
|
-
|
|
20544
|
-
/**
|
|
20545
|
-
* Delete credentials. Delete a set of credentials, specified by their
|
|
20546
|
-
* credential ID. Deleting credentials is irreversible and cannot be undone.
|
|
20547
|
-
* The credentials can no longer be used to access the namespace.
|
|
20548
|
-
*
|
|
20549
|
-
* @param request - The request {@link DeleteCredentialRequest}
|
|
20550
|
-
*/
|
|
20551
|
-
deleteCredential = request => this.client.fetch({
|
|
20552
|
-
method: 'DELETE',
|
|
20553
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
|
|
20554
|
-
});
|
|
20555
|
-
pageOfListCredentials = (request = {}) => this.client.fetch({
|
|
20556
|
-
method: 'GET',
|
|
20557
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials`,
|
|
20558
|
-
urlParams: urlParams(['namespace_id', request.namespaceId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
20559
|
-
}, unmarshalListCredentialsResponse);
|
|
20560
|
-
|
|
20561
|
-
/**
|
|
20562
|
-
* List credentials. List existing credentials in the specified region. The
|
|
20563
|
-
* response contains only the metadata for the credentials, not the
|
|
20564
|
-
* credentials themselves (for this, use **Get Credentials**).
|
|
20565
|
-
*
|
|
20566
|
-
* @param request - The request {@link ListCredentialsRequest}
|
|
20567
|
-
* @returns A Promise of ListCredentialsResponse
|
|
20568
|
-
*/
|
|
20569
|
-
listCredentials = (request = {}) => enrichForPagination('credentials', this.pageOfListCredentials, request);
|
|
20570
|
-
|
|
20571
|
-
/**
|
|
20572
|
-
* Update credentials. Update a set of credentials. You can update the
|
|
20573
|
-
* credentials' name, or (in the case of SQS/SNS credentials only) their
|
|
20574
|
-
* permissions. To update the name of NATS credentials, do not include the
|
|
20575
|
-
* `permissions` object in your request.
|
|
20576
|
-
*
|
|
20577
|
-
* @param request - The request {@link UpdateCredentialRequest}
|
|
20578
|
-
* @returns A Promise of Credential
|
|
20579
|
-
*/
|
|
20580
|
-
updateCredential = request => this.client.fetch({
|
|
20581
|
-
body: JSON.stringify(marshalUpdateCredentialRequest(request, this.client.settings)),
|
|
20582
|
-
headers: jsonContentHeaders$b,
|
|
20583
|
-
method: 'PATCH',
|
|
20584
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
|
|
20585
|
-
}, unmarshalCredential);
|
|
20586
|
-
|
|
20587
|
-
/**
|
|
20588
|
-
* Get credentials. Retrieve an existing set of credentials, identified by the
|
|
20589
|
-
* `credential_id`. The credentials themselves, as well as their metadata
|
|
20590
|
-
* (protocol, namespace ID etc), are returned in the response.
|
|
20591
|
-
*
|
|
20592
|
-
* @param request - The request {@link GetCredentialRequest}
|
|
20593
|
-
* @returns A Promise of Credential
|
|
20594
|
-
*/
|
|
20595
|
-
getCredential = request => this.client.fetch({
|
|
20596
|
-
method: 'GET',
|
|
20597
|
-
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
|
|
20598
|
-
}, unmarshalCredential);
|
|
20599
|
-
};
|
|
20600
|
-
|
|
20601
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
20602
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20603
|
-
|
|
20604
|
-
var index_gen$c = /*#__PURE__*/Object.freeze({
|
|
20605
|
-
__proto__: null,
|
|
20606
|
-
API: API$a
|
|
20368
|
+
v1: index_gen$d,
|
|
20369
|
+
v2: index_gen$c
|
|
20607
20370
|
});
|
|
20608
20371
|
|
|
20609
20372
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -20824,7 +20587,7 @@ const jsonContentHeaders$a = {
|
|
|
20824
20587
|
*
|
|
20825
20588
|
* This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
|
|
20826
20589
|
*/
|
|
20827
|
-
class NatsAPI extends API$
|
|
20590
|
+
class NatsAPI extends API$v {
|
|
20828
20591
|
/** Lists the available regions of the API. */
|
|
20829
20592
|
static LOCALITIES = ['fr-par'];
|
|
20830
20593
|
|
|
@@ -20960,7 +20723,7 @@ class NatsAPI extends API$w {
|
|
|
20960
20723
|
*
|
|
20961
20724
|
* This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
|
|
20962
20725
|
*/
|
|
20963
|
-
class SnsAPI extends API$
|
|
20726
|
+
class SnsAPI extends API$v {
|
|
20964
20727
|
/** Lists the available regions of the API. */
|
|
20965
20728
|
static LOCALITIES = ['fr-par'];
|
|
20966
20729
|
|
|
@@ -21082,7 +20845,7 @@ class SnsAPI extends API$w {
|
|
|
21082
20845
|
*
|
|
21083
20846
|
* This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
|
|
21084
20847
|
*/
|
|
21085
|
-
class SqsAPI extends API$
|
|
20848
|
+
class SqsAPI extends API$v {
|
|
21086
20849
|
/** Lists the available regions of the API. */
|
|
21087
20850
|
static LOCALITIES = ['fr-par'];
|
|
21088
20851
|
|
|
@@ -21304,7 +21067,6 @@ var index_gen$b = /*#__PURE__*/Object.freeze({
|
|
|
21304
21067
|
|
|
21305
21068
|
var index$9 = /*#__PURE__*/Object.freeze({
|
|
21306
21069
|
__proto__: null,
|
|
21307
|
-
v1alpha1: index_gen$c,
|
|
21308
21070
|
v1beta1: index_gen$b
|
|
21309
21071
|
});
|
|
21310
21072
|
|
|
@@ -22031,7 +21793,7 @@ const jsonContentHeaders$9 = {
|
|
|
22031
21793
|
};
|
|
22032
21794
|
|
|
22033
21795
|
/** Managed Database for PostgreSQL and MySQL API. */
|
|
22034
|
-
let API$9 = class API extends API$
|
|
21796
|
+
let API$9 = class API extends API$v {
|
|
22035
21797
|
/** Lists the available regions of the API. */
|
|
22036
21798
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
22037
21799
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -23248,7 +23010,7 @@ const jsonContentHeaders$8 = {
|
|
|
23248
23010
|
};
|
|
23249
23011
|
|
|
23250
23012
|
/** Managed Database for Redis™ API. */
|
|
23251
|
-
let API$8 = class API extends API$
|
|
23013
|
+
let API$8 = class API extends API$v {
|
|
23252
23014
|
/** Lists the available zones of the API. */
|
|
23253
23015
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
23254
23016
|
|
|
@@ -23742,7 +23504,7 @@ const jsonContentHeaders$7 = {
|
|
|
23742
23504
|
};
|
|
23743
23505
|
|
|
23744
23506
|
/** Container Registry API. */
|
|
23745
|
-
let API$7 = class API extends API$
|
|
23507
|
+
let API$7 = class API extends API$v {
|
|
23746
23508
|
/** Lists the available regions of the API. */
|
|
23747
23509
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
23748
23510
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -24126,7 +23888,7 @@ const jsonContentHeaders$6 = {
|
|
|
24126
23888
|
* Secret Manager API. This API allows you to conveniently store, access and
|
|
24127
23889
|
* share sensitive data.
|
|
24128
23890
|
*/
|
|
24129
|
-
let API$6 = class API extends API$
|
|
23891
|
+
let API$6 = class API extends API$v {
|
|
24130
23892
|
/** Lists the available regions of the API. */
|
|
24131
23893
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
24132
23894
|
|
|
@@ -24339,6 +24101,13 @@ let API$6 = class API extends API$w {
|
|
|
24339
24101
|
* metadata of a secret's given version specified by the `region`,
|
|
24340
24102
|
* `secret_name`, `revision` and `project_id` parameters.
|
|
24341
24103
|
*
|
|
24104
|
+
* This method is deprecated.
|
|
24105
|
+
*
|
|
24106
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
24107
|
+
* filter to specify the secret version desired, then use the
|
|
24108
|
+
* `GetSecretVersion` request.
|
|
24109
|
+
*
|
|
24110
|
+
* @deprecated
|
|
24342
24111
|
* @param request - The request {@link GetSecretVersionByNameRequest}
|
|
24343
24112
|
* @returns A Promise of SecretVersion
|
|
24344
24113
|
*/
|
|
@@ -24387,6 +24156,13 @@ let API$6 = class API extends API$w {
|
|
|
24387
24156
|
* given secret's versions specified by the `secret_name`,`region` and
|
|
24388
24157
|
* `project_id` parameters.
|
|
24389
24158
|
*
|
|
24159
|
+
* This method is deprecated.
|
|
24160
|
+
*
|
|
24161
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
24162
|
+
* filter to specify the secret version desired, then use the
|
|
24163
|
+
* `ListSecretVersions` request.
|
|
24164
|
+
*
|
|
24165
|
+
* @deprecated
|
|
24390
24166
|
* @param request - The request {@link ListSecretVersionsByNameRequest}
|
|
24391
24167
|
* @returns A Promise of ListSecretVersionsResponse
|
|
24392
24168
|
*/
|
|
@@ -24438,6 +24214,13 @@ let API$6 = class API extends API$w {
|
|
|
24438
24214
|
* a secret's version specified by the `region`, `secret_name`, `revision` and
|
|
24439
24215
|
* `project_id` parameters.
|
|
24440
24216
|
*
|
|
24217
|
+
* This method is deprecated.
|
|
24218
|
+
*
|
|
24219
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
24220
|
+
* filter to specify the secret version desired, then use the
|
|
24221
|
+
* `AccessSecretVersion` request.
|
|
24222
|
+
*
|
|
24223
|
+
* @deprecated
|
|
24441
24224
|
* @param request - The request {@link AccessSecretVersionByNameRequest}
|
|
24442
24225
|
* @returns A Promise of AccessSecretVersionResponse
|
|
24443
24226
|
*/
|
|
@@ -24586,7 +24369,7 @@ const jsonContentHeaders$5 = {
|
|
|
24586
24369
|
*
|
|
24587
24370
|
* No Auth Service for end-to-end testing.
|
|
24588
24371
|
*/
|
|
24589
|
-
let API$5 = class API extends API$
|
|
24372
|
+
let API$5 = class API extends API$v {
|
|
24590
24373
|
/**
|
|
24591
24374
|
* Register a user. Register a human and return a access-key and a secret-key
|
|
24592
24375
|
* that must be used in all other commands.
|
|
@@ -24910,7 +24693,7 @@ const jsonContentHeaders$4 = {
|
|
|
24910
24693
|
};
|
|
24911
24694
|
|
|
24912
24695
|
/** Transactional Email API. */
|
|
24913
|
-
let API$4 = class API extends API$
|
|
24696
|
+
let API$4 = class API extends API$v {
|
|
24914
24697
|
/** Lists the available regions of the API. */
|
|
24915
24698
|
static LOCALITIES = ['fr-par'];
|
|
24916
24699
|
|
|
@@ -25151,7 +24934,7 @@ const jsonContentHeaders$3 = {
|
|
|
25151
24934
|
};
|
|
25152
24935
|
|
|
25153
24936
|
/** VPC API. */
|
|
25154
|
-
let API$3 = class API extends API$
|
|
24937
|
+
let API$3 = class API extends API$v {
|
|
25155
24938
|
/** Lists the available zones of the API. */
|
|
25156
24939
|
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'];
|
|
25157
24940
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
@@ -25371,7 +25154,7 @@ const jsonContentHeaders$2 = {
|
|
|
25371
25154
|
};
|
|
25372
25155
|
|
|
25373
25156
|
/** VPC API. */
|
|
25374
|
-
let API$2 = class API extends API$
|
|
25157
|
+
let API$2 = class API extends API$v {
|
|
25375
25158
|
/** Lists the available regions of the API. */
|
|
25376
25159
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
25377
25160
|
pageOfListVPCs = (request = {}) => this.client.fetch({
|
|
@@ -25968,7 +25751,7 @@ const jsonContentHeaders$1 = {
|
|
|
25968
25751
|
};
|
|
25969
25752
|
|
|
25970
25753
|
/** Public Gateways API. */
|
|
25971
|
-
let API$1 = class API extends API$
|
|
25754
|
+
let API$1 = class API extends API$v {
|
|
25972
25755
|
/** Lists the available zones of the API. */
|
|
25973
25756
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
|
|
25974
25757
|
pageOfListGateways = (request = {}) => this.client.fetch({
|
|
@@ -26700,7 +26483,7 @@ const jsonContentHeaders = {
|
|
|
26700
26483
|
};
|
|
26701
26484
|
|
|
26702
26485
|
/** Web Hosting API. */
|
|
26703
|
-
class API extends API$
|
|
26486
|
+
class API extends API$v {
|
|
26704
26487
|
/** Lists the available regions of the API. */
|
|
26705
26488
|
static LOCALITIES = ['fr-par', 'nl-ams'];
|
|
26706
26489
|
|
|
@@ -26884,7 +26667,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26884
26667
|
v1alpha1: index_gen
|
|
26885
26668
|
});
|
|
26886
26669
|
|
|
26887
|
-
exports.API = API$
|
|
26670
|
+
exports.API = API$v;
|
|
26888
26671
|
exports.Account = index$x;
|
|
26889
26672
|
exports.AppleSilicon = index$w;
|
|
26890
26673
|
exports.BareMetal = index$u;
|