@scaleway/sdk 2.0.0-alpha.15 → 2.0.0-alpha.17
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/baremetal/v1/marshalling.gen.js +4 -4
- package/dist/api/billing/v2alpha1/api.gen.js +32 -1
- package/dist/api/billing/v2alpha1/marshalling.gen.js +46 -1
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +3 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +3 -3
- package/dist/api/function/v1beta1/api.gen.js +36 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +3 -3
- package/dist/api/iam/v1alpha1/api.gen.js +27 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +26 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -1
- package/dist/api/instance/v1/content.gen.js +4 -1
- package/dist/api/instance/v1/index.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +34 -32
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +0 -7
- package/dist/api/jobs/index.js +2 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +111 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +7 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +7 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +84 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +45 -0
- package/dist/api/k8s/v1/marshalling.gen.js +4 -4
- package/dist/api/lb/v1/marshalling.gen.js +24 -24
- package/dist/api/rdb/v1/marshalling.gen.js +11 -4
- package/dist/api/registry/v1/marshalling.gen.js +4 -4
- package/dist/api/secret/v1alpha1/api.gen.js +2 -2
- package/dist/api/secret/v1alpha1/marshalling.gen.js +6 -1
- package/dist/api/std/index.gen.js +1 -0
- package/dist/api/tem/v1alpha1/api.gen.js +8 -2
- package/dist/api/tem/v1alpha1/marshalling.gen.js +13 -0
- package/dist/api/test/v1/marshalling.gen.js +4 -4
- package/dist/api/vpcgw/v1/marshalling.gen.js +9 -3
- package/dist/index.cjs +873 -472
- package/dist/index.d.ts +2032 -1396
- package/dist/index.js +30 -26
- package/dist/node_modules/@scaleway/random-name/dist/index.js +13 -0
- 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 = 'v2.0.0-alpha.
|
|
500
|
+
const version = 'v2.0.0-alpha.16';
|
|
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$y = /*#__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$w = 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$u = {
|
|
2075
2075
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2076
2076
|
};
|
|
2077
2077
|
|
|
@@ -2080,7 +2080,7 @@ const jsonContentHeaders$t = {
|
|
|
2080
2080
|
*
|
|
2081
2081
|
* User related data. This API allows you to manage projects.
|
|
2082
2082
|
*/
|
|
2083
|
-
let API$
|
|
2083
|
+
let API$v = class API extends API$w {
|
|
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$u = class API extends API$v {
|
|
|
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$u,
|
|
2096
2096
|
method: 'POST',
|
|
2097
2097
|
path: `/account/v2/projects`
|
|
2098
2098
|
}, unmarshalProject$1);
|
|
@@ -2156,7 +2156,7 @@ let API$u = class API extends API$v {
|
|
|
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$u,
|
|
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$u = class API extends API$v {
|
|
|
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$u = /*#__PURE__*/Object.freeze({
|
|
2169
2169
|
__proto__: null,
|
|
2170
|
-
API: API$
|
|
2170
|
+
API: API$v
|
|
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$t = {
|
|
2210
2210
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2211
2211
|
};
|
|
2212
2212
|
|
|
@@ -2215,7 +2215,7 @@ const jsonContentHeaders$s = {
|
|
|
2215
2215
|
*
|
|
2216
2216
|
* This API allows you to manage projects.
|
|
2217
2217
|
*/
|
|
2218
|
-
class ProjectAPI extends API$
|
|
2218
|
+
class ProjectAPI extends API$w {
|
|
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$v {
|
|
|
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$t,
|
|
2229
2229
|
method: 'POST',
|
|
2230
2230
|
path: `/account/v3/projects`
|
|
2231
2231
|
}, unmarshalProject);
|
|
@@ -2281,7 +2281,7 @@ class ProjectAPI extends API$v {
|
|
|
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$t,
|
|
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$d = /*#__PURE__*/Object.freeze({
|
|
2329
2329
|
__proto__: null,
|
|
2330
2330
|
ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
|
|
2331
2331
|
ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
|
|
@@ -2335,16 +2335,16 @@ var validationRules_gen$c = /*#__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$t = /*#__PURE__*/Object.freeze({
|
|
2339
2339
|
__proto__: null,
|
|
2340
2340
|
ProjectAPI: ProjectAPI,
|
|
2341
|
-
ValidationRules: validationRules_gen$
|
|
2341
|
+
ValidationRules: validationRules_gen$d
|
|
2342
2342
|
});
|
|
2343
2343
|
|
|
2344
|
-
var index$
|
|
2344
|
+
var index$x = /*#__PURE__*/Object.freeze({
|
|
2345
2345
|
__proto__: null,
|
|
2346
|
-
v2: index_gen$
|
|
2347
|
-
v3: index_gen$
|
|
2346
|
+
v2: index_gen$u,
|
|
2347
|
+
v3: index_gen$t
|
|
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$s = {
|
|
2467
2467
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
2470
2470
|
/** Apple silicon API. */
|
|
2471
|
-
let API$
|
|
2471
|
+
let API$u = class API extends API$w {
|
|
2472
2472
|
/** Lists the available zones of the API. */
|
|
2473
2473
|
static LOCALITIES = ['fr-par-3'];
|
|
2474
2474
|
|
|
@@ -2506,7 +2506,7 @@ let API$t = class API extends API$v {
|
|
|
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$s,
|
|
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$t = class API extends API$v {
|
|
|
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$s,
|
|
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$t = class API extends API$v {
|
|
|
2611
2611
|
*/
|
|
2612
2612
|
rebootServer = request => this.client.fetch({
|
|
2613
2613
|
body: '{}',
|
|
2614
|
-
headers: jsonContentHeaders$
|
|
2614
|
+
headers: jsonContentHeaders$s,
|
|
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$t = class API extends API$v {
|
|
|
2627
2627
|
*/
|
|
2628
2628
|
reinstallServer = request => this.client.fetch({
|
|
2629
2629
|
body: '{}',
|
|
2630
|
-
headers: jsonContentHeaders$
|
|
2630
|
+
headers: jsonContentHeaders$s,
|
|
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$t = class API extends API$v {
|
|
|
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$s = /*#__PURE__*/Object.freeze({
|
|
2640
2640
|
__proto__: null,
|
|
2641
|
-
API: API$
|
|
2641
|
+
API: API$u,
|
|
2642
2642
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
|
|
2643
2643
|
});
|
|
2644
2644
|
|
|
2645
|
-
var index$
|
|
2645
|
+
var index$w = /*#__PURE__*/Object.freeze({
|
|
2646
2646
|
__proto__: null,
|
|
2647
|
-
v1alpha1: index_gen$
|
|
2647
|
+
v1alpha1: index_gen$s
|
|
2648
2648
|
});
|
|
2649
2649
|
|
|
2650
2650
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3015,13 +3015,13 @@ const marshalCreateServerRequest$1 = (request, defaults) => ({
|
|
|
3015
3015
|
option_ids: request.optionIds,
|
|
3016
3016
|
tags: request.tags,
|
|
3017
3017
|
...resolveOneOf([{
|
|
3018
|
-
default: defaults.defaultOrganizationId,
|
|
3019
|
-
param: 'organization_id',
|
|
3020
|
-
value: request.organizationId
|
|
3021
|
-
}, {
|
|
3022
3018
|
default: defaults.defaultProjectId,
|
|
3023
3019
|
param: 'project_id',
|
|
3024
3020
|
value: request.projectId
|
|
3021
|
+
}, {
|
|
3022
|
+
default: defaults.defaultOrganizationId,
|
|
3023
|
+
param: 'organization_id',
|
|
3024
|
+
value: request.organizationId
|
|
3025
3025
|
}])
|
|
3026
3026
|
});
|
|
3027
3027
|
const marshalInstallServerRequest = (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$r = {
|
|
3066
3066
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3067
3067
|
};
|
|
3068
3068
|
|
|
@@ -3071,7 +3071,7 @@ const jsonContentHeaders$q = {
|
|
|
3071
3071
|
*
|
|
3072
3072
|
* This API allows to manage your Elastic Metal server.
|
|
3073
3073
|
*/
|
|
3074
|
-
let API$
|
|
3074
|
+
let API$t = class API extends API$w {
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
3214
3214
|
*/
|
|
3215
3215
|
stopServer = request => this.client.fetch({
|
|
3216
3216
|
body: '{}',
|
|
3217
|
-
headers: jsonContentHeaders$
|
|
3217
|
+
headers: jsonContentHeaders$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
3256
3256
|
method: 'POST',
|
|
3257
3257
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
3258
3258
|
}, unmarshalBMCAccess);
|
|
@@ -3290,7 +3290,7 @@ let API$s = class API extends API$v {
|
|
|
3290
3290
|
*/
|
|
3291
3291
|
updateIP = request => this.client.fetch({
|
|
3292
3292
|
body: JSON.stringify(marshalUpdateIPRequest$2(request, this.client.settings)),
|
|
3293
|
-
headers: jsonContentHeaders$
|
|
3293
|
+
headers: jsonContentHeaders$r,
|
|
3294
3294
|
method: 'PATCH',
|
|
3295
3295
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
3296
3296
|
}, unmarshalIP$2);
|
|
@@ -3304,7 +3304,7 @@ let API$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
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$r,
|
|
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$s = class API extends API$v {
|
|
|
3421
3421
|
};
|
|
3422
3422
|
|
|
3423
3423
|
/** Elastic Metal Private Network API. */
|
|
3424
|
-
class PrivateNetworkAPI extends API$
|
|
3424
|
+
class PrivateNetworkAPI extends API$w {
|
|
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$v {
|
|
|
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$r,
|
|
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$v {
|
|
|
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$r,
|
|
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$v {
|
|
|
3479
3479
|
});
|
|
3480
3480
|
}
|
|
3481
3481
|
|
|
3482
|
-
class BaremetalV1UtilsAPI extends API$
|
|
3482
|
+
class BaremetalV1UtilsAPI extends API$t {
|
|
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$c = /*#__PURE__*/Object.freeze({
|
|
3613
3613
|
__proto__: null,
|
|
3614
3614
|
CreateServerRequest: CreateServerRequest,
|
|
3615
3615
|
CreateServerRequestInstall: CreateServerRequestInstall,
|
|
@@ -3623,19 +3623,19 @@ var validationRules_gen$b = /*#__PURE__*/Object.freeze({
|
|
|
3623
3623
|
UpdateServerRequest: UpdateServerRequest
|
|
3624
3624
|
});
|
|
3625
3625
|
|
|
3626
|
-
var index$
|
|
3626
|
+
var index$v = /*#__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$c
|
|
3634
3634
|
});
|
|
3635
3635
|
|
|
3636
|
-
var index$
|
|
3636
|
+
var index$u = /*#__PURE__*/Object.freeze({
|
|
3637
3637
|
__proto__: null,
|
|
3638
|
-
v1: index$
|
|
3638
|
+
v1: index$v
|
|
3639
3639
|
});
|
|
3640
3640
|
|
|
3641
3641
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3661,6 +3661,51 @@ const unmarshalGetConsumptionResponse = data => {
|
|
|
3661
3661
|
updatedAt: unmarshalDate(data.updated_at)
|
|
3662
3662
|
};
|
|
3663
3663
|
};
|
|
3664
|
+
const unmarshalDiscountCoupon = data => {
|
|
3665
|
+
if (!isJSONObject(data)) {
|
|
3666
|
+
throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
|
|
3667
|
+
}
|
|
3668
|
+
return {
|
|
3669
|
+
description: data.description
|
|
3670
|
+
};
|
|
3671
|
+
};
|
|
3672
|
+
const unmarshalDiscountFilter = data => {
|
|
3673
|
+
if (!isJSONObject(data)) {
|
|
3674
|
+
throw new TypeError(`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`);
|
|
3675
|
+
}
|
|
3676
|
+
return {
|
|
3677
|
+
type: data.type,
|
|
3678
|
+
value: data.value
|
|
3679
|
+
};
|
|
3680
|
+
};
|
|
3681
|
+
const unmarshalDiscount = data => {
|
|
3682
|
+
if (!isJSONObject(data)) {
|
|
3683
|
+
throw new TypeError(`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`);
|
|
3684
|
+
}
|
|
3685
|
+
return {
|
|
3686
|
+
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : undefined,
|
|
3687
|
+
creationDate: unmarshalDate(data.creation_date),
|
|
3688
|
+
description: data.description,
|
|
3689
|
+
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
|
|
3690
|
+
id: data.id,
|
|
3691
|
+
mode: data.mode,
|
|
3692
|
+
organizationId: data.organization_id,
|
|
3693
|
+
startDate: unmarshalDate(data.start_date),
|
|
3694
|
+
stopDate: unmarshalDate(data.stop_date),
|
|
3695
|
+
value: data.value,
|
|
3696
|
+
valueRemaining: data.value_remaining,
|
|
3697
|
+
valueUsed: data.value_used
|
|
3698
|
+
};
|
|
3699
|
+
};
|
|
3700
|
+
const unmarshalListDiscountsResponse = data => {
|
|
3701
|
+
if (!isJSONObject(data)) {
|
|
3702
|
+
throw new TypeError(`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`);
|
|
3703
|
+
}
|
|
3704
|
+
return {
|
|
3705
|
+
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
|
|
3706
|
+
totalCount: data.total_count
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3664
3709
|
const unmarshalInvoice = data => {
|
|
3665
3710
|
if (!isJSONObject(data)) {
|
|
3666
3711
|
throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
|
|
@@ -3693,7 +3738,7 @@ const unmarshalListInvoicesResponse = data => {
|
|
|
3693
3738
|
*
|
|
3694
3739
|
* This API allows you to query your consumption.
|
|
3695
3740
|
*/
|
|
3696
|
-
let API$
|
|
3741
|
+
let API$s = class API extends API$w {
|
|
3697
3742
|
/**
|
|
3698
3743
|
* Get current month's consumption. The consumption reflects the amount of
|
|
3699
3744
|
* money you have spent for the products you have used. The consumption value
|
|
@@ -3734,19 +3779,34 @@ let API$r = class API extends API$v {
|
|
|
3734
3779
|
urlParams: urlParams(['dl', 1], ['file_type', request.fileType]),
|
|
3735
3780
|
responseType: 'blob'
|
|
3736
3781
|
});
|
|
3782
|
+
pageOfListDiscounts = (request = {}) => this.client.fetch({
|
|
3783
|
+
method: 'GET',
|
|
3784
|
+
path: `/billing/v2alpha1/discounts`,
|
|
3785
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
3786
|
+
}, unmarshalListDiscountsResponse);
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* List all user's discounts. List all discounts for an organization and
|
|
3790
|
+
* usable categories/products/offers/references/regions/zones where the
|
|
3791
|
+
* discount can be applied.
|
|
3792
|
+
*
|
|
3793
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
3794
|
+
* @returns A Promise of ListDiscountsResponse
|
|
3795
|
+
*/
|
|
3796
|
+
listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
|
|
3737
3797
|
};
|
|
3738
3798
|
|
|
3739
3799
|
// This file was automatically generated. DO NOT EDIT.
|
|
3740
3800
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3741
3801
|
|
|
3742
|
-
var index_gen$
|
|
3802
|
+
var index_gen$r = /*#__PURE__*/Object.freeze({
|
|
3743
3803
|
__proto__: null,
|
|
3744
|
-
API: API$
|
|
3804
|
+
API: API$s
|
|
3745
3805
|
});
|
|
3746
3806
|
|
|
3747
|
-
var index$
|
|
3807
|
+
var index$t = /*#__PURE__*/Object.freeze({
|
|
3748
3808
|
__proto__: null,
|
|
3749
|
-
v2alpha1: index_gen$
|
|
3809
|
+
v2alpha1: index_gen$r
|
|
3750
3810
|
});
|
|
3751
3811
|
|
|
3752
3812
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3940,7 +4000,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
|
|
|
3940
4000
|
|
|
3941
4001
|
// This file was automatically generated. DO NOT EDIT.
|
|
3942
4002
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3943
|
-
const jsonContentHeaders$
|
|
4003
|
+
const jsonContentHeaders$q = {
|
|
3944
4004
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3945
4005
|
};
|
|
3946
4006
|
|
|
@@ -3949,7 +4009,7 @@ const jsonContentHeaders$p = {
|
|
|
3949
4009
|
*
|
|
3950
4010
|
* This API allows you to use and manage your Block Storage volumes.
|
|
3951
4011
|
*/
|
|
3952
|
-
let API$
|
|
4012
|
+
let API$r = class API extends API$w {
|
|
3953
4013
|
/** Lists the available zones of the API. */
|
|
3954
4014
|
static LOCALITIES = ['fr-par-1', 'pl-waw-3'];
|
|
3955
4015
|
pageOfListVolumeTypes = (request = {}) => this.client.fetch({
|
|
@@ -3995,7 +4055,7 @@ let API$q = class API extends API$v {
|
|
|
3995
4055
|
*/
|
|
3996
4056
|
createVolume = request => this.client.fetch({
|
|
3997
4057
|
body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
|
|
3998
|
-
headers: jsonContentHeaders$
|
|
4058
|
+
headers: jsonContentHeaders$q,
|
|
3999
4059
|
method: 'POST',
|
|
4000
4060
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
4001
4061
|
}, unmarshalVolume$4);
|
|
@@ -4043,7 +4103,7 @@ let API$q = class API extends API$v {
|
|
|
4043
4103
|
*/
|
|
4044
4104
|
updateVolume = request => this.client.fetch({
|
|
4045
4105
|
body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
|
|
4046
|
-
headers: jsonContentHeaders$
|
|
4106
|
+
headers: jsonContentHeaders$q,
|
|
4047
4107
|
method: 'PATCH',
|
|
4048
4108
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
4049
4109
|
}, unmarshalVolume$4);
|
|
@@ -4095,13 +4155,13 @@ let API$q = class API extends API$v {
|
|
|
4095
4155
|
*/
|
|
4096
4156
|
createSnapshot = request => this.client.fetch({
|
|
4097
4157
|
body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
|
|
4098
|
-
headers: jsonContentHeaders$
|
|
4158
|
+
headers: jsonContentHeaders$q,
|
|
4099
4159
|
method: 'POST',
|
|
4100
4160
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
4101
4161
|
}, unmarshalSnapshot$3);
|
|
4102
4162
|
importSnapshotFromS3 = request => this.client.fetch({
|
|
4103
4163
|
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
4104
|
-
headers: jsonContentHeaders$
|
|
4164
|
+
headers: jsonContentHeaders$q,
|
|
4105
4165
|
method: 'POST',
|
|
4106
4166
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
4107
4167
|
}, unmarshalSnapshot$3);
|
|
@@ -4125,7 +4185,7 @@ let API$q = class API extends API$v {
|
|
|
4125
4185
|
*/
|
|
4126
4186
|
updateSnapshot = request => this.client.fetch({
|
|
4127
4187
|
body: JSON.stringify(marshalUpdateSnapshotRequest$2(request, this.client.settings)),
|
|
4128
|
-
headers: jsonContentHeaders$
|
|
4188
|
+
headers: jsonContentHeaders$q,
|
|
4129
4189
|
method: 'PATCH',
|
|
4130
4190
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
4131
4191
|
}, unmarshalSnapshot$3);
|
|
@@ -4182,7 +4242,7 @@ const Reference = {
|
|
|
4182
4242
|
}
|
|
4183
4243
|
};
|
|
4184
4244
|
|
|
4185
|
-
var validationRules_gen$
|
|
4245
|
+
var validationRules_gen$b = /*#__PURE__*/Object.freeze({
|
|
4186
4246
|
__proto__: null,
|
|
4187
4247
|
CreateSnapshotRequest: CreateSnapshotRequest,
|
|
4188
4248
|
CreateVolumeRequest: CreateVolumeRequest,
|
|
@@ -4196,18 +4256,18 @@ var validationRules_gen$a = /*#__PURE__*/Object.freeze({
|
|
|
4196
4256
|
// This file was automatically generated. DO NOT EDIT.
|
|
4197
4257
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4198
4258
|
|
|
4199
|
-
var index_gen$
|
|
4259
|
+
var index_gen$q = /*#__PURE__*/Object.freeze({
|
|
4200
4260
|
__proto__: null,
|
|
4201
|
-
API: API$
|
|
4261
|
+
API: API$r,
|
|
4202
4262
|
REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
|
|
4203
4263
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
|
|
4204
4264
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
|
|
4205
|
-
ValidationRules: validationRules_gen$
|
|
4265
|
+
ValidationRules: validationRules_gen$b
|
|
4206
4266
|
});
|
|
4207
4267
|
|
|
4208
|
-
var index$
|
|
4268
|
+
var index$s = /*#__PURE__*/Object.freeze({
|
|
4209
4269
|
__proto__: null,
|
|
4210
|
-
v1alpha1: index_gen$
|
|
4270
|
+
v1alpha1: index_gen$q
|
|
4211
4271
|
});
|
|
4212
4272
|
|
|
4213
4273
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4322,7 +4382,9 @@ const unmarshalPlan = data => {
|
|
|
4322
4382
|
retentionLogsInterval: data.retention_logs_interval,
|
|
4323
4383
|
retentionMetricsInterval: data.retention_metrics_interval,
|
|
4324
4384
|
retentionPrice: data.retention_price,
|
|
4325
|
-
|
|
4385
|
+
retentionTracesInterval: data.retention_traces_interval,
|
|
4386
|
+
sampleIngestionPrice: data.sample_ingestion_price,
|
|
4387
|
+
tracesIngestionPrice: data.traces_ingestion_price
|
|
4326
4388
|
};
|
|
4327
4389
|
};
|
|
4328
4390
|
const unmarshalCockpit = data => {
|
|
@@ -4483,7 +4545,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
4483
4545
|
|
|
4484
4546
|
// This file was automatically generated. DO NOT EDIT.
|
|
4485
4547
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4486
|
-
const jsonContentHeaders$
|
|
4548
|
+
const jsonContentHeaders$p = {
|
|
4487
4549
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4488
4550
|
};
|
|
4489
4551
|
|
|
@@ -4494,7 +4556,7 @@ const jsonContentHeaders$o = {
|
|
|
4494
4556
|
* Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
|
|
4495
4557
|
* for dashboarding to visualize them.
|
|
4496
4558
|
*/
|
|
4497
|
-
let API$
|
|
4559
|
+
let API$q = class API extends API$w {
|
|
4498
4560
|
/**
|
|
4499
4561
|
* Activate the Cockpit of the specified Project ID.
|
|
4500
4562
|
*
|
|
@@ -4503,7 +4565,7 @@ let API$p = class API extends API$v {
|
|
|
4503
4565
|
*/
|
|
4504
4566
|
activateCockpit = (request = {}) => this.client.fetch({
|
|
4505
4567
|
body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
|
|
4506
|
-
headers: jsonContentHeaders$
|
|
4568
|
+
headers: jsonContentHeaders$p,
|
|
4507
4569
|
method: 'POST',
|
|
4508
4570
|
path: `/cockpit/v1beta1/activate`
|
|
4509
4571
|
}, unmarshalCockpit);
|
|
@@ -4549,7 +4611,7 @@ let API$p = class API extends API$v {
|
|
|
4549
4611
|
*/
|
|
4550
4612
|
deactivateCockpit = (request = {}) => this.client.fetch({
|
|
4551
4613
|
body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
|
|
4552
|
-
headers: jsonContentHeaders$
|
|
4614
|
+
headers: jsonContentHeaders$p,
|
|
4553
4615
|
method: 'POST',
|
|
4554
4616
|
path: `/cockpit/v1beta1/deactivate`
|
|
4555
4617
|
}, unmarshalCockpit);
|
|
@@ -4562,7 +4624,7 @@ let API$p = class API extends API$v {
|
|
|
4562
4624
|
*/
|
|
4563
4625
|
resetCockpitGrafana = (request = {}) => this.client.fetch({
|
|
4564
4626
|
body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
|
|
4565
|
-
headers: jsonContentHeaders$
|
|
4627
|
+
headers: jsonContentHeaders$p,
|
|
4566
4628
|
method: 'POST',
|
|
4567
4629
|
path: `/cockpit/v1beta1/reset-grafana`
|
|
4568
4630
|
}, unmarshalCockpit);
|
|
@@ -4575,7 +4637,7 @@ let API$p = class API extends API$v {
|
|
|
4575
4637
|
*/
|
|
4576
4638
|
createDatasource = request => this.client.fetch({
|
|
4577
4639
|
body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
|
|
4578
|
-
headers: jsonContentHeaders$
|
|
4640
|
+
headers: jsonContentHeaders$p,
|
|
4579
4641
|
method: 'POST',
|
|
4580
4642
|
path: `/cockpit/v1beta1/datasources`
|
|
4581
4643
|
}, unmarshalDatasource);
|
|
@@ -4601,7 +4663,7 @@ let API$p = class API extends API$v {
|
|
|
4601
4663
|
*/
|
|
4602
4664
|
createToken = (request = {}) => this.client.fetch({
|
|
4603
4665
|
body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
|
|
4604
|
-
headers: jsonContentHeaders$
|
|
4666
|
+
headers: jsonContentHeaders$p,
|
|
4605
4667
|
method: 'POST',
|
|
4606
4668
|
path: `/cockpit/v1beta1/tokens`
|
|
4607
4669
|
}, unmarshalToken$2);
|
|
@@ -4648,7 +4710,7 @@ let API$p = class API extends API$v {
|
|
|
4648
4710
|
*/
|
|
4649
4711
|
createContactPoint = (request = {}) => this.client.fetch({
|
|
4650
4712
|
body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
|
|
4651
|
-
headers: jsonContentHeaders$
|
|
4713
|
+
headers: jsonContentHeaders$p,
|
|
4652
4714
|
method: 'POST',
|
|
4653
4715
|
path: `/cockpit/v1beta1/contact-points`
|
|
4654
4716
|
}, unmarshalContactPoint);
|
|
@@ -4674,7 +4736,7 @@ let API$p = class API extends API$v {
|
|
|
4674
4736
|
*/
|
|
4675
4737
|
deleteContactPoint = (request = {}) => this.client.fetch({
|
|
4676
4738
|
body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
|
|
4677
|
-
headers: jsonContentHeaders$
|
|
4739
|
+
headers: jsonContentHeaders$p,
|
|
4678
4740
|
method: 'POST',
|
|
4679
4741
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
4680
4742
|
});
|
|
@@ -4686,7 +4748,7 @@ let API$p = class API extends API$v {
|
|
|
4686
4748
|
*/
|
|
4687
4749
|
enableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4688
4750
|
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
|
|
4689
|
-
headers: jsonContentHeaders$
|
|
4751
|
+
headers: jsonContentHeaders$p,
|
|
4690
4752
|
method: 'POST',
|
|
4691
4753
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
4692
4754
|
});
|
|
@@ -4698,7 +4760,7 @@ let API$p = class API extends API$v {
|
|
|
4698
4760
|
*/
|
|
4699
4761
|
disableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4700
4762
|
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
|
|
4701
|
-
headers: jsonContentHeaders$
|
|
4763
|
+
headers: jsonContentHeaders$p,
|
|
4702
4764
|
method: 'POST',
|
|
4703
4765
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
4704
4766
|
});
|
|
@@ -4710,7 +4772,7 @@ let API$p = class API extends API$v {
|
|
|
4710
4772
|
*/
|
|
4711
4773
|
triggerTestAlert = (request = {}) => this.client.fetch({
|
|
4712
4774
|
body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
|
|
4713
|
-
headers: jsonContentHeaders$
|
|
4775
|
+
headers: jsonContentHeaders$p,
|
|
4714
4776
|
method: 'POST',
|
|
4715
4777
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
4716
4778
|
});
|
|
@@ -4724,7 +4786,7 @@ let API$p = class API extends API$v {
|
|
|
4724
4786
|
*/
|
|
4725
4787
|
createGrafanaUser = request => this.client.fetch({
|
|
4726
4788
|
body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
|
|
4727
|
-
headers: jsonContentHeaders$
|
|
4789
|
+
headers: jsonContentHeaders$p,
|
|
4728
4790
|
method: 'POST',
|
|
4729
4791
|
path: `/cockpit/v1beta1/grafana-users`
|
|
4730
4792
|
}, unmarshalGrafanaUser);
|
|
@@ -4751,7 +4813,7 @@ let API$p = class API extends API$v {
|
|
|
4751
4813
|
*/
|
|
4752
4814
|
deleteGrafanaUser = request => this.client.fetch({
|
|
4753
4815
|
body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
|
|
4754
|
-
headers: jsonContentHeaders$
|
|
4816
|
+
headers: jsonContentHeaders$p,
|
|
4755
4817
|
method: 'POST',
|
|
4756
4818
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
4757
4819
|
});
|
|
@@ -4765,7 +4827,7 @@ let API$p = class API extends API$v {
|
|
|
4765
4827
|
*/
|
|
4766
4828
|
resetGrafanaUserPassword = request => this.client.fetch({
|
|
4767
4829
|
body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
|
|
4768
|
-
headers: jsonContentHeaders$
|
|
4830
|
+
headers: jsonContentHeaders$p,
|
|
4769
4831
|
method: 'POST',
|
|
4770
4832
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
4771
4833
|
}, unmarshalGrafanaUser);
|
|
@@ -4792,7 +4854,7 @@ let API$p = class API extends API$v {
|
|
|
4792
4854
|
*/
|
|
4793
4855
|
selectPlan = request => this.client.fetch({
|
|
4794
4856
|
body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
|
|
4795
|
-
headers: jsonContentHeaders$
|
|
4857
|
+
headers: jsonContentHeaders$p,
|
|
4796
4858
|
method: 'POST',
|
|
4797
4859
|
path: `/cockpit/v1beta1/select-plan`
|
|
4798
4860
|
}, unmarshalSelectPlanResponse);
|
|
@@ -4827,15 +4889,15 @@ let API$p = class API extends API$v {
|
|
|
4827
4889
|
// This file was automatically generated. DO NOT EDIT.
|
|
4828
4890
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4829
4891
|
|
|
4830
|
-
var index_gen$
|
|
4892
|
+
var index_gen$p = /*#__PURE__*/Object.freeze({
|
|
4831
4893
|
__proto__: null,
|
|
4832
|
-
API: API$
|
|
4894
|
+
API: API$q,
|
|
4833
4895
|
COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
|
|
4834
4896
|
});
|
|
4835
4897
|
|
|
4836
|
-
var index$
|
|
4898
|
+
var index$r = /*#__PURE__*/Object.freeze({
|
|
4837
4899
|
__proto__: null,
|
|
4838
|
-
v1beta1: index_gen$
|
|
4900
|
+
v1beta1: index_gen$p
|
|
4839
4901
|
});
|
|
4840
4902
|
|
|
4841
4903
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -5038,7 +5100,7 @@ const unmarshalListDomainsResponse$3 = data => {
|
|
|
5038
5100
|
totalCount: data.total_count
|
|
5039
5101
|
};
|
|
5040
5102
|
};
|
|
5041
|
-
const unmarshalLog$
|
|
5103
|
+
const unmarshalLog$2 = data => {
|
|
5042
5104
|
if (!isJSONObject(data)) {
|
|
5043
5105
|
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
5044
5106
|
}
|
|
@@ -5051,12 +5113,12 @@ const unmarshalLog$1 = data => {
|
|
|
5051
5113
|
timestamp: unmarshalDate(data.timestamp)
|
|
5052
5114
|
};
|
|
5053
5115
|
};
|
|
5054
|
-
const unmarshalListLogsResponse$
|
|
5116
|
+
const unmarshalListLogsResponse$2 = data => {
|
|
5055
5117
|
if (!isJSONObject(data)) {
|
|
5056
5118
|
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
5057
5119
|
}
|
|
5058
5120
|
return {
|
|
5059
|
-
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$
|
|
5121
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$2),
|
|
5060
5122
|
totalCount: data.total_count
|
|
5061
5123
|
};
|
|
5062
5124
|
};
|
|
@@ -5163,12 +5225,12 @@ const marshalCreateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5163
5225
|
...resolveOneOf([{
|
|
5164
5226
|
param: 'scw_sqs_config',
|
|
5165
5227
|
value: request.scwSqsConfig !== undefined ? marshalCreateTriggerRequestMnqSqsClientConfig$1(request.scwSqsConfig) : undefined
|
|
5166
|
-
}, {
|
|
5167
|
-
param: 'sqs_config',
|
|
5168
|
-
value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
5169
5228
|
}, {
|
|
5170
5229
|
param: 'scw_nats_config',
|
|
5171
5230
|
value: request.scwNatsConfig !== undefined ? marshalCreateTriggerRequestMnqNatsClientConfig$1(request.scwNatsConfig) : undefined
|
|
5231
|
+
}, {
|
|
5232
|
+
param: 'sqs_config',
|
|
5233
|
+
value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
|
|
5172
5234
|
}])
|
|
5173
5235
|
});
|
|
5174
5236
|
const marshalUpdateContainerRequest = (request, defaults) => ({
|
|
@@ -5214,12 +5276,12 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5214
5276
|
|
|
5215
5277
|
// This file was automatically generated. DO NOT EDIT.
|
|
5216
5278
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5217
|
-
const jsonContentHeaders$
|
|
5279
|
+
const jsonContentHeaders$o = {
|
|
5218
5280
|
'Content-Type': 'application/json; charset=utf-8'
|
|
5219
5281
|
};
|
|
5220
5282
|
|
|
5221
5283
|
/** Serverless Containers API. */
|
|
5222
|
-
let API$
|
|
5284
|
+
let API$p = class API extends API$w {
|
|
5223
5285
|
/** Lists the available regions of the API. */
|
|
5224
5286
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
5225
5287
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -5264,7 +5326,7 @@ let API$o = class API extends API$v {
|
|
|
5264
5326
|
*/
|
|
5265
5327
|
createNamespace = (request = {}) => this.client.fetch({
|
|
5266
5328
|
body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
|
|
5267
|
-
headers: jsonContentHeaders$
|
|
5329
|
+
headers: jsonContentHeaders$o,
|
|
5268
5330
|
method: 'POST',
|
|
5269
5331
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
5270
5332
|
}, unmarshalNamespace$3);
|
|
@@ -5278,7 +5340,7 @@ let API$o = class API extends API$v {
|
|
|
5278
5340
|
*/
|
|
5279
5341
|
updateNamespace = request => this.client.fetch({
|
|
5280
5342
|
body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
|
|
5281
|
-
headers: jsonContentHeaders$
|
|
5343
|
+
headers: jsonContentHeaders$o,
|
|
5282
5344
|
method: 'PATCH',
|
|
5283
5345
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5284
5346
|
}, unmarshalNamespace$3);
|
|
@@ -5336,7 +5398,7 @@ let API$o = class API extends API$v {
|
|
|
5336
5398
|
*/
|
|
5337
5399
|
createContainer = request => this.client.fetch({
|
|
5338
5400
|
body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
|
|
5339
|
-
headers: jsonContentHeaders$
|
|
5401
|
+
headers: jsonContentHeaders$o,
|
|
5340
5402
|
method: 'POST',
|
|
5341
5403
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
|
|
5342
5404
|
}, unmarshalContainer);
|
|
@@ -5350,7 +5412,7 @@ let API$o = class API extends API$v {
|
|
|
5350
5412
|
*/
|
|
5351
5413
|
updateContainer = request => this.client.fetch({
|
|
5352
5414
|
body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
|
|
5353
|
-
headers: jsonContentHeaders$
|
|
5415
|
+
headers: jsonContentHeaders$o,
|
|
5354
5416
|
method: 'PATCH',
|
|
5355
5417
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
|
|
5356
5418
|
}, unmarshalContainer);
|
|
@@ -5374,7 +5436,7 @@ let API$o = class API extends API$v {
|
|
|
5374
5436
|
*/
|
|
5375
5437
|
deployContainer = request => this.client.fetch({
|
|
5376
5438
|
body: '{}',
|
|
5377
|
-
headers: jsonContentHeaders$
|
|
5439
|
+
headers: jsonContentHeaders$o,
|
|
5378
5440
|
method: 'POST',
|
|
5379
5441
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
|
|
5380
5442
|
}, unmarshalContainer);
|
|
@@ -5420,7 +5482,7 @@ let API$o = class API extends API$v {
|
|
|
5420
5482
|
*/
|
|
5421
5483
|
createCron = request => this.client.fetch({
|
|
5422
5484
|
body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
|
|
5423
|
-
headers: jsonContentHeaders$
|
|
5485
|
+
headers: jsonContentHeaders$o,
|
|
5424
5486
|
method: 'POST',
|
|
5425
5487
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
5426
5488
|
}, unmarshalCron$1);
|
|
@@ -5433,7 +5495,7 @@ let API$o = class API extends API$v {
|
|
|
5433
5495
|
*/
|
|
5434
5496
|
updateCron = request => this.client.fetch({
|
|
5435
5497
|
body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
|
|
5436
|
-
headers: jsonContentHeaders$
|
|
5498
|
+
headers: jsonContentHeaders$o,
|
|
5437
5499
|
method: 'PATCH',
|
|
5438
5500
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
5439
5501
|
}, unmarshalCron$1);
|
|
@@ -5452,7 +5514,7 @@ let API$o = class API extends API$v {
|
|
|
5452
5514
|
method: 'GET',
|
|
5453
5515
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/logs`,
|
|
5454
5516
|
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
5455
|
-
}, unmarshalListLogsResponse$
|
|
5517
|
+
}, unmarshalListLogsResponse$2);
|
|
5456
5518
|
|
|
5457
5519
|
/**
|
|
5458
5520
|
* List your container logs. List the logs of the container with the specified
|
|
@@ -5507,7 +5569,7 @@ let API$o = class API extends API$v {
|
|
|
5507
5569
|
*/
|
|
5508
5570
|
createDomain = request => this.client.fetch({
|
|
5509
5571
|
body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
|
|
5510
|
-
headers: jsonContentHeaders$
|
|
5572
|
+
headers: jsonContentHeaders$o,
|
|
5511
5573
|
method: 'POST',
|
|
5512
5574
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
5513
5575
|
}, unmarshalDomain$3);
|
|
@@ -5549,7 +5611,7 @@ let API$o = class API extends API$v {
|
|
|
5549
5611
|
*/
|
|
5550
5612
|
createToken = (request = {}) => this.client.fetch({
|
|
5551
5613
|
body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
|
|
5552
|
-
headers: jsonContentHeaders$
|
|
5614
|
+
headers: jsonContentHeaders$o,
|
|
5553
5615
|
method: 'POST',
|
|
5554
5616
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
5555
5617
|
}, unmarshalToken$1);
|
|
@@ -5607,7 +5669,7 @@ let API$o = class API extends API$v {
|
|
|
5607
5669
|
*/
|
|
5608
5670
|
createTrigger = request => this.client.fetch({
|
|
5609
5671
|
body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
|
|
5610
|
-
headers: jsonContentHeaders$
|
|
5672
|
+
headers: jsonContentHeaders$o,
|
|
5611
5673
|
method: 'POST',
|
|
5612
5674
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
5613
5675
|
}, unmarshalTrigger$1);
|
|
@@ -5664,7 +5726,7 @@ let API$o = class API extends API$v {
|
|
|
5664
5726
|
*/
|
|
5665
5727
|
updateTrigger = request => this.client.fetch({
|
|
5666
5728
|
body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
|
|
5667
|
-
headers: jsonContentHeaders$
|
|
5729
|
+
headers: jsonContentHeaders$o,
|
|
5668
5730
|
method: 'PATCH',
|
|
5669
5731
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
5670
5732
|
}, unmarshalTrigger$1);
|
|
@@ -5724,7 +5786,7 @@ const UpdateTriggerRequest$1 = {
|
|
|
5724
5786
|
}
|
|
5725
5787
|
};
|
|
5726
5788
|
|
|
5727
|
-
var validationRules_gen$
|
|
5789
|
+
var validationRules_gen$a = /*#__PURE__*/Object.freeze({
|
|
5728
5790
|
__proto__: null,
|
|
5729
5791
|
CreateTriggerRequest: CreateTriggerRequest$1,
|
|
5730
5792
|
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
|
|
@@ -5735,21 +5797,21 @@ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
|
|
|
5735
5797
|
// This file was automatically generated. DO NOT EDIT.
|
|
5736
5798
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5737
5799
|
|
|
5738
|
-
var index_gen$
|
|
5800
|
+
var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
5739
5801
|
__proto__: null,
|
|
5740
|
-
API: API$
|
|
5802
|
+
API: API$p,
|
|
5741
5803
|
CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
|
|
5742
5804
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
|
|
5743
5805
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
|
|
5744
5806
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
|
|
5745
5807
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
|
|
5746
5808
|
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
|
|
5747
|
-
ValidationRules: validationRules_gen$
|
|
5809
|
+
ValidationRules: validationRules_gen$a
|
|
5748
5810
|
});
|
|
5749
5811
|
|
|
5750
|
-
var index$
|
|
5812
|
+
var index$q = /*#__PURE__*/Object.freeze({
|
|
5751
5813
|
__proto__: null,
|
|
5752
|
-
v1beta1: index_gen$
|
|
5814
|
+
v1beta1: index_gen$o
|
|
5753
5815
|
});
|
|
5754
5816
|
|
|
5755
5817
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -6402,12 +6464,12 @@ const marshalUpgradeInstanceRequest$1 = (request, defaults) => ({
|
|
|
6402
6464
|
|
|
6403
6465
|
// This file was automatically generated. DO NOT EDIT.
|
|
6404
6466
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6405
|
-
const jsonContentHeaders$
|
|
6467
|
+
const jsonContentHeaders$n = {
|
|
6406
6468
|
'Content-Type': 'application/json; charset=utf-8'
|
|
6407
6469
|
};
|
|
6408
6470
|
|
|
6409
6471
|
/** Managed Document Databases API. */
|
|
6410
|
-
let API$
|
|
6472
|
+
let API$o = class API extends API$w {
|
|
6411
6473
|
/** Lists the available regions of the API. */
|
|
6412
6474
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
6413
6475
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -6451,7 +6513,7 @@ let API$n = class API extends API$v {
|
|
|
6451
6513
|
*/
|
|
6452
6514
|
upgradeInstance = request => this.client.fetch({
|
|
6453
6515
|
body: JSON.stringify(marshalUpgradeInstanceRequest$1(request, this.client.settings)),
|
|
6454
|
-
headers: jsonContentHeaders$
|
|
6516
|
+
headers: jsonContentHeaders$n,
|
|
6455
6517
|
method: 'POST',
|
|
6456
6518
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
|
|
6457
6519
|
}, unmarshalInstance$2);
|
|
@@ -6509,7 +6571,7 @@ let API$n = class API extends API$v {
|
|
|
6509
6571
|
*/
|
|
6510
6572
|
createInstance = request => this.client.fetch({
|
|
6511
6573
|
body: JSON.stringify(marshalCreateInstanceRequest$1(request, this.client.settings)),
|
|
6512
|
-
headers: jsonContentHeaders$
|
|
6574
|
+
headers: jsonContentHeaders$n,
|
|
6513
6575
|
method: 'POST',
|
|
6514
6576
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
|
|
6515
6577
|
}, unmarshalInstance$2);
|
|
@@ -6523,7 +6585,7 @@ let API$n = class API extends API$v {
|
|
|
6523
6585
|
*/
|
|
6524
6586
|
updateInstance = request => this.client.fetch({
|
|
6525
6587
|
body: JSON.stringify(marshalUpdateInstanceRequest$1(request, this.client.settings)),
|
|
6526
|
-
headers: jsonContentHeaders$
|
|
6588
|
+
headers: jsonContentHeaders$n,
|
|
6527
6589
|
method: 'PATCH',
|
|
6528
6590
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
|
|
6529
6591
|
}, unmarshalInstance$2);
|
|
@@ -6554,7 +6616,7 @@ let API$n = class API extends API$v {
|
|
|
6554
6616
|
*/
|
|
6555
6617
|
cloneInstance = request => this.client.fetch({
|
|
6556
6618
|
body: JSON.stringify(marshalCloneInstanceRequest$1(request, this.client.settings)),
|
|
6557
|
-
headers: jsonContentHeaders$
|
|
6619
|
+
headers: jsonContentHeaders$n,
|
|
6558
6620
|
method: 'POST',
|
|
6559
6621
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
|
|
6560
6622
|
}, unmarshalInstance$2);
|
|
@@ -6569,7 +6631,7 @@ let API$n = class API extends API$v {
|
|
|
6569
6631
|
*/
|
|
6570
6632
|
restartInstance = request => this.client.fetch({
|
|
6571
6633
|
body: '{}',
|
|
6572
|
-
headers: jsonContentHeaders$
|
|
6634
|
+
headers: jsonContentHeaders$n,
|
|
6573
6635
|
method: 'POST',
|
|
6574
6636
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
|
|
6575
6637
|
}, unmarshalInstance$2);
|
|
@@ -6600,7 +6662,7 @@ let API$n = class API extends API$v {
|
|
|
6600
6662
|
*/
|
|
6601
6663
|
renewInstanceCertificate = request => this.client.fetch({
|
|
6602
6664
|
body: '{}',
|
|
6603
|
-
headers: jsonContentHeaders$
|
|
6665
|
+
headers: jsonContentHeaders$n,
|
|
6604
6666
|
method: 'POST',
|
|
6605
6667
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
|
|
6606
6668
|
});
|
|
@@ -6629,7 +6691,7 @@ let API$n = class API extends API$v {
|
|
|
6629
6691
|
*/
|
|
6630
6692
|
createReadReplica = request => this.client.fetch({
|
|
6631
6693
|
body: JSON.stringify(marshalCreateReadReplicaRequest$1(request, this.client.settings)),
|
|
6632
|
-
headers: jsonContentHeaders$
|
|
6694
|
+
headers: jsonContentHeaders$n,
|
|
6633
6695
|
method: 'POST',
|
|
6634
6696
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
|
|
6635
6697
|
}, unmarshalReadReplica$1);
|
|
@@ -6681,7 +6743,7 @@ let API$n = class API extends API$v {
|
|
|
6681
6743
|
*/
|
|
6682
6744
|
resetReadReplica = request => this.client.fetch({
|
|
6683
6745
|
body: '{}',
|
|
6684
|
-
headers: jsonContentHeaders$
|
|
6746
|
+
headers: jsonContentHeaders$n,
|
|
6685
6747
|
method: 'POST',
|
|
6686
6748
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
|
|
6687
6749
|
}, unmarshalReadReplica$1);
|
|
@@ -6695,7 +6757,7 @@ let API$n = class API extends API$v {
|
|
|
6695
6757
|
*/
|
|
6696
6758
|
promoteReadReplica = request => this.client.fetch({
|
|
6697
6759
|
body: '{}',
|
|
6698
|
-
headers: jsonContentHeaders$
|
|
6760
|
+
headers: jsonContentHeaders$n,
|
|
6699
6761
|
method: 'POST',
|
|
6700
6762
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
|
|
6701
6763
|
}, unmarshalInstance$2);
|
|
@@ -6710,7 +6772,7 @@ let API$n = class API extends API$v {
|
|
|
6710
6772
|
*/
|
|
6711
6773
|
createReadReplicaEndpoint = request => this.client.fetch({
|
|
6712
6774
|
body: JSON.stringify(marshalCreateReadReplicaEndpointRequest$1(request, this.client.settings)),
|
|
6713
|
-
headers: jsonContentHeaders$
|
|
6775
|
+
headers: jsonContentHeaders$n,
|
|
6714
6776
|
method: 'POST',
|
|
6715
6777
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
|
|
6716
6778
|
}, unmarshalReadReplica$1);
|
|
@@ -6762,7 +6824,7 @@ let API$n = class API extends API$v {
|
|
|
6762
6824
|
*/
|
|
6763
6825
|
purgeInstanceLogs = request => this.client.fetch({
|
|
6764
6826
|
body: JSON.stringify(marshalPurgeInstanceLogsRequest$1(request, this.client.settings)),
|
|
6765
|
-
headers: jsonContentHeaders$
|
|
6827
|
+
headers: jsonContentHeaders$n,
|
|
6766
6828
|
method: 'POST',
|
|
6767
6829
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
|
|
6768
6830
|
});
|
|
@@ -6790,7 +6852,7 @@ let API$n = class API extends API$v {
|
|
|
6790
6852
|
*/
|
|
6791
6853
|
addInstanceSettings = request => this.client.fetch({
|
|
6792
6854
|
body: JSON.stringify(marshalAddInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6793
|
-
headers: jsonContentHeaders$
|
|
6855
|
+
headers: jsonContentHeaders$n,
|
|
6794
6856
|
method: 'POST',
|
|
6795
6857
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6796
6858
|
}, unmarshalAddInstanceSettingsResponse$1);
|
|
@@ -6805,7 +6867,7 @@ let API$n = class API extends API$v {
|
|
|
6805
6867
|
*/
|
|
6806
6868
|
deleteInstanceSettings = request => this.client.fetch({
|
|
6807
6869
|
body: JSON.stringify(marshalDeleteInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6808
|
-
headers: jsonContentHeaders$
|
|
6870
|
+
headers: jsonContentHeaders$n,
|
|
6809
6871
|
method: 'DELETE',
|
|
6810
6872
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6811
6873
|
}, unmarshalDeleteInstanceSettingsResponse$1);
|
|
@@ -6820,7 +6882,7 @@ let API$n = class API extends API$v {
|
|
|
6820
6882
|
*/
|
|
6821
6883
|
setInstanceSettings = request => this.client.fetch({
|
|
6822
6884
|
body: JSON.stringify(marshalSetInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6823
|
-
headers: jsonContentHeaders$
|
|
6885
|
+
headers: jsonContentHeaders$n,
|
|
6824
6886
|
method: 'PUT',
|
|
6825
6887
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6826
6888
|
}, unmarshalSetInstanceSettingsResponse$1);
|
|
@@ -6850,7 +6912,7 @@ let API$n = class API extends API$v {
|
|
|
6850
6912
|
*/
|
|
6851
6913
|
addInstanceACLRules = request => this.client.fetch({
|
|
6852
6914
|
body: JSON.stringify(marshalAddInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6853
|
-
headers: jsonContentHeaders$
|
|
6915
|
+
headers: jsonContentHeaders$n,
|
|
6854
6916
|
method: 'POST',
|
|
6855
6917
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6856
6918
|
}, unmarshalAddInstanceACLRulesResponse$1);
|
|
@@ -6864,7 +6926,7 @@ let API$n = class API extends API$v {
|
|
|
6864
6926
|
*/
|
|
6865
6927
|
setInstanceACLRules = request => this.client.fetch({
|
|
6866
6928
|
body: JSON.stringify(marshalSetInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6867
|
-
headers: jsonContentHeaders$
|
|
6929
|
+
headers: jsonContentHeaders$n,
|
|
6868
6930
|
method: 'PUT',
|
|
6869
6931
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6870
6932
|
}, unmarshalSetInstanceACLRulesResponse$1);
|
|
@@ -6878,7 +6940,7 @@ let API$n = class API extends API$v {
|
|
|
6878
6940
|
*/
|
|
6879
6941
|
deleteInstanceACLRules = request => this.client.fetch({
|
|
6880
6942
|
body: JSON.stringify(marshalDeleteInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6881
|
-
headers: jsonContentHeaders$
|
|
6943
|
+
headers: jsonContentHeaders$n,
|
|
6882
6944
|
method: 'DELETE',
|
|
6883
6945
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6884
6946
|
}, unmarshalDeleteInstanceACLRulesResponse$1);
|
|
@@ -6909,7 +6971,7 @@ let API$n = class API extends API$v {
|
|
|
6909
6971
|
*/
|
|
6910
6972
|
createUser = request => this.client.fetch({
|
|
6911
6973
|
body: JSON.stringify(marshalCreateUserRequest$2(request, this.client.settings)),
|
|
6912
|
-
headers: jsonContentHeaders$
|
|
6974
|
+
headers: jsonContentHeaders$n,
|
|
6913
6975
|
method: 'POST',
|
|
6914
6976
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
|
|
6915
6977
|
}, unmarshalUser$2);
|
|
@@ -6924,7 +6986,7 @@ let API$n = class API extends API$v {
|
|
|
6924
6986
|
*/
|
|
6925
6987
|
updateUser = request => this.client.fetch({
|
|
6926
6988
|
body: JSON.stringify(marshalUpdateUserRequest$1(request, this.client.settings)),
|
|
6927
|
-
headers: jsonContentHeaders$
|
|
6989
|
+
headers: jsonContentHeaders$n,
|
|
6928
6990
|
method: 'PATCH',
|
|
6929
6991
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
|
|
6930
6992
|
}, unmarshalUser$2);
|
|
@@ -6967,7 +7029,7 @@ let API$n = class API extends API$v {
|
|
|
6967
7029
|
*/
|
|
6968
7030
|
createDatabase = request => this.client.fetch({
|
|
6969
7031
|
body: JSON.stringify(marshalCreateDatabaseRequest$1(request, this.client.settings)),
|
|
6970
|
-
headers: jsonContentHeaders$
|
|
7032
|
+
headers: jsonContentHeaders$n,
|
|
6971
7033
|
method: 'POST',
|
|
6972
7034
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
|
|
6973
7035
|
}, unmarshalDatabase$1);
|
|
@@ -7011,7 +7073,7 @@ let API$n = class API extends API$v {
|
|
|
7011
7073
|
*/
|
|
7012
7074
|
setPrivilege = request => this.client.fetch({
|
|
7013
7075
|
body: JSON.stringify(marshalSetPrivilegeRequest$1(request, this.client.settings)),
|
|
7014
|
-
headers: jsonContentHeaders$
|
|
7076
|
+
headers: jsonContentHeaders$n,
|
|
7015
7077
|
method: 'PUT',
|
|
7016
7078
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
|
|
7017
7079
|
}, unmarshalPrivilege$1);
|
|
@@ -7064,7 +7126,7 @@ let API$n = class API extends API$v {
|
|
|
7064
7126
|
*/
|
|
7065
7127
|
createSnapshot = request => this.client.fetch({
|
|
7066
7128
|
body: JSON.stringify(marshalCreateSnapshotRequest$2(request, this.client.settings)),
|
|
7067
|
-
headers: jsonContentHeaders$
|
|
7129
|
+
headers: jsonContentHeaders$n,
|
|
7068
7130
|
method: 'POST',
|
|
7069
7131
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
|
|
7070
7132
|
}, unmarshalSnapshot$2);
|
|
@@ -7079,7 +7141,7 @@ let API$n = class API extends API$v {
|
|
|
7079
7141
|
*/
|
|
7080
7142
|
updateSnapshot = request => this.client.fetch({
|
|
7081
7143
|
body: JSON.stringify(marshalUpdateSnapshotRequest$1(request, this.client.settings)),
|
|
7082
|
-
headers: jsonContentHeaders$
|
|
7144
|
+
headers: jsonContentHeaders$n,
|
|
7083
7145
|
method: 'PATCH',
|
|
7084
7146
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
7085
7147
|
}, unmarshalSnapshot$2);
|
|
@@ -7112,7 +7174,7 @@ let API$n = class API extends API$v {
|
|
|
7112
7174
|
*/
|
|
7113
7175
|
createInstanceFromSnapshot = request => this.client.fetch({
|
|
7114
7176
|
body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest$1(request, this.client.settings)),
|
|
7115
|
-
headers: jsonContentHeaders$
|
|
7177
|
+
headers: jsonContentHeaders$n,
|
|
7116
7178
|
method: 'POST',
|
|
7117
7179
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
|
|
7118
7180
|
}, unmarshalInstance$2);
|
|
@@ -7127,7 +7189,7 @@ let API$n = class API extends API$v {
|
|
|
7127
7189
|
*/
|
|
7128
7190
|
createEndpoint = request => this.client.fetch({
|
|
7129
7191
|
body: JSON.stringify(marshalCreateEndpointRequest$1(request, this.client.settings)),
|
|
7130
|
-
headers: jsonContentHeaders$
|
|
7192
|
+
headers: jsonContentHeaders$n,
|
|
7131
7193
|
method: 'POST',
|
|
7132
7194
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
|
|
7133
7195
|
}, unmarshalEndpoint$2);
|
|
@@ -7168,7 +7230,7 @@ let API$n = class API extends API$v {
|
|
|
7168
7230
|
*/
|
|
7169
7231
|
migrateEndpoint = request => this.client.fetch({
|
|
7170
7232
|
body: JSON.stringify(marshalMigrateEndpointRequest$1(request, this.client.settings)),
|
|
7171
|
-
headers: jsonContentHeaders$
|
|
7233
|
+
headers: jsonContentHeaders$n,
|
|
7172
7234
|
method: 'POST',
|
|
7173
7235
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
|
|
7174
7236
|
}, unmarshalEndpoint$2);
|
|
@@ -7183,7 +7245,7 @@ const UpdateInstanceRequest$1 = {
|
|
|
7183
7245
|
}
|
|
7184
7246
|
};
|
|
7185
7247
|
|
|
7186
|
-
var validationRules_gen$
|
|
7248
|
+
var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
|
|
7187
7249
|
__proto__: null,
|
|
7188
7250
|
UpdateInstanceRequest: UpdateInstanceRequest$1
|
|
7189
7251
|
});
|
|
@@ -7191,20 +7253,20 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
|
7191
7253
|
// This file was automatically generated. DO NOT EDIT.
|
|
7192
7254
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7193
7255
|
|
|
7194
|
-
var index_gen$
|
|
7256
|
+
var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
7195
7257
|
__proto__: null,
|
|
7196
|
-
API: API$
|
|
7258
|
+
API: API$o,
|
|
7197
7259
|
INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
|
|
7198
7260
|
INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES$2,
|
|
7199
7261
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
|
|
7200
7262
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES$1,
|
|
7201
7263
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$2,
|
|
7202
|
-
ValidationRules: validationRules_gen$
|
|
7264
|
+
ValidationRules: validationRules_gen$9
|
|
7203
7265
|
});
|
|
7204
7266
|
|
|
7205
|
-
var index$
|
|
7267
|
+
var index$p = /*#__PURE__*/Object.freeze({
|
|
7206
7268
|
__proto__: null,
|
|
7207
|
-
v1beta1: index_gen$
|
|
7269
|
+
v1beta1: index_gen$n
|
|
7208
7270
|
});
|
|
7209
7271
|
|
|
7210
7272
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -8403,7 +8465,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
|
8403
8465
|
|
|
8404
8466
|
// This file was automatically generated. DO NOT EDIT.
|
|
8405
8467
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
8406
|
-
const jsonContentHeaders$
|
|
8468
|
+
const jsonContentHeaders$m = {
|
|
8407
8469
|
'Content-Type': 'application/json; charset=utf-8'
|
|
8408
8470
|
};
|
|
8409
8471
|
|
|
@@ -8412,7 +8474,7 @@ const jsonContentHeaders$l = {
|
|
|
8412
8474
|
*
|
|
8413
8475
|
* Manage your domains, DNS zones and records with the Domains and DNS API.
|
|
8414
8476
|
*/
|
|
8415
|
-
let API$
|
|
8477
|
+
let API$n = class API extends API$w {
|
|
8416
8478
|
pageOfListDNSZones = request => this.client.fetch({
|
|
8417
8479
|
method: 'GET',
|
|
8418
8480
|
path: `/domain/v2beta1/dns-zones`,
|
|
@@ -8437,7 +8499,7 @@ let API$m = class API extends API$v {
|
|
|
8437
8499
|
*/
|
|
8438
8500
|
createDNSZone = request => this.client.fetch({
|
|
8439
8501
|
body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
|
|
8440
|
-
headers: jsonContentHeaders$
|
|
8502
|
+
headers: jsonContentHeaders$m,
|
|
8441
8503
|
method: 'POST',
|
|
8442
8504
|
path: `/domain/v2beta1/dns-zones`
|
|
8443
8505
|
}, unmarshalDNSZone);
|
|
@@ -8450,7 +8512,7 @@ let API$m = class API extends API$v {
|
|
|
8450
8512
|
*/
|
|
8451
8513
|
updateDNSZone = request => this.client.fetch({
|
|
8452
8514
|
body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
|
|
8453
|
-
headers: jsonContentHeaders$
|
|
8515
|
+
headers: jsonContentHeaders$m,
|
|
8454
8516
|
method: 'PATCH',
|
|
8455
8517
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
8456
8518
|
}, unmarshalDNSZone);
|
|
@@ -8464,7 +8526,7 @@ let API$m = class API extends API$v {
|
|
|
8464
8526
|
*/
|
|
8465
8527
|
cloneDNSZone = request => this.client.fetch({
|
|
8466
8528
|
body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
|
|
8467
|
-
headers: jsonContentHeaders$
|
|
8529
|
+
headers: jsonContentHeaders$m,
|
|
8468
8530
|
method: 'POST',
|
|
8469
8531
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
8470
8532
|
}, unmarshalDNSZone);
|
|
@@ -8517,7 +8579,7 @@ let API$m = class API extends API$v {
|
|
|
8517
8579
|
*/
|
|
8518
8580
|
updateDNSZoneRecords = request => this.client.fetch({
|
|
8519
8581
|
body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
|
|
8520
|
-
headers: jsonContentHeaders$
|
|
8582
|
+
headers: jsonContentHeaders$m,
|
|
8521
8583
|
method: 'PATCH',
|
|
8522
8584
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
8523
8585
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
@@ -8544,7 +8606,7 @@ let API$m = class API extends API$v {
|
|
|
8544
8606
|
*/
|
|
8545
8607
|
updateDNSZoneNameservers = request => this.client.fetch({
|
|
8546
8608
|
body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
|
|
8547
|
-
headers: jsonContentHeaders$
|
|
8609
|
+
headers: jsonContentHeaders$m,
|
|
8548
8610
|
method: 'PUT',
|
|
8549
8611
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
8550
8612
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
@@ -8584,7 +8646,7 @@ let API$m = class API extends API$v {
|
|
|
8584
8646
|
*/
|
|
8585
8647
|
importRawDNSZone = request => this.client.fetch({
|
|
8586
8648
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
8587
|
-
headers: jsonContentHeaders$
|
|
8649
|
+
headers: jsonContentHeaders$m,
|
|
8588
8650
|
method: 'POST',
|
|
8589
8651
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
8590
8652
|
}, unmarshalImportRawDNSZoneResponse);
|
|
@@ -8598,7 +8660,7 @@ let API$m = class API extends API$v {
|
|
|
8598
8660
|
*/
|
|
8599
8661
|
importProviderDNSZone = request => this.client.fetch({
|
|
8600
8662
|
body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
|
|
8601
|
-
headers: jsonContentHeaders$
|
|
8663
|
+
headers: jsonContentHeaders$m,
|
|
8602
8664
|
method: 'POST',
|
|
8603
8665
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
8604
8666
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
@@ -8613,7 +8675,7 @@ let API$m = class API extends API$v {
|
|
|
8613
8675
|
*/
|
|
8614
8676
|
refreshDNSZone = request => this.client.fetch({
|
|
8615
8677
|
body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
|
|
8616
|
-
headers: jsonContentHeaders$
|
|
8678
|
+
headers: jsonContentHeaders$m,
|
|
8617
8679
|
method: 'POST',
|
|
8618
8680
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
|
|
8619
8681
|
}, unmarshalRefreshDNSZoneResponse);
|
|
@@ -8668,7 +8730,7 @@ let API$m = class API extends API$v {
|
|
|
8668
8730
|
*/
|
|
8669
8731
|
restoreDNSZoneVersion = request => this.client.fetch({
|
|
8670
8732
|
body: '{}',
|
|
8671
|
-
headers: jsonContentHeaders$
|
|
8733
|
+
headers: jsonContentHeaders$m,
|
|
8672
8734
|
method: 'POST',
|
|
8673
8735
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
8674
8736
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
@@ -8703,7 +8765,7 @@ let API$m = class API extends API$v {
|
|
|
8703
8765
|
*/
|
|
8704
8766
|
createSSLCertificate = request => this.client.fetch({
|
|
8705
8767
|
body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
|
|
8706
|
-
headers: jsonContentHeaders$
|
|
8768
|
+
headers: jsonContentHeaders$m,
|
|
8707
8769
|
method: 'POST',
|
|
8708
8770
|
path: `/domain/v2beta1/ssl-certificates`
|
|
8709
8771
|
}, unmarshalSSLCertificate);
|
|
@@ -8764,7 +8826,7 @@ let API$m = class API extends API$v {
|
|
|
8764
8826
|
*
|
|
8765
8827
|
* Manage your domains and contacts.
|
|
8766
8828
|
*/
|
|
8767
|
-
class RegistrarAPI extends API$
|
|
8829
|
+
class RegistrarAPI extends API$w {
|
|
8768
8830
|
pageOfListTasks = (request = {}) => this.client.fetch({
|
|
8769
8831
|
method: 'GET',
|
|
8770
8832
|
path: `/domain/v2beta1/tasks`,
|
|
@@ -8789,7 +8851,7 @@ class RegistrarAPI extends API$v {
|
|
|
8789
8851
|
*/
|
|
8790
8852
|
buyDomains = request => this.client.fetch({
|
|
8791
8853
|
body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
|
|
8792
|
-
headers: jsonContentHeaders$
|
|
8854
|
+
headers: jsonContentHeaders$m,
|
|
8793
8855
|
method: 'POST',
|
|
8794
8856
|
path: `/domain/v2beta1/buy-domains`
|
|
8795
8857
|
}, unmarshalOrderResponse);
|
|
@@ -8802,7 +8864,7 @@ class RegistrarAPI extends API$v {
|
|
|
8802
8864
|
*/
|
|
8803
8865
|
renewDomains = request => this.client.fetch({
|
|
8804
8866
|
body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
|
|
8805
|
-
headers: jsonContentHeaders$
|
|
8867
|
+
headers: jsonContentHeaders$m,
|
|
8806
8868
|
method: 'POST',
|
|
8807
8869
|
path: `/domain/v2beta1/renew-domains`
|
|
8808
8870
|
}, unmarshalOrderResponse);
|
|
@@ -8816,7 +8878,7 @@ class RegistrarAPI extends API$v {
|
|
|
8816
8878
|
*/
|
|
8817
8879
|
transferInDomain = request => this.client.fetch({
|
|
8818
8880
|
body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
|
|
8819
|
-
headers: jsonContentHeaders$
|
|
8881
|
+
headers: jsonContentHeaders$m,
|
|
8820
8882
|
method: 'POST',
|
|
8821
8883
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
8822
8884
|
}, unmarshalOrderResponse);
|
|
@@ -8836,7 +8898,7 @@ class RegistrarAPI extends API$v {
|
|
|
8836
8898
|
*/
|
|
8837
8899
|
tradeDomain = request => this.client.fetch({
|
|
8838
8900
|
body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
|
|
8839
|
-
headers: jsonContentHeaders$
|
|
8901
|
+
headers: jsonContentHeaders$m,
|
|
8840
8902
|
method: 'POST',
|
|
8841
8903
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
8842
8904
|
}, unmarshalOrderResponse);
|
|
@@ -8851,7 +8913,7 @@ class RegistrarAPI extends API$v {
|
|
|
8851
8913
|
*/
|
|
8852
8914
|
registerExternalDomain = request => this.client.fetch({
|
|
8853
8915
|
body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
|
|
8854
|
-
headers: jsonContentHeaders$
|
|
8916
|
+
headers: jsonContentHeaders$m,
|
|
8855
8917
|
method: 'POST',
|
|
8856
8918
|
path: `/domain/v2beta1/external-domains`
|
|
8857
8919
|
}, unmarshalRegisterExternalDomainResponse);
|
|
@@ -8879,7 +8941,7 @@ class RegistrarAPI extends API$v {
|
|
|
8879
8941
|
*/
|
|
8880
8942
|
checkContactsCompatibility = (request = {}) => this.client.fetch({
|
|
8881
8943
|
body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
|
|
8882
|
-
headers: jsonContentHeaders$
|
|
8944
|
+
headers: jsonContentHeaders$m,
|
|
8883
8945
|
method: 'POST',
|
|
8884
8946
|
path: `/domain/v2beta1/check-contacts-compatibility`
|
|
8885
8947
|
}, unmarshalCheckContactsCompatibilityResponse);
|
|
@@ -8918,7 +8980,7 @@ class RegistrarAPI extends API$v {
|
|
|
8918
8980
|
*/
|
|
8919
8981
|
updateContact = request => this.client.fetch({
|
|
8920
8982
|
body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
|
|
8921
|
-
headers: jsonContentHeaders$
|
|
8983
|
+
headers: jsonContentHeaders$m,
|
|
8922
8984
|
method: 'PATCH',
|
|
8923
8985
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
8924
8986
|
}, unmarshalContact);
|
|
@@ -8983,7 +9045,7 @@ class RegistrarAPI extends API$v {
|
|
|
8983
9045
|
*/
|
|
8984
9046
|
updateDomain = request => this.client.fetch({
|
|
8985
9047
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
|
|
8986
|
-
headers: jsonContentHeaders$
|
|
9048
|
+
headers: jsonContentHeaders$m,
|
|
8987
9049
|
method: 'PATCH',
|
|
8988
9050
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
8989
9051
|
}, unmarshalDomain$2);
|
|
@@ -8998,7 +9060,7 @@ class RegistrarAPI extends API$v {
|
|
|
8998
9060
|
*/
|
|
8999
9061
|
lockDomainTransfer = request => this.client.fetch({
|
|
9000
9062
|
body: '{}',
|
|
9001
|
-
headers: jsonContentHeaders$
|
|
9063
|
+
headers: jsonContentHeaders$m,
|
|
9002
9064
|
method: 'POST',
|
|
9003
9065
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
9004
9066
|
}, unmarshalDomain$2);
|
|
@@ -9013,7 +9075,7 @@ class RegistrarAPI extends API$v {
|
|
|
9013
9075
|
*/
|
|
9014
9076
|
unlockDomainTransfer = request => this.client.fetch({
|
|
9015
9077
|
body: '{}',
|
|
9016
|
-
headers: jsonContentHeaders$
|
|
9078
|
+
headers: jsonContentHeaders$m,
|
|
9017
9079
|
method: 'POST',
|
|
9018
9080
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
9019
9081
|
}, unmarshalDomain$2);
|
|
@@ -9028,7 +9090,7 @@ class RegistrarAPI extends API$v {
|
|
|
9028
9090
|
*/
|
|
9029
9091
|
enableDomainAutoRenew = request => this.client.fetch({
|
|
9030
9092
|
body: '{}',
|
|
9031
|
-
headers: jsonContentHeaders$
|
|
9093
|
+
headers: jsonContentHeaders$m,
|
|
9032
9094
|
method: 'POST',
|
|
9033
9095
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
9034
9096
|
}, unmarshalDomain$2);
|
|
@@ -9043,7 +9105,7 @@ class RegistrarAPI extends API$v {
|
|
|
9043
9105
|
*/
|
|
9044
9106
|
disableDomainAutoRenew = request => this.client.fetch({
|
|
9045
9107
|
body: '{}',
|
|
9046
|
-
headers: jsonContentHeaders$
|
|
9108
|
+
headers: jsonContentHeaders$m,
|
|
9047
9109
|
method: 'POST',
|
|
9048
9110
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
9049
9111
|
}, unmarshalDomain$2);
|
|
@@ -9072,7 +9134,7 @@ class RegistrarAPI extends API$v {
|
|
|
9072
9134
|
*/
|
|
9073
9135
|
enableDomainDNSSEC = request => this.client.fetch({
|
|
9074
9136
|
body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
|
|
9075
|
-
headers: jsonContentHeaders$
|
|
9137
|
+
headers: jsonContentHeaders$m,
|
|
9076
9138
|
method: 'POST',
|
|
9077
9139
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
9078
9140
|
}, unmarshalDomain$2);
|
|
@@ -9085,7 +9147,7 @@ class RegistrarAPI extends API$v {
|
|
|
9085
9147
|
*/
|
|
9086
9148
|
disableDomainDNSSEC = request => this.client.fetch({
|
|
9087
9149
|
body: '{}',
|
|
9088
|
-
headers: jsonContentHeaders$
|
|
9150
|
+
headers: jsonContentHeaders$m,
|
|
9089
9151
|
method: 'POST',
|
|
9090
9152
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
9091
9153
|
}, unmarshalDomain$2);
|
|
@@ -9129,7 +9191,7 @@ class RegistrarAPI extends API$v {
|
|
|
9129
9191
|
*/
|
|
9130
9192
|
createDomainHost = request => this.client.fetch({
|
|
9131
9193
|
body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
|
|
9132
|
-
headers: jsonContentHeaders$
|
|
9194
|
+
headers: jsonContentHeaders$m,
|
|
9133
9195
|
method: 'POST',
|
|
9134
9196
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
|
|
9135
9197
|
}, unmarshalHost);
|
|
@@ -9155,7 +9217,7 @@ class RegistrarAPI extends API$v {
|
|
|
9155
9217
|
*/
|
|
9156
9218
|
updateDomainHost = request => this.client.fetch({
|
|
9157
9219
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
|
|
9158
|
-
headers: jsonContentHeaders$
|
|
9220
|
+
headers: jsonContentHeaders$m,
|
|
9159
9221
|
method: 'PATCH',
|
|
9160
9222
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
9161
9223
|
}, unmarshalHost);
|
|
@@ -9175,9 +9237,9 @@ class RegistrarAPI extends API$v {
|
|
|
9175
9237
|
// This file was automatically generated. DO NOT EDIT.
|
|
9176
9238
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9177
9239
|
|
|
9178
|
-
var index_gen$
|
|
9240
|
+
var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
9179
9241
|
__proto__: null,
|
|
9180
|
-
API: API$
|
|
9242
|
+
API: API$n,
|
|
9181
9243
|
DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
|
|
9182
9244
|
DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
|
|
9183
9245
|
DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
|
|
@@ -9188,9 +9250,9 @@ var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
|
9188
9250
|
TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
|
|
9189
9251
|
});
|
|
9190
9252
|
|
|
9191
|
-
var index$
|
|
9253
|
+
var index$o = /*#__PURE__*/Object.freeze({
|
|
9192
9254
|
__proto__: null,
|
|
9193
|
-
v2beta1: index_gen$
|
|
9255
|
+
v2beta1: index_gen$m
|
|
9194
9256
|
});
|
|
9195
9257
|
|
|
9196
9258
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9297,12 +9359,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
|
|
|
9297
9359
|
|
|
9298
9360
|
// This file was automatically generated. DO NOT EDIT.
|
|
9299
9361
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9300
|
-
const jsonContentHeaders$
|
|
9362
|
+
const jsonContentHeaders$l = {
|
|
9301
9363
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9302
9364
|
};
|
|
9303
9365
|
|
|
9304
9366
|
/** Elastic Metal - Flexible IP API. */
|
|
9305
|
-
let API$
|
|
9367
|
+
let API$m = class API extends API$w {
|
|
9306
9368
|
/** Lists the available zones of the API. */
|
|
9307
9369
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
|
|
9308
9370
|
|
|
@@ -9315,7 +9377,7 @@ let API$l = class API extends API$v {
|
|
|
9315
9377
|
*/
|
|
9316
9378
|
createFlexibleIP = request => this.client.fetch({
|
|
9317
9379
|
body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
|
|
9318
|
-
headers: jsonContentHeaders$
|
|
9380
|
+
headers: jsonContentHeaders$l,
|
|
9319
9381
|
method: 'POST',
|
|
9320
9382
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
9321
9383
|
}, unmarshalFlexibleIP);
|
|
@@ -9365,7 +9427,7 @@ let API$l = class API extends API$v {
|
|
|
9365
9427
|
*/
|
|
9366
9428
|
updateFlexibleIP = request => this.client.fetch({
|
|
9367
9429
|
body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
|
|
9368
|
-
headers: jsonContentHeaders$
|
|
9430
|
+
headers: jsonContentHeaders$l,
|
|
9369
9431
|
method: 'PATCH',
|
|
9370
9432
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
9371
9433
|
}, unmarshalFlexibleIP);
|
|
@@ -9391,7 +9453,7 @@ let API$l = class API extends API$v {
|
|
|
9391
9453
|
*/
|
|
9392
9454
|
attachFlexibleIP = request => this.client.fetch({
|
|
9393
9455
|
body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
|
|
9394
|
-
headers: jsonContentHeaders$
|
|
9456
|
+
headers: jsonContentHeaders$l,
|
|
9395
9457
|
method: 'POST',
|
|
9396
9458
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
9397
9459
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
@@ -9405,7 +9467,7 @@ let API$l = class API extends API$v {
|
|
|
9405
9467
|
*/
|
|
9406
9468
|
detachFlexibleIP = request => this.client.fetch({
|
|
9407
9469
|
body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
|
|
9408
|
-
headers: jsonContentHeaders$
|
|
9470
|
+
headers: jsonContentHeaders$l,
|
|
9409
9471
|
method: 'POST',
|
|
9410
9472
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
9411
9473
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
@@ -9419,7 +9481,7 @@ let API$l = class API extends API$v {
|
|
|
9419
9481
|
*/
|
|
9420
9482
|
generateMACAddr = request => this.client.fetch({
|
|
9421
9483
|
body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
|
|
9422
|
-
headers: jsonContentHeaders$
|
|
9484
|
+
headers: jsonContentHeaders$l,
|
|
9423
9485
|
method: 'POST',
|
|
9424
9486
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
9425
9487
|
}, unmarshalFlexibleIP);
|
|
@@ -9434,7 +9496,7 @@ let API$l = class API extends API$v {
|
|
|
9434
9496
|
*/
|
|
9435
9497
|
duplicateMACAddr = request => this.client.fetch({
|
|
9436
9498
|
body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
|
|
9437
|
-
headers: jsonContentHeaders$
|
|
9499
|
+
headers: jsonContentHeaders$l,
|
|
9438
9500
|
method: 'POST',
|
|
9439
9501
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
9440
9502
|
}, unmarshalFlexibleIP);
|
|
@@ -9449,7 +9511,7 @@ let API$l = class API extends API$v {
|
|
|
9449
9511
|
*/
|
|
9450
9512
|
moveMACAddr = request => this.client.fetch({
|
|
9451
9513
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
9452
|
-
headers: jsonContentHeaders$
|
|
9514
|
+
headers: jsonContentHeaders$l,
|
|
9453
9515
|
method: 'POST',
|
|
9454
9516
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
9455
9517
|
}, unmarshalFlexibleIP);
|
|
@@ -9479,7 +9541,7 @@ const ListFlexibleIPsRequest = {
|
|
|
9479
9541
|
}
|
|
9480
9542
|
};
|
|
9481
9543
|
|
|
9482
|
-
var validationRules_gen$
|
|
9544
|
+
var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
9483
9545
|
__proto__: null,
|
|
9484
9546
|
ListFlexibleIPsRequest: ListFlexibleIPsRequest
|
|
9485
9547
|
});
|
|
@@ -9487,17 +9549,17 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
|
9487
9549
|
// This file was automatically generated. DO NOT EDIT.
|
|
9488
9550
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9489
9551
|
|
|
9490
|
-
var index_gen$
|
|
9552
|
+
var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
9491
9553
|
__proto__: null,
|
|
9492
|
-
API: API$
|
|
9554
|
+
API: API$m,
|
|
9493
9555
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
9494
9556
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
9495
|
-
ValidationRules: validationRules_gen$
|
|
9557
|
+
ValidationRules: validationRules_gen$8
|
|
9496
9558
|
});
|
|
9497
9559
|
|
|
9498
|
-
var index$
|
|
9560
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
9499
9561
|
__proto__: null,
|
|
9500
|
-
v1alpha1: index_gen$
|
|
9562
|
+
v1alpha1: index_gen$l
|
|
9501
9563
|
});
|
|
9502
9564
|
|
|
9503
9565
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9735,7 +9797,7 @@ const unmarshalListFunctionsResponse = data => {
|
|
|
9735
9797
|
totalCount: data.total_count
|
|
9736
9798
|
};
|
|
9737
9799
|
};
|
|
9738
|
-
const unmarshalLog = data => {
|
|
9800
|
+
const unmarshalLog$1 = data => {
|
|
9739
9801
|
if (!isJSONObject(data)) {
|
|
9740
9802
|
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
9741
9803
|
}
|
|
@@ -9748,12 +9810,12 @@ const unmarshalLog = data => {
|
|
|
9748
9810
|
timestamp: unmarshalDate(data.timestamp)
|
|
9749
9811
|
};
|
|
9750
9812
|
};
|
|
9751
|
-
const unmarshalListLogsResponse = data => {
|
|
9813
|
+
const unmarshalListLogsResponse$1 = data => {
|
|
9752
9814
|
if (!isJSONObject(data)) {
|
|
9753
9815
|
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
9754
9816
|
}
|
|
9755
9817
|
return {
|
|
9756
|
-
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
9818
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
|
|
9757
9819
|
totalCount: data.total_count
|
|
9758
9820
|
};
|
|
9759
9821
|
};
|
|
@@ -9866,12 +9928,12 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
|
|
|
9866
9928
|
...resolveOneOf([{
|
|
9867
9929
|
param: 'scw_sqs_config',
|
|
9868
9930
|
value: request.scwSqsConfig !== undefined ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
|
|
9869
|
-
}, {
|
|
9870
|
-
param: 'sqs_config',
|
|
9871
|
-
value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
|
|
9872
9931
|
}, {
|
|
9873
9932
|
param: 'scw_nats_config',
|
|
9874
9933
|
value: request.scwNatsConfig !== undefined ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
|
|
9934
|
+
}, {
|
|
9935
|
+
param: 'sqs_config',
|
|
9936
|
+
value: request.sqsConfig !== undefined ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
|
|
9875
9937
|
}])
|
|
9876
9938
|
});
|
|
9877
9939
|
const marshalUpdateCronRequest = (request, defaults) => ({
|
|
@@ -9914,12 +9976,12 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
9914
9976
|
|
|
9915
9977
|
// This file was automatically generated. DO NOT EDIT.
|
|
9916
9978
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9917
|
-
const jsonContentHeaders$
|
|
9979
|
+
const jsonContentHeaders$k = {
|
|
9918
9980
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9919
9981
|
};
|
|
9920
9982
|
|
|
9921
9983
|
/** Serverless Functions API. */
|
|
9922
|
-
let API$
|
|
9984
|
+
let API$l = class API extends API$w {
|
|
9923
9985
|
/** Lists the available regions of the API. */
|
|
9924
9986
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
9925
9987
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -9966,7 +10028,7 @@ let API$k = class API extends API$v {
|
|
|
9966
10028
|
*/
|
|
9967
10029
|
createNamespace = (request = {}) => this.client.fetch({
|
|
9968
10030
|
body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
|
|
9969
|
-
headers: jsonContentHeaders$
|
|
10031
|
+
headers: jsonContentHeaders$k,
|
|
9970
10032
|
method: 'POST',
|
|
9971
10033
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
9972
10034
|
}, unmarshalNamespace$2);
|
|
@@ -9980,7 +10042,7 @@ let API$k = class API extends API$v {
|
|
|
9980
10042
|
*/
|
|
9981
10043
|
updateNamespace = request => this.client.fetch({
|
|
9982
10044
|
body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
|
|
9983
|
-
headers: jsonContentHeaders$
|
|
10045
|
+
headers: jsonContentHeaders$k,
|
|
9984
10046
|
method: 'PATCH',
|
|
9985
10047
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
9986
10048
|
}, unmarshalNamespace$2);
|
|
@@ -10039,7 +10101,7 @@ let API$k = class API extends API$v {
|
|
|
10039
10101
|
*/
|
|
10040
10102
|
createFunction = request => this.client.fetch({
|
|
10041
10103
|
body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
|
|
10042
|
-
headers: jsonContentHeaders$
|
|
10104
|
+
headers: jsonContentHeaders$k,
|
|
10043
10105
|
method: 'POST',
|
|
10044
10106
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
10045
10107
|
}, unmarshalFunction);
|
|
@@ -10053,7 +10115,7 @@ let API$k = class API extends API$v {
|
|
|
10053
10115
|
*/
|
|
10054
10116
|
updateFunction = request => this.client.fetch({
|
|
10055
10117
|
body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
|
|
10056
|
-
headers: jsonContentHeaders$
|
|
10118
|
+
headers: jsonContentHeaders$k,
|
|
10057
10119
|
method: 'PATCH',
|
|
10058
10120
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
10059
10121
|
}, unmarshalFunction);
|
|
@@ -10077,7 +10139,7 @@ let API$k = class API extends API$v {
|
|
|
10077
10139
|
*/
|
|
10078
10140
|
deployFunction = request => this.client.fetch({
|
|
10079
10141
|
body: '{}',
|
|
10080
|
-
headers: jsonContentHeaders$
|
|
10142
|
+
headers: jsonContentHeaders$k,
|
|
10081
10143
|
method: 'POST',
|
|
10082
10144
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
10083
10145
|
}, unmarshalFunction);
|
|
@@ -10160,7 +10222,7 @@ let API$k = class API extends API$v {
|
|
|
10160
10222
|
*/
|
|
10161
10223
|
createCron = request => this.client.fetch({
|
|
10162
10224
|
body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
|
|
10163
|
-
headers: jsonContentHeaders$
|
|
10225
|
+
headers: jsonContentHeaders$k,
|
|
10164
10226
|
method: 'POST',
|
|
10165
10227
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
10166
10228
|
}, unmarshalCron);
|
|
@@ -10173,7 +10235,7 @@ let API$k = class API extends API$v {
|
|
|
10173
10235
|
*/
|
|
10174
10236
|
updateCron = request => this.client.fetch({
|
|
10175
10237
|
body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
|
|
10176
|
-
headers: jsonContentHeaders$
|
|
10238
|
+
headers: jsonContentHeaders$k,
|
|
10177
10239
|
method: 'PATCH',
|
|
10178
10240
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
10179
10241
|
}, unmarshalCron);
|
|
@@ -10192,7 +10254,7 @@ let API$k = class API extends API$v {
|
|
|
10192
10254
|
method: 'GET',
|
|
10193
10255
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
|
|
10194
10256
|
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
10195
|
-
}, unmarshalListLogsResponse);
|
|
10257
|
+
}, unmarshalListLogsResponse$1);
|
|
10196
10258
|
|
|
10197
10259
|
/**
|
|
10198
10260
|
* List application logs. List the application logs of the function with the
|
|
@@ -10247,7 +10309,7 @@ let API$k = class API extends API$v {
|
|
|
10247
10309
|
*/
|
|
10248
10310
|
createDomain = request => this.client.fetch({
|
|
10249
10311
|
body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
|
|
10250
|
-
headers: jsonContentHeaders$
|
|
10312
|
+
headers: jsonContentHeaders$k,
|
|
10251
10313
|
method: 'POST',
|
|
10252
10314
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
10253
10315
|
}, unmarshalDomain$1);
|
|
@@ -10289,7 +10351,7 @@ let API$k = class API extends API$v {
|
|
|
10289
10351
|
*/
|
|
10290
10352
|
createToken = (request = {}) => this.client.fetch({
|
|
10291
10353
|
body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
|
|
10292
|
-
headers: jsonContentHeaders$
|
|
10354
|
+
headers: jsonContentHeaders$k,
|
|
10293
10355
|
method: 'POST',
|
|
10294
10356
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
10295
10357
|
}, unmarshalToken);
|
|
@@ -10337,12 +10399,26 @@ let API$k = class API extends API$v {
|
|
|
10337
10399
|
method: 'DELETE',
|
|
10338
10400
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
|
|
10339
10401
|
}, unmarshalToken);
|
|
10402
|
+
|
|
10403
|
+
/**
|
|
10404
|
+
* Create a trigger. Create a new trigger for a specified function.
|
|
10405
|
+
*
|
|
10406
|
+
* @param request - The request {@link CreateTriggerRequest}
|
|
10407
|
+
* @returns A Promise of Trigger
|
|
10408
|
+
*/
|
|
10340
10409
|
createTrigger = request => this.client.fetch({
|
|
10341
10410
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
10342
|
-
headers: jsonContentHeaders$
|
|
10411
|
+
headers: jsonContentHeaders$k,
|
|
10343
10412
|
method: 'POST',
|
|
10344
10413
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
10345
10414
|
}, unmarshalTrigger);
|
|
10415
|
+
|
|
10416
|
+
/**
|
|
10417
|
+
* Get a trigger. Get a trigger with a specified ID.
|
|
10418
|
+
*
|
|
10419
|
+
* @param request - The request {@link GetTriggerRequest}
|
|
10420
|
+
* @returns A Promise of Trigger
|
|
10421
|
+
*/
|
|
10346
10422
|
getTrigger = request => this.client.fetch({
|
|
10347
10423
|
method: 'GET',
|
|
10348
10424
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
@@ -10371,13 +10447,35 @@ let API$k = class API extends API$v {
|
|
|
10371
10447
|
value: request.projectId
|
|
10372
10448
|
}])))
|
|
10373
10449
|
}, unmarshalListTriggersResponse);
|
|
10450
|
+
|
|
10451
|
+
/**
|
|
10452
|
+
* List all triggers. List all triggers belonging to a specified Organization
|
|
10453
|
+
* or Project.
|
|
10454
|
+
*
|
|
10455
|
+
* @param request - The request {@link ListTriggersRequest}
|
|
10456
|
+
* @returns A Promise of ListTriggersResponse
|
|
10457
|
+
*/
|
|
10374
10458
|
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
10459
|
+
|
|
10460
|
+
/**
|
|
10461
|
+
* Update a trigger. Update a trigger with a specified ID.
|
|
10462
|
+
*
|
|
10463
|
+
* @param request - The request {@link UpdateTriggerRequest}
|
|
10464
|
+
* @returns A Promise of Trigger
|
|
10465
|
+
*/
|
|
10375
10466
|
updateTrigger = request => this.client.fetch({
|
|
10376
10467
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
10377
|
-
headers: jsonContentHeaders$
|
|
10468
|
+
headers: jsonContentHeaders$k,
|
|
10378
10469
|
method: 'PATCH',
|
|
10379
10470
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
10380
10471
|
}, unmarshalTrigger);
|
|
10472
|
+
|
|
10473
|
+
/**
|
|
10474
|
+
* Delete a trigger. Delete a trigger with a specified ID.
|
|
10475
|
+
*
|
|
10476
|
+
* @param request - The request {@link DeleteTriggerRequest}
|
|
10477
|
+
* @returns A Promise of Trigger
|
|
10478
|
+
*/
|
|
10381
10479
|
deleteTrigger = request => this.client.fetch({
|
|
10382
10480
|
method: 'DELETE',
|
|
10383
10481
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
@@ -10427,7 +10525,7 @@ const UpdateTriggerRequest = {
|
|
|
10427
10525
|
}
|
|
10428
10526
|
};
|
|
10429
10527
|
|
|
10430
|
-
var validationRules_gen$
|
|
10528
|
+
var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
10431
10529
|
__proto__: null,
|
|
10432
10530
|
CreateTriggerRequest: CreateTriggerRequest,
|
|
10433
10531
|
CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig,
|
|
@@ -10438,21 +10536,21 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
|
10438
10536
|
// This file was automatically generated. DO NOT EDIT.
|
|
10439
10537
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10440
10538
|
|
|
10441
|
-
var index_gen$
|
|
10539
|
+
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
10442
10540
|
__proto__: null,
|
|
10443
|
-
API: API$
|
|
10541
|
+
API: API$l,
|
|
10444
10542
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
|
|
10445
10543
|
DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
|
|
10446
10544
|
FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
|
|
10447
10545
|
NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$1,
|
|
10448
10546
|
TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES,
|
|
10449
10547
|
TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES,
|
|
10450
|
-
ValidationRules: validationRules_gen$
|
|
10548
|
+
ValidationRules: validationRules_gen$7
|
|
10451
10549
|
});
|
|
10452
10550
|
|
|
10453
|
-
var index$
|
|
10551
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
10454
10552
|
__proto__: null,
|
|
10455
|
-
v1beta1: index_gen$
|
|
10553
|
+
v1beta1: index_gen$k
|
|
10456
10554
|
});
|
|
10457
10555
|
|
|
10458
10556
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -10520,6 +10618,22 @@ const unmarshalGroup = data => {
|
|
|
10520
10618
|
userIds: data.user_ids
|
|
10521
10619
|
};
|
|
10522
10620
|
};
|
|
10621
|
+
const unmarshalLog = data => {
|
|
10622
|
+
if (!isJSONObject(data)) {
|
|
10623
|
+
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
10624
|
+
}
|
|
10625
|
+
return {
|
|
10626
|
+
action: data.action,
|
|
10627
|
+
bearerId: data.bearer_id,
|
|
10628
|
+
createdAt: unmarshalDate(data.created_at),
|
|
10629
|
+
id: data.id,
|
|
10630
|
+
ip: data.ip,
|
|
10631
|
+
organizationId: data.organization_id,
|
|
10632
|
+
resourceId: data.resource_id,
|
|
10633
|
+
resourceType: data.resource_type,
|
|
10634
|
+
userAgent: data.user_agent
|
|
10635
|
+
};
|
|
10636
|
+
};
|
|
10523
10637
|
const unmarshalPolicy = data => {
|
|
10524
10638
|
if (!isJSONObject(data)) {
|
|
10525
10639
|
throw new TypeError(`Unmarshalling the type 'Policy' failed as data isn't a dictionary.`);
|
|
@@ -10622,6 +10736,15 @@ const unmarshalListJWTsResponse = data => {
|
|
|
10622
10736
|
totalCount: data.total_count
|
|
10623
10737
|
};
|
|
10624
10738
|
};
|
|
10739
|
+
const unmarshalListLogsResponse = data => {
|
|
10740
|
+
if (!isJSONObject(data)) {
|
|
10741
|
+
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
10742
|
+
}
|
|
10743
|
+
return {
|
|
10744
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
10745
|
+
totalCount: data.total_count
|
|
10746
|
+
};
|
|
10747
|
+
};
|
|
10625
10748
|
const unmarshalPermissionSet = data => {
|
|
10626
10749
|
if (!isJSONObject(data)) {
|
|
10627
10750
|
throw new TypeError(`Unmarshalling the type 'PermissionSet' failed as data isn't a dictionary.`);
|
|
@@ -10836,12 +10959,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
10836
10959
|
|
|
10837
10960
|
// This file was automatically generated. DO NOT EDIT.
|
|
10838
10961
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10839
|
-
const jsonContentHeaders$
|
|
10962
|
+
const jsonContentHeaders$j = {
|
|
10840
10963
|
'Content-Type': 'application/json; charset=utf-8'
|
|
10841
10964
|
};
|
|
10842
10965
|
|
|
10843
10966
|
/** IAM API. */
|
|
10844
|
-
let API$
|
|
10967
|
+
let API$k = class API extends API$w {
|
|
10845
10968
|
pageOfListSSHKeys = (request = {}) => this.client.fetch({
|
|
10846
10969
|
method: 'GET',
|
|
10847
10970
|
path: `/iam/v1alpha1/ssh-keys`,
|
|
@@ -10868,7 +10991,7 @@ let API$j = class API extends API$v {
|
|
|
10868
10991
|
*/
|
|
10869
10992
|
createSSHKey = request => this.client.fetch({
|
|
10870
10993
|
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
10871
|
-
headers: jsonContentHeaders$
|
|
10994
|
+
headers: jsonContentHeaders$j,
|
|
10872
10995
|
method: 'POST',
|
|
10873
10996
|
path: `/iam/v1alpha1/ssh-keys`
|
|
10874
10997
|
}, unmarshalSSHKey);
|
|
@@ -10895,7 +11018,7 @@ let API$j = class API extends API$v {
|
|
|
10895
11018
|
*/
|
|
10896
11019
|
updateSSHKey = request => this.client.fetch({
|
|
10897
11020
|
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
10898
|
-
headers: jsonContentHeaders$
|
|
11021
|
+
headers: jsonContentHeaders$j,
|
|
10899
11022
|
method: 'PATCH',
|
|
10900
11023
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
10901
11024
|
}, unmarshalSSHKey);
|
|
@@ -10965,7 +11088,7 @@ let API$j = class API extends API$v {
|
|
|
10965
11088
|
*/
|
|
10966
11089
|
createUser = request => this.client.fetch({
|
|
10967
11090
|
body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
|
|
10968
|
-
headers: jsonContentHeaders$
|
|
11091
|
+
headers: jsonContentHeaders$j,
|
|
10969
11092
|
method: 'POST',
|
|
10970
11093
|
path: `/iam/v1alpha1/users`
|
|
10971
11094
|
}, unmarshalUser$1);
|
|
@@ -10997,7 +11120,7 @@ let API$j = class API extends API$v {
|
|
|
10997
11120
|
*/
|
|
10998
11121
|
createApplication = request => this.client.fetch({
|
|
10999
11122
|
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
11000
|
-
headers: jsonContentHeaders$
|
|
11123
|
+
headers: jsonContentHeaders$j,
|
|
11001
11124
|
method: 'POST',
|
|
11002
11125
|
path: `/iam/v1alpha1/applications`
|
|
11003
11126
|
}, unmarshalApplication);
|
|
@@ -11025,7 +11148,7 @@ let API$j = class API extends API$v {
|
|
|
11025
11148
|
*/
|
|
11026
11149
|
updateApplication = request => this.client.fetch({
|
|
11027
11150
|
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
11028
|
-
headers: jsonContentHeaders$
|
|
11151
|
+
headers: jsonContentHeaders$j,
|
|
11029
11152
|
method: 'PATCH',
|
|
11030
11153
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
11031
11154
|
}, unmarshalApplication);
|
|
@@ -11069,7 +11192,7 @@ let API$j = class API extends API$v {
|
|
|
11069
11192
|
*/
|
|
11070
11193
|
createGroup = request => this.client.fetch({
|
|
11071
11194
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
11072
|
-
headers: jsonContentHeaders$
|
|
11195
|
+
headers: jsonContentHeaders$j,
|
|
11073
11196
|
method: 'POST',
|
|
11074
11197
|
path: `/iam/v1alpha1/groups`
|
|
11075
11198
|
}, unmarshalGroup);
|
|
@@ -11096,7 +11219,7 @@ let API$j = class API extends API$v {
|
|
|
11096
11219
|
*/
|
|
11097
11220
|
updateGroup = request => this.client.fetch({
|
|
11098
11221
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
11099
|
-
headers: jsonContentHeaders$
|
|
11222
|
+
headers: jsonContentHeaders$j,
|
|
11100
11223
|
method: 'PATCH',
|
|
11101
11224
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
11102
11225
|
}, unmarshalGroup);
|
|
@@ -11111,7 +11234,7 @@ let API$j = class API extends API$v {
|
|
|
11111
11234
|
*/
|
|
11112
11235
|
setGroupMembers = request => this.client.fetch({
|
|
11113
11236
|
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
11114
|
-
headers: jsonContentHeaders$
|
|
11237
|
+
headers: jsonContentHeaders$j,
|
|
11115
11238
|
method: 'PUT',
|
|
11116
11239
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
|
|
11117
11240
|
}, unmarshalGroup);
|
|
@@ -11126,7 +11249,7 @@ let API$j = class API extends API$v {
|
|
|
11126
11249
|
*/
|
|
11127
11250
|
addGroupMember = request => this.client.fetch({
|
|
11128
11251
|
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
11129
|
-
headers: jsonContentHeaders$
|
|
11252
|
+
headers: jsonContentHeaders$j,
|
|
11130
11253
|
method: 'POST',
|
|
11131
11254
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
11132
11255
|
}, unmarshalGroup);
|
|
@@ -11144,7 +11267,7 @@ let API$j = class API extends API$v {
|
|
|
11144
11267
|
*/
|
|
11145
11268
|
addGroupMembers = request => this.client.fetch({
|
|
11146
11269
|
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
11147
|
-
headers: jsonContentHeaders$
|
|
11270
|
+
headers: jsonContentHeaders$j,
|
|
11148
11271
|
method: 'POST',
|
|
11149
11272
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
11150
11273
|
}, unmarshalGroup);
|
|
@@ -11163,7 +11286,7 @@ let API$j = class API extends API$v {
|
|
|
11163
11286
|
*/
|
|
11164
11287
|
removeGroupMember = request => this.client.fetch({
|
|
11165
11288
|
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
11166
|
-
headers: jsonContentHeaders$
|
|
11289
|
+
headers: jsonContentHeaders$j,
|
|
11167
11290
|
method: 'POST',
|
|
11168
11291
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
|
|
11169
11292
|
}, unmarshalGroup);
|
|
@@ -11209,7 +11332,7 @@ let API$j = class API extends API$v {
|
|
|
11209
11332
|
*/
|
|
11210
11333
|
createPolicy = request => this.client.fetch({
|
|
11211
11334
|
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
11212
|
-
headers: jsonContentHeaders$
|
|
11335
|
+
headers: jsonContentHeaders$j,
|
|
11213
11336
|
method: 'POST',
|
|
11214
11337
|
path: `/iam/v1alpha1/policies`
|
|
11215
11338
|
}, unmarshalPolicy);
|
|
@@ -11238,7 +11361,7 @@ let API$j = class API extends API$v {
|
|
|
11238
11361
|
*/
|
|
11239
11362
|
updatePolicy = request => this.client.fetch({
|
|
11240
11363
|
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
11241
|
-
headers: jsonContentHeaders$
|
|
11364
|
+
headers: jsonContentHeaders$j,
|
|
11242
11365
|
method: 'PATCH',
|
|
11243
11366
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
|
|
11244
11367
|
}, unmarshalPolicy);
|
|
@@ -11265,7 +11388,7 @@ let API$j = class API extends API$v {
|
|
|
11265
11388
|
*/
|
|
11266
11389
|
clonePolicy = request => this.client.fetch({
|
|
11267
11390
|
body: '{}',
|
|
11268
|
-
headers: jsonContentHeaders$
|
|
11391
|
+
headers: jsonContentHeaders$j,
|
|
11269
11392
|
method: 'POST',
|
|
11270
11393
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
|
|
11271
11394
|
}, unmarshalPolicy);
|
|
@@ -11283,7 +11406,7 @@ let API$j = class API extends API$v {
|
|
|
11283
11406
|
*/
|
|
11284
11407
|
setRules = request => this.client.fetch({
|
|
11285
11408
|
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
11286
|
-
headers: jsonContentHeaders$
|
|
11409
|
+
headers: jsonContentHeaders$j,
|
|
11287
11410
|
method: 'PUT',
|
|
11288
11411
|
path: `/iam/v1alpha1/rules`
|
|
11289
11412
|
}, unmarshalSetRulesResponse);
|
|
@@ -11354,7 +11477,7 @@ let API$j = class API extends API$v {
|
|
|
11354
11477
|
*/
|
|
11355
11478
|
createAPIKey = request => this.client.fetch({
|
|
11356
11479
|
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
11357
|
-
headers: jsonContentHeaders$
|
|
11480
|
+
headers: jsonContentHeaders$j,
|
|
11358
11481
|
method: 'POST',
|
|
11359
11482
|
path: `/iam/v1alpha1/api-keys`
|
|
11360
11483
|
}, unmarshalAPIKey);
|
|
@@ -11384,7 +11507,7 @@ let API$j = class API extends API$v {
|
|
|
11384
11507
|
*/
|
|
11385
11508
|
updateAPIKey = request => this.client.fetch({
|
|
11386
11509
|
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
11387
|
-
headers: jsonContentHeaders$
|
|
11510
|
+
headers: jsonContentHeaders$j,
|
|
11388
11511
|
method: 'PATCH',
|
|
11389
11512
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
11390
11513
|
}, unmarshalAPIKey);
|
|
@@ -11465,6 +11588,16 @@ let API$j = class API extends API$v {
|
|
|
11465
11588
|
method: 'DELETE',
|
|
11466
11589
|
path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
|
|
11467
11590
|
});
|
|
11591
|
+
pageOfListLogs = (request = {}) => this.client.fetch({
|
|
11592
|
+
method: 'GET',
|
|
11593
|
+
path: `/iam/v1alpha1/logs`,
|
|
11594
|
+
urlParams: urlParams(['action', request.action], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['resource_type', request.resourceType], ['search', request.search])
|
|
11595
|
+
}, unmarshalListLogsResponse);
|
|
11596
|
+
listLogs = (request = {}) => enrichForPagination('logs', this.pageOfListLogs, request);
|
|
11597
|
+
getLog = request => this.client.fetch({
|
|
11598
|
+
method: 'GET',
|
|
11599
|
+
path: `/iam/v1alpha1/logs/${validatePathParam('logId', request.logId)}`
|
|
11600
|
+
}, unmarshalLog);
|
|
11468
11601
|
};
|
|
11469
11602
|
|
|
11470
11603
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -11571,6 +11704,15 @@ const ListJWTsRequest = {
|
|
|
11571
11704
|
lessThanOrEqual: 100
|
|
11572
11705
|
}
|
|
11573
11706
|
};
|
|
11707
|
+
const ListLogsRequest = {
|
|
11708
|
+
page: {
|
|
11709
|
+
greaterThan: 0
|
|
11710
|
+
},
|
|
11711
|
+
pageSize: {
|
|
11712
|
+
greaterThanOrEqual: 1,
|
|
11713
|
+
lessThanOrEqual: 100
|
|
11714
|
+
}
|
|
11715
|
+
};
|
|
11574
11716
|
const ListPermissionSetsRequest = {
|
|
11575
11717
|
page: {
|
|
11576
11718
|
greaterThan: 0
|
|
@@ -11673,7 +11815,7 @@ const UpdateSSHKeyRequest = {
|
|
|
11673
11815
|
}
|
|
11674
11816
|
};
|
|
11675
11817
|
|
|
11676
|
-
var validationRules_gen$
|
|
11818
|
+
var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
11677
11819
|
__proto__: null,
|
|
11678
11820
|
CreateAPIKeyRequest: CreateAPIKeyRequest,
|
|
11679
11821
|
CreateApplicationRequest: CreateApplicationRequest,
|
|
@@ -11685,6 +11827,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
11685
11827
|
ListApplicationsRequest: ListApplicationsRequest,
|
|
11686
11828
|
ListGroupsRequest: ListGroupsRequest,
|
|
11687
11829
|
ListJWTsRequest: ListJWTsRequest,
|
|
11830
|
+
ListLogsRequest: ListLogsRequest,
|
|
11688
11831
|
ListPermissionSetsRequest: ListPermissionSetsRequest,
|
|
11689
11832
|
ListPoliciesRequest: ListPoliciesRequest,
|
|
11690
11833
|
ListQuotaRequest: ListQuotaRequest,
|
|
@@ -11701,15 +11844,15 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
11701
11844
|
// This file was automatically generated. DO NOT EDIT.
|
|
11702
11845
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
11703
11846
|
|
|
11704
|
-
var index_gen$
|
|
11847
|
+
var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
11705
11848
|
__proto__: null,
|
|
11706
|
-
API: API$
|
|
11707
|
-
ValidationRules: validationRules_gen$
|
|
11849
|
+
API: API$k,
|
|
11850
|
+
ValidationRules: validationRules_gen$6
|
|
11708
11851
|
});
|
|
11709
11852
|
|
|
11710
|
-
var index$
|
|
11853
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
11711
11854
|
__proto__: null,
|
|
11712
|
-
v1alpha1: index_gen$
|
|
11855
|
+
v1alpha1: index_gen$j
|
|
11713
11856
|
});
|
|
11714
11857
|
|
|
11715
11858
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -11952,6 +12095,7 @@ const unmarshalServerIp = data => {
|
|
|
11952
12095
|
id: data.id,
|
|
11953
12096
|
netmask: data.netmask,
|
|
11954
12097
|
provisioningMode: data.provisioning_mode,
|
|
12098
|
+
state: data.state,
|
|
11955
12099
|
tags: data.tags
|
|
11956
12100
|
};
|
|
11957
12101
|
};
|
|
@@ -12622,13 +12766,13 @@ const marshalVolumeTemplate = (request, defaults) => ({
|
|
|
12622
12766
|
size: request.size,
|
|
12623
12767
|
volume_type: request.volumeType,
|
|
12624
12768
|
...resolveOneOf([{
|
|
12625
|
-
default: defaults.defaultOrganizationId,
|
|
12626
|
-
param: 'organization',
|
|
12627
|
-
value: request.organization
|
|
12628
|
-
}, {
|
|
12629
12769
|
default: defaults.defaultProjectId,
|
|
12630
12770
|
param: 'project',
|
|
12631
12771
|
value: request.project
|
|
12772
|
+
}, {
|
|
12773
|
+
default: defaults.defaultOrganizationId,
|
|
12774
|
+
param: 'organization',
|
|
12775
|
+
value: request.organization
|
|
12632
12776
|
}])
|
|
12633
12777
|
});
|
|
12634
12778
|
const marshalCreateImageRequest = (request, defaults) => ({
|
|
@@ -12643,13 +12787,13 @@ const marshalCreateImageRequest = (request, defaults) => ({
|
|
|
12643
12787
|
root_volume: request.rootVolume,
|
|
12644
12788
|
tags: request.tags,
|
|
12645
12789
|
...resolveOneOf([{
|
|
12646
|
-
default: defaults.defaultOrganizationId,
|
|
12647
|
-
param: 'organization',
|
|
12648
|
-
value: request.organization
|
|
12649
|
-
}, {
|
|
12650
12790
|
default: defaults.defaultProjectId,
|
|
12651
12791
|
param: 'project',
|
|
12652
12792
|
value: request.project
|
|
12793
|
+
}, {
|
|
12794
|
+
default: defaults.defaultOrganizationId,
|
|
12795
|
+
param: 'organization',
|
|
12796
|
+
value: request.organization
|
|
12653
12797
|
}])
|
|
12654
12798
|
});
|
|
12655
12799
|
const marshalCreateIpRequest$1 = (request, defaults) => ({
|
|
@@ -12657,13 +12801,13 @@ const marshalCreateIpRequest$1 = (request, defaults) => ({
|
|
|
12657
12801
|
tags: request.tags,
|
|
12658
12802
|
type: request.type,
|
|
12659
12803
|
...resolveOneOf([{
|
|
12660
|
-
default: defaults.defaultOrganizationId,
|
|
12661
|
-
param: 'organization',
|
|
12662
|
-
value: request.organization
|
|
12663
|
-
}, {
|
|
12664
12804
|
default: defaults.defaultProjectId,
|
|
12665
12805
|
param: 'project',
|
|
12666
12806
|
value: request.project
|
|
12807
|
+
}, {
|
|
12808
|
+
default: defaults.defaultOrganizationId,
|
|
12809
|
+
param: 'organization',
|
|
12810
|
+
value: request.organization
|
|
12667
12811
|
}])
|
|
12668
12812
|
});
|
|
12669
12813
|
const marshalCreatePlacementGroupRequest = (request, defaults) => ({
|
|
@@ -12672,13 +12816,13 @@ const marshalCreatePlacementGroupRequest = (request, defaults) => ({
|
|
|
12672
12816
|
policy_type: request.policyType,
|
|
12673
12817
|
tags: request.tags,
|
|
12674
12818
|
...resolveOneOf([{
|
|
12675
|
-
default: defaults.defaultOrganizationId,
|
|
12676
|
-
param: 'organization',
|
|
12677
|
-
value: request.organization
|
|
12678
|
-
}, {
|
|
12679
12819
|
default: defaults.defaultProjectId,
|
|
12680
12820
|
param: 'project',
|
|
12681
12821
|
value: request.project
|
|
12822
|
+
}, {
|
|
12823
|
+
default: defaults.defaultOrganizationId,
|
|
12824
|
+
param: 'organization',
|
|
12825
|
+
value: request.organization
|
|
12682
12826
|
}])
|
|
12683
12827
|
});
|
|
12684
12828
|
const marshalCreatePrivateNICRequest = (request, defaults) => ({
|
|
@@ -12695,13 +12839,13 @@ const marshalCreateSecurityGroupRequest = (request, defaults) => ({
|
|
|
12695
12839
|
stateful: request.stateful,
|
|
12696
12840
|
tags: request.tags,
|
|
12697
12841
|
...resolveOneOf([{
|
|
12698
|
-
default: defaults.defaultOrganizationId,
|
|
12699
|
-
param: 'organization',
|
|
12700
|
-
value: request.organization
|
|
12701
|
-
}, {
|
|
12702
12842
|
default: defaults.defaultProjectId,
|
|
12703
12843
|
param: 'project',
|
|
12704
12844
|
value: request.project
|
|
12845
|
+
}, {
|
|
12846
|
+
default: defaults.defaultOrganizationId,
|
|
12847
|
+
param: 'organization',
|
|
12848
|
+
value: request.organization
|
|
12705
12849
|
}]),
|
|
12706
12850
|
...resolveOneOf([{
|
|
12707
12851
|
param: 'organization_default',
|
|
@@ -12750,13 +12894,13 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
12750
12894
|
[key]: marshalVolumeServerTemplate(value, defaults)
|
|
12751
12895
|
}), {}) : undefined,
|
|
12752
12896
|
...resolveOneOf([{
|
|
12753
|
-
default: defaults.defaultOrganizationId,
|
|
12754
|
-
param: 'organization',
|
|
12755
|
-
value: request.organization
|
|
12756
|
-
}, {
|
|
12757
12897
|
default: defaults.defaultProjectId,
|
|
12758
12898
|
param: 'project',
|
|
12759
12899
|
value: request.project
|
|
12900
|
+
}, {
|
|
12901
|
+
default: defaults.defaultOrganizationId,
|
|
12902
|
+
param: 'organization',
|
|
12903
|
+
value: request.organization
|
|
12760
12904
|
}])
|
|
12761
12905
|
});
|
|
12762
12906
|
const marshalCreateSnapshotRequest$1 = (request, defaults) => ({
|
|
@@ -12768,13 +12912,13 @@ const marshalCreateSnapshotRequest$1 = (request, defaults) => ({
|
|
|
12768
12912
|
volume_id: request.volumeId,
|
|
12769
12913
|
volume_type: request.volumeType,
|
|
12770
12914
|
...resolveOneOf([{
|
|
12771
|
-
default: defaults.defaultOrganizationId,
|
|
12772
|
-
param: 'organization',
|
|
12773
|
-
value: request.organization
|
|
12774
|
-
}, {
|
|
12775
12915
|
default: defaults.defaultProjectId,
|
|
12776
12916
|
param: 'project',
|
|
12777
12917
|
value: request.project
|
|
12918
|
+
}, {
|
|
12919
|
+
default: defaults.defaultOrganizationId,
|
|
12920
|
+
param: 'organization',
|
|
12921
|
+
value: request.organization
|
|
12778
12922
|
}])
|
|
12779
12923
|
});
|
|
12780
12924
|
const marshalCreateVolumeRequest$1 = (request, defaults) => ({
|
|
@@ -12782,13 +12926,13 @@ const marshalCreateVolumeRequest$1 = (request, defaults) => ({
|
|
|
12782
12926
|
tags: request.tags,
|
|
12783
12927
|
volume_type: request.volumeType,
|
|
12784
12928
|
...resolveOneOf([{
|
|
12785
|
-
default: defaults.defaultOrganizationId,
|
|
12786
|
-
param: 'organization',
|
|
12787
|
-
value: request.organization
|
|
12788
|
-
}, {
|
|
12789
12929
|
default: defaults.defaultProjectId,
|
|
12790
12930
|
param: 'project',
|
|
12791
12931
|
value: request.project
|
|
12932
|
+
}, {
|
|
12933
|
+
default: defaults.defaultOrganizationId,
|
|
12934
|
+
param: 'organization',
|
|
12935
|
+
value: request.organization
|
|
12792
12936
|
}]),
|
|
12793
12937
|
...resolveOneOf([{
|
|
12794
12938
|
param: 'size',
|
|
@@ -12986,6 +13130,7 @@ const marshalServerIp = (request, defaults) => ({
|
|
|
12986
13130
|
id: request.id,
|
|
12987
13131
|
netmask: request.netmask,
|
|
12988
13132
|
provisioning_mode: request.provisioningMode,
|
|
13133
|
+
state: request.state,
|
|
12989
13134
|
tags: request.tags
|
|
12990
13135
|
});
|
|
12991
13136
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
@@ -13103,12 +13248,12 @@ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
|
|
|
13103
13248
|
|
|
13104
13249
|
// This file was automatically generated. DO NOT EDIT.
|
|
13105
13250
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
13106
|
-
const jsonContentHeaders$
|
|
13251
|
+
const jsonContentHeaders$i = {
|
|
13107
13252
|
'Content-Type': 'application/json; charset=utf-8'
|
|
13108
13253
|
};
|
|
13109
13254
|
|
|
13110
13255
|
/** Instance API. */
|
|
13111
|
-
let API$
|
|
13256
|
+
let API$j = class API extends API$w {
|
|
13112
13257
|
/** Lists the available zones of the API. */
|
|
13113
13258
|
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'];
|
|
13114
13259
|
|
|
@@ -13164,7 +13309,7 @@ let API$i = class API extends API$v {
|
|
|
13164
13309
|
listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
|
|
13165
13310
|
_createServer = request => this.client.fetch({
|
|
13166
13311
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
13167
|
-
headers: jsonContentHeaders$
|
|
13312
|
+
headers: jsonContentHeaders$i,
|
|
13168
13313
|
method: 'POST',
|
|
13169
13314
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
13170
13315
|
}, unmarshalCreateServerResponse);
|
|
@@ -13191,13 +13336,13 @@ let API$i = class API extends API$v {
|
|
|
13191
13336
|
}, unmarshalGetServerResponse);
|
|
13192
13337
|
_setServer = request => this.client.fetch({
|
|
13193
13338
|
body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
|
|
13194
|
-
headers: jsonContentHeaders$
|
|
13339
|
+
headers: jsonContentHeaders$i,
|
|
13195
13340
|
method: 'PUT',
|
|
13196
13341
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
|
|
13197
13342
|
}, unmarshalSetServerResponse);
|
|
13198
13343
|
_updateServer = request => this.client.fetch({
|
|
13199
13344
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
13200
|
-
headers: jsonContentHeaders$
|
|
13345
|
+
headers: jsonContentHeaders$i,
|
|
13201
13346
|
method: 'PATCH',
|
|
13202
13347
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
13203
13348
|
}, unmarshalUpdateServerResponse);
|
|
@@ -13235,7 +13380,7 @@ let API$i = class API extends API$v {
|
|
|
13235
13380
|
*/
|
|
13236
13381
|
serverAction = request => this.client.fetch({
|
|
13237
13382
|
body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
|
|
13238
|
-
headers: jsonContentHeaders$
|
|
13383
|
+
headers: jsonContentHeaders$i,
|
|
13239
13384
|
method: 'POST',
|
|
13240
13385
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
|
|
13241
13386
|
}, unmarshalServerActionResponse);
|
|
@@ -13294,13 +13439,13 @@ let API$i = class API extends API$v {
|
|
|
13294
13439
|
*/
|
|
13295
13440
|
createImage = request => this.client.fetch({
|
|
13296
13441
|
body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
|
|
13297
|
-
headers: jsonContentHeaders$
|
|
13442
|
+
headers: jsonContentHeaders$i,
|
|
13298
13443
|
method: 'POST',
|
|
13299
13444
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
|
|
13300
13445
|
}, unmarshalCreateImageResponse);
|
|
13301
13446
|
_setImage = request => this.client.fetch({
|
|
13302
13447
|
body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
|
|
13303
|
-
headers: jsonContentHeaders$
|
|
13448
|
+
headers: jsonContentHeaders$i,
|
|
13304
13449
|
method: 'PUT',
|
|
13305
13450
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
|
|
13306
13451
|
}, unmarshalSetImageResponse);
|
|
@@ -13339,7 +13484,7 @@ let API$i = class API extends API$v {
|
|
|
13339
13484
|
*/
|
|
13340
13485
|
createSnapshot = (request = {}) => this.client.fetch({
|
|
13341
13486
|
body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
|
|
13342
|
-
headers: jsonContentHeaders$
|
|
13487
|
+
headers: jsonContentHeaders$i,
|
|
13343
13488
|
method: 'POST',
|
|
13344
13489
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
13345
13490
|
}, unmarshalCreateSnapshotResponse);
|
|
@@ -13356,7 +13501,7 @@ let API$i = class API extends API$v {
|
|
|
13356
13501
|
}, unmarshalGetSnapshotResponse);
|
|
13357
13502
|
_setSnapshot = request => this.client.fetch({
|
|
13358
13503
|
body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
|
|
13359
|
-
headers: jsonContentHeaders$
|
|
13504
|
+
headers: jsonContentHeaders$i,
|
|
13360
13505
|
method: 'PUT',
|
|
13361
13506
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
13362
13507
|
}, unmarshalSetSnapshotResponse);
|
|
@@ -13380,7 +13525,7 @@ let API$i = class API extends API$v {
|
|
|
13380
13525
|
*/
|
|
13381
13526
|
exportSnapshot = request => this.client.fetch({
|
|
13382
13527
|
body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
|
|
13383
|
-
headers: jsonContentHeaders$
|
|
13528
|
+
headers: jsonContentHeaders$i,
|
|
13384
13529
|
method: 'POST',
|
|
13385
13530
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
|
|
13386
13531
|
}, unmarshalExportSnapshotResponse);
|
|
@@ -13408,7 +13553,7 @@ let API$i = class API extends API$v {
|
|
|
13408
13553
|
*/
|
|
13409
13554
|
createVolume = (request = {}) => this.client.fetch({
|
|
13410
13555
|
body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
|
|
13411
|
-
headers: jsonContentHeaders$
|
|
13556
|
+
headers: jsonContentHeaders$i,
|
|
13412
13557
|
method: 'POST',
|
|
13413
13558
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
13414
13559
|
}, unmarshalCreateVolumeResponse);
|
|
@@ -13434,7 +13579,7 @@ let API$i = class API extends API$v {
|
|
|
13434
13579
|
*/
|
|
13435
13580
|
updateVolume = request => this.client.fetch({
|
|
13436
13581
|
body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
|
|
13437
|
-
headers: jsonContentHeaders$
|
|
13582
|
+
headers: jsonContentHeaders$i,
|
|
13438
13583
|
method: 'PATCH',
|
|
13439
13584
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
13440
13585
|
}, unmarshalUpdateVolumeResponse);
|
|
@@ -13471,7 +13616,7 @@ let API$i = class API extends API$v {
|
|
|
13471
13616
|
*/
|
|
13472
13617
|
createSecurityGroup = request => this.client.fetch({
|
|
13473
13618
|
body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
|
|
13474
|
-
headers: jsonContentHeaders$
|
|
13619
|
+
headers: jsonContentHeaders$i,
|
|
13475
13620
|
method: 'POST',
|
|
13476
13621
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
13477
13622
|
}, unmarshalCreateSecurityGroupResponse);
|
|
@@ -13499,7 +13644,7 @@ let API$i = class API extends API$v {
|
|
|
13499
13644
|
});
|
|
13500
13645
|
_setSecurityGroup = request => this.client.fetch({
|
|
13501
13646
|
body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
|
|
13502
|
-
headers: jsonContentHeaders$
|
|
13647
|
+
headers: jsonContentHeaders$i,
|
|
13503
13648
|
method: 'PUT',
|
|
13504
13649
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
|
|
13505
13650
|
}, unmarshalSetSecurityGroupResponse);
|
|
@@ -13537,7 +13682,7 @@ let API$i = class API extends API$v {
|
|
|
13537
13682
|
*/
|
|
13538
13683
|
createSecurityGroupRule = request => this.client.fetch({
|
|
13539
13684
|
body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13540
|
-
headers: jsonContentHeaders$
|
|
13685
|
+
headers: jsonContentHeaders$i,
|
|
13541
13686
|
method: 'POST',
|
|
13542
13687
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13543
13688
|
}, unmarshalCreateSecurityGroupRuleResponse);
|
|
@@ -13553,7 +13698,7 @@ let API$i = class API extends API$v {
|
|
|
13553
13698
|
*/
|
|
13554
13699
|
setSecurityGroupRules = request => this.client.fetch({
|
|
13555
13700
|
body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
|
|
13556
|
-
headers: jsonContentHeaders$
|
|
13701
|
+
headers: jsonContentHeaders$i,
|
|
13557
13702
|
method: 'PUT',
|
|
13558
13703
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13559
13704
|
}, unmarshalSetSecurityGroupRulesResponse);
|
|
@@ -13580,7 +13725,7 @@ let API$i = class API extends API$v {
|
|
|
13580
13725
|
}, unmarshalGetSecurityGroupRuleResponse);
|
|
13581
13726
|
_setSecurityGroupRule = request => this.client.fetch({
|
|
13582
13727
|
body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13583
|
-
headers: jsonContentHeaders$
|
|
13728
|
+
headers: jsonContentHeaders$i,
|
|
13584
13729
|
method: 'PUT',
|
|
13585
13730
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
|
|
13586
13731
|
}, unmarshalSetSecurityGroupRuleResponse);
|
|
@@ -13608,7 +13753,7 @@ let API$i = class API extends API$v {
|
|
|
13608
13753
|
*/
|
|
13609
13754
|
createPlacementGroup = (request = {}) => this.client.fetch({
|
|
13610
13755
|
body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
|
|
13611
|
-
headers: jsonContentHeaders$
|
|
13756
|
+
headers: jsonContentHeaders$i,
|
|
13612
13757
|
method: 'POST',
|
|
13613
13758
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
13614
13759
|
}, unmarshalCreatePlacementGroupResponse);
|
|
@@ -13632,7 +13777,7 @@ let API$i = class API extends API$v {
|
|
|
13632
13777
|
*/
|
|
13633
13778
|
setPlacementGroup = request => this.client.fetch({
|
|
13634
13779
|
body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
|
|
13635
|
-
headers: jsonContentHeaders$
|
|
13780
|
+
headers: jsonContentHeaders$i,
|
|
13636
13781
|
method: 'PUT',
|
|
13637
13782
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13638
13783
|
}, unmarshalSetPlacementGroupResponse);
|
|
@@ -13646,7 +13791,7 @@ let API$i = class API extends API$v {
|
|
|
13646
13791
|
*/
|
|
13647
13792
|
updatePlacementGroup = request => this.client.fetch({
|
|
13648
13793
|
body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
|
|
13649
|
-
headers: jsonContentHeaders$
|
|
13794
|
+
headers: jsonContentHeaders$i,
|
|
13650
13795
|
method: 'PATCH',
|
|
13651
13796
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13652
13797
|
}, unmarshalUpdatePlacementGroupResponse);
|
|
@@ -13682,7 +13827,7 @@ let API$i = class API extends API$v {
|
|
|
13682
13827
|
*/
|
|
13683
13828
|
setPlacementGroupServers = request => this.client.fetch({
|
|
13684
13829
|
body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
|
|
13685
|
-
headers: jsonContentHeaders$
|
|
13830
|
+
headers: jsonContentHeaders$i,
|
|
13686
13831
|
method: 'PUT',
|
|
13687
13832
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13688
13833
|
}, unmarshalSetPlacementGroupServersResponse);
|
|
@@ -13696,7 +13841,7 @@ let API$i = class API extends API$v {
|
|
|
13696
13841
|
*/
|
|
13697
13842
|
updatePlacementGroupServers = request => this.client.fetch({
|
|
13698
13843
|
body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
|
|
13699
|
-
headers: jsonContentHeaders$
|
|
13844
|
+
headers: jsonContentHeaders$i,
|
|
13700
13845
|
method: 'PATCH',
|
|
13701
13846
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13702
13847
|
}, unmarshalUpdatePlacementGroupServersResponse);
|
|
@@ -13723,7 +13868,7 @@ let API$i = class API extends API$v {
|
|
|
13723
13868
|
*/
|
|
13724
13869
|
createIp = (request = {}) => this.client.fetch({
|
|
13725
13870
|
body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
|
|
13726
|
-
headers: jsonContentHeaders$
|
|
13871
|
+
headers: jsonContentHeaders$i,
|
|
13727
13872
|
method: 'POST',
|
|
13728
13873
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
13729
13874
|
}, unmarshalCreateIpResponse);
|
|
@@ -13748,7 +13893,7 @@ let API$i = class API extends API$v {
|
|
|
13748
13893
|
*/
|
|
13749
13894
|
updateIp = request => this.client.fetch({
|
|
13750
13895
|
body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
|
|
13751
|
-
headers: jsonContentHeaders$
|
|
13896
|
+
headers: jsonContentHeaders$i,
|
|
13752
13897
|
method: 'PATCH',
|
|
13753
13898
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
|
|
13754
13899
|
}, unmarshalUpdateIpResponse);
|
|
@@ -13784,7 +13929,7 @@ let API$i = class API extends API$v {
|
|
|
13784
13929
|
*/
|
|
13785
13930
|
createPrivateNIC = request => this.client.fetch({
|
|
13786
13931
|
body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
|
|
13787
|
-
headers: jsonContentHeaders$
|
|
13932
|
+
headers: jsonContentHeaders$i,
|
|
13788
13933
|
method: 'POST',
|
|
13789
13934
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
|
|
13790
13935
|
}, unmarshalCreatePrivateNICResponse);
|
|
@@ -13809,7 +13954,7 @@ let API$i = class API extends API$v {
|
|
|
13809
13954
|
*/
|
|
13810
13955
|
updatePrivateNIC = request => this.client.fetch({
|
|
13811
13956
|
body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
|
|
13812
|
-
headers: jsonContentHeaders$
|
|
13957
|
+
headers: jsonContentHeaders$i,
|
|
13813
13958
|
method: 'PATCH',
|
|
13814
13959
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
|
|
13815
13960
|
}, unmarshalPrivateNIC);
|
|
@@ -13869,7 +14014,7 @@ let API$i = class API extends API$v {
|
|
|
13869
14014
|
*/
|
|
13870
14015
|
planBlockMigration = (request = {}) => this.client.fetch({
|
|
13871
14016
|
body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
|
|
13872
|
-
headers: jsonContentHeaders$
|
|
14017
|
+
headers: jsonContentHeaders$i,
|
|
13873
14018
|
method: 'POST',
|
|
13874
14019
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
|
|
13875
14020
|
}, unmarshalMigrationPlan);
|
|
@@ -13884,7 +14029,7 @@ let API$i = class API extends API$v {
|
|
|
13884
14029
|
*/
|
|
13885
14030
|
applyBlockMigration = request => this.client.fetch({
|
|
13886
14031
|
body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
|
|
13887
|
-
headers: jsonContentHeaders$
|
|
14032
|
+
headers: jsonContentHeaders$i,
|
|
13888
14033
|
method: 'POST',
|
|
13889
14034
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
|
|
13890
14035
|
});
|
|
@@ -13905,6 +14050,9 @@ const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
|
|
|
13905
14050
|
/** Lists transient statutes of the enum {@link SecurityGroupState}. */
|
|
13906
14051
|
const SECURITY_GROUP_TRANSIENT_STATUSES = ['syncing'];
|
|
13907
14052
|
|
|
14053
|
+
/** Lists transient statutes of the enum {@link ServerIpState}. */
|
|
14054
|
+
const SERVER_IP_TRANSIENT_STATUSES = ['pending'];
|
|
14055
|
+
|
|
13908
14056
|
/** Lists transient statutes of the enum {@link ServerState}. */
|
|
13909
14057
|
const SERVER_TRANSIENT_STATUSES = ['starting', 'stopping'];
|
|
13910
14058
|
|
|
@@ -13983,7 +14131,7 @@ const validateNotUndefined = obj => {
|
|
|
13983
14131
|
if (obj === undefined) throw new TypeError(`object was found undefined`);
|
|
13984
14132
|
return obj;
|
|
13985
14133
|
};
|
|
13986
|
-
class InstanceV1UtilsAPI extends API$
|
|
14134
|
+
class InstanceV1UtilsAPI extends API$j {
|
|
13987
14135
|
/**
|
|
13988
14136
|
* Waits for {@link Image} to be in a final state.
|
|
13989
14137
|
*
|
|
@@ -14340,13 +14488,14 @@ class InstanceV1UtilsAPI extends API$i {
|
|
|
14340
14488
|
});
|
|
14341
14489
|
}
|
|
14342
14490
|
|
|
14343
|
-
var index$
|
|
14491
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
14344
14492
|
__proto__: null,
|
|
14345
14493
|
API: InstanceV1UtilsAPI,
|
|
14346
14494
|
IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
|
|
14347
14495
|
IP_TRANSIENT_STATUSES: IP_TRANSIENT_STATUSES,
|
|
14348
14496
|
PRIVATE_NIC_TRANSIENT_STATUSES: PRIVATE_NIC_TRANSIENT_STATUSES,
|
|
14349
14497
|
SECURITY_GROUP_TRANSIENT_STATUSES: SECURITY_GROUP_TRANSIENT_STATUSES,
|
|
14498
|
+
SERVER_IP_TRANSIENT_STATUSES: SERVER_IP_TRANSIENT_STATUSES,
|
|
14350
14499
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES,
|
|
14351
14500
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$1,
|
|
14352
14501
|
TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES,
|
|
@@ -14354,9 +14503,9 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
14354
14503
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
|
|
14355
14504
|
});
|
|
14356
14505
|
|
|
14357
|
-
var index$
|
|
14506
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
14358
14507
|
__proto__: null,
|
|
14359
|
-
v1: index$
|
|
14508
|
+
v1: index$k
|
|
14360
14509
|
});
|
|
14361
14510
|
|
|
14362
14511
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -14800,7 +14949,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
|
|
|
14800
14949
|
|
|
14801
14950
|
// This file was automatically generated. DO NOT EDIT.
|
|
14802
14951
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
14803
|
-
const jsonContentHeaders$
|
|
14952
|
+
const jsonContentHeaders$h = {
|
|
14804
14953
|
'Content-Type': 'application/json; charset=utf-8'
|
|
14805
14954
|
};
|
|
14806
14955
|
|
|
@@ -14809,7 +14958,7 @@ const jsonContentHeaders$g = {
|
|
|
14809
14958
|
*
|
|
14810
14959
|
* This API allows you to manage IoT hubs and devices.
|
|
14811
14960
|
*/
|
|
14812
|
-
let API$
|
|
14961
|
+
let API$i = class API extends API$w {
|
|
14813
14962
|
/** Lists the available regions of the API. */
|
|
14814
14963
|
static LOCALITIES = ['fr-par'];
|
|
14815
14964
|
pageOfListHubs = (request = {}) => this.client.fetch({
|
|
@@ -14837,7 +14986,7 @@ let API$h = class API extends API$v {
|
|
|
14837
14986
|
*/
|
|
14838
14987
|
createHub = request => this.client.fetch({
|
|
14839
14988
|
body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
|
|
14840
|
-
headers: jsonContentHeaders$
|
|
14989
|
+
headers: jsonContentHeaders$h,
|
|
14841
14990
|
method: 'POST',
|
|
14842
14991
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
|
|
14843
14992
|
}, unmarshalHub);
|
|
@@ -14873,7 +15022,7 @@ let API$h = class API extends API$v {
|
|
|
14873
15022
|
*/
|
|
14874
15023
|
updateHub = request => this.client.fetch({
|
|
14875
15024
|
body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
|
|
14876
|
-
headers: jsonContentHeaders$
|
|
15025
|
+
headers: jsonContentHeaders$h,
|
|
14877
15026
|
method: 'PATCH',
|
|
14878
15027
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
|
|
14879
15028
|
}, unmarshalHub);
|
|
@@ -14886,7 +15035,7 @@ let API$h = class API extends API$v {
|
|
|
14886
15035
|
*/
|
|
14887
15036
|
enableHub = request => this.client.fetch({
|
|
14888
15037
|
body: '{}',
|
|
14889
|
-
headers: jsonContentHeaders$
|
|
15038
|
+
headers: jsonContentHeaders$h,
|
|
14890
15039
|
method: 'POST',
|
|
14891
15040
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
|
|
14892
15041
|
}, unmarshalHub);
|
|
@@ -14899,7 +15048,7 @@ let API$h = class API extends API$v {
|
|
|
14899
15048
|
*/
|
|
14900
15049
|
disableHub = request => this.client.fetch({
|
|
14901
15050
|
body: '{}',
|
|
14902
|
-
headers: jsonContentHeaders$
|
|
15051
|
+
headers: jsonContentHeaders$h,
|
|
14903
15052
|
method: 'POST',
|
|
14904
15053
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
|
|
14905
15054
|
}, unmarshalHub);
|
|
@@ -14939,7 +15088,7 @@ let API$h = class API extends API$v {
|
|
|
14939
15088
|
*/
|
|
14940
15089
|
setHubCA = request => this.client.fetch({
|
|
14941
15090
|
body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
|
|
14942
|
-
headers: jsonContentHeaders$
|
|
15091
|
+
headers: jsonContentHeaders$h,
|
|
14943
15092
|
method: 'POST',
|
|
14944
15093
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
|
|
14945
15094
|
}, unmarshalHub);
|
|
@@ -14979,7 +15128,7 @@ let API$h = class API extends API$v {
|
|
|
14979
15128
|
*/
|
|
14980
15129
|
createDevice = request => this.client.fetch({
|
|
14981
15130
|
body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
|
|
14982
|
-
headers: jsonContentHeaders$
|
|
15131
|
+
headers: jsonContentHeaders$h,
|
|
14983
15132
|
method: 'POST',
|
|
14984
15133
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
|
|
14985
15134
|
}, unmarshalCreateDeviceResponse);
|
|
@@ -15006,7 +15155,7 @@ let API$h = class API extends API$v {
|
|
|
15006
15155
|
*/
|
|
15007
15156
|
updateDevice = request => this.client.fetch({
|
|
15008
15157
|
body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
|
|
15009
|
-
headers: jsonContentHeaders$
|
|
15158
|
+
headers: jsonContentHeaders$h,
|
|
15010
15159
|
method: 'PATCH',
|
|
15011
15160
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
|
|
15012
15161
|
}, unmarshalDevice);
|
|
@@ -15019,7 +15168,7 @@ let API$h = class API extends API$v {
|
|
|
15019
15168
|
*/
|
|
15020
15169
|
enableDevice = request => this.client.fetch({
|
|
15021
15170
|
body: '{}',
|
|
15022
|
-
headers: jsonContentHeaders$
|
|
15171
|
+
headers: jsonContentHeaders$h,
|
|
15023
15172
|
method: 'POST',
|
|
15024
15173
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
|
|
15025
15174
|
}, unmarshalDevice);
|
|
@@ -15032,7 +15181,7 @@ let API$h = class API extends API$v {
|
|
|
15032
15181
|
*/
|
|
15033
15182
|
disableDevice = request => this.client.fetch({
|
|
15034
15183
|
body: '{}',
|
|
15035
|
-
headers: jsonContentHeaders$
|
|
15184
|
+
headers: jsonContentHeaders$h,
|
|
15036
15185
|
method: 'POST',
|
|
15037
15186
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
|
|
15038
15187
|
}, unmarshalDevice);
|
|
@@ -15046,7 +15195,7 @@ let API$h = class API extends API$v {
|
|
|
15046
15195
|
*/
|
|
15047
15196
|
renewDeviceCertificate = request => this.client.fetch({
|
|
15048
15197
|
body: '{}',
|
|
15049
|
-
headers: jsonContentHeaders$
|
|
15198
|
+
headers: jsonContentHeaders$h,
|
|
15050
15199
|
method: 'POST',
|
|
15051
15200
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
|
|
15052
15201
|
}, unmarshalRenewDeviceCertificateResponse);
|
|
@@ -15060,7 +15209,7 @@ let API$h = class API extends API$v {
|
|
|
15060
15209
|
*/
|
|
15061
15210
|
setDeviceCertificate = request => this.client.fetch({
|
|
15062
15211
|
body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
|
|
15063
|
-
headers: jsonContentHeaders$
|
|
15212
|
+
headers: jsonContentHeaders$h,
|
|
15064
15213
|
method: 'PUT',
|
|
15065
15214
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
|
|
15066
15215
|
}, unmarshalSetDeviceCertificateResponse);
|
|
@@ -15135,7 +15284,7 @@ let API$h = class API extends API$v {
|
|
|
15135
15284
|
*/
|
|
15136
15285
|
createRoute = request => this.client.fetch({
|
|
15137
15286
|
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
15138
|
-
headers: jsonContentHeaders$
|
|
15287
|
+
headers: jsonContentHeaders$h,
|
|
15139
15288
|
method: 'POST',
|
|
15140
15289
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
15141
15290
|
}, unmarshalRoute$1);
|
|
@@ -15149,7 +15298,7 @@ let API$h = class API extends API$v {
|
|
|
15149
15298
|
*/
|
|
15150
15299
|
updateRoute = request => this.client.fetch({
|
|
15151
15300
|
body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
|
|
15152
|
-
headers: jsonContentHeaders$
|
|
15301
|
+
headers: jsonContentHeaders$h,
|
|
15153
15302
|
method: 'PATCH',
|
|
15154
15303
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
15155
15304
|
}, unmarshalRoute$1);
|
|
@@ -15201,7 +15350,7 @@ let API$h = class API extends API$v {
|
|
|
15201
15350
|
*/
|
|
15202
15351
|
createNetwork = request => this.client.fetch({
|
|
15203
15352
|
body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
|
|
15204
|
-
headers: jsonContentHeaders$
|
|
15353
|
+
headers: jsonContentHeaders$h,
|
|
15205
15354
|
method: 'POST',
|
|
15206
15355
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
|
|
15207
15356
|
}, unmarshalCreateNetworkResponse);
|
|
@@ -15249,7 +15398,7 @@ let API$h = class API extends API$v {
|
|
|
15249
15398
|
*/
|
|
15250
15399
|
putTwinDocument = request => this.client.fetch({
|
|
15251
15400
|
body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
|
|
15252
|
-
headers: jsonContentHeaders$
|
|
15401
|
+
headers: jsonContentHeaders$h,
|
|
15253
15402
|
method: 'PUT',
|
|
15254
15403
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15255
15404
|
}, unmarshalTwinDocument);
|
|
@@ -15262,7 +15411,7 @@ let API$h = class API extends API$v {
|
|
|
15262
15411
|
*/
|
|
15263
15412
|
patchTwinDocument = request => this.client.fetch({
|
|
15264
15413
|
body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
|
|
15265
|
-
headers: jsonContentHeaders$
|
|
15414
|
+
headers: jsonContentHeaders$h,
|
|
15266
15415
|
method: 'PATCH',
|
|
15267
15416
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15268
15417
|
}, unmarshalTwinDocument);
|
|
@@ -15302,15 +15451,15 @@ let API$h = class API extends API$v {
|
|
|
15302
15451
|
// This file was automatically generated. DO NOT EDIT.
|
|
15303
15452
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15304
15453
|
|
|
15305
|
-
var index_gen$
|
|
15454
|
+
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
15306
15455
|
__proto__: null,
|
|
15307
|
-
API: API$
|
|
15456
|
+
API: API$i,
|
|
15308
15457
|
HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
|
|
15309
15458
|
});
|
|
15310
15459
|
|
|
15311
|
-
var index$
|
|
15460
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
15312
15461
|
__proto__: null,
|
|
15313
|
-
v1: index_gen$
|
|
15462
|
+
v1: index_gen$i
|
|
15314
15463
|
});
|
|
15315
15464
|
|
|
15316
15465
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -15388,7 +15537,7 @@ const marshalUpdateIPRequest$1 = (request, defaults) => ({
|
|
|
15388
15537
|
|
|
15389
15538
|
// This file was automatically generated. DO NOT EDIT.
|
|
15390
15539
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15391
|
-
const jsonContentHeaders$
|
|
15540
|
+
const jsonContentHeaders$g = {
|
|
15392
15541
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15393
15542
|
};
|
|
15394
15543
|
|
|
@@ -15398,7 +15547,7 @@ const jsonContentHeaders$f = {
|
|
|
15398
15547
|
* This API allows you to manage IP addresses with Scaleway's IP Address
|
|
15399
15548
|
* Management tool.
|
|
15400
15549
|
*/
|
|
15401
|
-
let API$
|
|
15550
|
+
let API$h = class API extends API$w {
|
|
15402
15551
|
/** Lists the available regions of the API. */
|
|
15403
15552
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15404
15553
|
|
|
@@ -15411,7 +15560,7 @@ let API$g = class API extends API$v {
|
|
|
15411
15560
|
*/
|
|
15412
15561
|
bookIP = request => this.client.fetch({
|
|
15413
15562
|
body: JSON.stringify(marshalBookIPRequest(request, this.client.settings)),
|
|
15414
|
-
headers: jsonContentHeaders$
|
|
15563
|
+
headers: jsonContentHeaders$g,
|
|
15415
15564
|
method: 'POST',
|
|
15416
15565
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
|
|
15417
15566
|
}, unmarshalIP$1);
|
|
@@ -15424,7 +15573,7 @@ let API$g = class API extends API$v {
|
|
|
15424
15573
|
*/
|
|
15425
15574
|
releaseIP = request => this.client.fetch({
|
|
15426
15575
|
body: '{}',
|
|
15427
|
-
headers: jsonContentHeaders$
|
|
15576
|
+
headers: jsonContentHeaders$g,
|
|
15428
15577
|
method: 'DELETE',
|
|
15429
15578
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15430
15579
|
});
|
|
@@ -15448,7 +15597,7 @@ let API$g = class API extends API$v {
|
|
|
15448
15597
|
*/
|
|
15449
15598
|
updateIP = request => this.client.fetch({
|
|
15450
15599
|
body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
|
|
15451
|
-
headers: jsonContentHeaders$
|
|
15600
|
+
headers: jsonContentHeaders$g,
|
|
15452
15601
|
method: 'PATCH',
|
|
15453
15602
|
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
15454
15603
|
}, unmarshalIP$1);
|
|
@@ -15487,7 +15636,7 @@ const ListIPsRequest = {
|
|
|
15487
15636
|
}
|
|
15488
15637
|
};
|
|
15489
15638
|
|
|
15490
|
-
var validationRules_gen$
|
|
15639
|
+
var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
15491
15640
|
__proto__: null,
|
|
15492
15641
|
ListIPsRequest: ListIPsRequest
|
|
15493
15642
|
});
|
|
@@ -15495,15 +15644,15 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
|
15495
15644
|
// This file was automatically generated. DO NOT EDIT.
|
|
15496
15645
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15497
15646
|
|
|
15498
|
-
var index_gen$
|
|
15647
|
+
var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
15499
15648
|
__proto__: null,
|
|
15500
|
-
API: API$
|
|
15501
|
-
ValidationRules: validationRules_gen$
|
|
15649
|
+
API: API$h,
|
|
15650
|
+
ValidationRules: validationRules_gen$5
|
|
15502
15651
|
});
|
|
15503
15652
|
|
|
15504
|
-
var index$
|
|
15653
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
15505
15654
|
__proto__: null,
|
|
15506
|
-
v1: index_gen$
|
|
15655
|
+
v1: index_gen$h
|
|
15507
15656
|
});
|
|
15508
15657
|
|
|
15509
15658
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -15642,20 +15791,14 @@ const unmarshalReplacePinResponse = data => {
|
|
|
15642
15791
|
pin: data.pin ? unmarshalPin(data.pin) : undefined
|
|
15643
15792
|
};
|
|
15644
15793
|
};
|
|
15645
|
-
const marshalPinOptions = (request, defaults) => ({
|
|
15646
|
-
replication_count: request.replicationCount,
|
|
15647
|
-
required_zones: request.requiredZones
|
|
15648
|
-
});
|
|
15649
15794
|
const marshalCreatePinByCIDRequest = (request, defaults) => ({
|
|
15650
15795
|
cid: request.cid,
|
|
15651
15796
|
name: request.name,
|
|
15652
15797
|
origins: request.origins,
|
|
15653
|
-
pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15654
15798
|
volume_id: request.volumeId
|
|
15655
15799
|
});
|
|
15656
15800
|
const marshalCreatePinByURLRequest = (request, defaults) => ({
|
|
15657
15801
|
name: request.name,
|
|
15658
|
-
pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15659
15802
|
url: request.url,
|
|
15660
15803
|
volume_id: request.volumeId
|
|
15661
15804
|
});
|
|
@@ -15683,7 +15826,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
|
|
|
15683
15826
|
cid: request.cid,
|
|
15684
15827
|
name: request.name,
|
|
15685
15828
|
origins: request.origins,
|
|
15686
|
-
pin_options: request.pinOptions !== undefined ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15687
15829
|
volume_id: request.volumeId
|
|
15688
15830
|
});
|
|
15689
15831
|
const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
@@ -15693,12 +15835,12 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
15693
15835
|
|
|
15694
15836
|
// This file was automatically generated. DO NOT EDIT.
|
|
15695
15837
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15696
|
-
const jsonContentHeaders$
|
|
15838
|
+
const jsonContentHeaders$f = {
|
|
15697
15839
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15698
15840
|
};
|
|
15699
15841
|
|
|
15700
15842
|
/** IPFS Pinning service API. */
|
|
15701
|
-
let API$
|
|
15843
|
+
let API$g = class API extends API$w {
|
|
15702
15844
|
/** Lists the available regions of the API. */
|
|
15703
15845
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15704
15846
|
|
|
@@ -15714,7 +15856,7 @@ let API$f = class API extends API$v {
|
|
|
15714
15856
|
*/
|
|
15715
15857
|
createVolume = request => this.client.fetch({
|
|
15716
15858
|
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
15717
|
-
headers: jsonContentHeaders$
|
|
15859
|
+
headers: jsonContentHeaders$f,
|
|
15718
15860
|
method: 'POST',
|
|
15719
15861
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`
|
|
15720
15862
|
}, unmarshalVolume$1);
|
|
@@ -15753,7 +15895,7 @@ let API$f = class API extends API$v {
|
|
|
15753
15895
|
*/
|
|
15754
15896
|
updateVolume = request => this.client.fetch({
|
|
15755
15897
|
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
15756
|
-
headers: jsonContentHeaders$
|
|
15898
|
+
headers: jsonContentHeaders$f,
|
|
15757
15899
|
method: 'PATCH',
|
|
15758
15900
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
15759
15901
|
}, unmarshalVolume$1);
|
|
@@ -15784,7 +15926,7 @@ let API$f = class API extends API$v {
|
|
|
15784
15926
|
*/
|
|
15785
15927
|
createPinByURL = request => this.client.fetch({
|
|
15786
15928
|
body: JSON.stringify(marshalCreatePinByURLRequest(request, this.client.settings)),
|
|
15787
|
-
headers: jsonContentHeaders$
|
|
15929
|
+
headers: jsonContentHeaders$f,
|
|
15788
15930
|
method: 'POST',
|
|
15789
15931
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-url`
|
|
15790
15932
|
}, unmarshalPin);
|
|
@@ -15803,13 +15945,13 @@ let API$f = class API extends API$v {
|
|
|
15803
15945
|
*/
|
|
15804
15946
|
createPinByCID = request => this.client.fetch({
|
|
15805
15947
|
body: JSON.stringify(marshalCreatePinByCIDRequest(request, this.client.settings)),
|
|
15806
|
-
headers: jsonContentHeaders$
|
|
15948
|
+
headers: jsonContentHeaders$f,
|
|
15807
15949
|
method: 'POST',
|
|
15808
15950
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-cid`
|
|
15809
15951
|
}, unmarshalPin);
|
|
15810
15952
|
replacePin = request => this.client.fetch({
|
|
15811
15953
|
body: JSON.stringify(marshalReplacePinRequest(request, this.client.settings)),
|
|
15812
|
-
headers: jsonContentHeaders$
|
|
15954
|
+
headers: jsonContentHeaders$f,
|
|
15813
15955
|
method: 'POST',
|
|
15814
15956
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}/replace`
|
|
15815
15957
|
}, unmarshalReplacePinResponse);
|
|
@@ -15865,7 +16007,7 @@ let API$f = class API extends API$v {
|
|
|
15865
16007
|
};
|
|
15866
16008
|
|
|
15867
16009
|
/** IPFS Naming service API. */
|
|
15868
|
-
class IpnsAPI extends API$
|
|
16010
|
+
class IpnsAPI extends API$w {
|
|
15869
16011
|
/** Lists the available regions of the API. */
|
|
15870
16012
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15871
16013
|
|
|
@@ -15878,7 +16020,7 @@ class IpnsAPI extends API$v {
|
|
|
15878
16020
|
*/
|
|
15879
16021
|
createName = request => this.client.fetch({
|
|
15880
16022
|
body: JSON.stringify(marshalIpnsApiCreateNameRequest(request, this.client.settings)),
|
|
15881
|
-
headers: jsonContentHeaders$
|
|
16023
|
+
headers: jsonContentHeaders$f,
|
|
15882
16024
|
method: 'POST',
|
|
15883
16025
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
|
|
15884
16026
|
}, unmarshalName);
|
|
@@ -15935,7 +16077,7 @@ class IpnsAPI extends API$v {
|
|
|
15935
16077
|
*/
|
|
15936
16078
|
updateName = request => this.client.fetch({
|
|
15937
16079
|
body: JSON.stringify(marshalIpnsApiUpdateNameRequest(request, this.client.settings)),
|
|
15938
|
-
headers: jsonContentHeaders$
|
|
16080
|
+
headers: jsonContentHeaders$f,
|
|
15939
16081
|
method: 'PATCH',
|
|
15940
16082
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
|
|
15941
16083
|
}, unmarshalName);
|
|
@@ -15959,7 +16101,7 @@ class IpnsAPI extends API$v {
|
|
|
15959
16101
|
*/
|
|
15960
16102
|
importKeyName = request => this.client.fetch({
|
|
15961
16103
|
body: JSON.stringify(marshalIpnsApiImportKeyNameRequest(request, this.client.settings)),
|
|
15962
|
-
headers: jsonContentHeaders$
|
|
16104
|
+
headers: jsonContentHeaders$f,
|
|
15963
16105
|
method: 'POST',
|
|
15964
16106
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
|
|
15965
16107
|
}, unmarshalName);
|
|
@@ -15968,17 +16110,233 @@ class IpnsAPI extends API$v {
|
|
|
15968
16110
|
// This file was automatically generated. DO NOT EDIT.
|
|
15969
16111
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15970
16112
|
|
|
15971
|
-
var index_gen$
|
|
16113
|
+
var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
15972
16114
|
__proto__: null,
|
|
15973
|
-
API: API$
|
|
16115
|
+
API: API$g,
|
|
15974
16116
|
IpnsAPI: IpnsAPI,
|
|
15975
16117
|
NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
|
|
15976
16118
|
PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
|
|
15977
16119
|
});
|
|
15978
16120
|
|
|
16121
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
16122
|
+
__proto__: null,
|
|
16123
|
+
v1alpha1: index_gen$g
|
|
16124
|
+
});
|
|
16125
|
+
|
|
16126
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
16127
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16128
|
+
const unmarshalJobDefinition = data => {
|
|
16129
|
+
if (!isJSONObject(data)) {
|
|
16130
|
+
throw new TypeError(`Unmarshalling the type 'JobDefinition' failed as data isn't a dictionary.`);
|
|
16131
|
+
}
|
|
16132
|
+
return {
|
|
16133
|
+
command: data.command,
|
|
16134
|
+
cpuLimit: data.cpu_limit,
|
|
16135
|
+
createdAt: unmarshalDate(data.created_at),
|
|
16136
|
+
description: data.description,
|
|
16137
|
+
environmentVariables: data.environment_variables,
|
|
16138
|
+
imageUri: data.image_uri,
|
|
16139
|
+
jobDefinitionId: data.job_definition_id,
|
|
16140
|
+
jobTimeout: data.job_timeout,
|
|
16141
|
+
memoryLimit: data.memory_limit,
|
|
16142
|
+
name: data.name,
|
|
16143
|
+
projectId: data.project_id,
|
|
16144
|
+
region: data.region,
|
|
16145
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
16146
|
+
};
|
|
16147
|
+
};
|
|
16148
|
+
const unmarshalJobRun = data => {
|
|
16149
|
+
if (!isJSONObject(data)) {
|
|
16150
|
+
throw new TypeError(`Unmarshalling the type 'JobRun' failed as data isn't a dictionary.`);
|
|
16151
|
+
}
|
|
16152
|
+
return {
|
|
16153
|
+
createdAt: unmarshalDate(data.created_at),
|
|
16154
|
+
errorMessage: data.error_message,
|
|
16155
|
+
exitCode: data.exit_code,
|
|
16156
|
+
jobDefinitionId: data.job_definition_id,
|
|
16157
|
+
jobRunId: data.job_run_id,
|
|
16158
|
+
region: data.region,
|
|
16159
|
+
runDuration: data.run_duration,
|
|
16160
|
+
state: data.state,
|
|
16161
|
+
terminatedAt: unmarshalDate(data.terminated_at),
|
|
16162
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
16163
|
+
};
|
|
16164
|
+
};
|
|
16165
|
+
const unmarshalListJobDefinitionsResponse = data => {
|
|
16166
|
+
if (!isJSONObject(data)) {
|
|
16167
|
+
throw new TypeError(`Unmarshalling the type 'ListJobDefinitionsResponse' failed as data isn't a dictionary.`);
|
|
16168
|
+
}
|
|
16169
|
+
return {
|
|
16170
|
+
jobDefinitions: unmarshalArrayOfObject(data.job_definitions, unmarshalJobDefinition),
|
|
16171
|
+
totalCount: data.total_count
|
|
16172
|
+
};
|
|
16173
|
+
};
|
|
16174
|
+
const unmarshalListJobRunsResponse = data => {
|
|
16175
|
+
if (!isJSONObject(data)) {
|
|
16176
|
+
throw new TypeError(`Unmarshalling the type 'ListJobRunsResponse' failed as data isn't a dictionary.`);
|
|
16177
|
+
}
|
|
16178
|
+
return {
|
|
16179
|
+
jobRuns: unmarshalArrayOfObject(data.job_runs, unmarshalJobRun),
|
|
16180
|
+
totalCount: data.total_count
|
|
16181
|
+
};
|
|
16182
|
+
};
|
|
16183
|
+
const marshalCreateJobDefinitionRequest = (request, defaults) => ({
|
|
16184
|
+
command: request.command,
|
|
16185
|
+
cpu_limit: request.cpuLimit,
|
|
16186
|
+
description: request.description,
|
|
16187
|
+
environment_variables: request.environmentVariables !== undefined ? request.environmentVariables : undefined,
|
|
16188
|
+
image_uri: request.imageUri,
|
|
16189
|
+
job_timeout: request.jobTimeout,
|
|
16190
|
+
memory_limit: request.memoryLimit,
|
|
16191
|
+
name: request.name || randomName('job'),
|
|
16192
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
16193
|
+
});
|
|
16194
|
+
const marshalUpdateJobDefinitionRequest = (request, defaults) => ({
|
|
16195
|
+
command: request.command,
|
|
16196
|
+
cpu_limit: request.cpuLimit,
|
|
16197
|
+
description: request.description,
|
|
16198
|
+
environment_variables: request.environmentVariables,
|
|
16199
|
+
image_uri: request.imageUri,
|
|
16200
|
+
job_timeout: request.jobTimeout,
|
|
16201
|
+
memory_limit: request.memoryLimit,
|
|
16202
|
+
name: request.name
|
|
16203
|
+
});
|
|
16204
|
+
|
|
16205
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
16206
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16207
|
+
const jsonContentHeaders$e = {
|
|
16208
|
+
'Content-Type': 'application/json; charset=utf-8'
|
|
16209
|
+
};
|
|
16210
|
+
|
|
16211
|
+
/** Serverless Jobs API. */
|
|
16212
|
+
let API$f = class API extends API$w {
|
|
16213
|
+
/** Lists the available regions of the API. */
|
|
16214
|
+
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16215
|
+
getServiceInfo = (request = {}) => this.client.fetch({
|
|
16216
|
+
method: 'GET',
|
|
16217
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}`
|
|
16218
|
+
}, unmarshalServiceInfo);
|
|
16219
|
+
createJobDefinition = request => this.client.fetch({
|
|
16220
|
+
body: JSON.stringify(marshalCreateJobDefinitionRequest(request, this.client.settings)),
|
|
16221
|
+
headers: jsonContentHeaders$e,
|
|
16222
|
+
method: 'POST',
|
|
16223
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`
|
|
16224
|
+
}, unmarshalJobDefinition);
|
|
16225
|
+
getJobDefinition = request => this.client.fetch({
|
|
16226
|
+
method: 'GET',
|
|
16227
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
|
|
16228
|
+
}, unmarshalJobDefinition);
|
|
16229
|
+
pageOfListJobDefinitions = (request = {}) => this.client.fetch({
|
|
16230
|
+
method: 'GET',
|
|
16231
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions`,
|
|
16232
|
+
urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
16233
|
+
}, unmarshalListJobDefinitionsResponse);
|
|
16234
|
+
listJobDefinitions = (request = {}) => enrichForPagination('jobDefinitions', this.pageOfListJobDefinitions, request);
|
|
16235
|
+
updateJobDefinition = request => this.client.fetch({
|
|
16236
|
+
body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
|
|
16237
|
+
headers: jsonContentHeaders$e,
|
|
16238
|
+
method: 'PATCH',
|
|
16239
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
|
|
16240
|
+
}, unmarshalJobDefinition);
|
|
16241
|
+
deleteJobDefinition = request => this.client.fetch({
|
|
16242
|
+
method: 'DELETE',
|
|
16243
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
|
|
16244
|
+
});
|
|
16245
|
+
startJobDefinition = request => this.client.fetch({
|
|
16246
|
+
body: '{}',
|
|
16247
|
+
headers: jsonContentHeaders$e,
|
|
16248
|
+
method: 'POST',
|
|
16249
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
|
|
16250
|
+
}, unmarshalJobRun);
|
|
16251
|
+
getJobRun = request => this.client.fetch({
|
|
16252
|
+
method: 'GET',
|
|
16253
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}`
|
|
16254
|
+
}, unmarshalJobRun);
|
|
16255
|
+
stopJobRun = request => this.client.fetch({
|
|
16256
|
+
body: '{}',
|
|
16257
|
+
headers: jsonContentHeaders$e,
|
|
16258
|
+
method: 'POST',
|
|
16259
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}/stop`
|
|
16260
|
+
}, unmarshalJobRun);
|
|
16261
|
+
pageOfListJobRuns = (request = {}) => this.client.fetch({
|
|
16262
|
+
method: 'GET',
|
|
16263
|
+
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs`,
|
|
16264
|
+
urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
16265
|
+
}, unmarshalListJobRunsResponse);
|
|
16266
|
+
listJobRuns = (request = {}) => enrichForPagination('jobRuns', this.pageOfListJobRuns, request);
|
|
16267
|
+
};
|
|
16268
|
+
|
|
16269
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
16270
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16271
|
+
|
|
16272
|
+
/** Lists transient statutes of the enum {@link JobRunState}. */
|
|
16273
|
+
const JOB_RUN_TRANSIENT_STATUSES = ['queued', 'scheduled', 'running'];
|
|
16274
|
+
|
|
16275
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
16276
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16277
|
+
|
|
16278
|
+
const CreateJobDefinitionRequest = {
|
|
16279
|
+
cpuLimit: {
|
|
16280
|
+
greaterThan: 0
|
|
16281
|
+
},
|
|
16282
|
+
memoryLimit: {
|
|
16283
|
+
greaterThan: 0
|
|
16284
|
+
},
|
|
16285
|
+
name: {
|
|
16286
|
+
minLength: 3
|
|
16287
|
+
}
|
|
16288
|
+
};
|
|
16289
|
+
const ListJobDefinitionsRequest = {
|
|
16290
|
+
page: {
|
|
16291
|
+
greaterThanOrEqual: 1
|
|
16292
|
+
},
|
|
16293
|
+
pageSize: {
|
|
16294
|
+
greaterThanOrEqual: 1,
|
|
16295
|
+
lessThanOrEqual: 1000
|
|
16296
|
+
}
|
|
16297
|
+
};
|
|
16298
|
+
const ListJobRunsRequest = {
|
|
16299
|
+
page: {
|
|
16300
|
+
greaterThanOrEqual: 1
|
|
16301
|
+
},
|
|
16302
|
+
pageSize: {
|
|
16303
|
+
greaterThanOrEqual: 1,
|
|
16304
|
+
lessThanOrEqual: 1000
|
|
16305
|
+
}
|
|
16306
|
+
};
|
|
16307
|
+
const UpdateJobDefinitionRequest = {
|
|
16308
|
+
cpuLimit: {
|
|
16309
|
+
greaterThan: 0
|
|
16310
|
+
},
|
|
16311
|
+
memoryLimit: {
|
|
16312
|
+
greaterThan: 0
|
|
16313
|
+
},
|
|
16314
|
+
name: {
|
|
16315
|
+
minLength: 3
|
|
16316
|
+
}
|
|
16317
|
+
};
|
|
16318
|
+
|
|
16319
|
+
var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
16320
|
+
__proto__: null,
|
|
16321
|
+
CreateJobDefinitionRequest: CreateJobDefinitionRequest,
|
|
16322
|
+
ListJobDefinitionsRequest: ListJobDefinitionsRequest,
|
|
16323
|
+
ListJobRunsRequest: ListJobRunsRequest,
|
|
16324
|
+
UpdateJobDefinitionRequest: UpdateJobDefinitionRequest
|
|
16325
|
+
});
|
|
16326
|
+
|
|
16327
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
16328
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
16329
|
+
|
|
16330
|
+
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
16331
|
+
__proto__: null,
|
|
16332
|
+
API: API$f,
|
|
16333
|
+
JOB_RUN_TRANSIENT_STATUSES: JOB_RUN_TRANSIENT_STATUSES,
|
|
16334
|
+
ValidationRules: validationRules_gen$4
|
|
16335
|
+
});
|
|
16336
|
+
|
|
15979
16337
|
var index$f = /*#__PURE__*/Object.freeze({
|
|
15980
16338
|
__proto__: null,
|
|
15981
|
-
v1alpha1: index_gen$
|
|
16339
|
+
v1alpha1: index_gen$f
|
|
15982
16340
|
});
|
|
15983
16341
|
|
|
15984
16342
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -16312,13 +16670,13 @@ const marshalCreateClusterRequest$1 = (request, defaults) => ({
|
|
|
16312
16670
|
type: request.type,
|
|
16313
16671
|
version: request.version,
|
|
16314
16672
|
...resolveOneOf([{
|
|
16315
|
-
default: defaults.defaultOrganizationId,
|
|
16316
|
-
param: 'organization_id',
|
|
16317
|
-
value: request.organizationId
|
|
16318
|
-
}, {
|
|
16319
16673
|
default: defaults.defaultProjectId,
|
|
16320
16674
|
param: 'project_id',
|
|
16321
16675
|
value: request.projectId
|
|
16676
|
+
}, {
|
|
16677
|
+
default: defaults.defaultOrganizationId,
|
|
16678
|
+
param: 'organization_id',
|
|
16679
|
+
value: request.organizationId
|
|
16322
16680
|
}])
|
|
16323
16681
|
});
|
|
16324
16682
|
const marshalCreatePoolRequestUpgradePolicy = (request, defaults) => ({
|
|
@@ -16416,7 +16774,7 @@ const jsonContentHeaders$d = {
|
|
|
16416
16774
|
};
|
|
16417
16775
|
|
|
16418
16776
|
/** Kubernetes API. */
|
|
16419
|
-
let API$e = class API extends API$
|
|
16777
|
+
let API$e = class API extends API$w {
|
|
16420
16778
|
/** Lists the available regions of the API. */
|
|
16421
16779
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
16422
16780
|
pageOfListClusters = (request = {}) => this.client.fetch({
|
|
@@ -17599,13 +17957,13 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
17599
17957
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
17600
17958
|
reverse: request.reverse,
|
|
17601
17959
|
...resolveOneOf([{
|
|
17602
|
-
default: defaults.defaultOrganizationId,
|
|
17603
|
-
param: 'organization_id',
|
|
17604
|
-
value: request.organizationId
|
|
17605
|
-
}, {
|
|
17606
17960
|
default: defaults.defaultProjectId,
|
|
17607
17961
|
param: 'project_id',
|
|
17608
17962
|
value: request.projectId
|
|
17963
|
+
}, {
|
|
17964
|
+
default: defaults.defaultOrganizationId,
|
|
17965
|
+
param: 'organization_id',
|
|
17966
|
+
value: request.organizationId
|
|
17609
17967
|
}])
|
|
17610
17968
|
});
|
|
17611
17969
|
const marshalCreateLbRequest = (request, defaults) => ({
|
|
@@ -17617,13 +17975,13 @@ const marshalCreateLbRequest = (request, defaults) => ({
|
|
|
17617
17975
|
tags: request.tags,
|
|
17618
17976
|
type: request.type,
|
|
17619
17977
|
...resolveOneOf([{
|
|
17620
|
-
default: defaults.defaultOrganizationId,
|
|
17621
|
-
param: 'organization_id',
|
|
17622
|
-
value: request.organizationId
|
|
17623
|
-
}, {
|
|
17624
17978
|
default: defaults.defaultProjectId,
|
|
17625
17979
|
param: 'project_id',
|
|
17626
17980
|
value: request.projectId
|
|
17981
|
+
}, {
|
|
17982
|
+
default: defaults.defaultOrganizationId,
|
|
17983
|
+
param: 'organization_id',
|
|
17984
|
+
value: request.organizationId
|
|
17627
17985
|
}])
|
|
17628
17986
|
});
|
|
17629
17987
|
const marshalRouteMatch = (request, defaults) => ({
|
|
@@ -17649,13 +18007,13 @@ const marshalSubscriberWebhookConfig = (request, defaults) => ({
|
|
|
17649
18007
|
const marshalCreateSubscriberRequest = (request, defaults) => ({
|
|
17650
18008
|
name: request.name,
|
|
17651
18009
|
...resolveOneOf([{
|
|
17652
|
-
default: defaults.defaultOrganizationId,
|
|
17653
|
-
param: 'organization_id',
|
|
17654
|
-
value: request.organizationId
|
|
17655
|
-
}, {
|
|
17656
18010
|
default: defaults.defaultProjectId,
|
|
17657
18011
|
param: 'project_id',
|
|
17658
18012
|
value: request.projectId
|
|
18013
|
+
}, {
|
|
18014
|
+
default: defaults.defaultOrganizationId,
|
|
18015
|
+
param: 'organization_id',
|
|
18016
|
+
value: request.organizationId
|
|
17659
18017
|
}]),
|
|
17660
18018
|
...resolveOneOf([{
|
|
17661
18019
|
param: 'email_config',
|
|
@@ -17837,13 +18195,13 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
17837
18195
|
const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
17838
18196
|
reverse: request.reverse,
|
|
17839
18197
|
...resolveOneOf([{
|
|
17840
|
-
default: defaults.defaultOrganizationId,
|
|
17841
|
-
param: 'organization_id',
|
|
17842
|
-
value: request.organizationId
|
|
17843
|
-
}, {
|
|
17844
18198
|
default: defaults.defaultProjectId,
|
|
17845
18199
|
param: 'project_id',
|
|
17846
18200
|
value: request.projectId
|
|
18201
|
+
}, {
|
|
18202
|
+
default: defaults.defaultOrganizationId,
|
|
18203
|
+
param: 'organization_id',
|
|
18204
|
+
value: request.organizationId
|
|
17847
18205
|
}])
|
|
17848
18206
|
});
|
|
17849
18207
|
const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
@@ -17855,13 +18213,13 @@ const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
|
17855
18213
|
tags: request.tags,
|
|
17856
18214
|
type: request.type,
|
|
17857
18215
|
...resolveOneOf([{
|
|
17858
|
-
default: defaults.defaultOrganizationId,
|
|
17859
|
-
param: 'organization_id',
|
|
17860
|
-
value: request.organizationId
|
|
17861
|
-
}, {
|
|
17862
18216
|
default: defaults.defaultProjectId,
|
|
17863
18217
|
param: 'project_id',
|
|
17864
18218
|
value: request.projectId
|
|
18219
|
+
}, {
|
|
18220
|
+
default: defaults.defaultOrganizationId,
|
|
18221
|
+
param: 'organization_id',
|
|
18222
|
+
value: request.organizationId
|
|
17865
18223
|
}])
|
|
17866
18224
|
});
|
|
17867
18225
|
const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
|
|
@@ -17872,13 +18230,13 @@ const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
|
|
|
17872
18230
|
const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
|
|
17873
18231
|
name: request.name,
|
|
17874
18232
|
...resolveOneOf([{
|
|
17875
|
-
default: defaults.defaultOrganizationId,
|
|
17876
|
-
param: 'organization_id',
|
|
17877
|
-
value: request.organizationId
|
|
17878
|
-
}, {
|
|
17879
18233
|
default: defaults.defaultProjectId,
|
|
17880
18234
|
param: 'project_id',
|
|
17881
18235
|
value: request.projectId
|
|
18236
|
+
}, {
|
|
18237
|
+
default: defaults.defaultOrganizationId,
|
|
18238
|
+
param: 'organization_id',
|
|
18239
|
+
value: request.organizationId
|
|
17882
18240
|
}]),
|
|
17883
18241
|
...resolveOneOf([{
|
|
17884
18242
|
param: 'email_config',
|
|
@@ -18015,7 +18373,7 @@ const jsonContentHeaders$c = {
|
|
|
18015
18373
|
*
|
|
18016
18374
|
* This API allows you to manage your Scaleway Load Balancer services.
|
|
18017
18375
|
*/
|
|
18018
|
-
class ZonedAPI extends API$
|
|
18376
|
+
class ZonedAPI extends API$w {
|
|
18019
18377
|
/** Lists the available zones of the API. */
|
|
18020
18378
|
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'];
|
|
18021
18379
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -18818,7 +19176,7 @@ class ZonedAPI extends API$v {
|
|
|
18818
19176
|
*
|
|
18819
19177
|
* This API allows you to manage your load balancer service.
|
|
18820
19178
|
*/
|
|
18821
|
-
let API$d = class API extends API$
|
|
19179
|
+
let API$d = class API extends API$w {
|
|
18822
19180
|
/** Lists the available regions of the API. */
|
|
18823
19181
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
18824
19182
|
pageOfListLbs = (request = {}) => this.client.fetch({
|
|
@@ -19671,7 +20029,7 @@ const unmarshalListVersionsResponse$1 = data => {
|
|
|
19671
20029
|
// This file was automatically generated. DO NOT EDIT.
|
|
19672
20030
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19673
20031
|
/** Marketplace API. */
|
|
19674
|
-
let API$c = class API extends API$
|
|
20032
|
+
let API$c = class API extends API$w {
|
|
19675
20033
|
pageOfListImages = (request = {}) => this.client.fetch({
|
|
19676
20034
|
method: 'GET',
|
|
19677
20035
|
path: `/marketplace/v1/images`,
|
|
@@ -19709,7 +20067,7 @@ let API$c = class API extends API$v {
|
|
|
19709
20067
|
// This file was automatically generated. DO NOT EDIT.
|
|
19710
20068
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19711
20069
|
|
|
19712
|
-
var index_gen$
|
|
20070
|
+
var index_gen$e = /*#__PURE__*/Object.freeze({
|
|
19713
20071
|
__proto__: null,
|
|
19714
20072
|
API: API$c
|
|
19715
20073
|
});
|
|
@@ -19807,7 +20165,7 @@ const unmarshalListVersionsResponse = data => {
|
|
|
19807
20165
|
// This file was automatically generated. DO NOT EDIT.
|
|
19808
20166
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19809
20167
|
/** Marketplace API. */
|
|
19810
|
-
let API$b = class API extends API$
|
|
20168
|
+
let API$b = class API extends API$w {
|
|
19811
20169
|
pageOfListImages = request => this.client.fetch({
|
|
19812
20170
|
method: 'GET',
|
|
19813
20171
|
path: `/marketplace/v2/images`,
|
|
@@ -19931,15 +20289,15 @@ let API$b = class API extends API$v {
|
|
|
19931
20289
|
// This file was automatically generated. DO NOT EDIT.
|
|
19932
20290
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19933
20291
|
|
|
19934
|
-
var index_gen$
|
|
20292
|
+
var index_gen$d = /*#__PURE__*/Object.freeze({
|
|
19935
20293
|
__proto__: null,
|
|
19936
20294
|
API: API$b
|
|
19937
20295
|
});
|
|
19938
20296
|
|
|
19939
20297
|
var index$a = /*#__PURE__*/Object.freeze({
|
|
19940
20298
|
__proto__: null,
|
|
19941
|
-
v1: index_gen$
|
|
19942
|
-
v2: index_gen$
|
|
20299
|
+
v1: index_gen$e,
|
|
20300
|
+
v2: index_gen$d
|
|
19943
20301
|
});
|
|
19944
20302
|
|
|
19945
20303
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -20074,7 +20432,7 @@ const jsonContentHeaders$b = {
|
|
|
20074
20432
|
*
|
|
20075
20433
|
* This API allows you to manage Scaleway Messaging and Queueing brokers.
|
|
20076
20434
|
*/
|
|
20077
|
-
let API$a = class API extends API$
|
|
20435
|
+
let API$a = class API extends API$w {
|
|
20078
20436
|
/** Lists the available regions of the API. */
|
|
20079
20437
|
static LOCALITIES = ['fr-par'];
|
|
20080
20438
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -20225,7 +20583,7 @@ let API$a = class API extends API$v {
|
|
|
20225
20583
|
// This file was automatically generated. DO NOT EDIT.
|
|
20226
20584
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20227
20585
|
|
|
20228
|
-
var index_gen$
|
|
20586
|
+
var index_gen$c = /*#__PURE__*/Object.freeze({
|
|
20229
20587
|
__proto__: null,
|
|
20230
20588
|
API: API$a
|
|
20231
20589
|
});
|
|
@@ -20448,7 +20806,7 @@ const jsonContentHeaders$a = {
|
|
|
20448
20806
|
*
|
|
20449
20807
|
* This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
|
|
20450
20808
|
*/
|
|
20451
|
-
class NatsAPI extends API$
|
|
20809
|
+
class NatsAPI extends API$w {
|
|
20452
20810
|
/** Lists the available regions of the API. */
|
|
20453
20811
|
static LOCALITIES = ['fr-par'];
|
|
20454
20812
|
|
|
@@ -20584,7 +20942,7 @@ class NatsAPI extends API$v {
|
|
|
20584
20942
|
*
|
|
20585
20943
|
* This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
|
|
20586
20944
|
*/
|
|
20587
|
-
class SnsAPI extends API$
|
|
20945
|
+
class SnsAPI extends API$w {
|
|
20588
20946
|
/** Lists the available regions of the API. */
|
|
20589
20947
|
static LOCALITIES = ['fr-par'];
|
|
20590
20948
|
|
|
@@ -20706,7 +21064,7 @@ class SnsAPI extends API$v {
|
|
|
20706
21064
|
*
|
|
20707
21065
|
* This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
|
|
20708
21066
|
*/
|
|
20709
|
-
class SqsAPI extends API$
|
|
21067
|
+
class SqsAPI extends API$w {
|
|
20710
21068
|
/** Lists the available regions of the API. */
|
|
20711
21069
|
static LOCALITIES = ['fr-par'];
|
|
20712
21070
|
|
|
@@ -20918,7 +21276,7 @@ var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
|
20918
21276
|
// This file was automatically generated. DO NOT EDIT.
|
|
20919
21277
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20920
21278
|
|
|
20921
|
-
var index_gen$
|
|
21279
|
+
var index_gen$b = /*#__PURE__*/Object.freeze({
|
|
20922
21280
|
__proto__: null,
|
|
20923
21281
|
NatsAPI: NatsAPI,
|
|
20924
21282
|
SnsAPI: SnsAPI,
|
|
@@ -20928,8 +21286,8 @@ var index_gen$a = /*#__PURE__*/Object.freeze({
|
|
|
20928
21286
|
|
|
20929
21287
|
var index$9 = /*#__PURE__*/Object.freeze({
|
|
20930
21288
|
__proto__: null,
|
|
20931
|
-
v1alpha1: index_gen$
|
|
20932
|
-
v1beta1: index_gen$
|
|
21289
|
+
v1alpha1: index_gen$c,
|
|
21290
|
+
v1beta1: index_gen$b
|
|
20933
21291
|
});
|
|
20934
21292
|
|
|
20935
21293
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -21518,13 +21876,13 @@ const marshalCreateInstanceRequest = (request, defaults) => ({
|
|
|
21518
21876
|
volume_size: request.volumeSize,
|
|
21519
21877
|
volume_type: request.volumeType,
|
|
21520
21878
|
...resolveOneOf([{
|
|
21521
|
-
default: defaults.defaultOrganizationId,
|
|
21522
|
-
param: 'organization_id',
|
|
21523
|
-
value: request.organizationId
|
|
21524
|
-
}, {
|
|
21525
21879
|
default: defaults.defaultProjectId,
|
|
21526
21880
|
param: 'project_id',
|
|
21527
21881
|
value: request.projectId
|
|
21882
|
+
}, {
|
|
21883
|
+
default: defaults.defaultOrganizationId,
|
|
21884
|
+
param: 'organization_id',
|
|
21885
|
+
value: request.organizationId
|
|
21528
21886
|
}])
|
|
21529
21887
|
});
|
|
21530
21888
|
const marshalReadReplicaEndpointSpecPrivateNetworkIpamConfig = (request, defaults) => ({});
|
|
@@ -21622,6 +21980,10 @@ const marshalUpdateUserRequest = (request, defaults) => ({
|
|
|
21622
21980
|
is_admin: request.isAdmin,
|
|
21623
21981
|
password: request.password
|
|
21624
21982
|
});
|
|
21983
|
+
const marshalUpgradeInstanceRequestMajorUpgradeWorkflow = (request, defaults) => ({
|
|
21984
|
+
upgradable_version_id: request.upgradableVersionId,
|
|
21985
|
+
with_endpoints: request.withEndpoints
|
|
21986
|
+
});
|
|
21625
21987
|
const marshalUpgradeInstanceRequest = (request, defaults) => ({
|
|
21626
21988
|
...resolveOneOf([{
|
|
21627
21989
|
param: 'node_type',
|
|
@@ -21638,6 +22000,9 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({
|
|
|
21638
22000
|
}, {
|
|
21639
22001
|
param: 'upgradable_version_id',
|
|
21640
22002
|
value: request.upgradableVersionId
|
|
22003
|
+
}, {
|
|
22004
|
+
param: 'major_upgrade_workflow',
|
|
22005
|
+
value: request.majorUpgradeWorkflow !== undefined ? marshalUpgradeInstanceRequestMajorUpgradeWorkflow(request.majorUpgradeWorkflow) : undefined
|
|
21641
22006
|
}])
|
|
21642
22007
|
});
|
|
21643
22008
|
|
|
@@ -21648,7 +22013,7 @@ const jsonContentHeaders$9 = {
|
|
|
21648
22013
|
};
|
|
21649
22014
|
|
|
21650
22015
|
/** Managed Database for PostgreSQL and MySQL API. */
|
|
21651
|
-
let API$9 = class API extends API$
|
|
22016
|
+
let API$9 = class API extends API$w {
|
|
21652
22017
|
/** Lists the available regions of the API. */
|
|
21653
22018
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
21654
22019
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
|
|
@@ -22558,7 +22923,7 @@ var validationRules_gen$1 = /*#__PURE__*/Object.freeze({
|
|
|
22558
22923
|
// This file was automatically generated. DO NOT EDIT.
|
|
22559
22924
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
22560
22925
|
|
|
22561
|
-
var index_gen$
|
|
22926
|
+
var index_gen$a = /*#__PURE__*/Object.freeze({
|
|
22562
22927
|
__proto__: null,
|
|
22563
22928
|
API: API$9,
|
|
22564
22929
|
DATABASE_BACKUP_TRANSIENT_STATUSES: DATABASE_BACKUP_TRANSIENT_STATUSES,
|
|
@@ -22572,7 +22937,7 @@ var index_gen$9 = /*#__PURE__*/Object.freeze({
|
|
|
22572
22937
|
|
|
22573
22938
|
var index$8 = /*#__PURE__*/Object.freeze({
|
|
22574
22939
|
__proto__: null,
|
|
22575
|
-
v1: index_gen$
|
|
22940
|
+
v1: index_gen$a
|
|
22576
22941
|
});
|
|
22577
22942
|
|
|
22578
22943
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -22865,7 +23230,7 @@ const jsonContentHeaders$8 = {
|
|
|
22865
23230
|
};
|
|
22866
23231
|
|
|
22867
23232
|
/** Managed Database for Redis™ API. */
|
|
22868
|
-
let API$8 = class API extends API$
|
|
23233
|
+
let API$8 = class API extends API$w {
|
|
22869
23234
|
/** Lists the available zones of the API. */
|
|
22870
23235
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
22871
23236
|
|
|
@@ -23226,7 +23591,7 @@ let API$8 = class API extends API$v {
|
|
|
23226
23591
|
// This file was automatically generated. DO NOT EDIT.
|
|
23227
23592
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
23228
23593
|
|
|
23229
|
-
var index_gen$
|
|
23594
|
+
var index_gen$9 = /*#__PURE__*/Object.freeze({
|
|
23230
23595
|
__proto__: null,
|
|
23231
23596
|
API: API$8,
|
|
23232
23597
|
CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES
|
|
@@ -23234,7 +23599,7 @@ var index_gen$8 = /*#__PURE__*/Object.freeze({
|
|
|
23234
23599
|
|
|
23235
23600
|
var index$7 = /*#__PURE__*/Object.freeze({
|
|
23236
23601
|
__proto__: null,
|
|
23237
|
-
v1: index_gen$
|
|
23602
|
+
v1: index_gen$9
|
|
23238
23603
|
});
|
|
23239
23604
|
|
|
23240
23605
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -23335,13 +23700,13 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
23335
23700
|
is_public: request.isPublic,
|
|
23336
23701
|
name: request.name || randomName('ns'),
|
|
23337
23702
|
...resolveOneOf([{
|
|
23338
|
-
default: defaults.defaultOrganizationId,
|
|
23339
|
-
param: 'organization_id',
|
|
23340
|
-
value: request.organizationId
|
|
23341
|
-
}, {
|
|
23342
23703
|
default: defaults.defaultProjectId,
|
|
23343
23704
|
param: 'project_id',
|
|
23344
23705
|
value: request.projectId
|
|
23706
|
+
}, {
|
|
23707
|
+
default: defaults.defaultOrganizationId,
|
|
23708
|
+
param: 'organization_id',
|
|
23709
|
+
value: request.organizationId
|
|
23345
23710
|
}])
|
|
23346
23711
|
});
|
|
23347
23712
|
const marshalUpdateImageRequest = (request, defaults) => ({
|
|
@@ -23359,7 +23724,7 @@ const jsonContentHeaders$7 = {
|
|
|
23359
23724
|
};
|
|
23360
23725
|
|
|
23361
23726
|
/** Container Registry API. */
|
|
23362
|
-
let API$7 = class API extends API$
|
|
23727
|
+
let API$7 = class API extends API$w {
|
|
23363
23728
|
/** Lists the available regions of the API. */
|
|
23364
23729
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
23365
23730
|
pageOfListNamespaces = (request = {}) => this.client.fetch({
|
|
@@ -23567,7 +23932,7 @@ let API$7 = class API extends API$v {
|
|
|
23567
23932
|
// This file was automatically generated. DO NOT EDIT.
|
|
23568
23933
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
23569
23934
|
|
|
23570
|
-
var index_gen$
|
|
23935
|
+
var index_gen$8 = /*#__PURE__*/Object.freeze({
|
|
23571
23936
|
__proto__: null,
|
|
23572
23937
|
API: API$7,
|
|
23573
23938
|
IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES,
|
|
@@ -23577,7 +23942,7 @@ var index_gen$7 = /*#__PURE__*/Object.freeze({
|
|
|
23577
23942
|
|
|
23578
23943
|
var index$6 = /*#__PURE__*/Object.freeze({
|
|
23579
23944
|
__proto__: null,
|
|
23580
|
-
v1: index_gen$
|
|
23945
|
+
v1: index_gen$8
|
|
23581
23946
|
});
|
|
23582
23947
|
|
|
23583
23948
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -23591,7 +23956,8 @@ const unmarshalFolder = data => {
|
|
|
23591
23956
|
id: data.id,
|
|
23592
23957
|
name: data.name,
|
|
23593
23958
|
path: data.path,
|
|
23594
|
-
projectId: data.project_id
|
|
23959
|
+
projectId: data.project_id,
|
|
23960
|
+
region: data.region
|
|
23595
23961
|
};
|
|
23596
23962
|
};
|
|
23597
23963
|
const unmarshalSecretVersion = data => {
|
|
@@ -23615,6 +23981,8 @@ const unmarshalSecret = data => {
|
|
|
23615
23981
|
return {
|
|
23616
23982
|
createdAt: unmarshalDate(data.created_at),
|
|
23617
23983
|
description: data.description,
|
|
23984
|
+
ephemeralAction: data.ephemeral_action,
|
|
23985
|
+
expiresAt: unmarshalDate(data.expires_at),
|
|
23618
23986
|
id: data.id,
|
|
23619
23987
|
isManaged: data.is_managed,
|
|
23620
23988
|
isProtected: data.is_protected,
|
|
@@ -23687,6 +24055,8 @@ const marshalCreateFolderRequest = (request, defaults) => ({
|
|
|
23687
24055
|
});
|
|
23688
24056
|
const marshalCreateSecretRequest = (request, defaults) => ({
|
|
23689
24057
|
description: request.description,
|
|
24058
|
+
ephemeral_action: request.ephemeralAction,
|
|
24059
|
+
expires_at: request.expiresAt,
|
|
23690
24060
|
name: request.name,
|
|
23691
24061
|
path: request.path,
|
|
23692
24062
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -23738,9 +24108,9 @@ const jsonContentHeaders$6 = {
|
|
|
23738
24108
|
* Secret Manager API. This API allows you to conveniently store, access and
|
|
23739
24109
|
* share sensitive data.
|
|
23740
24110
|
*/
|
|
23741
|
-
let API$6 = class API extends API$
|
|
24111
|
+
let API$6 = class API extends API$w {
|
|
23742
24112
|
/** Lists the available regions of the API. */
|
|
23743
|
-
static LOCALITIES = ['fr-par'];
|
|
24113
|
+
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
23744
24114
|
|
|
23745
24115
|
/**
|
|
23746
24116
|
* Create a secret. You must specify the `region` to create a secret.
|
|
@@ -23816,7 +24186,7 @@ let API$6 = class API extends API$v {
|
|
|
23816
24186
|
pageOfListSecrets = (request = {}) => this.client.fetch({
|
|
23817
24187
|
method: 'GET',
|
|
23818
24188
|
path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`,
|
|
23819
|
-
urlParams: urlParams(['is_managed', request.isManaged], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
|
|
24189
|
+
urlParams: urlParams(['is_ephemeral', request.isEphemeral], ['is_managed', request.isManaged], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
|
|
23820
24190
|
}, unmarshalListSecretsResponse);
|
|
23821
24191
|
|
|
23822
24192
|
/**
|
|
@@ -24090,14 +24460,18 @@ let API$6 = class API extends API$v {
|
|
|
24090
24460
|
// This file was automatically generated. DO NOT EDIT.
|
|
24091
24461
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
24092
24462
|
|
|
24093
|
-
var index_gen$
|
|
24463
|
+
var index_gen$7 = /*#__PURE__*/Object.freeze({
|
|
24094
24464
|
__proto__: null,
|
|
24095
24465
|
API: API$6
|
|
24096
24466
|
});
|
|
24097
24467
|
|
|
24098
24468
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
24099
24469
|
__proto__: null,
|
|
24100
|
-
v1alpha1: index_gen$
|
|
24470
|
+
v1alpha1: index_gen$7
|
|
24471
|
+
});
|
|
24472
|
+
|
|
24473
|
+
var index_gen$6 = /*#__PURE__*/Object.freeze({
|
|
24474
|
+
__proto__: null
|
|
24101
24475
|
});
|
|
24102
24476
|
|
|
24103
24477
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -24159,13 +24533,13 @@ const marshalCreateHumanRequest = (request, defaults) => ({
|
|
|
24159
24533
|
name: request.name,
|
|
24160
24534
|
shoe_size: request.shoeSize,
|
|
24161
24535
|
...resolveOneOf([{
|
|
24162
|
-
default: defaults.defaultOrganizationId,
|
|
24163
|
-
param: 'organization_id',
|
|
24164
|
-
value: request.organizationId
|
|
24165
|
-
}, {
|
|
24166
24536
|
default: defaults.defaultProjectId,
|
|
24167
24537
|
param: 'project_id',
|
|
24168
24538
|
value: request.projectId
|
|
24539
|
+
}, {
|
|
24540
|
+
default: defaults.defaultOrganizationId,
|
|
24541
|
+
param: 'organization_id',
|
|
24542
|
+
value: request.organizationId
|
|
24169
24543
|
}])
|
|
24170
24544
|
});
|
|
24171
24545
|
const marshalRegisterRequest = (request, defaults) => ({
|
|
@@ -24194,7 +24568,7 @@ const jsonContentHeaders$5 = {
|
|
|
24194
24568
|
*
|
|
24195
24569
|
* No Auth Service for end-to-end testing.
|
|
24196
24570
|
*/
|
|
24197
|
-
let API$5 = class API extends API$
|
|
24571
|
+
let API$5 = class API extends API$w {
|
|
24198
24572
|
/**
|
|
24199
24573
|
* Register a user. Register a human and return a access-key and a secret-key
|
|
24200
24574
|
* that must be used in all other commands.
|
|
@@ -24369,6 +24743,18 @@ const unmarshalEmail = data => {
|
|
|
24369
24743
|
updatedAt: unmarshalDate(data.updated_at)
|
|
24370
24744
|
};
|
|
24371
24745
|
};
|
|
24746
|
+
const unmarshalDomainReputation = data => {
|
|
24747
|
+
if (!isJSONObject(data)) {
|
|
24748
|
+
throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
|
|
24749
|
+
}
|
|
24750
|
+
return {
|
|
24751
|
+
previousScore: data.previous_score,
|
|
24752
|
+
previousScoredAt: unmarshalDate(data.previous_scored_at),
|
|
24753
|
+
score: data.score,
|
|
24754
|
+
scoredAt: unmarshalDate(data.scored_at),
|
|
24755
|
+
status: data.status
|
|
24756
|
+
};
|
|
24757
|
+
};
|
|
24372
24758
|
const unmarshalDomainStatistics = data => {
|
|
24373
24759
|
if (!isJSONObject(data)) {
|
|
24374
24760
|
throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
|
|
@@ -24395,6 +24781,7 @@ const unmarshalDomain = data => {
|
|
|
24395
24781
|
organizationId: data.organization_id,
|
|
24396
24782
|
projectId: data.project_id,
|
|
24397
24783
|
region: data.region,
|
|
24784
|
+
reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
|
|
24398
24785
|
revokedAt: unmarshalDate(data.revoked_at),
|
|
24399
24786
|
spfConfig: data.spf_config,
|
|
24400
24787
|
statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : undefined,
|
|
@@ -24505,7 +24892,7 @@ const jsonContentHeaders$4 = {
|
|
|
24505
24892
|
};
|
|
24506
24893
|
|
|
24507
24894
|
/** Transactional Email API. */
|
|
24508
|
-
let API$4 = class API extends API$
|
|
24895
|
+
let API$4 = class API extends API$w {
|
|
24509
24896
|
/** Lists the available regions of the API. */
|
|
24510
24897
|
static LOCALITIES = ['fr-par'];
|
|
24511
24898
|
|
|
@@ -24603,7 +24990,13 @@ let API$4 = class API extends API$v {
|
|
|
24603
24990
|
|
|
24604
24991
|
/**
|
|
24605
24992
|
* Get information about a domain. Retrieve information about a specific
|
|
24606
|
-
* domain using the `region` and `domain_id` parameters.
|
|
24993
|
+
* domain using the `region` and `domain_id` parameters. Monitor your domain's
|
|
24994
|
+
* reputation and improve **average** and **bad** reputation statuses, using
|
|
24995
|
+
* your domain's **Email activity** tab on the [Scaleway
|
|
24996
|
+
* console](https://console.scaleway.com/transactional-email/domains) to get a
|
|
24997
|
+
* more detailed report. Check out our [dedicated
|
|
24998
|
+
* documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/)
|
|
24999
|
+
* to improve your domain's reputation.
|
|
24607
25000
|
*
|
|
24608
25001
|
* @param request - The request {@link GetDomainRequest}
|
|
24609
25002
|
* @returns A Promise of Domain
|
|
@@ -24628,7 +25021,7 @@ let API$4 = class API extends API$v {
|
|
|
24628
25021
|
}, unmarshalListDomainsResponse);
|
|
24629
25022
|
|
|
24630
25023
|
/**
|
|
24631
|
-
* List domains. Retrieve domains in a specific
|
|
25024
|
+
* List domains. Retrieve domains in a specific Project or in a specific
|
|
24632
25025
|
* Organization using the `region` parameter.
|
|
24633
25026
|
*
|
|
24634
25027
|
* @param request - The request {@link ListDomainsRequest}
|
|
@@ -24740,7 +25133,7 @@ const jsonContentHeaders$3 = {
|
|
|
24740
25133
|
};
|
|
24741
25134
|
|
|
24742
25135
|
/** VPC API. */
|
|
24743
|
-
let API$3 = class API extends API$
|
|
25136
|
+
let API$3 = class API extends API$w {
|
|
24744
25137
|
/** Lists the available zones of the API. */
|
|
24745
25138
|
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'];
|
|
24746
25139
|
pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
@@ -24960,7 +25353,7 @@ const jsonContentHeaders$2 = {
|
|
|
24960
25353
|
};
|
|
24961
25354
|
|
|
24962
25355
|
/** VPC API. */
|
|
24963
|
-
let API$2 = class API extends API$
|
|
25356
|
+
let API$2 = class API extends API$w {
|
|
24964
25357
|
/** Lists the available regions of the API. */
|
|
24965
25358
|
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
24966
25359
|
pageOfListVPCs = (request = {}) => this.client.fetch({
|
|
@@ -25223,6 +25616,7 @@ const unmarshalIpamConfig = data => {
|
|
|
25223
25616
|
throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
|
|
25224
25617
|
}
|
|
25225
25618
|
return {
|
|
25619
|
+
ipamIpId: data.ipam_ip_id,
|
|
25226
25620
|
pushDefaultRoute: data.push_default_route
|
|
25227
25621
|
};
|
|
25228
25622
|
};
|
|
@@ -25430,7 +25824,8 @@ const marshalCreateDHCPEntryRequest = (request, defaults) => ({
|
|
|
25430
25824
|
ip_address: request.ipAddress,
|
|
25431
25825
|
mac_address: request.macAddress
|
|
25432
25826
|
});
|
|
25433
|
-
const
|
|
25827
|
+
const marshalCreateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
|
|
25828
|
+
ipam_ip_id: request.ipamIpId,
|
|
25434
25829
|
push_default_route: request.pushDefaultRoute
|
|
25435
25830
|
});
|
|
25436
25831
|
const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
|
|
@@ -25449,7 +25844,7 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
|
|
|
25449
25844
|
value: request.address
|
|
25450
25845
|
}, {
|
|
25451
25846
|
param: 'ipam_config',
|
|
25452
|
-
value: request.ipamConfig !== undefined ?
|
|
25847
|
+
value: request.ipamConfig !== undefined ? marshalCreateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
|
|
25453
25848
|
}])
|
|
25454
25849
|
});
|
|
25455
25850
|
const marshalCreateGatewayRequest = (request, defaults) => ({
|
|
@@ -25510,6 +25905,10 @@ const marshalUpdateDHCPRequest = (request, defaults) => ({
|
|
|
25510
25905
|
subnet: request.subnet,
|
|
25511
25906
|
valid_lifetime: request.validLifetime
|
|
25512
25907
|
});
|
|
25908
|
+
const marshalUpdateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
|
|
25909
|
+
ipam_ip_id: request.ipamIpId,
|
|
25910
|
+
push_default_route: request.pushDefaultRoute
|
|
25911
|
+
});
|
|
25513
25912
|
const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
|
|
25514
25913
|
enable_dhcp: request.enableDhcp,
|
|
25515
25914
|
enable_masquerade: request.enableMasquerade,
|
|
@@ -25521,7 +25920,7 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
|
|
|
25521
25920
|
value: request.address
|
|
25522
25921
|
}, {
|
|
25523
25922
|
param: 'ipam_config',
|
|
25524
|
-
value: request.ipamConfig !== undefined ?
|
|
25923
|
+
value: request.ipamConfig !== undefined ? marshalUpdateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
|
|
25525
25924
|
}])
|
|
25526
25925
|
});
|
|
25527
25926
|
const marshalUpdateGatewayRequest = (request, defaults) => ({
|
|
@@ -25551,7 +25950,7 @@ const jsonContentHeaders$1 = {
|
|
|
25551
25950
|
};
|
|
25552
25951
|
|
|
25553
25952
|
/** Public Gateways API. */
|
|
25554
|
-
let API$1 = class API extends API$
|
|
25953
|
+
let API$1 = class API extends API$w {
|
|
25555
25954
|
/** Lists the available zones of the API. */
|
|
25556
25955
|
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
25557
25956
|
pageOfListGateways = (request = {}) => this.client.fetch({
|
|
@@ -26262,7 +26661,7 @@ const jsonContentHeaders = {
|
|
|
26262
26661
|
};
|
|
26263
26662
|
|
|
26264
26663
|
/** Web Hosting API. */
|
|
26265
|
-
class API extends API$
|
|
26664
|
+
class API extends API$w {
|
|
26266
26665
|
/** Lists the available regions of the API. */
|
|
26267
26666
|
static LOCALITIES = ['fr-par'];
|
|
26268
26667
|
|
|
@@ -26422,24 +26821,25 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26422
26821
|
v1alpha1: index_gen
|
|
26423
26822
|
});
|
|
26424
26823
|
|
|
26425
|
-
exports.API = API$
|
|
26426
|
-
exports.Account = index$
|
|
26427
|
-
exports.AppleSilicon = index$
|
|
26428
|
-
exports.BareMetal = index$
|
|
26429
|
-
exports.Billing = index$
|
|
26430
|
-
exports.Block = index$
|
|
26431
|
-
exports.Cockpit = index$
|
|
26432
|
-
exports.Container = index$
|
|
26433
|
-
exports.DocumentDB = index$
|
|
26434
|
-
exports.Domain = index$
|
|
26435
|
-
exports.Errors = index$
|
|
26436
|
-
exports.FlexibleIP = index$
|
|
26437
|
-
exports.Function = index$
|
|
26438
|
-
exports.IAM = index$
|
|
26439
|
-
exports.IOT = index$
|
|
26440
|
-
exports.IPAM = index$
|
|
26441
|
-
exports.IPFS = index$
|
|
26442
|
-
exports.Instance = index$
|
|
26824
|
+
exports.API = API$w;
|
|
26825
|
+
exports.Account = index$x;
|
|
26826
|
+
exports.AppleSilicon = index$w;
|
|
26827
|
+
exports.BareMetal = index$u;
|
|
26828
|
+
exports.Billing = index$t;
|
|
26829
|
+
exports.Block = index$s;
|
|
26830
|
+
exports.Cockpit = index$r;
|
|
26831
|
+
exports.Container = index$q;
|
|
26832
|
+
exports.DocumentDB = index$p;
|
|
26833
|
+
exports.Domain = index$o;
|
|
26834
|
+
exports.Errors = index$y;
|
|
26835
|
+
exports.FlexibleIP = index$n;
|
|
26836
|
+
exports.Function = index$m;
|
|
26837
|
+
exports.IAM = index$l;
|
|
26838
|
+
exports.IOT = index$i;
|
|
26839
|
+
exports.IPAM = index$h;
|
|
26840
|
+
exports.IPFS = index$g;
|
|
26841
|
+
exports.Instance = index$j;
|
|
26842
|
+
exports.Jobs = index$f;
|
|
26443
26843
|
exports.K8S = index$d;
|
|
26444
26844
|
exports.LB = index$b;
|
|
26445
26845
|
exports.MNQ = index$9;
|
|
@@ -26448,6 +26848,7 @@ exports.RDB = index$8;
|
|
|
26448
26848
|
exports.Redis = index$7;
|
|
26449
26849
|
exports.Registry = index$6;
|
|
26450
26850
|
exports.Secret = index$5;
|
|
26851
|
+
exports.Std = index_gen$6;
|
|
26451
26852
|
exports.Test = index$4;
|
|
26452
26853
|
exports.TransactionalEmail = index$3;
|
|
26453
26854
|
exports.VPC = index$2;
|