@scaleway/sdk 1.37.0 → 1.38.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/cockpit/v1beta1/marshalling.gen.js +2 -1
- package/dist/api/container/v1beta1/index.gen.js +2 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +3 -3
- package/dist/api/container/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/function/v1beta1/index.gen.js +2 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +3 -3
- package/dist/api/function/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/ipam/index.js +2 -0
- package/dist/api/ipam/v1/api.gen.js +113 -0
- package/dist/api/ipam/v1/index.gen.js +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +77 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +13 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +10 -0
- package/dist/index.cjs +654 -332
- package/dist/index.d.ts +1450 -936
- package/dist/index.js +30 -28
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.37.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -1579,7 +1579,7 @@ const createAdvancedClient = (...configs) => {
|
|
|
1579
1579
|
*/
|
|
1580
1580
|
const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
|
|
1581
1581
|
|
|
1582
|
-
var index$
|
|
1582
|
+
var index$x = /*#__PURE__*/Object.freeze({
|
|
1583
1583
|
__proto__: null,
|
|
1584
1584
|
AlreadyExistsError: AlreadyExistsError,
|
|
1585
1585
|
DeniedAuthenticationError: DeniedAuthenticationError,
|
|
@@ -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$s = {
|
|
|
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$t = class API extends API$u {
|
|
|
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$t = class API extends API$u {
|
|
|
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$t = class API extends API$u {
|
|
|
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$s = /*#__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$r = {
|
|
|
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$u {
|
|
|
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$u {
|
|
|
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);
|
|
@@ -2325,7 +2325,7 @@ const ProjectApiUpdateProjectRequest = {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
};
|
|
2327
2327
|
|
|
2328
|
-
var validationRules_gen$
|
|
2328
|
+
var validationRules_gen$c = /*#__PURE__*/Object.freeze({
|
|
2329
2329
|
__proto__: null,
|
|
2330
2330
|
ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
|
|
2331
2331
|
ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
|
|
@@ -2335,16 +2335,16 @@ var validationRules_gen$9 = /*#__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$r = /*#__PURE__*/Object.freeze({
|
|
2339
2339
|
__proto__: null,
|
|
2340
2340
|
ProjectAPI: ProjectAPI,
|
|
2341
|
-
ValidationRules: validationRules_gen$
|
|
2341
|
+
ValidationRules: validationRules_gen$c
|
|
2342
2342
|
});
|
|
2343
2343
|
|
|
2344
|
-
var index$
|
|
2344
|
+
var index$w = /*#__PURE__*/Object.freeze({
|
|
2345
2345
|
__proto__: null,
|
|
2346
|
-
v2: index_gen$
|
|
2347
|
-
v3: index_gen$
|
|
2346
|
+
v2: index_gen$s,
|
|
2347
|
+
v3: index_gen$r
|
|
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$s = class API extends API$u {
|
|
|
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$s = class API extends API$u {
|
|
|
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$s = class API extends API$u {
|
|
|
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$s = class API extends API$u {
|
|
|
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$s = class API extends API$u {
|
|
|
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$q = /*#__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
|
-
var index$
|
|
2645
|
+
var index$v = /*#__PURE__*/Object.freeze({
|
|
2646
2646
|
__proto__: null,
|
|
2647
|
-
v1alpha1: index_gen$
|
|
2647
|
+
v1alpha1: index_gen$q
|
|
2648
2648
|
});
|
|
2649
2649
|
|
|
2650
2650
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2682,7 +2682,7 @@ const unmarshalDisk = data => {
|
|
|
2682
2682
|
type: data.type
|
|
2683
2683
|
};
|
|
2684
2684
|
};
|
|
2685
|
-
const unmarshalIP$
|
|
2685
|
+
const unmarshalIP$2 = data => {
|
|
2686
2686
|
if (!isJSONObject(data)) {
|
|
2687
2687
|
throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
|
|
2688
2688
|
}
|
|
@@ -2853,7 +2853,7 @@ const unmarshalServer$1 = data => {
|
|
|
2853
2853
|
domain: data.domain,
|
|
2854
2854
|
id: data.id,
|
|
2855
2855
|
install: data.install ? unmarshalServerInstall(data.install) : undefined,
|
|
2856
|
-
ips: unmarshalArrayOfObject(data.ips, unmarshalIP$
|
|
2856
|
+
ips: unmarshalArrayOfObject(data.ips, unmarshalIP$2),
|
|
2857
2857
|
name: data.name,
|
|
2858
2858
|
offerId: data.offer_id,
|
|
2859
2859
|
offerName: data.offer_name,
|
|
@@ -3048,7 +3048,7 @@ const marshalStartBMCAccessRequest = (request, defaults) => ({
|
|
|
3048
3048
|
const marshalStartServerRequest = (request, defaults) => ({
|
|
3049
3049
|
boot_type: request.bootType ?? 'unknown_boot_type'
|
|
3050
3050
|
});
|
|
3051
|
-
const marshalUpdateIPRequest$
|
|
3051
|
+
const marshalUpdateIPRequest$2 = (request, defaults) => ({
|
|
3052
3052
|
reverse: request.reverse
|
|
3053
3053
|
});
|
|
3054
3054
|
const marshalUpdateServerRequest$1 = (request, defaults) => ({
|
|
@@ -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$p = {
|
|
|
3071
3071
|
*
|
|
3072
3072
|
* This API allows to manage your Elastic Metal server. Elastic Metal API.
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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);
|
|
@@ -3289,11 +3289,11 @@ let API$r = class API extends API$u {
|
|
|
3289
3289
|
* @returns A Promise of IP
|
|
3290
3290
|
*/
|
|
3291
3291
|
updateIP = request => this.client.fetch({
|
|
3292
|
-
body: JSON.stringify(marshalUpdateIPRequest$
|
|
3293
|
-
headers: jsonContentHeaders$
|
|
3292
|
+
body: JSON.stringify(marshalUpdateIPRequest$2(request, this.client.settings)),
|
|
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
|
-
}, unmarshalIP$
|
|
3296
|
+
}, unmarshalIP$2);
|
|
3297
3297
|
|
|
3298
3298
|
/**
|
|
3299
3299
|
* Add server option. Add an option, such as Private Networks, to a specific
|
|
@@ -3304,7 +3304,7 @@ let API$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$r = class API extends API$u {
|
|
|
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$u {
|
|
|
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$u {
|
|
|
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$u {
|
|
|
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
|
*
|
|
@@ -3609,7 +3609,7 @@ const UpdateServerRequest = {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
};
|
|
3611
3611
|
|
|
3612
|
-
var validationRules_gen$
|
|
3612
|
+
var validationRules_gen$b = /*#__PURE__*/Object.freeze({
|
|
3613
3613
|
__proto__: null,
|
|
3614
3614
|
CreateServerRequest: CreateServerRequest,
|
|
3615
3615
|
CreateServerRequestInstall: CreateServerRequestInstall,
|
|
@@ -3623,19 +3623,19 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
|
3623
3623
|
UpdateServerRequest: UpdateServerRequest
|
|
3624
3624
|
});
|
|
3625
3625
|
|
|
3626
|
-
var index$
|
|
3626
|
+
var index$u = /*#__PURE__*/Object.freeze({
|
|
3627
3627
|
__proto__: null,
|
|
3628
3628
|
API: BaremetalV1UtilsAPI,
|
|
3629
3629
|
PrivateNetworkAPI: PrivateNetworkAPI,
|
|
3630
3630
|
SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
|
|
3631
3631
|
SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
|
|
3632
3632
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
|
|
3633
|
-
ValidationRules: validationRules_gen$
|
|
3633
|
+
ValidationRules: validationRules_gen$b
|
|
3634
3634
|
});
|
|
3635
3635
|
|
|
3636
|
-
var index$
|
|
3636
|
+
var index$t = /*#__PURE__*/Object.freeze({
|
|
3637
3637
|
__proto__: null,
|
|
3638
|
-
v1: index$
|
|
3638
|
+
v1: index$u
|
|
3639
3639
|
});
|
|
3640
3640
|
|
|
3641
3641
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3693,7 +3693,7 @@ const unmarshalListInvoicesResponse = data => {
|
|
|
3693
3693
|
*
|
|
3694
3694
|
* This API allows you to query your consumption. Billing API.
|
|
3695
3695
|
*/
|
|
3696
|
-
let API$
|
|
3696
|
+
let API$r = class API extends API$v {
|
|
3697
3697
|
/**
|
|
3698
3698
|
* Get current month's consumption. The consumption reflects the amount of
|
|
3699
3699
|
* money you have spent for the products you have used. The consumption value
|
|
@@ -3739,14 +3739,14 @@ let API$q = class API extends API$u {
|
|
|
3739
3739
|
// This file was automatically generated. DO NOT EDIT.
|
|
3740
3740
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3741
3741
|
|
|
3742
|
-
var index_gen$
|
|
3742
|
+
var index_gen$p = /*#__PURE__*/Object.freeze({
|
|
3743
3743
|
__proto__: null,
|
|
3744
|
-
API: API$
|
|
3744
|
+
API: API$r
|
|
3745
3745
|
});
|
|
3746
3746
|
|
|
3747
|
-
var index$
|
|
3747
|
+
var index$s = /*#__PURE__*/Object.freeze({
|
|
3748
3748
|
__proto__: null,
|
|
3749
|
-
v2alpha1: index_gen$
|
|
3749
|
+
v2alpha1: index_gen$p
|
|
3750
3750
|
});
|
|
3751
3751
|
|
|
3752
3752
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3940,7 +3940,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
|
|
|
3940
3940
|
|
|
3941
3941
|
// This file was automatically generated. DO NOT EDIT.
|
|
3942
3942
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3943
|
-
const jsonContentHeaders$
|
|
3943
|
+
const jsonContentHeaders$p = {
|
|
3944
3944
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3945
3945
|
};
|
|
3946
3946
|
|
|
@@ -3950,7 +3950,7 @@ const jsonContentHeaders$o = {
|
|
|
3950
3950
|
* This API allows you to use and manage your Block Storage volumes. Scaleway
|
|
3951
3951
|
* Block Storage API.
|
|
3952
3952
|
*/
|
|
3953
|
-
let API$
|
|
3953
|
+
let API$q = class API extends API$v {
|
|
3954
3954
|
/** Lists the available zones of the API. */
|
|
3955
3955
|
static LOCALITIES = ['fr-par-1', 'pl-waw-3'];
|
|
3956
3956
|
pageOfListVolumeTypes = (request = {}) => this.client.fetch({
|
|
@@ -3996,7 +3996,7 @@ let API$p = class API extends API$u {
|
|
|
3996
3996
|
*/
|
|
3997
3997
|
createVolume = request => this.client.fetch({
|
|
3998
3998
|
body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
|
|
3999
|
-
headers: jsonContentHeaders$
|
|
3999
|
+
headers: jsonContentHeaders$p,
|
|
4000
4000
|
method: 'POST',
|
|
4001
4001
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
4002
4002
|
}, unmarshalVolume$4);
|
|
@@ -4044,7 +4044,7 @@ let API$p = class API extends API$u {
|
|
|
4044
4044
|
*/
|
|
4045
4045
|
updateVolume = request => this.client.fetch({
|
|
4046
4046
|
body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
|
|
4047
|
-
headers: jsonContentHeaders$
|
|
4047
|
+
headers: jsonContentHeaders$p,
|
|
4048
4048
|
method: 'PATCH',
|
|
4049
4049
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
4050
4050
|
}, unmarshalVolume$4);
|
|
@@ -4096,13 +4096,13 @@ let API$p = class API extends API$u {
|
|
|
4096
4096
|
*/
|
|
4097
4097
|
createSnapshot = request => this.client.fetch({
|
|
4098
4098
|
body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
|
|
4099
|
-
headers: jsonContentHeaders$
|
|
4099
|
+
headers: jsonContentHeaders$p,
|
|
4100
4100
|
method: 'POST',
|
|
4101
4101
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
4102
4102
|
}, unmarshalSnapshot$3);
|
|
4103
4103
|
importSnapshotFromS3 = request => this.client.fetch({
|
|
4104
4104
|
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
4105
|
-
headers: jsonContentHeaders$
|
|
4105
|
+
headers: jsonContentHeaders$p,
|
|
4106
4106
|
method: 'POST',
|
|
4107
4107
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
4108
4108
|
}, unmarshalSnapshot$3);
|
|
@@ -4126,7 +4126,7 @@ let API$p = class API extends API$u {
|
|
|
4126
4126
|
*/
|
|
4127
4127
|
updateSnapshot = request => this.client.fetch({
|
|
4128
4128
|
body: JSON.stringify(marshalUpdateSnapshotRequest$2(request, this.client.settings)),
|
|
4129
|
-
headers: jsonContentHeaders$
|
|
4129
|
+
headers: jsonContentHeaders$p,
|
|
4130
4130
|
method: 'PATCH',
|
|
4131
4131
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
4132
4132
|
}, unmarshalSnapshot$3);
|
|
@@ -4178,7 +4178,7 @@ const ListVolumesRequest = {
|
|
|
4178
4178
|
}
|
|
4179
4179
|
};
|
|
4180
4180
|
|
|
4181
|
-
var validationRules_gen$
|
|
4181
|
+
var validationRules_gen$a = /*#__PURE__*/Object.freeze({
|
|
4182
4182
|
__proto__: null,
|
|
4183
4183
|
CreateSnapshotRequest: CreateSnapshotRequest,
|
|
4184
4184
|
CreateVolumeRequest: CreateVolumeRequest,
|
|
@@ -4191,18 +4191,18 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
|
4191
4191
|
// This file was automatically generated. DO NOT EDIT.
|
|
4192
4192
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4193
4193
|
|
|
4194
|
-
var index_gen$
|
|
4194
|
+
var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
4195
4195
|
__proto__: null,
|
|
4196
|
-
API: API$
|
|
4196
|
+
API: API$q,
|
|
4197
4197
|
REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
|
|
4198
4198
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
|
|
4199
4199
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
|
|
4200
|
-
ValidationRules: validationRules_gen$
|
|
4200
|
+
ValidationRules: validationRules_gen$a
|
|
4201
4201
|
});
|
|
4202
4202
|
|
|
4203
|
-
var index$
|
|
4203
|
+
var index$r = /*#__PURE__*/Object.freeze({
|
|
4204
4204
|
__proto__: null,
|
|
4205
|
-
v1alpha1: index_gen$
|
|
4205
|
+
v1alpha1: index_gen$o
|
|
4206
4206
|
});
|
|
4207
4207
|
|
|
4208
4208
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4245,7 +4245,8 @@ const unmarshalCockpitEndpoints = data => {
|
|
|
4245
4245
|
alertmanagerUrl: data.alertmanager_url,
|
|
4246
4246
|
grafanaUrl: data.grafana_url,
|
|
4247
4247
|
logsUrl: data.logs_url,
|
|
4248
|
-
metricsUrl: data.metrics_url
|
|
4248
|
+
metricsUrl: data.metrics_url,
|
|
4249
|
+
tracesUrl: data.traces_url
|
|
4249
4250
|
};
|
|
4250
4251
|
};
|
|
4251
4252
|
const unmarshalContactPoint = data => {
|
|
@@ -4477,7 +4478,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
4477
4478
|
|
|
4478
4479
|
// This file was automatically generated. DO NOT EDIT.
|
|
4479
4480
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4480
|
-
const jsonContentHeaders$
|
|
4481
|
+
const jsonContentHeaders$o = {
|
|
4481
4482
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4482
4483
|
};
|
|
4483
4484
|
|
|
@@ -4488,7 +4489,7 @@ const jsonContentHeaders$n = {
|
|
|
4488
4489
|
* Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
|
|
4489
4490
|
* for dashboarding to visualize them. Cockpit API.
|
|
4490
4491
|
*/
|
|
4491
|
-
let API$
|
|
4492
|
+
let API$p = class API extends API$v {
|
|
4492
4493
|
/**
|
|
4493
4494
|
* Activate the Cockpit of the specified Project ID.
|
|
4494
4495
|
*
|
|
@@ -4497,7 +4498,7 @@ let API$o = class API extends API$u {
|
|
|
4497
4498
|
*/
|
|
4498
4499
|
activateCockpit = (request = {}) => this.client.fetch({
|
|
4499
4500
|
body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
|
|
4500
|
-
headers: jsonContentHeaders$
|
|
4501
|
+
headers: jsonContentHeaders$o,
|
|
4501
4502
|
method: 'POST',
|
|
4502
4503
|
path: `/cockpit/v1beta1/activate`
|
|
4503
4504
|
}, unmarshalCockpit);
|
|
@@ -4543,7 +4544,7 @@ let API$o = class API extends API$u {
|
|
|
4543
4544
|
*/
|
|
4544
4545
|
deactivateCockpit = (request = {}) => this.client.fetch({
|
|
4545
4546
|
body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
|
|
4546
|
-
headers: jsonContentHeaders$
|
|
4547
|
+
headers: jsonContentHeaders$o,
|
|
4547
4548
|
method: 'POST',
|
|
4548
4549
|
path: `/cockpit/v1beta1/deactivate`
|
|
4549
4550
|
}, unmarshalCockpit);
|
|
@@ -4556,7 +4557,7 @@ let API$o = class API extends API$u {
|
|
|
4556
4557
|
*/
|
|
4557
4558
|
resetCockpitGrafana = (request = {}) => this.client.fetch({
|
|
4558
4559
|
body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
|
|
4559
|
-
headers: jsonContentHeaders$
|
|
4560
|
+
headers: jsonContentHeaders$o,
|
|
4560
4561
|
method: 'POST',
|
|
4561
4562
|
path: `/cockpit/v1beta1/reset-grafana`
|
|
4562
4563
|
}, unmarshalCockpit);
|
|
@@ -4569,7 +4570,7 @@ let API$o = class API extends API$u {
|
|
|
4569
4570
|
*/
|
|
4570
4571
|
createDatasource = request => this.client.fetch({
|
|
4571
4572
|
body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
|
|
4572
|
-
headers: jsonContentHeaders$
|
|
4573
|
+
headers: jsonContentHeaders$o,
|
|
4573
4574
|
method: 'POST',
|
|
4574
4575
|
path: `/cockpit/v1beta1/datasources`
|
|
4575
4576
|
}, unmarshalDatasource);
|
|
@@ -4595,7 +4596,7 @@ let API$o = class API extends API$u {
|
|
|
4595
4596
|
*/
|
|
4596
4597
|
createToken = (request = {}) => this.client.fetch({
|
|
4597
4598
|
body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
|
|
4598
|
-
headers: jsonContentHeaders$
|
|
4599
|
+
headers: jsonContentHeaders$o,
|
|
4599
4600
|
method: 'POST',
|
|
4600
4601
|
path: `/cockpit/v1beta1/tokens`
|
|
4601
4602
|
}, unmarshalToken$2);
|
|
@@ -4642,7 +4643,7 @@ let API$o = class API extends API$u {
|
|
|
4642
4643
|
*/
|
|
4643
4644
|
createContactPoint = (request = {}) => this.client.fetch({
|
|
4644
4645
|
body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
|
|
4645
|
-
headers: jsonContentHeaders$
|
|
4646
|
+
headers: jsonContentHeaders$o,
|
|
4646
4647
|
method: 'POST',
|
|
4647
4648
|
path: `/cockpit/v1beta1/contact-points`
|
|
4648
4649
|
}, unmarshalContactPoint);
|
|
@@ -4668,7 +4669,7 @@ let API$o = class API extends API$u {
|
|
|
4668
4669
|
*/
|
|
4669
4670
|
deleteContactPoint = (request = {}) => this.client.fetch({
|
|
4670
4671
|
body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
|
|
4671
|
-
headers: jsonContentHeaders$
|
|
4672
|
+
headers: jsonContentHeaders$o,
|
|
4672
4673
|
method: 'POST',
|
|
4673
4674
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
4674
4675
|
});
|
|
@@ -4680,7 +4681,7 @@ let API$o = class API extends API$u {
|
|
|
4680
4681
|
*/
|
|
4681
4682
|
enableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4682
4683
|
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
|
|
4683
|
-
headers: jsonContentHeaders$
|
|
4684
|
+
headers: jsonContentHeaders$o,
|
|
4684
4685
|
method: 'POST',
|
|
4685
4686
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
4686
4687
|
});
|
|
@@ -4692,7 +4693,7 @@ let API$o = class API extends API$u {
|
|
|
4692
4693
|
*/
|
|
4693
4694
|
disableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4694
4695
|
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
|
|
4695
|
-
headers: jsonContentHeaders$
|
|
4696
|
+
headers: jsonContentHeaders$o,
|
|
4696
4697
|
method: 'POST',
|
|
4697
4698
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
4698
4699
|
});
|
|
@@ -4704,7 +4705,7 @@ let API$o = class API extends API$u {
|
|
|
4704
4705
|
*/
|
|
4705
4706
|
triggerTestAlert = (request = {}) => this.client.fetch({
|
|
4706
4707
|
body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
|
|
4707
|
-
headers: jsonContentHeaders$
|
|
4708
|
+
headers: jsonContentHeaders$o,
|
|
4708
4709
|
method: 'POST',
|
|
4709
4710
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
4710
4711
|
});
|
|
@@ -4718,7 +4719,7 @@ let API$o = class API extends API$u {
|
|
|
4718
4719
|
*/
|
|
4719
4720
|
createGrafanaUser = request => this.client.fetch({
|
|
4720
4721
|
body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
|
|
4721
|
-
headers: jsonContentHeaders$
|
|
4722
|
+
headers: jsonContentHeaders$o,
|
|
4722
4723
|
method: 'POST',
|
|
4723
4724
|
path: `/cockpit/v1beta1/grafana-users`
|
|
4724
4725
|
}, unmarshalGrafanaUser);
|
|
@@ -4745,7 +4746,7 @@ let API$o = class API extends API$u {
|
|
|
4745
4746
|
*/
|
|
4746
4747
|
deleteGrafanaUser = request => this.client.fetch({
|
|
4747
4748
|
body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
|
|
4748
|
-
headers: jsonContentHeaders$
|
|
4749
|
+
headers: jsonContentHeaders$o,
|
|
4749
4750
|
method: 'POST',
|
|
4750
4751
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
4751
4752
|
});
|
|
@@ -4759,7 +4760,7 @@ let API$o = class API extends API$u {
|
|
|
4759
4760
|
*/
|
|
4760
4761
|
resetGrafanaUserPassword = request => this.client.fetch({
|
|
4761
4762
|
body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
|
|
4762
|
-
headers: jsonContentHeaders$
|
|
4763
|
+
headers: jsonContentHeaders$o,
|
|
4763
4764
|
method: 'POST',
|
|
4764
4765
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
4765
4766
|
}, unmarshalGrafanaUser);
|
|
@@ -4786,7 +4787,7 @@ let API$o = class API extends API$u {
|
|
|
4786
4787
|
*/
|
|
4787
4788
|
selectPlan = request => this.client.fetch({
|
|
4788
4789
|
body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
|
|
4789
|
-
headers: jsonContentHeaders$
|
|
4790
|
+
headers: jsonContentHeaders$o,
|
|
4790
4791
|
method: 'POST',
|
|
4791
4792
|
path: `/cockpit/v1beta1/select-plan`
|
|
4792
4793
|
}, unmarshalSelectPlanResponse);
|
|
@@ -4821,15 +4822,15 @@ let API$o = class API extends API$u {
|
|
|
4821
4822
|
// This file was automatically generated. DO NOT EDIT.
|
|
4822
4823
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4823
4824
|
|
|
4824
|
-
var index_gen$
|
|
4825
|
+
var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
4825
4826
|
__proto__: null,
|
|
4826
|
-
API: API$
|
|
4827
|
+
API: API$p,
|
|
4827
4828
|
COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
|
|
4828
4829
|
});
|
|
4829
4830
|
|
|
4830
|
-
var index$
|
|
4831
|
+
var index$q = /*#__PURE__*/Object.freeze({
|
|
4831
4832
|
__proto__: null,
|
|
4832
|
-
v1beta1: index_gen$
|
|
4833
|
+
v1beta1: index_gen$n
|
|
4833
4834
|
});
|
|
4834
4835
|
|
|
4835
4836
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -5161,12 +5162,12 @@ const marshalCreateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5161
5162
|
...resolveOneOf([{
|
|
5162
5163
|
param: 'scw_sqs_config',
|
|
5163
5164
|
value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig$1(request.scwSqsConfig) : undefined
|
|
5164
|
-
}, {
|
|
5165
|
-
param: 'sqs_config',
|
|
5166
|
-
value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
5167
5165
|
}, {
|
|
5168
5166
|
param: 'scw_nats_config',
|
|
5169
5167
|
value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig$1(request.scwNatsConfig) : undefined
|
|
5168
|
+
}, {
|
|
5169
|
+
param: 'sqs_config',
|
|
5170
|
+
value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
5170
5171
|
}])
|
|
5171
5172
|
});
|
|
5172
5173
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
@@ -5208,12 +5209,12 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5208
5209
|
|
|
5209
5210
|
// This file was automatically generated. DO NOT EDIT.
|
|
5210
5211
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5211
|
-
const jsonContentHeaders$
|
|
5212
|
+
const jsonContentHeaders$n = {
|
|
5212
5213
|
'Content-Type': 'application/json; charset=utf-8'
|
|
5213
5214
|
};
|
|
5214
5215
|
|
|
5215
5216
|
/** Serverless Containers API. */
|
|
5216
|
-
let API$
|
|
5217
|
+
let API$o = class API extends API$v {
|
|
5217
5218
|
/** Lists the available regions of the API. */
|
|
5218
5219
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
5219
5220
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -5258,7 +5259,7 @@ let API$n = class API extends API$u {
|
|
|
5258
5259
|
*/
|
|
5259
5260
|
createNamespace = (request = {}) => this.client.fetch({
|
|
5260
5261
|
body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
|
|
5261
|
-
headers: jsonContentHeaders$
|
|
5262
|
+
headers: jsonContentHeaders$n,
|
|
5262
5263
|
method: 'POST',
|
|
5263
5264
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
5264
5265
|
}, unmarshalNamespace$3);
|
|
@@ -5272,7 +5273,7 @@ let API$n = class API extends API$u {
|
|
|
5272
5273
|
*/
|
|
5273
5274
|
updateNamespace = request => this.client.fetch({
|
|
5274
5275
|
body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
|
|
5275
|
-
headers: jsonContentHeaders$
|
|
5276
|
+
headers: jsonContentHeaders$n,
|
|
5276
5277
|
method: 'PATCH',
|
|
5277
5278
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5278
5279
|
}, unmarshalNamespace$3);
|
|
@@ -5330,7 +5331,7 @@ let API$n = class API extends API$u {
|
|
|
5330
5331
|
*/
|
|
5331
5332
|
createContainer = request => this.client.fetch({
|
|
5332
5333
|
body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
|
|
5333
|
-
headers: jsonContentHeaders$
|
|
5334
|
+
headers: jsonContentHeaders$n,
|
|
5334
5335
|
method: 'POST',
|
|
5335
5336
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
|
|
5336
5337
|
}, unmarshalContainer);
|
|
@@ -5344,7 +5345,7 @@ let API$n = class API extends API$u {
|
|
|
5344
5345
|
*/
|
|
5345
5346
|
updateContainer = request => this.client.fetch({
|
|
5346
5347
|
body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
|
|
5347
|
-
headers: jsonContentHeaders$
|
|
5348
|
+
headers: jsonContentHeaders$n,
|
|
5348
5349
|
method: 'PATCH',
|
|
5349
5350
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
|
|
5350
5351
|
}, unmarshalContainer);
|
|
@@ -5368,7 +5369,7 @@ let API$n = class API extends API$u {
|
|
|
5368
5369
|
*/
|
|
5369
5370
|
deployContainer = request => this.client.fetch({
|
|
5370
5371
|
body: '{}',
|
|
5371
|
-
headers: jsonContentHeaders$
|
|
5372
|
+
headers: jsonContentHeaders$n,
|
|
5372
5373
|
method: 'POST',
|
|
5373
5374
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
|
|
5374
5375
|
}, unmarshalContainer);
|
|
@@ -5414,7 +5415,7 @@ let API$n = class API extends API$u {
|
|
|
5414
5415
|
*/
|
|
5415
5416
|
createCron = request => this.client.fetch({
|
|
5416
5417
|
body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
|
|
5417
|
-
headers: jsonContentHeaders$
|
|
5418
|
+
headers: jsonContentHeaders$n,
|
|
5418
5419
|
method: 'POST',
|
|
5419
5420
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
5420
5421
|
}, unmarshalCron$1);
|
|
@@ -5427,7 +5428,7 @@ let API$n = class API extends API$u {
|
|
|
5427
5428
|
*/
|
|
5428
5429
|
updateCron = request => this.client.fetch({
|
|
5429
5430
|
body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
|
|
5430
|
-
headers: jsonContentHeaders$
|
|
5431
|
+
headers: jsonContentHeaders$n,
|
|
5431
5432
|
method: 'PATCH',
|
|
5432
5433
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
5433
5434
|
}, unmarshalCron$1);
|
|
@@ -5501,7 +5502,7 @@ let API$n = class API extends API$u {
|
|
|
5501
5502
|
*/
|
|
5502
5503
|
createDomain = request => this.client.fetch({
|
|
5503
5504
|
body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
|
|
5504
|
-
headers: jsonContentHeaders$
|
|
5505
|
+
headers: jsonContentHeaders$n,
|
|
5505
5506
|
method: 'POST',
|
|
5506
5507
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
5507
5508
|
}, unmarshalDomain$3);
|
|
@@ -5543,7 +5544,7 @@ let API$n = class API extends API$u {
|
|
|
5543
5544
|
*/
|
|
5544
5545
|
createToken = (request = {}) => this.client.fetch({
|
|
5545
5546
|
body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
|
|
5546
|
-
headers: jsonContentHeaders$
|
|
5547
|
+
headers: jsonContentHeaders$n,
|
|
5547
5548
|
method: 'POST',
|
|
5548
5549
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
5549
5550
|
}, unmarshalToken$1);
|
|
@@ -5601,7 +5602,7 @@ let API$n = class API extends API$u {
|
|
|
5601
5602
|
*/
|
|
5602
5603
|
createTrigger = request => this.client.fetch({
|
|
5603
5604
|
body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
|
|
5604
|
-
headers: jsonContentHeaders$
|
|
5605
|
+
headers: jsonContentHeaders$n,
|
|
5605
5606
|
method: 'POST',
|
|
5606
5607
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
5607
5608
|
}, unmarshalTrigger$1);
|
|
@@ -5658,7 +5659,7 @@ let API$n = class API extends API$u {
|
|
|
5658
5659
|
*/
|
|
5659
5660
|
updateTrigger = request => this.client.fetch({
|
|
5660
5661
|
body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
|
|
5661
|
-
headers: jsonContentHeaders$
|
|
5662
|
+
headers: jsonContentHeaders$n,
|
|
5662
5663
|
method: 'PATCH',
|
|
5663
5664
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
5664
5665
|
}, unmarshalTrigger$1);
|
|
@@ -5678,20 +5679,72 @@ let API$n = class API extends API$u {
|
|
|
5678
5679
|
// This file was automatically generated. DO NOT EDIT.
|
|
5679
5680
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5680
5681
|
|
|
5681
|
-
|
|
5682
|
+
const CreateTriggerRequest$1 = {
|
|
5683
|
+
description: {
|
|
5684
|
+
maxLength: 255
|
|
5685
|
+
},
|
|
5686
|
+
name: {
|
|
5687
|
+
maxLength: 50,
|
|
5688
|
+
minLength: 1
|
|
5689
|
+
}
|
|
5690
|
+
};
|
|
5691
|
+
const CreateTriggerRequestMnqNatsClientConfig$1 = {
|
|
5692
|
+
mnqRegion: {
|
|
5693
|
+
maxLength: 20,
|
|
5694
|
+
minLength: 1
|
|
5695
|
+
},
|
|
5696
|
+
subject: {
|
|
5697
|
+
maxLength: 100,
|
|
5698
|
+
minLength: 1,
|
|
5699
|
+
pattern: /^[^\s]+$/
|
|
5700
|
+
}
|
|
5701
|
+
};
|
|
5702
|
+
const CreateTriggerRequestMnqSqsClientConfig$1 = {
|
|
5703
|
+
mnqRegion: {
|
|
5704
|
+
maxLength: 20,
|
|
5705
|
+
minLength: 1
|
|
5706
|
+
},
|
|
5707
|
+
queue: {
|
|
5708
|
+
maxLength: 100,
|
|
5709
|
+
minLength: 1
|
|
5710
|
+
}
|
|
5711
|
+
};
|
|
5712
|
+
const UpdateTriggerRequest$1 = {
|
|
5713
|
+
description: {
|
|
5714
|
+
maxLength: 255
|
|
5715
|
+
},
|
|
5716
|
+
name: {
|
|
5717
|
+
maxLength: 50,
|
|
5718
|
+
minLength: 1
|
|
5719
|
+
}
|
|
5720
|
+
};
|
|
5721
|
+
|
|
5722
|
+
var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
|
|
5682
5723
|
__proto__: null,
|
|
5683
|
-
|
|
5724
|
+
CreateTriggerRequest: CreateTriggerRequest$1,
|
|
5725
|
+
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
|
|
5726
|
+
CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig$1,
|
|
5727
|
+
UpdateTriggerRequest: UpdateTriggerRequest$1
|
|
5728
|
+
});
|
|
5729
|
+
|
|
5730
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
5731
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5732
|
+
|
|
5733
|
+
var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
5734
|
+
__proto__: null,
|
|
5735
|
+
API: API$o,
|
|
5684
5736
|
CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
|
|
5685
5737
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
|
|
5686
5738
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
|
|
5687
5739
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
|
|
5688
5740
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
|
|
5689
|
-
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1
|
|
5741
|
+
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
|
|
5742
|
+
ValidationRules: validationRules_gen$9
|
|
5690
5743
|
});
|
|
5691
5744
|
|
|
5692
|
-
var index$
|
|
5745
|
+
var index$p = /*#__PURE__*/Object.freeze({
|
|
5693
5746
|
__proto__: null,
|
|
5694
|
-
v1beta1: index_gen$
|
|
5747
|
+
v1beta1: index_gen$m
|
|
5695
5748
|
});
|
|
5696
5749
|
|
|
5697
5750
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -6344,12 +6397,12 @@ const marshalUpgradeInstanceRequest$1 = (request, defaults) => ({
|
|
|
6344
6397
|
|
|
6345
6398
|
// This file was automatically generated. DO NOT EDIT.
|
|
6346
6399
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6347
|
-
const jsonContentHeaders$
|
|
6400
|
+
const jsonContentHeaders$m = {
|
|
6348
6401
|
'Content-Type': 'application/json; charset=utf-8'
|
|
6349
6402
|
};
|
|
6350
6403
|
|
|
6351
6404
|
/** Managed Document Databases API. */
|
|
6352
|
-
let API$
|
|
6405
|
+
let API$n = class API extends API$v {
|
|
6353
6406
|
/** Lists the available regions of the API. */
|
|
6354
6407
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
6355
6408
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -6393,7 +6446,7 @@ let API$m = class API extends API$u {
|
|
|
6393
6446
|
*/
|
|
6394
6447
|
upgradeInstance = request => this.client.fetch({
|
|
6395
6448
|
body: JSON.stringify(marshalUpgradeInstanceRequest$1(request, this.client.settings)),
|
|
6396
|
-
headers: jsonContentHeaders$
|
|
6449
|
+
headers: jsonContentHeaders$m,
|
|
6397
6450
|
method: 'POST',
|
|
6398
6451
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
|
|
6399
6452
|
}, unmarshalInstance$2);
|
|
@@ -6451,7 +6504,7 @@ let API$m = class API extends API$u {
|
|
|
6451
6504
|
*/
|
|
6452
6505
|
createInstance = request => this.client.fetch({
|
|
6453
6506
|
body: JSON.stringify(marshalCreateInstanceRequest$1(request, this.client.settings)),
|
|
6454
|
-
headers: jsonContentHeaders$
|
|
6507
|
+
headers: jsonContentHeaders$m,
|
|
6455
6508
|
method: 'POST',
|
|
6456
6509
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
|
|
6457
6510
|
}, unmarshalInstance$2);
|
|
@@ -6465,7 +6518,7 @@ let API$m = class API extends API$u {
|
|
|
6465
6518
|
*/
|
|
6466
6519
|
updateInstance = request => this.client.fetch({
|
|
6467
6520
|
body: JSON.stringify(marshalUpdateInstanceRequest$1(request, this.client.settings)),
|
|
6468
|
-
headers: jsonContentHeaders$
|
|
6521
|
+
headers: jsonContentHeaders$m,
|
|
6469
6522
|
method: 'PATCH',
|
|
6470
6523
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
|
|
6471
6524
|
}, unmarshalInstance$2);
|
|
@@ -6496,7 +6549,7 @@ let API$m = class API extends API$u {
|
|
|
6496
6549
|
*/
|
|
6497
6550
|
cloneInstance = request => this.client.fetch({
|
|
6498
6551
|
body: JSON.stringify(marshalCloneInstanceRequest$1(request, this.client.settings)),
|
|
6499
|
-
headers: jsonContentHeaders$
|
|
6552
|
+
headers: jsonContentHeaders$m,
|
|
6500
6553
|
method: 'POST',
|
|
6501
6554
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
|
|
6502
6555
|
}, unmarshalInstance$2);
|
|
@@ -6511,7 +6564,7 @@ let API$m = class API extends API$u {
|
|
|
6511
6564
|
*/
|
|
6512
6565
|
restartInstance = request => this.client.fetch({
|
|
6513
6566
|
body: '{}',
|
|
6514
|
-
headers: jsonContentHeaders$
|
|
6567
|
+
headers: jsonContentHeaders$m,
|
|
6515
6568
|
method: 'POST',
|
|
6516
6569
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
|
|
6517
6570
|
}, unmarshalInstance$2);
|
|
@@ -6542,7 +6595,7 @@ let API$m = class API extends API$u {
|
|
|
6542
6595
|
*/
|
|
6543
6596
|
renewInstanceCertificate = request => this.client.fetch({
|
|
6544
6597
|
body: '{}',
|
|
6545
|
-
headers: jsonContentHeaders$
|
|
6598
|
+
headers: jsonContentHeaders$m,
|
|
6546
6599
|
method: 'POST',
|
|
6547
6600
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
|
|
6548
6601
|
});
|
|
@@ -6571,7 +6624,7 @@ let API$m = class API extends API$u {
|
|
|
6571
6624
|
*/
|
|
6572
6625
|
createReadReplica = request => this.client.fetch({
|
|
6573
6626
|
body: JSON.stringify(marshalCreateReadReplicaRequest$1(request, this.client.settings)),
|
|
6574
|
-
headers: jsonContentHeaders$
|
|
6627
|
+
headers: jsonContentHeaders$m,
|
|
6575
6628
|
method: 'POST',
|
|
6576
6629
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
|
|
6577
6630
|
}, unmarshalReadReplica$1);
|
|
@@ -6623,7 +6676,7 @@ let API$m = class API extends API$u {
|
|
|
6623
6676
|
*/
|
|
6624
6677
|
resetReadReplica = request => this.client.fetch({
|
|
6625
6678
|
body: '{}',
|
|
6626
|
-
headers: jsonContentHeaders$
|
|
6679
|
+
headers: jsonContentHeaders$m,
|
|
6627
6680
|
method: 'POST',
|
|
6628
6681
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
|
|
6629
6682
|
}, unmarshalReadReplica$1);
|
|
@@ -6637,7 +6690,7 @@ let API$m = class API extends API$u {
|
|
|
6637
6690
|
*/
|
|
6638
6691
|
promoteReadReplica = request => this.client.fetch({
|
|
6639
6692
|
body: '{}',
|
|
6640
|
-
headers: jsonContentHeaders$
|
|
6693
|
+
headers: jsonContentHeaders$m,
|
|
6641
6694
|
method: 'POST',
|
|
6642
6695
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
|
|
6643
6696
|
}, unmarshalInstance$2);
|
|
@@ -6652,7 +6705,7 @@ let API$m = class API extends API$u {
|
|
|
6652
6705
|
*/
|
|
6653
6706
|
createReadReplicaEndpoint = request => this.client.fetch({
|
|
6654
6707
|
body: JSON.stringify(marshalCreateReadReplicaEndpointRequest$1(request, this.client.settings)),
|
|
6655
|
-
headers: jsonContentHeaders$
|
|
6708
|
+
headers: jsonContentHeaders$m,
|
|
6656
6709
|
method: 'POST',
|
|
6657
6710
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
|
|
6658
6711
|
}, unmarshalReadReplica$1);
|
|
@@ -6704,7 +6757,7 @@ let API$m = class API extends API$u {
|
|
|
6704
6757
|
*/
|
|
6705
6758
|
purgeInstanceLogs = request => this.client.fetch({
|
|
6706
6759
|
body: JSON.stringify(marshalPurgeInstanceLogsRequest$1(request, this.client.settings)),
|
|
6707
|
-
headers: jsonContentHeaders$
|
|
6760
|
+
headers: jsonContentHeaders$m,
|
|
6708
6761
|
method: 'POST',
|
|
6709
6762
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
|
|
6710
6763
|
});
|
|
@@ -6732,7 +6785,7 @@ let API$m = class API extends API$u {
|
|
|
6732
6785
|
*/
|
|
6733
6786
|
addInstanceSettings = request => this.client.fetch({
|
|
6734
6787
|
body: JSON.stringify(marshalAddInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6735
|
-
headers: jsonContentHeaders$
|
|
6788
|
+
headers: jsonContentHeaders$m,
|
|
6736
6789
|
method: 'POST',
|
|
6737
6790
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6738
6791
|
}, unmarshalAddInstanceSettingsResponse$1);
|
|
@@ -6747,7 +6800,7 @@ let API$m = class API extends API$u {
|
|
|
6747
6800
|
*/
|
|
6748
6801
|
deleteInstanceSettings = request => this.client.fetch({
|
|
6749
6802
|
body: JSON.stringify(marshalDeleteInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6750
|
-
headers: jsonContentHeaders$
|
|
6803
|
+
headers: jsonContentHeaders$m,
|
|
6751
6804
|
method: 'DELETE',
|
|
6752
6805
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6753
6806
|
}, unmarshalDeleteInstanceSettingsResponse$1);
|
|
@@ -6762,7 +6815,7 @@ let API$m = class API extends API$u {
|
|
|
6762
6815
|
*/
|
|
6763
6816
|
setInstanceSettings = request => this.client.fetch({
|
|
6764
6817
|
body: JSON.stringify(marshalSetInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6765
|
-
headers: jsonContentHeaders$
|
|
6818
|
+
headers: jsonContentHeaders$m,
|
|
6766
6819
|
method: 'PUT',
|
|
6767
6820
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6768
6821
|
}, unmarshalSetInstanceSettingsResponse$1);
|
|
@@ -6792,7 +6845,7 @@ let API$m = class API extends API$u {
|
|
|
6792
6845
|
*/
|
|
6793
6846
|
addInstanceACLRules = request => this.client.fetch({
|
|
6794
6847
|
body: JSON.stringify(marshalAddInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6795
|
-
headers: jsonContentHeaders$
|
|
6848
|
+
headers: jsonContentHeaders$m,
|
|
6796
6849
|
method: 'POST',
|
|
6797
6850
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6798
6851
|
}, unmarshalAddInstanceACLRulesResponse$1);
|
|
@@ -6806,7 +6859,7 @@ let API$m = class API extends API$u {
|
|
|
6806
6859
|
*/
|
|
6807
6860
|
setInstanceACLRules = request => this.client.fetch({
|
|
6808
6861
|
body: JSON.stringify(marshalSetInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6809
|
-
headers: jsonContentHeaders$
|
|
6862
|
+
headers: jsonContentHeaders$m,
|
|
6810
6863
|
method: 'PUT',
|
|
6811
6864
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6812
6865
|
}, unmarshalSetInstanceACLRulesResponse$1);
|
|
@@ -6820,7 +6873,7 @@ let API$m = class API extends API$u {
|
|
|
6820
6873
|
*/
|
|
6821
6874
|
deleteInstanceACLRules = request => this.client.fetch({
|
|
6822
6875
|
body: JSON.stringify(marshalDeleteInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6823
|
-
headers: jsonContentHeaders$
|
|
6876
|
+
headers: jsonContentHeaders$m,
|
|
6824
6877
|
method: 'DELETE',
|
|
6825
6878
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6826
6879
|
}, unmarshalDeleteInstanceACLRulesResponse$1);
|
|
@@ -6851,7 +6904,7 @@ let API$m = class API extends API$u {
|
|
|
6851
6904
|
*/
|
|
6852
6905
|
createUser = request => this.client.fetch({
|
|
6853
6906
|
body: JSON.stringify(marshalCreateUserRequest$2(request, this.client.settings)),
|
|
6854
|
-
headers: jsonContentHeaders$
|
|
6907
|
+
headers: jsonContentHeaders$m,
|
|
6855
6908
|
method: 'POST',
|
|
6856
6909
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
|
|
6857
6910
|
}, unmarshalUser$2);
|
|
@@ -6866,7 +6919,7 @@ let API$m = class API extends API$u {
|
|
|
6866
6919
|
*/
|
|
6867
6920
|
updateUser = request => this.client.fetch({
|
|
6868
6921
|
body: JSON.stringify(marshalUpdateUserRequest$1(request, this.client.settings)),
|
|
6869
|
-
headers: jsonContentHeaders$
|
|
6922
|
+
headers: jsonContentHeaders$m,
|
|
6870
6923
|
method: 'PATCH',
|
|
6871
6924
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
|
|
6872
6925
|
}, unmarshalUser$2);
|
|
@@ -6909,7 +6962,7 @@ let API$m = class API extends API$u {
|
|
|
6909
6962
|
*/
|
|
6910
6963
|
createDatabase = request => this.client.fetch({
|
|
6911
6964
|
body: JSON.stringify(marshalCreateDatabaseRequest$1(request, this.client.settings)),
|
|
6912
|
-
headers: jsonContentHeaders$
|
|
6965
|
+
headers: jsonContentHeaders$m,
|
|
6913
6966
|
method: 'POST',
|
|
6914
6967
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
|
|
6915
6968
|
}, unmarshalDatabase$1);
|
|
@@ -6953,7 +7006,7 @@ let API$m = class API extends API$u {
|
|
|
6953
7006
|
*/
|
|
6954
7007
|
setPrivilege = request => this.client.fetch({
|
|
6955
7008
|
body: JSON.stringify(marshalSetPrivilegeRequest$1(request, this.client.settings)),
|
|
6956
|
-
headers: jsonContentHeaders$
|
|
7009
|
+
headers: jsonContentHeaders$m,
|
|
6957
7010
|
method: 'PUT',
|
|
6958
7011
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
|
|
6959
7012
|
}, unmarshalPrivilege$1);
|
|
@@ -7006,7 +7059,7 @@ let API$m = class API extends API$u {
|
|
|
7006
7059
|
*/
|
|
7007
7060
|
createSnapshot = request => this.client.fetch({
|
|
7008
7061
|
body: JSON.stringify(marshalCreateSnapshotRequest$2(request, this.client.settings)),
|
|
7009
|
-
headers: jsonContentHeaders$
|
|
7062
|
+
headers: jsonContentHeaders$m,
|
|
7010
7063
|
method: 'POST',
|
|
7011
7064
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
|
|
7012
7065
|
}, unmarshalSnapshot$2);
|
|
@@ -7021,7 +7074,7 @@ let API$m = class API extends API$u {
|
|
|
7021
7074
|
*/
|
|
7022
7075
|
updateSnapshot = request => this.client.fetch({
|
|
7023
7076
|
body: JSON.stringify(marshalUpdateSnapshotRequest$1(request, this.client.settings)),
|
|
7024
|
-
headers: jsonContentHeaders$
|
|
7077
|
+
headers: jsonContentHeaders$m,
|
|
7025
7078
|
method: 'PATCH',
|
|
7026
7079
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
7027
7080
|
}, unmarshalSnapshot$2);
|
|
@@ -7054,7 +7107,7 @@ let API$m = class API extends API$u {
|
|
|
7054
7107
|
*/
|
|
7055
7108
|
createInstanceFromSnapshot = request => this.client.fetch({
|
|
7056
7109
|
body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest$1(request, this.client.settings)),
|
|
7057
|
-
headers: jsonContentHeaders$
|
|
7110
|
+
headers: jsonContentHeaders$m,
|
|
7058
7111
|
method: 'POST',
|
|
7059
7112
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
|
|
7060
7113
|
}, unmarshalInstance$2);
|
|
@@ -7069,7 +7122,7 @@ let API$m = class API extends API$u {
|
|
|
7069
7122
|
*/
|
|
7070
7123
|
createEndpoint = request => this.client.fetch({
|
|
7071
7124
|
body: JSON.stringify(marshalCreateEndpointRequest$1(request, this.client.settings)),
|
|
7072
|
-
headers: jsonContentHeaders$
|
|
7125
|
+
headers: jsonContentHeaders$m,
|
|
7073
7126
|
method: 'POST',
|
|
7074
7127
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
|
|
7075
7128
|
}, unmarshalEndpoint$2);
|
|
@@ -7110,7 +7163,7 @@ let API$m = class API extends API$u {
|
|
|
7110
7163
|
*/
|
|
7111
7164
|
migrateEndpoint = request => this.client.fetch({
|
|
7112
7165
|
body: JSON.stringify(marshalMigrateEndpointRequest$1(request, this.client.settings)),
|
|
7113
|
-
headers: jsonContentHeaders$
|
|
7166
|
+
headers: jsonContentHeaders$m,
|
|
7114
7167
|
method: 'POST',
|
|
7115
7168
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
|
|
7116
7169
|
}, unmarshalEndpoint$2);
|
|
@@ -7125,7 +7178,7 @@ const UpdateInstanceRequest$1 = {
|
|
|
7125
7178
|
}
|
|
7126
7179
|
};
|
|
7127
7180
|
|
|
7128
|
-
var validationRules_gen$
|
|
7181
|
+
var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
7129
7182
|
__proto__: null,
|
|
7130
7183
|
UpdateInstanceRequest: UpdateInstanceRequest$1
|
|
7131
7184
|
});
|
|
@@ -7133,20 +7186,20 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
|
7133
7186
|
// This file was automatically generated. DO NOT EDIT.
|
|
7134
7187
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7135
7188
|
|
|
7136
|
-
var index_gen$
|
|
7189
|
+
var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
7137
7190
|
__proto__: null,
|
|
7138
|
-
API: API$
|
|
7191
|
+
API: API$n,
|
|
7139
7192
|
INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
|
|
7140
7193
|
INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES$2,
|
|
7141
7194
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
|
|
7142
7195
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES$1,
|
|
7143
7196
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$2,
|
|
7144
|
-
ValidationRules: validationRules_gen$
|
|
7197
|
+
ValidationRules: validationRules_gen$8
|
|
7145
7198
|
});
|
|
7146
7199
|
|
|
7147
|
-
var index$
|
|
7200
|
+
var index$o = /*#__PURE__*/Object.freeze({
|
|
7148
7201
|
__proto__: null,
|
|
7149
|
-
v1beta1: index_gen$
|
|
7202
|
+
v1beta1: index_gen$l
|
|
7150
7203
|
});
|
|
7151
7204
|
|
|
7152
7205
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -8345,7 +8398,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
|
8345
8398
|
|
|
8346
8399
|
// This file was automatically generated. DO NOT EDIT.
|
|
8347
8400
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
8348
|
-
const jsonContentHeaders$
|
|
8401
|
+
const jsonContentHeaders$l = {
|
|
8349
8402
|
'Content-Type': 'application/json; charset=utf-8'
|
|
8350
8403
|
};
|
|
8351
8404
|
|
|
@@ -8355,7 +8408,7 @@ const jsonContentHeaders$k = {
|
|
|
8355
8408
|
* Domains and DNS API. Manage your domains, DNS zones and records with the
|
|
8356
8409
|
* Domains and DNS API.
|
|
8357
8410
|
*/
|
|
8358
|
-
let API$
|
|
8411
|
+
let API$m = class API extends API$v {
|
|
8359
8412
|
pageOfListDNSZones = request => this.client.fetch({
|
|
8360
8413
|
method: 'GET',
|
|
8361
8414
|
path: `/domain/v2beta1/dns-zones`,
|
|
@@ -8380,7 +8433,7 @@ let API$l = class API extends API$u {
|
|
|
8380
8433
|
*/
|
|
8381
8434
|
createDNSZone = request => this.client.fetch({
|
|
8382
8435
|
body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
|
|
8383
|
-
headers: jsonContentHeaders$
|
|
8436
|
+
headers: jsonContentHeaders$l,
|
|
8384
8437
|
method: 'POST',
|
|
8385
8438
|
path: `/domain/v2beta1/dns-zones`
|
|
8386
8439
|
}, unmarshalDNSZone);
|
|
@@ -8393,7 +8446,7 @@ let API$l = class API extends API$u {
|
|
|
8393
8446
|
*/
|
|
8394
8447
|
updateDNSZone = request => this.client.fetch({
|
|
8395
8448
|
body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
|
|
8396
|
-
headers: jsonContentHeaders$
|
|
8449
|
+
headers: jsonContentHeaders$l,
|
|
8397
8450
|
method: 'PATCH',
|
|
8398
8451
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
8399
8452
|
}, unmarshalDNSZone);
|
|
@@ -8407,7 +8460,7 @@ let API$l = class API extends API$u {
|
|
|
8407
8460
|
*/
|
|
8408
8461
|
cloneDNSZone = request => this.client.fetch({
|
|
8409
8462
|
body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
|
|
8410
|
-
headers: jsonContentHeaders$
|
|
8463
|
+
headers: jsonContentHeaders$l,
|
|
8411
8464
|
method: 'POST',
|
|
8412
8465
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
8413
8466
|
}, unmarshalDNSZone);
|
|
@@ -8460,7 +8513,7 @@ let API$l = class API extends API$u {
|
|
|
8460
8513
|
*/
|
|
8461
8514
|
updateDNSZoneRecords = request => this.client.fetch({
|
|
8462
8515
|
body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
|
|
8463
|
-
headers: jsonContentHeaders$
|
|
8516
|
+
headers: jsonContentHeaders$l,
|
|
8464
8517
|
method: 'PATCH',
|
|
8465
8518
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
8466
8519
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
@@ -8487,7 +8540,7 @@ let API$l = class API extends API$u {
|
|
|
8487
8540
|
*/
|
|
8488
8541
|
updateDNSZoneNameservers = request => this.client.fetch({
|
|
8489
8542
|
body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
|
|
8490
|
-
headers: jsonContentHeaders$
|
|
8543
|
+
headers: jsonContentHeaders$l,
|
|
8491
8544
|
method: 'PUT',
|
|
8492
8545
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
8493
8546
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
@@ -8527,7 +8580,7 @@ let API$l = class API extends API$u {
|
|
|
8527
8580
|
*/
|
|
8528
8581
|
importRawDNSZone = request => this.client.fetch({
|
|
8529
8582
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
8530
|
-
headers: jsonContentHeaders$
|
|
8583
|
+
headers: jsonContentHeaders$l,
|
|
8531
8584
|
method: 'POST',
|
|
8532
8585
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
8533
8586
|
}, unmarshalImportRawDNSZoneResponse);
|
|
@@ -8541,7 +8594,7 @@ let API$l = class API extends API$u {
|
|
|
8541
8594
|
*/
|
|
8542
8595
|
importProviderDNSZone = request => this.client.fetch({
|
|
8543
8596
|
body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
|
|
8544
|
-
headers: jsonContentHeaders$
|
|
8597
|
+
headers: jsonContentHeaders$l,
|
|
8545
8598
|
method: 'POST',
|
|
8546
8599
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
8547
8600
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
@@ -8556,7 +8609,7 @@ let API$l = class API extends API$u {
|
|
|
8556
8609
|
*/
|
|
8557
8610
|
refreshDNSZone = request => this.client.fetch({
|
|
8558
8611
|
body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
|
|
8559
|
-
headers: jsonContentHeaders$
|
|
8612
|
+
headers: jsonContentHeaders$l,
|
|
8560
8613
|
method: 'POST',
|
|
8561
8614
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
|
|
8562
8615
|
}, unmarshalRefreshDNSZoneResponse);
|
|
@@ -8611,7 +8664,7 @@ let API$l = class API extends API$u {
|
|
|
8611
8664
|
*/
|
|
8612
8665
|
restoreDNSZoneVersion = request => this.client.fetch({
|
|
8613
8666
|
body: '{}',
|
|
8614
|
-
headers: jsonContentHeaders$
|
|
8667
|
+
headers: jsonContentHeaders$l,
|
|
8615
8668
|
method: 'POST',
|
|
8616
8669
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
8617
8670
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
@@ -8646,7 +8699,7 @@ let API$l = class API extends API$u {
|
|
|
8646
8699
|
*/
|
|
8647
8700
|
createSSLCertificate = request => this.client.fetch({
|
|
8648
8701
|
body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
|
|
8649
|
-
headers: jsonContentHeaders$
|
|
8702
|
+
headers: jsonContentHeaders$l,
|
|
8650
8703
|
method: 'POST',
|
|
8651
8704
|
path: `/domain/v2beta1/ssl-certificates`
|
|
8652
8705
|
}, unmarshalSSLCertificate);
|
|
@@ -8707,7 +8760,7 @@ let API$l = class API extends API$u {
|
|
|
8707
8760
|
*
|
|
8708
8761
|
* Domains and DNS - Registrar API. Manage your domains and contacts.
|
|
8709
8762
|
*/
|
|
8710
|
-
class RegistrarAPI extends API$
|
|
8763
|
+
class RegistrarAPI extends API$v {
|
|
8711
8764
|
pageOfListTasks = (request = {}) => this.client.fetch({
|
|
8712
8765
|
method: 'GET',
|
|
8713
8766
|
path: `/domain/v2beta1/tasks`,
|
|
@@ -8732,7 +8785,7 @@ class RegistrarAPI extends API$u {
|
|
|
8732
8785
|
*/
|
|
8733
8786
|
buyDomains = request => this.client.fetch({
|
|
8734
8787
|
body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
|
|
8735
|
-
headers: jsonContentHeaders$
|
|
8788
|
+
headers: jsonContentHeaders$l,
|
|
8736
8789
|
method: 'POST',
|
|
8737
8790
|
path: `/domain/v2beta1/buy-domains`
|
|
8738
8791
|
}, unmarshalOrderResponse);
|
|
@@ -8745,7 +8798,7 @@ class RegistrarAPI extends API$u {
|
|
|
8745
8798
|
*/
|
|
8746
8799
|
renewDomains = request => this.client.fetch({
|
|
8747
8800
|
body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
|
|
8748
|
-
headers: jsonContentHeaders$
|
|
8801
|
+
headers: jsonContentHeaders$l,
|
|
8749
8802
|
method: 'POST',
|
|
8750
8803
|
path: `/domain/v2beta1/renew-domains`
|
|
8751
8804
|
}, unmarshalOrderResponse);
|
|
@@ -8759,7 +8812,7 @@ class RegistrarAPI extends API$u {
|
|
|
8759
8812
|
*/
|
|
8760
8813
|
transferInDomain = request => this.client.fetch({
|
|
8761
8814
|
body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
|
|
8762
|
-
headers: jsonContentHeaders$
|
|
8815
|
+
headers: jsonContentHeaders$l,
|
|
8763
8816
|
method: 'POST',
|
|
8764
8817
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
8765
8818
|
}, unmarshalOrderResponse);
|
|
@@ -8779,7 +8832,7 @@ class RegistrarAPI extends API$u {
|
|
|
8779
8832
|
*/
|
|
8780
8833
|
tradeDomain = request => this.client.fetch({
|
|
8781
8834
|
body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
|
|
8782
|
-
headers: jsonContentHeaders$
|
|
8835
|
+
headers: jsonContentHeaders$l,
|
|
8783
8836
|
method: 'POST',
|
|
8784
8837
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
8785
8838
|
}, unmarshalOrderResponse);
|
|
@@ -8794,7 +8847,7 @@ class RegistrarAPI extends API$u {
|
|
|
8794
8847
|
*/
|
|
8795
8848
|
registerExternalDomain = request => this.client.fetch({
|
|
8796
8849
|
body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
|
|
8797
|
-
headers: jsonContentHeaders$
|
|
8850
|
+
headers: jsonContentHeaders$l,
|
|
8798
8851
|
method: 'POST',
|
|
8799
8852
|
path: `/domain/v2beta1/external-domains`
|
|
8800
8853
|
}, unmarshalRegisterExternalDomainResponse);
|
|
@@ -8822,7 +8875,7 @@ class RegistrarAPI extends API$u {
|
|
|
8822
8875
|
*/
|
|
8823
8876
|
checkContactsCompatibility = (request = {}) => this.client.fetch({
|
|
8824
8877
|
body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
|
|
8825
|
-
headers: jsonContentHeaders$
|
|
8878
|
+
headers: jsonContentHeaders$l,
|
|
8826
8879
|
method: 'POST',
|
|
8827
8880
|
path: `/domain/v2beta1/check-contacts-compatibility`
|
|
8828
8881
|
}, unmarshalCheckContactsCompatibilityResponse);
|
|
@@ -8861,7 +8914,7 @@ class RegistrarAPI extends API$u {
|
|
|
8861
8914
|
*/
|
|
8862
8915
|
updateContact = request => this.client.fetch({
|
|
8863
8916
|
body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
|
|
8864
|
-
headers: jsonContentHeaders$
|
|
8917
|
+
headers: jsonContentHeaders$l,
|
|
8865
8918
|
method: 'PATCH',
|
|
8866
8919
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
8867
8920
|
}, unmarshalContact);
|
|
@@ -8926,7 +8979,7 @@ class RegistrarAPI extends API$u {
|
|
|
8926
8979
|
*/
|
|
8927
8980
|
updateDomain = request => this.client.fetch({
|
|
8928
8981
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
|
|
8929
|
-
headers: jsonContentHeaders$
|
|
8982
|
+
headers: jsonContentHeaders$l,
|
|
8930
8983
|
method: 'PATCH',
|
|
8931
8984
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
8932
8985
|
}, unmarshalDomain$2);
|
|
@@ -8941,7 +8994,7 @@ class RegistrarAPI extends API$u {
|
|
|
8941
8994
|
*/
|
|
8942
8995
|
lockDomainTransfer = request => this.client.fetch({
|
|
8943
8996
|
body: '{}',
|
|
8944
|
-
headers: jsonContentHeaders$
|
|
8997
|
+
headers: jsonContentHeaders$l,
|
|
8945
8998
|
method: 'POST',
|
|
8946
8999
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
8947
9000
|
}, unmarshalDomain$2);
|
|
@@ -8956,7 +9009,7 @@ class RegistrarAPI extends API$u {
|
|
|
8956
9009
|
*/
|
|
8957
9010
|
unlockDomainTransfer = request => this.client.fetch({
|
|
8958
9011
|
body: '{}',
|
|
8959
|
-
headers: jsonContentHeaders$
|
|
9012
|
+
headers: jsonContentHeaders$l,
|
|
8960
9013
|
method: 'POST',
|
|
8961
9014
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
8962
9015
|
}, unmarshalDomain$2);
|
|
@@ -8971,7 +9024,7 @@ class RegistrarAPI extends API$u {
|
|
|
8971
9024
|
*/
|
|
8972
9025
|
enableDomainAutoRenew = request => this.client.fetch({
|
|
8973
9026
|
body: '{}',
|
|
8974
|
-
headers: jsonContentHeaders$
|
|
9027
|
+
headers: jsonContentHeaders$l,
|
|
8975
9028
|
method: 'POST',
|
|
8976
9029
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
8977
9030
|
}, unmarshalDomain$2);
|
|
@@ -8986,7 +9039,7 @@ class RegistrarAPI extends API$u {
|
|
|
8986
9039
|
*/
|
|
8987
9040
|
disableDomainAutoRenew = request => this.client.fetch({
|
|
8988
9041
|
body: '{}',
|
|
8989
|
-
headers: jsonContentHeaders$
|
|
9042
|
+
headers: jsonContentHeaders$l,
|
|
8990
9043
|
method: 'POST',
|
|
8991
9044
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
8992
9045
|
}, unmarshalDomain$2);
|
|
@@ -9015,7 +9068,7 @@ class RegistrarAPI extends API$u {
|
|
|
9015
9068
|
*/
|
|
9016
9069
|
enableDomainDNSSEC = request => this.client.fetch({
|
|
9017
9070
|
body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
|
|
9018
|
-
headers: jsonContentHeaders$
|
|
9071
|
+
headers: jsonContentHeaders$l,
|
|
9019
9072
|
method: 'POST',
|
|
9020
9073
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
9021
9074
|
}, unmarshalDomain$2);
|
|
@@ -9028,7 +9081,7 @@ class RegistrarAPI extends API$u {
|
|
|
9028
9081
|
*/
|
|
9029
9082
|
disableDomainDNSSEC = request => this.client.fetch({
|
|
9030
9083
|
body: '{}',
|
|
9031
|
-
headers: jsonContentHeaders$
|
|
9084
|
+
headers: jsonContentHeaders$l,
|
|
9032
9085
|
method: 'POST',
|
|
9033
9086
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
9034
9087
|
}, unmarshalDomain$2);
|
|
@@ -9072,7 +9125,7 @@ class RegistrarAPI extends API$u {
|
|
|
9072
9125
|
*/
|
|
9073
9126
|
createDomainHost = request => this.client.fetch({
|
|
9074
9127
|
body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
|
|
9075
|
-
headers: jsonContentHeaders$
|
|
9128
|
+
headers: jsonContentHeaders$l,
|
|
9076
9129
|
method: 'POST',
|
|
9077
9130
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
|
|
9078
9131
|
}, unmarshalHost);
|
|
@@ -9098,7 +9151,7 @@ class RegistrarAPI extends API$u {
|
|
|
9098
9151
|
*/
|
|
9099
9152
|
updateDomainHost = request => this.client.fetch({
|
|
9100
9153
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
|
|
9101
|
-
headers: jsonContentHeaders$
|
|
9154
|
+
headers: jsonContentHeaders$l,
|
|
9102
9155
|
method: 'PATCH',
|
|
9103
9156
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
9104
9157
|
}, unmarshalHost);
|
|
@@ -9118,9 +9171,9 @@ class RegistrarAPI extends API$u {
|
|
|
9118
9171
|
// This file was automatically generated. DO NOT EDIT.
|
|
9119
9172
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9120
9173
|
|
|
9121
|
-
var index_gen$
|
|
9174
|
+
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
9122
9175
|
__proto__: null,
|
|
9123
|
-
API: API$
|
|
9176
|
+
API: API$m,
|
|
9124
9177
|
DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
|
|
9125
9178
|
DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
|
|
9126
9179
|
DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
|
|
@@ -9131,9 +9184,9 @@ var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
|
9131
9184
|
TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
|
|
9132
9185
|
});
|
|
9133
9186
|
|
|
9134
|
-
var index$
|
|
9187
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
9135
9188
|
__proto__: null,
|
|
9136
|
-
v2beta1: index_gen$
|
|
9189
|
+
v2beta1: index_gen$k
|
|
9137
9190
|
});
|
|
9138
9191
|
|
|
9139
9192
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9240,12 +9293,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
|
|
|
9240
9293
|
|
|
9241
9294
|
// This file was automatically generated. DO NOT EDIT.
|
|
9242
9295
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9243
|
-
const jsonContentHeaders$
|
|
9296
|
+
const jsonContentHeaders$k = {
|
|
9244
9297
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9245
9298
|
};
|
|
9246
9299
|
|
|
9247
9300
|
/** Elastic Metal - Flexible IP API. */
|
|
9248
|
-
let API$
|
|
9301
|
+
let API$l = class API extends API$v {
|
|
9249
9302
|
/** Lists the available zones of the API. */
|
|
9250
9303
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
9251
9304
|
|
|
@@ -9258,7 +9311,7 @@ let API$k = class API extends API$u {
|
|
|
9258
9311
|
*/
|
|
9259
9312
|
createFlexibleIP = request => this.client.fetch({
|
|
9260
9313
|
body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
|
|
9261
|
-
headers: jsonContentHeaders$
|
|
9314
|
+
headers: jsonContentHeaders$k,
|
|
9262
9315
|
method: 'POST',
|
|
9263
9316
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
9264
9317
|
}, unmarshalFlexibleIP);
|
|
@@ -9308,7 +9361,7 @@ let API$k = class API extends API$u {
|
|
|
9308
9361
|
*/
|
|
9309
9362
|
updateFlexibleIP = request => this.client.fetch({
|
|
9310
9363
|
body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
|
|
9311
|
-
headers: jsonContentHeaders$
|
|
9364
|
+
headers: jsonContentHeaders$k,
|
|
9312
9365
|
method: 'PATCH',
|
|
9313
9366
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
9314
9367
|
}, unmarshalFlexibleIP);
|
|
@@ -9334,7 +9387,7 @@ let API$k = class API extends API$u {
|
|
|
9334
9387
|
*/
|
|
9335
9388
|
attachFlexibleIP = request => this.client.fetch({
|
|
9336
9389
|
body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
|
|
9337
|
-
headers: jsonContentHeaders$
|
|
9390
|
+
headers: jsonContentHeaders$k,
|
|
9338
9391
|
method: 'POST',
|
|
9339
9392
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
9340
9393
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
@@ -9348,7 +9401,7 @@ let API$k = class API extends API$u {
|
|
|
9348
9401
|
*/
|
|
9349
9402
|
detachFlexibleIP = request => this.client.fetch({
|
|
9350
9403
|
body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
|
|
9351
|
-
headers: jsonContentHeaders$
|
|
9404
|
+
headers: jsonContentHeaders$k,
|
|
9352
9405
|
method: 'POST',
|
|
9353
9406
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
9354
9407
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
@@ -9362,7 +9415,7 @@ let API$k = class API extends API$u {
|
|
|
9362
9415
|
*/
|
|
9363
9416
|
generateMACAddr = request => this.client.fetch({
|
|
9364
9417
|
body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
|
|
9365
|
-
headers: jsonContentHeaders$
|
|
9418
|
+
headers: jsonContentHeaders$k,
|
|
9366
9419
|
method: 'POST',
|
|
9367
9420
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
9368
9421
|
}, unmarshalFlexibleIP);
|
|
@@ -9377,7 +9430,7 @@ let API$k = class API extends API$u {
|
|
|
9377
9430
|
*/
|
|
9378
9431
|
duplicateMACAddr = request => this.client.fetch({
|
|
9379
9432
|
body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
|
|
9380
|
-
headers: jsonContentHeaders$
|
|
9433
|
+
headers: jsonContentHeaders$k,
|
|
9381
9434
|
method: 'POST',
|
|
9382
9435
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
9383
9436
|
}, unmarshalFlexibleIP);
|
|
@@ -9392,7 +9445,7 @@ let API$k = class API extends API$u {
|
|
|
9392
9445
|
*/
|
|
9393
9446
|
moveMACAddr = request => this.client.fetch({
|
|
9394
9447
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
9395
|
-
headers: jsonContentHeaders$
|
|
9448
|
+
headers: jsonContentHeaders$k,
|
|
9396
9449
|
method: 'POST',
|
|
9397
9450
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
9398
9451
|
}, unmarshalFlexibleIP);
|
|
@@ -9422,7 +9475,7 @@ const ListFlexibleIPsRequest = {
|
|
|
9422
9475
|
}
|
|
9423
9476
|
};
|
|
9424
9477
|
|
|
9425
|
-
var validationRules_gen$
|
|
9478
|
+
var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
9426
9479
|
__proto__: null,
|
|
9427
9480
|
ListFlexibleIPsRequest: ListFlexibleIPsRequest
|
|
9428
9481
|
});
|
|
@@ -9430,17 +9483,17 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
9430
9483
|
// This file was automatically generated. DO NOT EDIT.
|
|
9431
9484
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9432
9485
|
|
|
9433
|
-
var index_gen$
|
|
9486
|
+
var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
9434
9487
|
__proto__: null,
|
|
9435
|
-
API: API$
|
|
9488
|
+
API: API$l,
|
|
9436
9489
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
9437
9490
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
9438
|
-
ValidationRules: validationRules_gen$
|
|
9491
|
+
ValidationRules: validationRules_gen$7
|
|
9439
9492
|
});
|
|
9440
9493
|
|
|
9441
|
-
var index$
|
|
9494
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
9442
9495
|
__proto__: null,
|
|
9443
|
-
v1alpha1: index_gen$
|
|
9496
|
+
v1alpha1: index_gen$j
|
|
9444
9497
|
});
|
|
9445
9498
|
|
|
9446
9499
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9813,12 +9866,12 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
9813
9866
|
...resolveOneOf([{
|
|
9814
9867
|
param: 'scw_sqs_config',
|
|
9815
9868
|
value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
|
|
9816
|
-
}, {
|
|
9817
|
-
param: 'sqs_config',
|
|
9818
|
-
value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
|
|
9819
9869
|
}, {
|
|
9820
9870
|
param: 'scw_nats_config',
|
|
9821
9871
|
value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
|
|
9872
|
+
}, {
|
|
9873
|
+
param: 'sqs_config',
|
|
9874
|
+
value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
|
|
9822
9875
|
}])
|
|
9823
9876
|
});
|
|
9824
9877
|
const marshalUpdateCronRequest = (request, defaults) => ({
|
|
@@ -9857,12 +9910,12 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
9857
9910
|
|
|
9858
9911
|
// This file was automatically generated. DO NOT EDIT.
|
|
9859
9912
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9860
|
-
const jsonContentHeaders$
|
|
9913
|
+
const jsonContentHeaders$j = {
|
|
9861
9914
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9862
9915
|
};
|
|
9863
9916
|
|
|
9864
9917
|
/** Serverless Functions API. */
|
|
9865
|
-
let API$
|
|
9918
|
+
let API$k = class API extends API$v {
|
|
9866
9919
|
/** Lists the available regions of the API. */
|
|
9867
9920
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
9868
9921
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -9909,7 +9962,7 @@ let API$j = class API extends API$u {
|
|
|
9909
9962
|
*/
|
|
9910
9963
|
createNamespace = (request = {}) => this.client.fetch({
|
|
9911
9964
|
body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
|
|
9912
|
-
headers: jsonContentHeaders$
|
|
9965
|
+
headers: jsonContentHeaders$j,
|
|
9913
9966
|
method: 'POST',
|
|
9914
9967
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
9915
9968
|
}, unmarshalNamespace$2);
|
|
@@ -9923,7 +9976,7 @@ let API$j = class API extends API$u {
|
|
|
9923
9976
|
*/
|
|
9924
9977
|
updateNamespace = request => this.client.fetch({
|
|
9925
9978
|
body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
|
|
9926
|
-
headers: jsonContentHeaders$
|
|
9979
|
+
headers: jsonContentHeaders$j,
|
|
9927
9980
|
method: 'PATCH',
|
|
9928
9981
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
9929
9982
|
}, unmarshalNamespace$2);
|
|
@@ -9982,7 +10035,7 @@ let API$j = class API extends API$u {
|
|
|
9982
10035
|
*/
|
|
9983
10036
|
createFunction = request => this.client.fetch({
|
|
9984
10037
|
body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
|
|
9985
|
-
headers: jsonContentHeaders$
|
|
10038
|
+
headers: jsonContentHeaders$j,
|
|
9986
10039
|
method: 'POST',
|
|
9987
10040
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
9988
10041
|
}, unmarshalFunction);
|
|
@@ -9996,7 +10049,7 @@ let API$j = class API extends API$u {
|
|
|
9996
10049
|
*/
|
|
9997
10050
|
updateFunction = request => this.client.fetch({
|
|
9998
10051
|
body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
|
|
9999
|
-
headers: jsonContentHeaders$
|
|
10052
|
+
headers: jsonContentHeaders$j,
|
|
10000
10053
|
method: 'PATCH',
|
|
10001
10054
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
10002
10055
|
}, unmarshalFunction);
|
|
@@ -10020,7 +10073,7 @@ let API$j = class API extends API$u {
|
|
|
10020
10073
|
*/
|
|
10021
10074
|
deployFunction = request => this.client.fetch({
|
|
10022
10075
|
body: '{}',
|
|
10023
|
-
headers: jsonContentHeaders$
|
|
10076
|
+
headers: jsonContentHeaders$j,
|
|
10024
10077
|
method: 'POST',
|
|
10025
10078
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
10026
10079
|
}, unmarshalFunction);
|
|
@@ -10103,7 +10156,7 @@ let API$j = class API extends API$u {
|
|
|
10103
10156
|
*/
|
|
10104
10157
|
createCron = request => this.client.fetch({
|
|
10105
10158
|
body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
|
|
10106
|
-
headers: jsonContentHeaders$
|
|
10159
|
+
headers: jsonContentHeaders$j,
|
|
10107
10160
|
method: 'POST',
|
|
10108
10161
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
10109
10162
|
}, unmarshalCron);
|
|
@@ -10116,7 +10169,7 @@ let API$j = class API extends API$u {
|
|
|
10116
10169
|
*/
|
|
10117
10170
|
updateCron = request => this.client.fetch({
|
|
10118
10171
|
body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
|
|
10119
|
-
headers: jsonContentHeaders$
|
|
10172
|
+
headers: jsonContentHeaders$j,
|
|
10120
10173
|
method: 'PATCH',
|
|
10121
10174
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
10122
10175
|
}, unmarshalCron);
|
|
@@ -10190,7 +10243,7 @@ let API$j = class API extends API$u {
|
|
|
10190
10243
|
*/
|
|
10191
10244
|
createDomain = request => this.client.fetch({
|
|
10192
10245
|
body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
|
|
10193
|
-
headers: jsonContentHeaders$
|
|
10246
|
+
headers: jsonContentHeaders$j,
|
|
10194
10247
|
method: 'POST',
|
|
10195
10248
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
10196
10249
|
}, unmarshalDomain$1);
|
|
@@ -10232,7 +10285,7 @@ let API$j = class API extends API$u {
|
|
|
10232
10285
|
*/
|
|
10233
10286
|
createToken = (request = {}) => this.client.fetch({
|
|
10234
10287
|
body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
|
|
10235
|
-
headers: jsonContentHeaders$
|
|
10288
|
+
headers: jsonContentHeaders$j,
|
|
10236
10289
|
method: 'POST',
|
|
10237
10290
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
10238
10291
|
}, unmarshalToken);
|
|
@@ -10282,7 +10335,7 @@ let API$j = class API extends API$u {
|
|
|
10282
10335
|
}, unmarshalToken);
|
|
10283
10336
|
createTrigger = request => this.client.fetch({
|
|
10284
10337
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
10285
|
-
headers: jsonContentHeaders$
|
|
10338
|
+
headers: jsonContentHeaders$j,
|
|
10286
10339
|
method: 'POST',
|
|
10287
10340
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
10288
10341
|
}, unmarshalTrigger);
|
|
@@ -10317,7 +10370,7 @@ let API$j = class API extends API$u {
|
|
|
10317
10370
|
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
10318
10371
|
updateTrigger = request => this.client.fetch({
|
|
10319
10372
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
10320
|
-
headers: jsonContentHeaders$
|
|
10373
|
+
headers: jsonContentHeaders$j,
|
|
10321
10374
|
method: 'PATCH',
|
|
10322
10375
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
10323
10376
|
}, unmarshalTrigger);
|
|
@@ -10330,20 +10383,72 @@ let API$j = class API extends API$u {
|
|
|
10330
10383
|
// This file was automatically generated. DO NOT EDIT.
|
|
10331
10384
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10332
10385
|
|
|
10333
|
-
|
|
10386
|
+
const CreateTriggerRequest = {
|
|
10387
|
+
description: {
|
|
10388
|
+
maxLength: 255
|
|
10389
|
+
},
|
|
10390
|
+
name: {
|
|
10391
|
+
maxLength: 50,
|
|
10392
|
+
minLength: 1
|
|
10393
|
+
}
|
|
10394
|
+
};
|
|
10395
|
+
const CreateTriggerRequestMnqNatsClientConfig = {
|
|
10396
|
+
mnqRegion: {
|
|
10397
|
+
maxLength: 20,
|
|
10398
|
+
minLength: 1
|
|
10399
|
+
},
|
|
10400
|
+
subject: {
|
|
10401
|
+
maxLength: 100,
|
|
10402
|
+
minLength: 1,
|
|
10403
|
+
pattern: /^[^\s]+$/
|
|
10404
|
+
}
|
|
10405
|
+
};
|
|
10406
|
+
const CreateTriggerRequestMnqSqsClientConfig = {
|
|
10407
|
+
mnqRegion: {
|
|
10408
|
+
maxLength: 20,
|
|
10409
|
+
minLength: 1
|
|
10410
|
+
},
|
|
10411
|
+
queue: {
|
|
10412
|
+
maxLength: 100,
|
|
10413
|
+
minLength: 1
|
|
10414
|
+
}
|
|
10415
|
+
};
|
|
10416
|
+
const UpdateTriggerRequest = {
|
|
10417
|
+
description: {
|
|
10418
|
+
maxLength: 255
|
|
10419
|
+
},
|
|
10420
|
+
name: {
|
|
10421
|
+
maxLength: 50,
|
|
10422
|
+
minLength: 1
|
|
10423
|
+
}
|
|
10424
|
+
};
|
|
10425
|
+
|
|
10426
|
+
var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
10334
10427
|
__proto__: null,
|
|
10335
|
-
|
|
10428
|
+
CreateTriggerRequest: CreateTriggerRequest,
|
|
10429
|
+
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig,
|
|
10430
|
+
CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig,
|
|
10431
|
+
UpdateTriggerRequest: UpdateTriggerRequest
|
|
10432
|
+
});
|
|
10433
|
+
|
|
10434
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
10435
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10436
|
+
|
|
10437
|
+
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
10438
|
+
__proto__: null,
|
|
10439
|
+
API: API$k,
|
|
10336
10440
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
|
|
10337
10441
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
|
|
10338
10442
|
FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
|
|
10339
10443
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$1,
|
|
10340
10444
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES,
|
|
10341
|
-
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES
|
|
10445
|
+
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES,
|
|
10446
|
+
ValidationRules: validationRules_gen$6
|
|
10342
10447
|
});
|
|
10343
10448
|
|
|
10344
|
-
var index$
|
|
10449
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
10345
10450
|
__proto__: null,
|
|
10346
|
-
v1beta1: index_gen$
|
|
10451
|
+
v1beta1: index_gen$i
|
|
10347
10452
|
});
|
|
10348
10453
|
|
|
10349
10454
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -10726,12 +10831,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
10726
10831
|
|
|
10727
10832
|
// This file was automatically generated. DO NOT EDIT.
|
|
10728
10833
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10729
|
-
const jsonContentHeaders$
|
|
10834
|
+
const jsonContentHeaders$i = {
|
|
10730
10835
|
'Content-Type': 'application/json; charset=utf-8'
|
|
10731
10836
|
};
|
|
10732
10837
|
|
|
10733
10838
|
/** IAM API. */
|
|
10734
|
-
let API$
|
|
10839
|
+
let API$j = class API extends API$v {
|
|
10735
10840
|
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
10736
10841
|
method: 'GET',
|
|
10737
10842
|
path: `/iam/v1alpha1/ssh-keys`,
|
|
@@ -10758,7 +10863,7 @@ let API$i = class API extends API$u {
|
|
|
10758
10863
|
*/
|
|
10759
10864
|
createSSHKey = request => this.client.fetch({
|
|
10760
10865
|
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
10761
|
-
headers: jsonContentHeaders$
|
|
10866
|
+
headers: jsonContentHeaders$i,
|
|
10762
10867
|
method: 'POST',
|
|
10763
10868
|
path: `/iam/v1alpha1/ssh-keys`
|
|
10764
10869
|
}, unmarshalSSHKey);
|
|
@@ -10785,7 +10890,7 @@ let API$i = class API extends API$u {
|
|
|
10785
10890
|
*/
|
|
10786
10891
|
updateSSHKey = request => this.client.fetch({
|
|
10787
10892
|
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
10788
|
-
headers: jsonContentHeaders$
|
|
10893
|
+
headers: jsonContentHeaders$i,
|
|
10789
10894
|
method: 'PATCH',
|
|
10790
10895
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
10791
10896
|
}, unmarshalSSHKey);
|
|
@@ -10855,7 +10960,7 @@ let API$i = class API extends API$u {
|
|
|
10855
10960
|
*/
|
|
10856
10961
|
createUser = request => this.client.fetch({
|
|
10857
10962
|
body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
|
|
10858
|
-
headers: jsonContentHeaders$
|
|
10963
|
+
headers: jsonContentHeaders$i,
|
|
10859
10964
|
method: 'POST',
|
|
10860
10965
|
path: `/iam/v1alpha1/users`
|
|
10861
10966
|
}, unmarshalUser$1);
|
|
@@ -10887,7 +10992,7 @@ let API$i = class API extends API$u {
|
|
|
10887
10992
|
*/
|
|
10888
10993
|
createApplication = request => this.client.fetch({
|
|
10889
10994
|
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
10890
|
-
headers: jsonContentHeaders$
|
|
10995
|
+
headers: jsonContentHeaders$i,
|
|
10891
10996
|
method: 'POST',
|
|
10892
10997
|
path: `/iam/v1alpha1/applications`
|
|
10893
10998
|
}, unmarshalApplication);
|
|
@@ -10915,7 +11020,7 @@ let API$i = class API extends API$u {
|
|
|
10915
11020
|
*/
|
|
10916
11021
|
updateApplication = request => this.client.fetch({
|
|
10917
11022
|
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
10918
|
-
headers: jsonContentHeaders$
|
|
11023
|
+
headers: jsonContentHeaders$i,
|
|
10919
11024
|
method: 'PATCH',
|
|
10920
11025
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
10921
11026
|
}, unmarshalApplication);
|
|
@@ -10959,7 +11064,7 @@ let API$i = class API extends API$u {
|
|
|
10959
11064
|
*/
|
|
10960
11065
|
createGroup = request => this.client.fetch({
|
|
10961
11066
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
10962
|
-
headers: jsonContentHeaders$
|
|
11067
|
+
headers: jsonContentHeaders$i,
|
|
10963
11068
|
method: 'POST',
|
|
10964
11069
|
path: `/iam/v1alpha1/groups`
|
|
10965
11070
|
}, unmarshalGroup);
|
|
@@ -10986,7 +11091,7 @@ let API$i = class API extends API$u {
|
|
|
10986
11091
|
*/
|
|
10987
11092
|
updateGroup = request => this.client.fetch({
|
|
10988
11093
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
10989
|
-
headers: jsonContentHeaders$
|
|
11094
|
+
headers: jsonContentHeaders$i,
|
|
10990
11095
|
method: 'PATCH',
|
|
10991
11096
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
10992
11097
|
}, unmarshalGroup);
|
|
@@ -11001,7 +11106,7 @@ let API$i = class API extends API$u {
|
|
|
11001
11106
|
*/
|
|
11002
11107
|
setGroupMembers = request => this.client.fetch({
|
|
11003
11108
|
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
11004
|
-
headers: jsonContentHeaders$
|
|
11109
|
+
headers: jsonContentHeaders$i,
|
|
11005
11110
|
method: 'PUT',
|
|
11006
11111
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
|
|
11007
11112
|
}, unmarshalGroup);
|
|
@@ -11016,7 +11121,7 @@ let API$i = class API extends API$u {
|
|
|
11016
11121
|
*/
|
|
11017
11122
|
addGroupMember = request => this.client.fetch({
|
|
11018
11123
|
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
11019
|
-
headers: jsonContentHeaders$
|
|
11124
|
+
headers: jsonContentHeaders$i,
|
|
11020
11125
|
method: 'POST',
|
|
11021
11126
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
11022
11127
|
}, unmarshalGroup);
|
|
@@ -11034,7 +11139,7 @@ let API$i = class API extends API$u {
|
|
|
11034
11139
|
*/
|
|
11035
11140
|
addGroupMembers = request => this.client.fetch({
|
|
11036
11141
|
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
11037
|
-
headers: jsonContentHeaders$
|
|
11142
|
+
headers: jsonContentHeaders$i,
|
|
11038
11143
|
method: 'POST',
|
|
11039
11144
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
11040
11145
|
}, unmarshalGroup);
|
|
@@ -11053,7 +11158,7 @@ let API$i = class API extends API$u {
|
|
|
11053
11158
|
*/
|
|
11054
11159
|
removeGroupMember = request => this.client.fetch({
|
|
11055
11160
|
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
11056
|
-
headers: jsonContentHeaders$
|
|
11161
|
+
headers: jsonContentHeaders$i,
|
|
11057
11162
|
method: 'POST',
|
|
11058
11163
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
|
|
11059
11164
|
}, unmarshalGroup);
|
|
@@ -11099,7 +11204,7 @@ let API$i = class API extends API$u {
|
|
|
11099
11204
|
*/
|
|
11100
11205
|
createPolicy = request => this.client.fetch({
|
|
11101
11206
|
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
11102
|
-
headers: jsonContentHeaders$
|
|
11207
|
+
headers: jsonContentHeaders$i,
|
|
11103
11208
|
method: 'POST',
|
|
11104
11209
|
path: `/iam/v1alpha1/policies`
|
|
11105
11210
|
}, unmarshalPolicy);
|
|
@@ -11128,7 +11233,7 @@ let API$i = class API extends API$u {
|
|
|
11128
11233
|
*/
|
|
11129
11234
|
updatePolicy = request => this.client.fetch({
|
|
11130
11235
|
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
11131
|
-
headers: jsonContentHeaders$
|
|
11236
|
+
headers: jsonContentHeaders$i,
|
|
11132
11237
|
method: 'PATCH',
|
|
11133
11238
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
|
|
11134
11239
|
}, unmarshalPolicy);
|
|
@@ -11155,7 +11260,7 @@ let API$i = class API extends API$u {
|
|
|
11155
11260
|
*/
|
|
11156
11261
|
clonePolicy = request => this.client.fetch({
|
|
11157
11262
|
body: '{}',
|
|
11158
|
-
headers: jsonContentHeaders$
|
|
11263
|
+
headers: jsonContentHeaders$i,
|
|
11159
11264
|
method: 'POST',
|
|
11160
11265
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
|
|
11161
11266
|
}, unmarshalPolicy);
|
|
@@ -11173,7 +11278,7 @@ let API$i = class API extends API$u {
|
|
|
11173
11278
|
*/
|
|
11174
11279
|
setRules = request => this.client.fetch({
|
|
11175
11280
|
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
11176
|
-
headers: jsonContentHeaders$
|
|
11281
|
+
headers: jsonContentHeaders$i,
|
|
11177
11282
|
method: 'PUT',
|
|
11178
11283
|
path: `/iam/v1alpha1/rules`
|
|
11179
11284
|
}, unmarshalSetRulesResponse);
|
|
@@ -11244,7 +11349,7 @@ let API$i = class API extends API$u {
|
|
|
11244
11349
|
*/
|
|
11245
11350
|
createAPIKey = request => this.client.fetch({
|
|
11246
11351
|
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
11247
|
-
headers: jsonContentHeaders$
|
|
11352
|
+
headers: jsonContentHeaders$i,
|
|
11248
11353
|
method: 'POST',
|
|
11249
11354
|
path: `/iam/v1alpha1/api-keys`
|
|
11250
11355
|
}, unmarshalAPIKey);
|
|
@@ -11274,7 +11379,7 @@ let API$i = class API extends API$u {
|
|
|
11274
11379
|
*/
|
|
11275
11380
|
updateAPIKey = request => this.client.fetch({
|
|
11276
11381
|
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
11277
|
-
headers: jsonContentHeaders$
|
|
11382
|
+
headers: jsonContentHeaders$i,
|
|
11278
11383
|
method: 'PATCH',
|
|
11279
11384
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
11280
11385
|
}, unmarshalAPIKey);
|
|
@@ -11563,7 +11668,7 @@ const UpdateSSHKeyRequest = {
|
|
|
11563
11668
|
}
|
|
11564
11669
|
};
|
|
11565
11670
|
|
|
11566
|
-
var validationRules_gen$
|
|
11671
|
+
var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
11567
11672
|
__proto__: null,
|
|
11568
11673
|
CreateAPIKeyRequest: CreateAPIKeyRequest,
|
|
11569
11674
|
CreateApplicationRequest: CreateApplicationRequest,
|
|
@@ -11591,15 +11696,15 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
|
11591
11696
|
// This file was automatically generated. DO NOT EDIT.
|
|
11592
11697
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
11593
11698
|
|
|
11594
|
-
var index_gen$
|
|
11699
|
+
var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
11595
11700
|
__proto__: null,
|
|
11596
|
-
API: API$
|
|
11597
|
-
ValidationRules: validationRules_gen$
|
|
11701
|
+
API: API$j,
|
|
11702
|
+
ValidationRules: validationRules_gen$5
|
|
11598
11703
|
});
|
|
11599
11704
|
|
|
11600
|
-
var index$
|
|
11705
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
11601
11706
|
__proto__: null,
|
|
11602
|
-
v1alpha1: index_gen$
|
|
11707
|
+
v1alpha1: index_gen$h
|
|
11603
11708
|
});
|
|
11604
11709
|
|
|
11605
11710
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -12991,12 +13096,12 @@ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
|
|
|
12991
13096
|
|
|
12992
13097
|
// This file was automatically generated. DO NOT EDIT.
|
|
12993
13098
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12994
|
-
const jsonContentHeaders$
|
|
13099
|
+
const jsonContentHeaders$h = {
|
|
12995
13100
|
'Content-Type': 'application/json; charset=utf-8'
|
|
12996
13101
|
};
|
|
12997
13102
|
|
|
12998
13103
|
/** Instance API. */
|
|
12999
|
-
let API$
|
|
13104
|
+
let API$i = class API extends API$v {
|
|
13000
13105
|
/** Lists the available zones of the API. */
|
|
13001
13106
|
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'];
|
|
13002
13107
|
|
|
@@ -13052,7 +13157,7 @@ let API$h = class API extends API$u {
|
|
|
13052
13157
|
listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
|
|
13053
13158
|
_createServer = request => this.client.fetch({
|
|
13054
13159
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
13055
|
-
headers: jsonContentHeaders$
|
|
13160
|
+
headers: jsonContentHeaders$h,
|
|
13056
13161
|
method: 'POST',
|
|
13057
13162
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
13058
13163
|
}, unmarshalCreateServerResponse);
|
|
@@ -13079,13 +13184,13 @@ let API$h = class API extends API$u {
|
|
|
13079
13184
|
}, unmarshalGetServerResponse);
|
|
13080
13185
|
_setServer = request => this.client.fetch({
|
|
13081
13186
|
body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
|
|
13082
|
-
headers: jsonContentHeaders$
|
|
13187
|
+
headers: jsonContentHeaders$h,
|
|
13083
13188
|
method: 'PUT',
|
|
13084
13189
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
|
|
13085
13190
|
}, unmarshalSetServerResponse);
|
|
13086
13191
|
_updateServer = request => this.client.fetch({
|
|
13087
13192
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
13088
|
-
headers: jsonContentHeaders$
|
|
13193
|
+
headers: jsonContentHeaders$h,
|
|
13089
13194
|
method: 'PATCH',
|
|
13090
13195
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
13091
13196
|
}, unmarshalUpdateServerResponse);
|
|
@@ -13123,7 +13228,7 @@ let API$h = class API extends API$u {
|
|
|
13123
13228
|
*/
|
|
13124
13229
|
serverAction = request => this.client.fetch({
|
|
13125
13230
|
body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
|
|
13126
|
-
headers: jsonContentHeaders$
|
|
13231
|
+
headers: jsonContentHeaders$h,
|
|
13127
13232
|
method: 'POST',
|
|
13128
13233
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
|
|
13129
13234
|
}, unmarshalServerActionResponse);
|
|
@@ -13182,13 +13287,13 @@ let API$h = class API extends API$u {
|
|
|
13182
13287
|
*/
|
|
13183
13288
|
createImage = request => this.client.fetch({
|
|
13184
13289
|
body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
|
|
13185
|
-
headers: jsonContentHeaders$
|
|
13290
|
+
headers: jsonContentHeaders$h,
|
|
13186
13291
|
method: 'POST',
|
|
13187
13292
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
|
|
13188
13293
|
}, unmarshalCreateImageResponse);
|
|
13189
13294
|
_setImage = request => this.client.fetch({
|
|
13190
13295
|
body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
|
|
13191
|
-
headers: jsonContentHeaders$
|
|
13296
|
+
headers: jsonContentHeaders$h,
|
|
13192
13297
|
method: 'PUT',
|
|
13193
13298
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
|
|
13194
13299
|
}, unmarshalSetImageResponse);
|
|
@@ -13227,7 +13332,7 @@ let API$h = class API extends API$u {
|
|
|
13227
13332
|
*/
|
|
13228
13333
|
createSnapshot = (request = {}) => this.client.fetch({
|
|
13229
13334
|
body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
|
|
13230
|
-
headers: jsonContentHeaders$
|
|
13335
|
+
headers: jsonContentHeaders$h,
|
|
13231
13336
|
method: 'POST',
|
|
13232
13337
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
13233
13338
|
}, unmarshalCreateSnapshotResponse);
|
|
@@ -13244,7 +13349,7 @@ let API$h = class API extends API$u {
|
|
|
13244
13349
|
}, unmarshalGetSnapshotResponse);
|
|
13245
13350
|
_setSnapshot = request => this.client.fetch({
|
|
13246
13351
|
body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
|
|
13247
|
-
headers: jsonContentHeaders$
|
|
13352
|
+
headers: jsonContentHeaders$h,
|
|
13248
13353
|
method: 'PUT',
|
|
13249
13354
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
13250
13355
|
}, unmarshalSetSnapshotResponse);
|
|
@@ -13268,7 +13373,7 @@ let API$h = class API extends API$u {
|
|
|
13268
13373
|
*/
|
|
13269
13374
|
exportSnapshot = request => this.client.fetch({
|
|
13270
13375
|
body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
|
|
13271
|
-
headers: jsonContentHeaders$
|
|
13376
|
+
headers: jsonContentHeaders$h,
|
|
13272
13377
|
method: 'POST',
|
|
13273
13378
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
|
|
13274
13379
|
}, unmarshalExportSnapshotResponse);
|
|
@@ -13296,7 +13401,7 @@ let API$h = class API extends API$u {
|
|
|
13296
13401
|
*/
|
|
13297
13402
|
createVolume = (request = {}) => this.client.fetch({
|
|
13298
13403
|
body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
|
|
13299
|
-
headers: jsonContentHeaders$
|
|
13404
|
+
headers: jsonContentHeaders$h,
|
|
13300
13405
|
method: 'POST',
|
|
13301
13406
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
13302
13407
|
}, unmarshalCreateVolumeResponse);
|
|
@@ -13322,7 +13427,7 @@ let API$h = class API extends API$u {
|
|
|
13322
13427
|
*/
|
|
13323
13428
|
updateVolume = request => this.client.fetch({
|
|
13324
13429
|
body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
|
|
13325
|
-
headers: jsonContentHeaders$
|
|
13430
|
+
headers: jsonContentHeaders$h,
|
|
13326
13431
|
method: 'PATCH',
|
|
13327
13432
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
13328
13433
|
}, unmarshalUpdateVolumeResponse);
|
|
@@ -13359,7 +13464,7 @@ let API$h = class API extends API$u {
|
|
|
13359
13464
|
*/
|
|
13360
13465
|
createSecurityGroup = request => this.client.fetch({
|
|
13361
13466
|
body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
|
|
13362
|
-
headers: jsonContentHeaders$
|
|
13467
|
+
headers: jsonContentHeaders$h,
|
|
13363
13468
|
method: 'POST',
|
|
13364
13469
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
13365
13470
|
}, unmarshalCreateSecurityGroupResponse);
|
|
@@ -13387,7 +13492,7 @@ let API$h = class API extends API$u {
|
|
|
13387
13492
|
});
|
|
13388
13493
|
_setSecurityGroup = request => this.client.fetch({
|
|
13389
13494
|
body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
|
|
13390
|
-
headers: jsonContentHeaders$
|
|
13495
|
+
headers: jsonContentHeaders$h,
|
|
13391
13496
|
method: 'PUT',
|
|
13392
13497
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
|
|
13393
13498
|
}, unmarshalSetSecurityGroupResponse);
|
|
@@ -13425,7 +13530,7 @@ let API$h = class API extends API$u {
|
|
|
13425
13530
|
*/
|
|
13426
13531
|
createSecurityGroupRule = request => this.client.fetch({
|
|
13427
13532
|
body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13428
|
-
headers: jsonContentHeaders$
|
|
13533
|
+
headers: jsonContentHeaders$h,
|
|
13429
13534
|
method: 'POST',
|
|
13430
13535
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13431
13536
|
}, unmarshalCreateSecurityGroupRuleResponse);
|
|
@@ -13441,7 +13546,7 @@ let API$h = class API extends API$u {
|
|
|
13441
13546
|
*/
|
|
13442
13547
|
setSecurityGroupRules = request => this.client.fetch({
|
|
13443
13548
|
body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
|
|
13444
|
-
headers: jsonContentHeaders$
|
|
13549
|
+
headers: jsonContentHeaders$h,
|
|
13445
13550
|
method: 'PUT',
|
|
13446
13551
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13447
13552
|
}, unmarshalSetSecurityGroupRulesResponse);
|
|
@@ -13468,7 +13573,7 @@ let API$h = class API extends API$u {
|
|
|
13468
13573
|
}, unmarshalGetSecurityGroupRuleResponse);
|
|
13469
13574
|
_setSecurityGroupRule = request => this.client.fetch({
|
|
13470
13575
|
body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13471
|
-
headers: jsonContentHeaders$
|
|
13576
|
+
headers: jsonContentHeaders$h,
|
|
13472
13577
|
method: 'PUT',
|
|
13473
13578
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
|
|
13474
13579
|
}, unmarshalSetSecurityGroupRuleResponse);
|
|
@@ -13496,7 +13601,7 @@ let API$h = class API extends API$u {
|
|
|
13496
13601
|
*/
|
|
13497
13602
|
createPlacementGroup = (request = {}) => this.client.fetch({
|
|
13498
13603
|
body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
|
|
13499
|
-
headers: jsonContentHeaders$
|
|
13604
|
+
headers: jsonContentHeaders$h,
|
|
13500
13605
|
method: 'POST',
|
|
13501
13606
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
13502
13607
|
}, unmarshalCreatePlacementGroupResponse);
|
|
@@ -13520,7 +13625,7 @@ let API$h = class API extends API$u {
|
|
|
13520
13625
|
*/
|
|
13521
13626
|
setPlacementGroup = request => this.client.fetch({
|
|
13522
13627
|
body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
|
|
13523
|
-
headers: jsonContentHeaders$
|
|
13628
|
+
headers: jsonContentHeaders$h,
|
|
13524
13629
|
method: 'PUT',
|
|
13525
13630
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13526
13631
|
}, unmarshalSetPlacementGroupResponse);
|
|
@@ -13534,7 +13639,7 @@ let API$h = class API extends API$u {
|
|
|
13534
13639
|
*/
|
|
13535
13640
|
updatePlacementGroup = request => this.client.fetch({
|
|
13536
13641
|
body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
|
|
13537
|
-
headers: jsonContentHeaders$
|
|
13642
|
+
headers: jsonContentHeaders$h,
|
|
13538
13643
|
method: 'PATCH',
|
|
13539
13644
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13540
13645
|
}, unmarshalUpdatePlacementGroupResponse);
|
|
@@ -13570,7 +13675,7 @@ let API$h = class API extends API$u {
|
|
|
13570
13675
|
*/
|
|
13571
13676
|
setPlacementGroupServers = request => this.client.fetch({
|
|
13572
13677
|
body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
|
|
13573
|
-
headers: jsonContentHeaders$
|
|
13678
|
+
headers: jsonContentHeaders$h,
|
|
13574
13679
|
method: 'PUT',
|
|
13575
13680
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13576
13681
|
}, unmarshalSetPlacementGroupServersResponse);
|
|
@@ -13584,7 +13689,7 @@ let API$h = class API extends API$u {
|
|
|
13584
13689
|
*/
|
|
13585
13690
|
updatePlacementGroupServers = request => this.client.fetch({
|
|
13586
13691
|
body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
|
|
13587
|
-
headers: jsonContentHeaders$
|
|
13692
|
+
headers: jsonContentHeaders$h,
|
|
13588
13693
|
method: 'PATCH',
|
|
13589
13694
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13590
13695
|
}, unmarshalUpdatePlacementGroupServersResponse);
|
|
@@ -13611,7 +13716,7 @@ let API$h = class API extends API$u {
|
|
|
13611
13716
|
*/
|
|
13612
13717
|
createIp = (request = {}) => this.client.fetch({
|
|
13613
13718
|
body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
|
|
13614
|
-
headers: jsonContentHeaders$
|
|
13719
|
+
headers: jsonContentHeaders$h,
|
|
13615
13720
|
method: 'POST',
|
|
13616
13721
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
13617
13722
|
}, unmarshalCreateIpResponse);
|
|
@@ -13636,7 +13741,7 @@ let API$h = class API extends API$u {
|
|
|
13636
13741
|
*/
|
|
13637
13742
|
updateIp = request => this.client.fetch({
|
|
13638
13743
|
body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
|
|
13639
|
-
headers: jsonContentHeaders$
|
|
13744
|
+
headers: jsonContentHeaders$h,
|
|
13640
13745
|
method: 'PATCH',
|
|
13641
13746
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
|
|
13642
13747
|
}, unmarshalUpdateIpResponse);
|
|
@@ -13672,7 +13777,7 @@ let API$h = class API extends API$u {
|
|
|
13672
13777
|
*/
|
|
13673
13778
|
createPrivateNIC = request => this.client.fetch({
|
|
13674
13779
|
body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
|
|
13675
|
-
headers: jsonContentHeaders$
|
|
13780
|
+
headers: jsonContentHeaders$h,
|
|
13676
13781
|
method: 'POST',
|
|
13677
13782
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
|
|
13678
13783
|
}, unmarshalCreatePrivateNICResponse);
|
|
@@ -13697,7 +13802,7 @@ let API$h = class API extends API$u {
|
|
|
13697
13802
|
*/
|
|
13698
13803
|
updatePrivateNIC = request => this.client.fetch({
|
|
13699
13804
|
body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
|
|
13700
|
-
headers: jsonContentHeaders$
|
|
13805
|
+
headers: jsonContentHeaders$h,
|
|
13701
13806
|
method: 'PATCH',
|
|
13702
13807
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
|
|
13703
13808
|
}, unmarshalPrivateNIC);
|
|
@@ -13757,7 +13862,7 @@ let API$h = class API extends API$u {
|
|
|
13757
13862
|
*/
|
|
13758
13863
|
planBlockMigration = (request = {}) => this.client.fetch({
|
|
13759
13864
|
body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
|
|
13760
|
-
headers: jsonContentHeaders$
|
|
13865
|
+
headers: jsonContentHeaders$h,
|
|
13761
13866
|
method: 'POST',
|
|
13762
13867
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
|
|
13763
13868
|
}, unmarshalMigrationPlan);
|
|
@@ -13772,7 +13877,7 @@ let API$h = class API extends API$u {
|
|
|
13772
13877
|
*/
|
|
13773
13878
|
applyBlockMigration = request => this.client.fetch({
|
|
13774
13879
|
body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
|
|
13775
|
-
headers: jsonContentHeaders$
|
|
13880
|
+
headers: jsonContentHeaders$h,
|
|
13776
13881
|
method: 'POST',
|
|
13777
13882
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
|
|
13778
13883
|
});
|
|
@@ -13871,7 +13976,7 @@ const validateNotUndefined = obj => {
|
|
|
13871
13976
|
if (obj === undefined) throw new TypeError(`object was found undefined`);
|
|
13872
13977
|
return obj;
|
|
13873
13978
|
};
|
|
13874
|
-
class InstanceV1UtilsAPI extends API$
|
|
13979
|
+
class InstanceV1UtilsAPI extends API$i {
|
|
13875
13980
|
/**
|
|
13876
13981
|
* Waits for {@link Image} to be in a final state.
|
|
13877
13982
|
*
|
|
@@ -14228,7 +14333,7 @@ class InstanceV1UtilsAPI extends API$h {
|
|
|
14228
14333
|
});
|
|
14229
14334
|
}
|
|
14230
14335
|
|
|
14231
|
-
var index$
|
|
14336
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
14232
14337
|
__proto__: null,
|
|
14233
14338
|
API: InstanceV1UtilsAPI,
|
|
14234
14339
|
IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
|
|
@@ -14242,9 +14347,9 @@ var index$i = /*#__PURE__*/Object.freeze({
|
|
|
14242
14347
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
|
|
14243
14348
|
});
|
|
14244
14349
|
|
|
14245
|
-
var index$
|
|
14350
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
14246
14351
|
__proto__: null,
|
|
14247
|
-
v1: index$
|
|
14352
|
+
v1: index$j
|
|
14248
14353
|
});
|
|
14249
14354
|
|
|
14250
14355
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -14688,7 +14793,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
|
|
|
14688
14793
|
|
|
14689
14794
|
// This file was automatically generated. DO NOT EDIT.
|
|
14690
14795
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
14691
|
-
const jsonContentHeaders$
|
|
14796
|
+
const jsonContentHeaders$g = {
|
|
14692
14797
|
'Content-Type': 'application/json; charset=utf-8'
|
|
14693
14798
|
};
|
|
14694
14799
|
|
|
@@ -14697,7 +14802,7 @@ const jsonContentHeaders$f = {
|
|
|
14697
14802
|
*
|
|
14698
14803
|
* This API allows you to manage IoT hubs and devices. IoT Hub API.
|
|
14699
14804
|
*/
|
|
14700
|
-
let API$
|
|
14805
|
+
let API$h = class API extends API$v {
|
|
14701
14806
|
/** Lists the available regions of the API. */
|
|
14702
14807
|
static LOCALITIES = ['fr-par'];
|
|
14703
14808
|
pageOfListHubs = (request = {}) => this.client.fetch({
|
|
@@ -14725,7 +14830,7 @@ let API$g = class API extends API$u {
|
|
|
14725
14830
|
*/
|
|
14726
14831
|
createHub = request => this.client.fetch({
|
|
14727
14832
|
body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
|
|
14728
|
-
headers: jsonContentHeaders$
|
|
14833
|
+
headers: jsonContentHeaders$g,
|
|
14729
14834
|
method: 'POST',
|
|
14730
14835
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
|
|
14731
14836
|
}, unmarshalHub);
|
|
@@ -14761,7 +14866,7 @@ let API$g = class API extends API$u {
|
|
|
14761
14866
|
*/
|
|
14762
14867
|
updateHub = request => this.client.fetch({
|
|
14763
14868
|
body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
|
|
14764
|
-
headers: jsonContentHeaders$
|
|
14869
|
+
headers: jsonContentHeaders$g,
|
|
14765
14870
|
method: 'PATCH',
|
|
14766
14871
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
|
|
14767
14872
|
}, unmarshalHub);
|
|
@@ -14774,7 +14879,7 @@ let API$g = class API extends API$u {
|
|
|
14774
14879
|
*/
|
|
14775
14880
|
enableHub = request => this.client.fetch({
|
|
14776
14881
|
body: '{}',
|
|
14777
|
-
headers: jsonContentHeaders$
|
|
14882
|
+
headers: jsonContentHeaders$g,
|
|
14778
14883
|
method: 'POST',
|
|
14779
14884
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
|
|
14780
14885
|
}, unmarshalHub);
|
|
@@ -14787,7 +14892,7 @@ let API$g = class API extends API$u {
|
|
|
14787
14892
|
*/
|
|
14788
14893
|
disableHub = request => this.client.fetch({
|
|
14789
14894
|
body: '{}',
|
|
14790
|
-
headers: jsonContentHeaders$
|
|
14895
|
+
headers: jsonContentHeaders$g,
|
|
14791
14896
|
method: 'POST',
|
|
14792
14897
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
|
|
14793
14898
|
}, unmarshalHub);
|
|
@@ -14827,7 +14932,7 @@ let API$g = class API extends API$u {
|
|
|
14827
14932
|
*/
|
|
14828
14933
|
setHubCA = request => this.client.fetch({
|
|
14829
14934
|
body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
|
|
14830
|
-
headers: jsonContentHeaders$
|
|
14935
|
+
headers: jsonContentHeaders$g,
|
|
14831
14936
|
method: 'POST',
|
|
14832
14937
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
|
|
14833
14938
|
}, unmarshalHub);
|
|
@@ -14867,7 +14972,7 @@ let API$g = class API extends API$u {
|
|
|
14867
14972
|
*/
|
|
14868
14973
|
createDevice = request => this.client.fetch({
|
|
14869
14974
|
body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
|
|
14870
|
-
headers: jsonContentHeaders$
|
|
14975
|
+
headers: jsonContentHeaders$g,
|
|
14871
14976
|
method: 'POST',
|
|
14872
14977
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
|
|
14873
14978
|
}, unmarshalCreateDeviceResponse);
|
|
@@ -14894,7 +14999,7 @@ let API$g = class API extends API$u {
|
|
|
14894
14999
|
*/
|
|
14895
15000
|
updateDevice = request => this.client.fetch({
|
|
14896
15001
|
body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
|
|
14897
|
-
headers: jsonContentHeaders$
|
|
15002
|
+
headers: jsonContentHeaders$g,
|
|
14898
15003
|
method: 'PATCH',
|
|
14899
15004
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
|
|
14900
15005
|
}, unmarshalDevice);
|
|
@@ -14907,7 +15012,7 @@ let API$g = class API extends API$u {
|
|
|
14907
15012
|
*/
|
|
14908
15013
|
enableDevice = request => this.client.fetch({
|
|
14909
15014
|
body: '{}',
|
|
14910
|
-
headers: jsonContentHeaders$
|
|
15015
|
+
headers: jsonContentHeaders$g,
|
|
14911
15016
|
method: 'POST',
|
|
14912
15017
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
|
|
14913
15018
|
}, unmarshalDevice);
|
|
@@ -14920,7 +15025,7 @@ let API$g = class API extends API$u {
|
|
|
14920
15025
|
*/
|
|
14921
15026
|
disableDevice = request => this.client.fetch({
|
|
14922
15027
|
body: '{}',
|
|
14923
|
-
headers: jsonContentHeaders$
|
|
15028
|
+
headers: jsonContentHeaders$g,
|
|
14924
15029
|
method: 'POST',
|
|
14925
15030
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
|
|
14926
15031
|
}, unmarshalDevice);
|
|
@@ -14934,7 +15039,7 @@ let API$g = class API extends API$u {
|
|
|
14934
15039
|
*/
|
|
14935
15040
|
renewDeviceCertificate = request => this.client.fetch({
|
|
14936
15041
|
body: '{}',
|
|
14937
|
-
headers: jsonContentHeaders$
|
|
15042
|
+
headers: jsonContentHeaders$g,
|
|
14938
15043
|
method: 'POST',
|
|
14939
15044
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
|
|
14940
15045
|
}, unmarshalRenewDeviceCertificateResponse);
|
|
@@ -14948,7 +15053,7 @@ let API$g = class API extends API$u {
|
|
|
14948
15053
|
*/
|
|
14949
15054
|
setDeviceCertificate = request => this.client.fetch({
|
|
14950
15055
|
body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
|
|
14951
|
-
headers: jsonContentHeaders$
|
|
15056
|
+
headers: jsonContentHeaders$g,
|
|
14952
15057
|
method: 'PUT',
|
|
14953
15058
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
|
|
14954
15059
|
}, unmarshalSetDeviceCertificateResponse);
|
|
@@ -15023,7 +15128,7 @@ let API$g = class API extends API$u {
|
|
|
15023
15128
|
*/
|
|
15024
15129
|
createRoute = request => this.client.fetch({
|
|
15025
15130
|
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
15026
|
-
headers: jsonContentHeaders$
|
|
15131
|
+
headers: jsonContentHeaders$g,
|
|
15027
15132
|
method: 'POST',
|
|
15028
15133
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
15029
15134
|
}, unmarshalRoute$1);
|
|
@@ -15037,7 +15142,7 @@ let API$g = class API extends API$u {
|
|
|
15037
15142
|
*/
|
|
15038
15143
|
updateRoute = request => this.client.fetch({
|
|
15039
15144
|
body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
|
|
15040
|
-
headers: jsonContentHeaders$
|
|
15145
|
+
headers: jsonContentHeaders$g,
|
|
15041
15146
|
method: 'PATCH',
|
|
15042
15147
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
15043
15148
|
}, unmarshalRoute$1);
|
|
@@ -15089,7 +15194,7 @@ let API$g = class API extends API$u {
|
|
|
15089
15194
|
*/
|
|
15090
15195
|
createNetwork = request => this.client.fetch({
|
|
15091
15196
|
body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
|
|
15092
|
-
headers: jsonContentHeaders$
|
|
15197
|
+
headers: jsonContentHeaders$g,
|
|
15093
15198
|
method: 'POST',
|
|
15094
15199
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
|
|
15095
15200
|
}, unmarshalCreateNetworkResponse);
|
|
@@ -15137,7 +15242,7 @@ let API$g = class API extends API$u {
|
|
|
15137
15242
|
*/
|
|
15138
15243
|
putTwinDocument = request => this.client.fetch({
|
|
15139
15244
|
body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
|
|
15140
|
-
headers: jsonContentHeaders$
|
|
15245
|
+
headers: jsonContentHeaders$g,
|
|
15141
15246
|
method: 'PUT',
|
|
15142
15247
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15143
15248
|
}, unmarshalTwinDocument);
|
|
@@ -15150,7 +15255,7 @@ let API$g = class API extends API$u {
|
|
|
15150
15255
|
*/
|
|
15151
15256
|
patchTwinDocument = request => this.client.fetch({
|
|
15152
15257
|
body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
|
|
15153
|
-
headers: jsonContentHeaders$
|
|
15258
|
+
headers: jsonContentHeaders$g,
|
|
15154
15259
|
method: 'PATCH',
|
|
15155
15260
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15156
15261
|
}, unmarshalTwinDocument);
|
|
@@ -15190,10 +15295,203 @@ let API$g = class API extends API$u {
|
|
|
15190
15295
|
// This file was automatically generated. DO NOT EDIT.
|
|
15191
15296
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15192
15297
|
|
|
15298
|
+
var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
15299
|
+
__proto__: null,
|
|
15300
|
+
API: API$h,
|
|
15301
|
+
HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
|
|
15302
|
+
});
|
|
15303
|
+
|
|
15304
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
15305
|
+
__proto__: null,
|
|
15306
|
+
v1: index_gen$g
|
|
15307
|
+
});
|
|
15308
|
+
|
|
15309
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
15310
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15311
|
+
const unmarshalResource = data => {
|
|
15312
|
+
if (!isJSONObject(data)) {
|
|
15313
|
+
throw new TypeError(`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`);
|
|
15314
|
+
}
|
|
15315
|
+
return {
|
|
15316
|
+
id: data.id,
|
|
15317
|
+
macAddress: data.mac_address,
|
|
15318
|
+
name: data.name,
|
|
15319
|
+
type: data.type
|
|
15320
|
+
};
|
|
15321
|
+
};
|
|
15322
|
+
const unmarshalSource = data => {
|
|
15323
|
+
if (!isJSONObject(data)) {
|
|
15324
|
+
throw new TypeError(`Unmarshalling the type 'Source' failed as data isn't a dictionary.`);
|
|
15325
|
+
}
|
|
15326
|
+
return {
|
|
15327
|
+
privateNetworkId: data.private_network_id,
|
|
15328
|
+
subnetId: data.subnet_id,
|
|
15329
|
+
zonal: data.zonal
|
|
15330
|
+
};
|
|
15331
|
+
};
|
|
15332
|
+
const unmarshalIP$1 = data => {
|
|
15333
|
+
if (!isJSONObject(data)) {
|
|
15334
|
+
throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
|
|
15335
|
+
}
|
|
15336
|
+
return {
|
|
15337
|
+
address: data.address,
|
|
15338
|
+
createdAt: unmarshalDate(data.created_at),
|
|
15339
|
+
id: data.id,
|
|
15340
|
+
isIpv6: data.is_ipv6,
|
|
15341
|
+
projectId: data.project_id,
|
|
15342
|
+
region: data.region,
|
|
15343
|
+
resource: data.resource ? unmarshalResource(data.resource) : undefined,
|
|
15344
|
+
source: data.source ? unmarshalSource(data.source) : undefined,
|
|
15345
|
+
tags: data.tags,
|
|
15346
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
15347
|
+
zone: data.zone
|
|
15348
|
+
};
|
|
15349
|
+
};
|
|
15350
|
+
const unmarshalListIPsResponse$1 = data => {
|
|
15351
|
+
if (!isJSONObject(data)) {
|
|
15352
|
+
throw new TypeError(`Unmarshalling the type 'ListIPsResponse' failed as data isn't a dictionary.`);
|
|
15353
|
+
}
|
|
15354
|
+
return {
|
|
15355
|
+
ips: unmarshalArrayOfObject(data.ips, unmarshalIP$1),
|
|
15356
|
+
totalCount: data.total_count
|
|
15357
|
+
};
|
|
15358
|
+
};
|
|
15359
|
+
const marshalSource = (request, defaults) => ({
|
|
15360
|
+
...resolveOneOf([{
|
|
15361
|
+
param: 'zonal',
|
|
15362
|
+
value: request.zonal
|
|
15363
|
+
}, {
|
|
15364
|
+
param: 'private_network_id',
|
|
15365
|
+
value: request.privateNetworkId
|
|
15366
|
+
}, {
|
|
15367
|
+
param: 'subnet_id',
|
|
15368
|
+
value: request.subnetId
|
|
15369
|
+
}])
|
|
15370
|
+
});
|
|
15371
|
+
const marshalBookIPRequest = (request, defaults) => ({
|
|
15372
|
+
address: request.address,
|
|
15373
|
+
is_ipv6: request.isIpv6,
|
|
15374
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
15375
|
+
source: request.source ? marshalSource(request.source) : undefined,
|
|
15376
|
+
tags: request.tags
|
|
15377
|
+
});
|
|
15378
|
+
const marshalUpdateIPRequest$1 = (request, defaults) => ({
|
|
15379
|
+
tags: request.tags
|
|
15380
|
+
});
|
|
15381
|
+
|
|
15382
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
15383
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15384
|
+
const jsonContentHeaders$f = {
|
|
15385
|
+
'Content-Type': 'application/json; charset=utf-8'
|
|
15386
|
+
};
|
|
15387
|
+
|
|
15388
|
+
/**
|
|
15389
|
+
* IPAM API.
|
|
15390
|
+
*
|
|
15391
|
+
* This API allows you to manage IP addresses with Scaleway's IP Address
|
|
15392
|
+
* Management tool. IPAM API.
|
|
15393
|
+
*/
|
|
15394
|
+
let API$g = class API extends API$v {
|
|
15395
|
+
/** Lists the available regions of the API. */
|
|
15396
|
+
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15397
|
+
|
|
15398
|
+
/**
|
|
15399
|
+
* Book a new IP. Book a new IP from the specified source. Currently IPs can
|
|
15400
|
+
* only be booked from a Private Network.
|
|
15401
|
+
*
|
|
15402
|
+
* @param request - The request {@link BookIPRequest}
|
|
15403
|
+
* @returns A Promise of IP
|
|
15404
|
+
*/
|
|
15405
|
+
bookIP = request => this.client.fetch({
|
|
15406
|
+
body: JSON.stringify(marshalBookIPRequest(request, this.client.settings)),
|
|
15407
|
+
headers: jsonContentHeaders$f,
|
|
15408
|
+
method: 'POST',
|
|
15409
|
+
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
|
|
15410
|
+
}, unmarshalIP$1);
|
|
15411
|
+
|
|
15412
|
+
/**
|
|
15413
|
+
* Release an IP. Release an IP not currently attached to a resource, and
|
|
15414
|
+
* returns it to the available IP pool.
|
|
15415
|
+
*
|
|
15416
|
+
* @param request - The request {@link ReleaseIPRequest}
|
|
15417
|
+
*/
|
|
15418
|
+
releaseIP = request => this.client.fetch({
|
|
15419
|
+
body: '{}',
|
|
15420
|
+
headers: jsonContentHeaders$f,
|
|
15421
|
+
method: 'DELETE',
|
|
15422
|
+
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15423
|
+
});
|
|
15424
|
+
|
|
15425
|
+
/**
|
|
15426
|
+
* Get an IP. Retrieve details of an existing IP, specified by its IP ID.
|
|
15427
|
+
*
|
|
15428
|
+
* @param request - The request {@link GetIPRequest}
|
|
15429
|
+
* @returns A Promise of IP
|
|
15430
|
+
*/
|
|
15431
|
+
getIP = request => this.client.fetch({
|
|
15432
|
+
method: 'GET',
|
|
15433
|
+
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15434
|
+
}, unmarshalIP$1);
|
|
15435
|
+
|
|
15436
|
+
/**
|
|
15437
|
+
* Update an IP. Update parameters including tags of the specified IP.
|
|
15438
|
+
*
|
|
15439
|
+
* @param request - The request {@link UpdateIPRequest}
|
|
15440
|
+
* @returns A Promise of IP
|
|
15441
|
+
*/
|
|
15442
|
+
updateIP = request => this.client.fetch({
|
|
15443
|
+
body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
|
|
15444
|
+
headers: jsonContentHeaders$f,
|
|
15445
|
+
method: 'PATCH',
|
|
15446
|
+
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15447
|
+
}, unmarshalIP$1);
|
|
15448
|
+
pageOfListIPs = (request = {}) => this.client.fetch({
|
|
15449
|
+
method: 'GET',
|
|
15450
|
+
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`,
|
|
15451
|
+
urlParams: urlParams(['attached', request.attached], ['is_ipv6', request.isIpv6], ['mac_address', request.macAddress], ['order_by', request.orderBy ?? 'created_at_desc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['resource_id', request.resourceId], ['resource_name', request.resourceName], ['resource_type', request.resourceType ?? 'unknown_type'], ['tags', request.tags], ...Object.entries(resolveOneOf([{
|
|
15452
|
+
param: 'zonal',
|
|
15453
|
+
value: request.zonal
|
|
15454
|
+
}, {
|
|
15455
|
+
param: 'private_network_id',
|
|
15456
|
+
value: request.privateNetworkId
|
|
15457
|
+
}])))
|
|
15458
|
+
}, unmarshalListIPsResponse$1);
|
|
15459
|
+
|
|
15460
|
+
/**
|
|
15461
|
+
* List existing IPs. List existing IPs in the specified region using various
|
|
15462
|
+
* filters. For example, you can filter for IPs within a specified Private
|
|
15463
|
+
* Network, or for public IPs within a specified Project. By default, the IPs
|
|
15464
|
+
* returned in the list are ordered by creation date in ascending order,
|
|
15465
|
+
* though this can be modified via the order_by field.
|
|
15466
|
+
*
|
|
15467
|
+
* @param request - The request {@link ListIPsRequest}
|
|
15468
|
+
* @returns A Promise of ListIPsResponse
|
|
15469
|
+
*/
|
|
15470
|
+
listIPs = (request = {}) => enrichForPagination('ips', this.pageOfListIPs, request);
|
|
15471
|
+
};
|
|
15472
|
+
|
|
15473
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
15474
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15475
|
+
|
|
15476
|
+
const ListIPsRequest = {
|
|
15477
|
+
resourceName: {
|
|
15478
|
+
maxLength: 63,
|
|
15479
|
+
minLength: 2
|
|
15480
|
+
}
|
|
15481
|
+
};
|
|
15482
|
+
|
|
15483
|
+
var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
15484
|
+
__proto__: null,
|
|
15485
|
+
ListIPsRequest: ListIPsRequest
|
|
15486
|
+
});
|
|
15487
|
+
|
|
15488
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
15489
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15490
|
+
|
|
15193
15491
|
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
15194
15492
|
__proto__: null,
|
|
15195
15493
|
API: API$g,
|
|
15196
|
-
|
|
15494
|
+
ValidationRules: validationRules_gen$4
|
|
15197
15495
|
});
|
|
15198
15496
|
|
|
15199
15497
|
var index$g = /*#__PURE__*/Object.freeze({
|
|
@@ -15393,7 +15691,7 @@ const jsonContentHeaders$e = {
|
|
|
15393
15691
|
};
|
|
15394
15692
|
|
|
15395
15693
|
/** IPFS Pinning service API. */
|
|
15396
|
-
let API$f = class API extends API$
|
|
15694
|
+
let API$f = class API extends API$v {
|
|
15397
15695
|
/** Lists the available regions of the API. */
|
|
15398
15696
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15399
15697
|
|
|
@@ -15560,7 +15858,7 @@ let API$f = class API extends API$u {
|
|
|
15560
15858
|
};
|
|
15561
15859
|
|
|
15562
15860
|
/** IPFS Naming service API. */
|
|
15563
|
-
class IpnsAPI extends API$
|
|
15861
|
+
class IpnsAPI extends API$v {
|
|
15564
15862
|
/** Lists the available regions of the API. */
|
|
15565
15863
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15566
15864
|
|
|
@@ -16111,7 +16409,7 @@ const jsonContentHeaders$d = {
|
|
|
16111
16409
|
};
|
|
16112
16410
|
|
|
16113
16411
|
/** Kubernetes API. */
|
|
16114
|
-
let API$e = class API extends API$
|
|
16412
|
+
let API$e = class API extends API$v {
|
|
16115
16413
|
/** Lists the available regions of the API. */
|
|
16116
16414
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16117
16415
|
pageOfListClusters = (request = {}) => this.client.fetch({
|
|
@@ -17710,7 +18008,7 @@ const jsonContentHeaders$c = {
|
|
|
17710
18008
|
*
|
|
17711
18009
|
* This API allows you to manage your load balancer service. Load balancer API.
|
|
17712
18010
|
*/
|
|
17713
|
-
let API$d = class API extends API$
|
|
18011
|
+
let API$d = class API extends API$v {
|
|
17714
18012
|
/** Lists the available regions of the API. */
|
|
17715
18013
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
17716
18014
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -18387,7 +18685,7 @@ let API$d = class API extends API$u {
|
|
|
18387
18685
|
* This API allows you to manage your Scaleway Load Balancer services. Load
|
|
18388
18686
|
* Balancer API.
|
|
18389
18687
|
*/
|
|
18390
|
-
class ZonedAPI extends API$
|
|
18688
|
+
class ZonedAPI extends API$v {
|
|
18391
18689
|
/** Lists the available zones of the API. */
|
|
18392
18690
|
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'];
|
|
18393
18691
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -19367,7 +19665,7 @@ const unmarshalListVersionsResponse$1 = data => {
|
|
|
19367
19665
|
// This file was automatically generated. DO NOT EDIT.
|
|
19368
19666
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19369
19667
|
/** Marketplace API. */
|
|
19370
|
-
let API$c = class API extends API$
|
|
19668
|
+
let API$c = class API extends API$v {
|
|
19371
19669
|
pageOfListImages = (request = {}) => this.client.fetch({
|
|
19372
19670
|
method: 'GET',
|
|
19373
19671
|
path: `/marketplace/v1/images`,
|
|
@@ -19503,7 +19801,7 @@ const unmarshalListVersionsResponse = data => {
|
|
|
19503
19801
|
// This file was automatically generated. DO NOT EDIT.
|
|
19504
19802
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19505
19803
|
/** Marketplace API. */
|
|
19506
|
-
let API$b = class API extends API$
|
|
19804
|
+
let API$b = class API extends API$v {
|
|
19507
19805
|
pageOfListImages = request => this.client.fetch({
|
|
19508
19806
|
method: 'GET',
|
|
19509
19807
|
path: `/marketplace/v2/images`,
|
|
@@ -19771,7 +20069,7 @@ const jsonContentHeaders$b = {
|
|
|
19771
20069
|
* This API allows you to manage Scaleway Messaging and Queueing brokers.
|
|
19772
20070
|
* Messaging and Queuing API.
|
|
19773
20071
|
*/
|
|
19774
|
-
let API$a = class API extends API$
|
|
20072
|
+
let API$a = class API extends API$v {
|
|
19775
20073
|
/** Lists the available regions of the API. */
|
|
19776
20074
|
static LOCALITIES = ['fr-par'];
|
|
19777
20075
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -20146,7 +20444,7 @@ const jsonContentHeaders$a = {
|
|
|
20146
20444
|
* This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
|
|
20147
20445
|
* Messaging and Queuing NATS API.
|
|
20148
20446
|
*/
|
|
20149
|
-
class NatsAPI extends API$
|
|
20447
|
+
class NatsAPI extends API$v {
|
|
20150
20448
|
/** Lists the available regions of the API. */
|
|
20151
20449
|
static LOCALITIES = ['fr-par'];
|
|
20152
20450
|
|
|
@@ -20283,7 +20581,7 @@ class NatsAPI extends API$u {
|
|
|
20283
20581
|
* This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
|
|
20284
20582
|
* Messaging and Queuing SNS API.
|
|
20285
20583
|
*/
|
|
20286
|
-
class SnsAPI extends API$
|
|
20584
|
+
class SnsAPI extends API$v {
|
|
20287
20585
|
/** Lists the available regions of the API. */
|
|
20288
20586
|
static LOCALITIES = ['fr-par'];
|
|
20289
20587
|
|
|
@@ -20406,7 +20704,7 @@ class SnsAPI extends API$u {
|
|
|
20406
20704
|
* This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
|
|
20407
20705
|
* Messaging and Queuing SQS API.
|
|
20408
20706
|
*/
|
|
20409
|
-
class SqsAPI extends API$
|
|
20707
|
+
class SqsAPI extends API$v {
|
|
20410
20708
|
/** Lists the available regions of the API. */
|
|
20411
20709
|
static LOCALITIES = ['fr-par'];
|
|
20412
20710
|
|
|
@@ -21314,7 +21612,7 @@ const jsonContentHeaders$9 = {
|
|
|
21314
21612
|
};
|
|
21315
21613
|
|
|
21316
21614
|
/** Managed Database for PostgreSQL and MySQL API. */
|
|
21317
|
-
let API$9 = class API extends API$
|
|
21615
|
+
let API$9 = class API extends API$v {
|
|
21318
21616
|
/** Lists the available regions of the API. */
|
|
21319
21617
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
21320
21618
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -22531,7 +22829,7 @@ const jsonContentHeaders$8 = {
|
|
|
22531
22829
|
};
|
|
22532
22830
|
|
|
22533
22831
|
/** Managed Database for Redis™ API. */
|
|
22534
|
-
let API$8 = class API extends API$
|
|
22832
|
+
let API$8 = class API extends API$v {
|
|
22535
22833
|
/** Lists the available zones of the API. */
|
|
22536
22834
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
22537
22835
|
|
|
@@ -23025,7 +23323,7 @@ const jsonContentHeaders$7 = {
|
|
|
23025
23323
|
};
|
|
23026
23324
|
|
|
23027
23325
|
/** Container Registry API. */
|
|
23028
|
-
let API$7 = class API extends API$
|
|
23326
|
+
let API$7 = class API extends API$v {
|
|
23029
23327
|
/** Lists the available regions of the API. */
|
|
23030
23328
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
23031
23329
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -23407,7 +23705,7 @@ const jsonContentHeaders$6 = {
|
|
|
23407
23705
|
* Secret Manager API. This API allows you to conveniently store, access and
|
|
23408
23706
|
* share sensitive data.
|
|
23409
23707
|
*/
|
|
23410
|
-
let API$6 = class API extends API$
|
|
23708
|
+
let API$6 = class API extends API$v {
|
|
23411
23709
|
/** Lists the available regions of the API. */
|
|
23412
23710
|
static LOCALITIES = ['fr-par'];
|
|
23413
23711
|
|
|
@@ -23872,7 +24170,7 @@ const jsonContentHeaders$5 = {
|
|
|
23872
24170
|
* access-key. Then, you can use other test commands by setting the
|
|
23873
24171
|
* SCW_SECRET_KEY env variable.
|
|
23874
24172
|
*/
|
|
23875
|
-
let API$5 = class API extends API$
|
|
24173
|
+
let API$5 = class API extends API$v {
|
|
23876
24174
|
/**
|
|
23877
24175
|
* Register a user. Register a human and return a access-key and a secret-key
|
|
23878
24176
|
* that must be used in all other commands.
|
|
@@ -24014,6 +24312,18 @@ const EMAIL_TRANSIENT_STATUSES = ['new', 'sending'];
|
|
|
24014
24312
|
|
|
24015
24313
|
// This file was automatically generated. DO NOT EDIT.
|
|
24016
24314
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
24315
|
+
const unmarshalDomainReputation = data => {
|
|
24316
|
+
if (!isJSONObject(data)) {
|
|
24317
|
+
throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
|
|
24318
|
+
}
|
|
24319
|
+
return {
|
|
24320
|
+
previousScore: data.previous_score,
|
|
24321
|
+
previousScoredAt: unmarshalDate(data.previous_scored_at),
|
|
24322
|
+
score: data.score,
|
|
24323
|
+
scoredAt: unmarshalDate(data.scored_at),
|
|
24324
|
+
status: data.status
|
|
24325
|
+
};
|
|
24326
|
+
};
|
|
24017
24327
|
const unmarshalDomainStatistics = data => {
|
|
24018
24328
|
if (!isJSONObject(data)) {
|
|
24019
24329
|
throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
|
|
@@ -24051,6 +24361,7 @@ const unmarshalDomain = data => {
|
|
|
24051
24361
|
organizationId: data.organization_id,
|
|
24052
24362
|
projectId: data.project_id,
|
|
24053
24363
|
region: data.region,
|
|
24364
|
+
reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
|
|
24054
24365
|
revokedAt: unmarshalDate(data.revoked_at),
|
|
24055
24366
|
spfConfig: data.spf_config,
|
|
24056
24367
|
statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : undefined,
|
|
@@ -24183,7 +24494,7 @@ const jsonContentHeaders$4 = {
|
|
|
24183
24494
|
};
|
|
24184
24495
|
|
|
24185
24496
|
/** Transactional Email API. */
|
|
24186
|
-
let API$4 = class API extends API$
|
|
24497
|
+
let API$4 = class API extends API$v {
|
|
24187
24498
|
/** Lists the available regions of the API. */
|
|
24188
24499
|
static LOCALITIES = ['fr-par'];
|
|
24189
24500
|
|
|
@@ -24418,7 +24729,7 @@ const jsonContentHeaders$3 = {
|
|
|
24418
24729
|
};
|
|
24419
24730
|
|
|
24420
24731
|
/** VPC API. */
|
|
24421
|
-
let API$3 = class API extends API$
|
|
24732
|
+
let API$3 = class API extends API$v {
|
|
24422
24733
|
/** Lists the available zones of the API. */
|
|
24423
24734
|
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'];
|
|
24424
24735
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
@@ -24638,7 +24949,7 @@ const jsonContentHeaders$2 = {
|
|
|
24638
24949
|
};
|
|
24639
24950
|
|
|
24640
24951
|
/** VPC API. */
|
|
24641
|
-
let API$2 = class API extends API$
|
|
24952
|
+
let API$2 = class API extends API$v {
|
|
24642
24953
|
/** Lists the available regions of the API. */
|
|
24643
24954
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
24644
24955
|
pageOfListVPCs = (request = {}) => this.client.fetch({
|
|
@@ -24896,6 +25207,14 @@ const unmarshalDHCP = data => {
|
|
|
24896
25207
|
zone: data.zone
|
|
24897
25208
|
};
|
|
24898
25209
|
};
|
|
25210
|
+
const unmarshalIpamConfig = data => {
|
|
25211
|
+
if (!isJSONObject(data)) {
|
|
25212
|
+
throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
|
|
25213
|
+
}
|
|
25214
|
+
return {
|
|
25215
|
+
pushDefaultRoute: data.push_default_route
|
|
25216
|
+
};
|
|
25217
|
+
};
|
|
24899
25218
|
const unmarshalGatewayNetwork = data => {
|
|
24900
25219
|
if (!isJSONObject(data)) {
|
|
24901
25220
|
throw new TypeError(`Unmarshalling the type 'GatewayNetwork' failed as data isn't a dictionary.`);
|
|
@@ -24908,6 +25227,7 @@ const unmarshalGatewayNetwork = data => {
|
|
|
24908
25227
|
enableMasquerade: data.enable_masquerade,
|
|
24909
25228
|
gatewayId: data.gateway_id,
|
|
24910
25229
|
id: data.id,
|
|
25230
|
+
ipamConfig: data.ipam_config ? unmarshalIpamConfig(data.ipam_config) : undefined,
|
|
24911
25231
|
macAddress: data.mac_address,
|
|
24912
25232
|
privateNetworkId: data.private_network_id,
|
|
24913
25233
|
status: data.status,
|
|
@@ -24970,6 +25290,7 @@ const unmarshalGateway = data => {
|
|
|
24970
25290
|
gatewayNetworks: unmarshalArrayOfObject(data.gateway_networks, unmarshalGatewayNetwork),
|
|
24971
25291
|
id: data.id,
|
|
24972
25292
|
ip: data.ip ? unmarshalIP(data.ip) : undefined,
|
|
25293
|
+
isLegacy: data.is_legacy,
|
|
24973
25294
|
name: data.name,
|
|
24974
25295
|
organizationId: data.organization_id,
|
|
24975
25296
|
projectId: data.project_id,
|
|
@@ -25219,7 +25540,7 @@ const jsonContentHeaders$1 = {
|
|
|
25219
25540
|
};
|
|
25220
25541
|
|
|
25221
25542
|
/** Public Gateways API. */
|
|
25222
|
-
let API$1 = class API extends API$
|
|
25543
|
+
let API$1 = class API extends API$v {
|
|
25223
25544
|
/** Lists the available zones of the API. */
|
|
25224
25545
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
25225
25546
|
pageOfListGateways = (request = {}) => this.client.fetch({
|
|
@@ -25930,7 +26251,7 @@ const jsonContentHeaders = {
|
|
|
25930
26251
|
};
|
|
25931
26252
|
|
|
25932
26253
|
/** Web Hosting API. */
|
|
25933
|
-
class API extends API$
|
|
26254
|
+
class API extends API$v {
|
|
25934
26255
|
/** Lists the available regions of the API. */
|
|
25935
26256
|
static LOCALITIES = ['fr-par'];
|
|
25936
26257
|
|
|
@@ -26090,23 +26411,24 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26090
26411
|
v1alpha1: index_gen
|
|
26091
26412
|
});
|
|
26092
26413
|
|
|
26093
|
-
exports.API = API$
|
|
26094
|
-
exports.Account = index$
|
|
26095
|
-
exports.AppleSilicon = index$
|
|
26096
|
-
exports.BareMetal = index$
|
|
26097
|
-
exports.Billing = index$
|
|
26098
|
-
exports.Block = index$
|
|
26099
|
-
exports.Cockpit = index$
|
|
26100
|
-
exports.Container = index$
|
|
26101
|
-
exports.DocumentDB = index$
|
|
26102
|
-
exports.Domain = index$
|
|
26103
|
-
exports.Errors = index$
|
|
26104
|
-
exports.FlexibleIP = index$
|
|
26105
|
-
exports.Function = index$
|
|
26106
|
-
exports.IAM = index$
|
|
26107
|
-
exports.IOT = index$
|
|
26414
|
+
exports.API = API$v;
|
|
26415
|
+
exports.Account = index$w;
|
|
26416
|
+
exports.AppleSilicon = index$v;
|
|
26417
|
+
exports.BareMetal = index$t;
|
|
26418
|
+
exports.Billing = index$s;
|
|
26419
|
+
exports.Block = index$r;
|
|
26420
|
+
exports.Cockpit = index$q;
|
|
26421
|
+
exports.Container = index$p;
|
|
26422
|
+
exports.DocumentDB = index$o;
|
|
26423
|
+
exports.Domain = index$n;
|
|
26424
|
+
exports.Errors = index$x;
|
|
26425
|
+
exports.FlexibleIP = index$m;
|
|
26426
|
+
exports.Function = index$l;
|
|
26427
|
+
exports.IAM = index$k;
|
|
26428
|
+
exports.IOT = index$h;
|
|
26429
|
+
exports.IPAM = index$g;
|
|
26108
26430
|
exports.IPFS = index$f;
|
|
26109
|
-
exports.Instance = index$
|
|
26431
|
+
exports.Instance = index$i;
|
|
26110
26432
|
exports.K8S = index$d;
|
|
26111
26433
|
exports.LB = index$b;
|
|
26112
26434
|
exports.MNQ = index$9;
|