@scaleway/sdk 1.35.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/block/v1alpha1/api.gen.js +7 -1
- package/dist/api/block/v1alpha1/marshalling.gen.js +8 -1
- package/dist/api/block/v1alpha1/validation-rules.gen.js +6 -1
- package/dist/api/cockpit/v1beta1/api.gen.js +43 -1
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +22 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/instance/v1/marshalling.gen.js +6 -4
- package/dist/api/ipfs/v1alpha1/api.gen.js +120 -3
- package/dist/api/ipfs/v1alpha1/content.gen.js +4 -1
- package/dist/api/ipfs/v1alpha1/index.gen.js +2 -2
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +56 -1
- package/dist/api/mnq/index.js +2 -0
- package/dist/api/mnq/v1beta1/api.gen.js +516 -0
- package/dist/api/mnq/v1beta1/index.gen.js +6 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +212 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +47 -0
- package/dist/api/rdb/v1/marshalling.gen.js +2 -0
- package/dist/index.cjs +1249 -350
- package/dist/index.d.ts +1803 -682
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.36.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -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$s = {
|
|
2075
2075
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2076
2076
|
};
|
|
2077
2077
|
|
|
@@ -2092,7 +2092,7 @@ let API$t = class API extends API$u {
|
|
|
2092
2092
|
*/
|
|
2093
2093
|
createProject = (request = {}) => this.client.fetch({
|
|
2094
2094
|
body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
|
|
2095
|
-
headers: jsonContentHeaders$
|
|
2095
|
+
headers: jsonContentHeaders$s,
|
|
2096
2096
|
method: 'POST',
|
|
2097
2097
|
path: `/account/v2/projects`
|
|
2098
2098
|
}, unmarshalProject$1);
|
|
@@ -2156,7 +2156,7 @@ let API$t = class API extends API$u {
|
|
|
2156
2156
|
*/
|
|
2157
2157
|
updateProject = (request = {}) => this.client.fetch({
|
|
2158
2158
|
body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
|
|
2159
|
-
headers: jsonContentHeaders$
|
|
2159
|
+
headers: jsonContentHeaders$s,
|
|
2160
2160
|
method: 'PATCH',
|
|
2161
2161
|
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
|
|
2162
2162
|
}, unmarshalProject$1);
|
|
@@ -2165,7 +2165,7 @@ let API$t = class API extends API$u {
|
|
|
2165
2165
|
// This file was automatically generated. DO NOT EDIT.
|
|
2166
2166
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2167
2167
|
|
|
2168
|
-
var index_gen$
|
|
2168
|
+
var index_gen$r = /*#__PURE__*/Object.freeze({
|
|
2169
2169
|
__proto__: null,
|
|
2170
2170
|
API: API$t
|
|
2171
2171
|
});
|
|
@@ -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$r = {
|
|
2210
2210
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2211
2211
|
};
|
|
2212
2212
|
|
|
@@ -2225,7 +2225,7 @@ class ProjectAPI extends API$u {
|
|
|
2225
2225
|
*/
|
|
2226
2226
|
createProject = request => this.client.fetch({
|
|
2227
2227
|
body: JSON.stringify(marshalProjectApiCreateProjectRequest(request, this.client.settings)),
|
|
2228
|
-
headers: jsonContentHeaders$
|
|
2228
|
+
headers: jsonContentHeaders$r,
|
|
2229
2229
|
method: 'POST',
|
|
2230
2230
|
path: `/account/v3/projects`
|
|
2231
2231
|
}, unmarshalProject);
|
|
@@ -2281,7 +2281,7 @@ class ProjectAPI extends API$u {
|
|
|
2281
2281
|
*/
|
|
2282
2282
|
updateProject = (request = {}) => this.client.fetch({
|
|
2283
2283
|
body: JSON.stringify(marshalProjectApiUpdateProjectRequest(request, this.client.settings)),
|
|
2284
|
-
headers: jsonContentHeaders$
|
|
2284
|
+
headers: jsonContentHeaders$r,
|
|
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$9 = /*#__PURE__*/Object.freeze({
|
|
2329
2329
|
__proto__: null,
|
|
2330
2330
|
ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
|
|
2331
2331
|
ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
|
|
@@ -2335,16 +2335,16 @@ var validationRules_gen$8 = /*#__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$q = /*#__PURE__*/Object.freeze({
|
|
2339
2339
|
__proto__: null,
|
|
2340
2340
|
ProjectAPI: ProjectAPI,
|
|
2341
|
-
ValidationRules: validationRules_gen$
|
|
2341
|
+
ValidationRules: validationRules_gen$9
|
|
2342
2342
|
});
|
|
2343
2343
|
|
|
2344
2344
|
var index$v = /*#__PURE__*/Object.freeze({
|
|
2345
2345
|
__proto__: null,
|
|
2346
|
-
v2: index_gen$
|
|
2347
|
-
v3: index_gen$
|
|
2346
|
+
v2: index_gen$r,
|
|
2347
|
+
v3: index_gen$q
|
|
2348
2348
|
});
|
|
2349
2349
|
|
|
2350
2350
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -2463,7 +2463,7 @@ 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$q = {
|
|
2467
2467
|
'Content-Type': 'application/json; charset=utf-8'
|
|
2468
2468
|
};
|
|
2469
2469
|
|
|
@@ -2506,7 +2506,7 @@ let API$s = class API extends API$u {
|
|
|
2506
2506
|
*/
|
|
2507
2507
|
createServer = request => this.client.fetch({
|
|
2508
2508
|
body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
|
|
2509
|
-
headers: jsonContentHeaders$
|
|
2509
|
+
headers: jsonContentHeaders$q,
|
|
2510
2510
|
method: 'POST',
|
|
2511
2511
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
2512
2512
|
}, unmarshalServer$2);
|
|
@@ -2584,7 +2584,7 @@ let API$s = class API extends API$u {
|
|
|
2584
2584
|
*/
|
|
2585
2585
|
updateServer = request => this.client.fetch({
|
|
2586
2586
|
body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
|
|
2587
|
-
headers: jsonContentHeaders$
|
|
2587
|
+
headers: jsonContentHeaders$q,
|
|
2588
2588
|
method: 'PATCH',
|
|
2589
2589
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
2590
2590
|
}, unmarshalServer$2);
|
|
@@ -2611,7 +2611,7 @@ let API$s = class API extends API$u {
|
|
|
2611
2611
|
*/
|
|
2612
2612
|
rebootServer = request => this.client.fetch({
|
|
2613
2613
|
body: '{}',
|
|
2614
|
-
headers: jsonContentHeaders$
|
|
2614
|
+
headers: jsonContentHeaders$q,
|
|
2615
2615
|
method: 'POST',
|
|
2616
2616
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
2617
2617
|
}, unmarshalServer$2);
|
|
@@ -2627,7 +2627,7 @@ let API$s = class API extends API$u {
|
|
|
2627
2627
|
*/
|
|
2628
2628
|
reinstallServer = request => this.client.fetch({
|
|
2629
2629
|
body: '{}',
|
|
2630
|
-
headers: jsonContentHeaders$
|
|
2630
|
+
headers: jsonContentHeaders$q,
|
|
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,7 +2636,7 @@ let API$s = class API extends API$u {
|
|
|
2636
2636
|
// This file was automatically generated. DO NOT EDIT.
|
|
2637
2637
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
2638
2638
|
|
|
2639
|
-
var index_gen$
|
|
2639
|
+
var index_gen$p = /*#__PURE__*/Object.freeze({
|
|
2640
2640
|
__proto__: null,
|
|
2641
2641
|
API: API$s,
|
|
2642
2642
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
|
|
@@ -2644,7 +2644,7 @@ var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
|
2644
2644
|
|
|
2645
2645
|
var index$u = /*#__PURE__*/Object.freeze({
|
|
2646
2646
|
__proto__: null,
|
|
2647
|
-
v1alpha1: index_gen$
|
|
2647
|
+
v1alpha1: index_gen$p
|
|
2648
2648
|
});
|
|
2649
2649
|
|
|
2650
2650
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3062,7 +3062,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
|
|
|
3062
3062
|
|
|
3063
3063
|
// This file was automatically generated. DO NOT EDIT.
|
|
3064
3064
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3065
|
-
const jsonContentHeaders$
|
|
3065
|
+
const jsonContentHeaders$p = {
|
|
3066
3066
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3067
3067
|
};
|
|
3068
3068
|
|
|
@@ -3119,7 +3119,7 @@ let API$r = class API extends API$u {
|
|
|
3119
3119
|
*/
|
|
3120
3120
|
createServer = request => this.client.fetch({
|
|
3121
3121
|
body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
|
|
3122
|
-
headers: jsonContentHeaders$
|
|
3122
|
+
headers: jsonContentHeaders$p,
|
|
3123
3123
|
method: 'POST',
|
|
3124
3124
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
3125
3125
|
}, unmarshalServer$1);
|
|
@@ -3134,7 +3134,7 @@ let API$r = class API extends API$u {
|
|
|
3134
3134
|
*/
|
|
3135
3135
|
updateServer = request => this.client.fetch({
|
|
3136
3136
|
body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
|
|
3137
|
-
headers: jsonContentHeaders$
|
|
3137
|
+
headers: jsonContentHeaders$p,
|
|
3138
3138
|
method: 'PATCH',
|
|
3139
3139
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
3140
3140
|
}, unmarshalServer$1);
|
|
@@ -3148,7 +3148,7 @@ let API$r = class API extends API$u {
|
|
|
3148
3148
|
*/
|
|
3149
3149
|
installServer = request => this.client.fetch({
|
|
3150
3150
|
body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
|
|
3151
|
-
headers: jsonContentHeaders$
|
|
3151
|
+
headers: jsonContentHeaders$p,
|
|
3152
3152
|
method: 'POST',
|
|
3153
3153
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
|
|
3154
3154
|
}, unmarshalServer$1);
|
|
@@ -3186,7 +3186,7 @@ let API$r = class API extends API$u {
|
|
|
3186
3186
|
*/
|
|
3187
3187
|
rebootServer = request => this.client.fetch({
|
|
3188
3188
|
body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
|
|
3189
|
-
headers: jsonContentHeaders$
|
|
3189
|
+
headers: jsonContentHeaders$p,
|
|
3190
3190
|
method: 'POST',
|
|
3191
3191
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
3192
3192
|
}, unmarshalServer$1);
|
|
@@ -3199,7 +3199,7 @@ let API$r = class API extends API$u {
|
|
|
3199
3199
|
*/
|
|
3200
3200
|
startServer = request => this.client.fetch({
|
|
3201
3201
|
body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
|
|
3202
|
-
headers: jsonContentHeaders$
|
|
3202
|
+
headers: jsonContentHeaders$p,
|
|
3203
3203
|
method: 'POST',
|
|
3204
3204
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
|
|
3205
3205
|
}, unmarshalServer$1);
|
|
@@ -3214,7 +3214,7 @@ let API$r = class API extends API$u {
|
|
|
3214
3214
|
*/
|
|
3215
3215
|
stopServer = request => this.client.fetch({
|
|
3216
3216
|
body: '{}',
|
|
3217
|
-
headers: jsonContentHeaders$
|
|
3217
|
+
headers: jsonContentHeaders$p,
|
|
3218
3218
|
method: 'POST',
|
|
3219
3219
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
|
|
3220
3220
|
}, unmarshalServer$1);
|
|
@@ -3252,7 +3252,7 @@ let API$r = class API extends API$u {
|
|
|
3252
3252
|
*/
|
|
3253
3253
|
startBMCAccess = request => this.client.fetch({
|
|
3254
3254
|
body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
|
|
3255
|
-
headers: jsonContentHeaders$
|
|
3255
|
+
headers: jsonContentHeaders$p,
|
|
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$r = class API extends API$u {
|
|
|
3290
3290
|
*/
|
|
3291
3291
|
updateIP = request => this.client.fetch({
|
|
3292
3292
|
body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
|
|
3293
|
-
headers: jsonContentHeaders$
|
|
3293
|
+
headers: jsonContentHeaders$p,
|
|
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$1);
|
|
@@ -3304,7 +3304,7 @@ let API$r = class API extends API$u {
|
|
|
3304
3304
|
*/
|
|
3305
3305
|
addOptionServer = request => this.client.fetch({
|
|
3306
3306
|
body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
|
|
3307
|
-
headers: jsonContentHeaders$
|
|
3307
|
+
headers: jsonContentHeaders$p,
|
|
3308
3308
|
method: 'POST',
|
|
3309
3309
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
|
|
3310
3310
|
}, unmarshalServer$1);
|
|
@@ -3389,7 +3389,7 @@ let API$r = class API extends API$u {
|
|
|
3389
3389
|
*/
|
|
3390
3390
|
updateSetting = request => this.client.fetch({
|
|
3391
3391
|
body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
|
|
3392
|
-
headers: jsonContentHeaders$
|
|
3392
|
+
headers: jsonContentHeaders$p,
|
|
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);
|
|
@@ -3434,7 +3434,7 @@ class PrivateNetworkAPI extends API$u {
|
|
|
3434
3434
|
*/
|
|
3435
3435
|
addServerPrivateNetwork = request => this.client.fetch({
|
|
3436
3436
|
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
3437
|
-
headers: jsonContentHeaders$
|
|
3437
|
+
headers: jsonContentHeaders$p,
|
|
3438
3438
|
method: 'POST',
|
|
3439
3439
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
3440
3440
|
}, unmarshalServerPrivateNetwork);
|
|
@@ -3448,7 +3448,7 @@ class PrivateNetworkAPI extends API$u {
|
|
|
3448
3448
|
*/
|
|
3449
3449
|
setServerPrivateNetworks = request => this.client.fetch({
|
|
3450
3450
|
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
3451
|
-
headers: jsonContentHeaders$
|
|
3451
|
+
headers: jsonContentHeaders$p,
|
|
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);
|
|
@@ -3609,7 +3609,7 @@ const UpdateServerRequest = {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
};
|
|
3611
3611
|
|
|
3612
|
-
var validationRules_gen$
|
|
3612
|
+
var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
|
|
3613
3613
|
__proto__: null,
|
|
3614
3614
|
CreateServerRequest: CreateServerRequest,
|
|
3615
3615
|
CreateServerRequestInstall: CreateServerRequestInstall,
|
|
@@ -3630,7 +3630,7 @@ var index$t = /*#__PURE__*/Object.freeze({
|
|
|
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$8
|
|
3634
3634
|
});
|
|
3635
3635
|
|
|
3636
3636
|
var index$s = /*#__PURE__*/Object.freeze({
|
|
@@ -3739,14 +3739,14 @@ let API$q = class API extends API$u {
|
|
|
3739
3739
|
// This file was automatically generated. DO NOT EDIT.
|
|
3740
3740
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3741
3741
|
|
|
3742
|
-
var index_gen$
|
|
3742
|
+
var index_gen$o = /*#__PURE__*/Object.freeze({
|
|
3743
3743
|
__proto__: null,
|
|
3744
3744
|
API: API$q
|
|
3745
3745
|
});
|
|
3746
3746
|
|
|
3747
3747
|
var index$r = /*#__PURE__*/Object.freeze({
|
|
3748
3748
|
__proto__: null,
|
|
3749
|
-
v2alpha1: index_gen$
|
|
3749
|
+
v2alpha1: index_gen$o
|
|
3750
3750
|
});
|
|
3751
3751
|
|
|
3752
3752
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -3920,6 +3920,13 @@ const marshalCreateVolumeRequest$2 = (request, defaults) => ({
|
|
|
3920
3920
|
value: request.perfIops
|
|
3921
3921
|
}], true)
|
|
3922
3922
|
});
|
|
3923
|
+
const marshalImportSnapshotFromS3Request = (request, defaults) => ({
|
|
3924
|
+
bucket: request.bucket,
|
|
3925
|
+
key: request.key,
|
|
3926
|
+
name: request.name,
|
|
3927
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
3928
|
+
tags: request.tags
|
|
3929
|
+
});
|
|
3923
3930
|
const marshalUpdateSnapshotRequest$2 = (request, defaults) => ({
|
|
3924
3931
|
name: request.name,
|
|
3925
3932
|
tags: request.tags
|
|
@@ -3933,7 +3940,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
|
|
|
3933
3940
|
|
|
3934
3941
|
// This file was automatically generated. DO NOT EDIT.
|
|
3935
3942
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3936
|
-
const jsonContentHeaders$
|
|
3943
|
+
const jsonContentHeaders$o = {
|
|
3937
3944
|
'Content-Type': 'application/json; charset=utf-8'
|
|
3938
3945
|
};
|
|
3939
3946
|
|
|
@@ -3989,7 +3996,7 @@ let API$p = class API extends API$u {
|
|
|
3989
3996
|
*/
|
|
3990
3997
|
createVolume = request => this.client.fetch({
|
|
3991
3998
|
body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
|
|
3992
|
-
headers: jsonContentHeaders$
|
|
3999
|
+
headers: jsonContentHeaders$o,
|
|
3993
4000
|
method: 'POST',
|
|
3994
4001
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
3995
4002
|
}, unmarshalVolume$4);
|
|
@@ -4037,7 +4044,7 @@ let API$p = class API extends API$u {
|
|
|
4037
4044
|
*/
|
|
4038
4045
|
updateVolume = request => this.client.fetch({
|
|
4039
4046
|
body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
|
|
4040
|
-
headers: jsonContentHeaders$
|
|
4047
|
+
headers: jsonContentHeaders$o,
|
|
4041
4048
|
method: 'PATCH',
|
|
4042
4049
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
4043
4050
|
}, unmarshalVolume$4);
|
|
@@ -4089,10 +4096,16 @@ let API$p = class API extends API$u {
|
|
|
4089
4096
|
*/
|
|
4090
4097
|
createSnapshot = request => this.client.fetch({
|
|
4091
4098
|
body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
|
|
4092
|
-
headers: jsonContentHeaders$
|
|
4099
|
+
headers: jsonContentHeaders$o,
|
|
4093
4100
|
method: 'POST',
|
|
4094
4101
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
4095
4102
|
}, unmarshalSnapshot$3);
|
|
4103
|
+
importSnapshotFromS3 = request => this.client.fetch({
|
|
4104
|
+
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
4105
|
+
headers: jsonContentHeaders$o,
|
|
4106
|
+
method: 'POST',
|
|
4107
|
+
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
4108
|
+
}, unmarshalSnapshot$3);
|
|
4096
4109
|
|
|
4097
4110
|
/**
|
|
4098
4111
|
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
@@ -4113,7 +4126,7 @@ let API$p = class API extends API$u {
|
|
|
4113
4126
|
*/
|
|
4114
4127
|
updateSnapshot = request => this.client.fetch({
|
|
4115
4128
|
body: JSON.stringify(marshalUpdateSnapshotRequest$2(request, this.client.settings)),
|
|
4116
|
-
headers: jsonContentHeaders$
|
|
4129
|
+
headers: jsonContentHeaders$o,
|
|
4117
4130
|
method: 'PATCH',
|
|
4118
4131
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
4119
4132
|
}, unmarshalSnapshot$3);
|
|
@@ -4132,6 +4145,11 @@ const CreateVolumeRequest = {
|
|
|
4132
4145
|
minLength: 1
|
|
4133
4146
|
}
|
|
4134
4147
|
};
|
|
4148
|
+
const ImportSnapshotFromS3Request = {
|
|
4149
|
+
name: {
|
|
4150
|
+
minLength: 1
|
|
4151
|
+
}
|
|
4152
|
+
};
|
|
4135
4153
|
const ListSnapshotsRequest = {
|
|
4136
4154
|
page: {
|
|
4137
4155
|
greaterThan: 0
|
|
@@ -4160,10 +4178,11 @@ const ListVolumesRequest = {
|
|
|
4160
4178
|
}
|
|
4161
4179
|
};
|
|
4162
4180
|
|
|
4163
|
-
var validationRules_gen$
|
|
4181
|
+
var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
|
|
4164
4182
|
__proto__: null,
|
|
4165
4183
|
CreateSnapshotRequest: CreateSnapshotRequest,
|
|
4166
4184
|
CreateVolumeRequest: CreateVolumeRequest,
|
|
4185
|
+
ImportSnapshotFromS3Request: ImportSnapshotFromS3Request,
|
|
4167
4186
|
ListSnapshotsRequest: ListSnapshotsRequest,
|
|
4168
4187
|
ListVolumeTypesRequest: ListVolumeTypesRequest,
|
|
4169
4188
|
ListVolumesRequest: ListVolumesRequest
|
|
@@ -4172,18 +4191,18 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
|
4172
4191
|
// This file was automatically generated. DO NOT EDIT.
|
|
4173
4192
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4174
4193
|
|
|
4175
|
-
var index_gen$
|
|
4194
|
+
var index_gen$n = /*#__PURE__*/Object.freeze({
|
|
4176
4195
|
__proto__: null,
|
|
4177
4196
|
API: API$p,
|
|
4178
4197
|
REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
|
|
4179
4198
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
|
|
4180
4199
|
VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
|
|
4181
|
-
ValidationRules: validationRules_gen$
|
|
4200
|
+
ValidationRules: validationRules_gen$7
|
|
4182
4201
|
});
|
|
4183
4202
|
|
|
4184
4203
|
var index$q = /*#__PURE__*/Object.freeze({
|
|
4185
4204
|
__proto__: null,
|
|
4186
|
-
v1alpha1: index_gen$
|
|
4205
|
+
v1alpha1: index_gen$n
|
|
4187
4206
|
});
|
|
4188
4207
|
|
|
4189
4208
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4249,6 +4268,18 @@ const unmarshalDatasource = data => {
|
|
|
4249
4268
|
url: data.url
|
|
4250
4269
|
};
|
|
4251
4270
|
};
|
|
4271
|
+
const unmarshalGrafanaProductDashboard = data => {
|
|
4272
|
+
if (!isJSONObject(data)) {
|
|
4273
|
+
throw new TypeError(`Unmarshalling the type 'GrafanaProductDashboard' failed as data isn't a dictionary.`);
|
|
4274
|
+
}
|
|
4275
|
+
return {
|
|
4276
|
+
dashboardName: data.dashboard_name,
|
|
4277
|
+
tags: data.tags,
|
|
4278
|
+
title: data.title,
|
|
4279
|
+
url: data.url,
|
|
4280
|
+
variables: data.variables
|
|
4281
|
+
};
|
|
4282
|
+
};
|
|
4252
4283
|
const unmarshalGrafanaUser = data => {
|
|
4253
4284
|
if (!isJSONObject(data)) {
|
|
4254
4285
|
throw new TypeError(`Unmarshalling the type 'GrafanaUser' failed as data isn't a dictionary.`);
|
|
@@ -4330,6 +4361,15 @@ const unmarshalListDatasourcesResponse = data => {
|
|
|
4330
4361
|
totalCount: data.total_count
|
|
4331
4362
|
};
|
|
4332
4363
|
};
|
|
4364
|
+
const unmarshalListGrafanaProductDashboardsResponse = data => {
|
|
4365
|
+
if (!isJSONObject(data)) {
|
|
4366
|
+
throw new TypeError(`Unmarshalling the type 'ListGrafanaProductDashboardsResponse' failed as data isn't a dictionary.`);
|
|
4367
|
+
}
|
|
4368
|
+
return {
|
|
4369
|
+
dashboards: unmarshalArrayOfObject(data.dashboards, unmarshalGrafanaProductDashboard),
|
|
4370
|
+
totalCount: data.total_count
|
|
4371
|
+
};
|
|
4372
|
+
};
|
|
4333
4373
|
const unmarshalListGrafanaUsersResponse = data => {
|
|
4334
4374
|
if (!isJSONObject(data)) {
|
|
4335
4375
|
throw new TypeError(`Unmarshalling the type 'ListGrafanaUsersResponse' failed as data isn't a dictionary.`);
|
|
@@ -4437,7 +4477,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
4437
4477
|
|
|
4438
4478
|
// This file was automatically generated. DO NOT EDIT.
|
|
4439
4479
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4440
|
-
const jsonContentHeaders$
|
|
4480
|
+
const jsonContentHeaders$n = {
|
|
4441
4481
|
'Content-Type': 'application/json; charset=utf-8'
|
|
4442
4482
|
};
|
|
4443
4483
|
|
|
@@ -4457,7 +4497,7 @@ let API$o = class API extends API$u {
|
|
|
4457
4497
|
*/
|
|
4458
4498
|
activateCockpit = (request = {}) => this.client.fetch({
|
|
4459
4499
|
body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
|
|
4460
|
-
headers: jsonContentHeaders$
|
|
4500
|
+
headers: jsonContentHeaders$n,
|
|
4461
4501
|
method: 'POST',
|
|
4462
4502
|
path: `/cockpit/v1beta1/activate`
|
|
4463
4503
|
}, unmarshalCockpit);
|
|
@@ -4503,7 +4543,7 @@ let API$o = class API extends API$u {
|
|
|
4503
4543
|
*/
|
|
4504
4544
|
deactivateCockpit = (request = {}) => this.client.fetch({
|
|
4505
4545
|
body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
|
|
4506
|
-
headers: jsonContentHeaders$
|
|
4546
|
+
headers: jsonContentHeaders$n,
|
|
4507
4547
|
method: 'POST',
|
|
4508
4548
|
path: `/cockpit/v1beta1/deactivate`
|
|
4509
4549
|
}, unmarshalCockpit);
|
|
@@ -4516,7 +4556,7 @@ let API$o = class API extends API$u {
|
|
|
4516
4556
|
*/
|
|
4517
4557
|
resetCockpitGrafana = (request = {}) => this.client.fetch({
|
|
4518
4558
|
body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
|
|
4519
|
-
headers: jsonContentHeaders$
|
|
4559
|
+
headers: jsonContentHeaders$n,
|
|
4520
4560
|
method: 'POST',
|
|
4521
4561
|
path: `/cockpit/v1beta1/reset-grafana`
|
|
4522
4562
|
}, unmarshalCockpit);
|
|
@@ -4529,7 +4569,7 @@ let API$o = class API extends API$u {
|
|
|
4529
4569
|
*/
|
|
4530
4570
|
createDatasource = request => this.client.fetch({
|
|
4531
4571
|
body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
|
|
4532
|
-
headers: jsonContentHeaders$
|
|
4572
|
+
headers: jsonContentHeaders$n,
|
|
4533
4573
|
method: 'POST',
|
|
4534
4574
|
path: `/cockpit/v1beta1/datasources`
|
|
4535
4575
|
}, unmarshalDatasource);
|
|
@@ -4555,7 +4595,7 @@ let API$o = class API extends API$u {
|
|
|
4555
4595
|
*/
|
|
4556
4596
|
createToken = (request = {}) => this.client.fetch({
|
|
4557
4597
|
body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
|
|
4558
|
-
headers: jsonContentHeaders$
|
|
4598
|
+
headers: jsonContentHeaders$n,
|
|
4559
4599
|
method: 'POST',
|
|
4560
4600
|
path: `/cockpit/v1beta1/tokens`
|
|
4561
4601
|
}, unmarshalToken$2);
|
|
@@ -4602,7 +4642,7 @@ let API$o = class API extends API$u {
|
|
|
4602
4642
|
*/
|
|
4603
4643
|
createContactPoint = (request = {}) => this.client.fetch({
|
|
4604
4644
|
body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
|
|
4605
|
-
headers: jsonContentHeaders$
|
|
4645
|
+
headers: jsonContentHeaders$n,
|
|
4606
4646
|
method: 'POST',
|
|
4607
4647
|
path: `/cockpit/v1beta1/contact-points`
|
|
4608
4648
|
}, unmarshalContactPoint);
|
|
@@ -4628,7 +4668,7 @@ let API$o = class API extends API$u {
|
|
|
4628
4668
|
*/
|
|
4629
4669
|
deleteContactPoint = (request = {}) => this.client.fetch({
|
|
4630
4670
|
body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
|
|
4631
|
-
headers: jsonContentHeaders$
|
|
4671
|
+
headers: jsonContentHeaders$n,
|
|
4632
4672
|
method: 'POST',
|
|
4633
4673
|
path: `/cockpit/v1beta1/delete-contact-point`
|
|
4634
4674
|
});
|
|
@@ -4640,7 +4680,7 @@ let API$o = class API extends API$u {
|
|
|
4640
4680
|
*/
|
|
4641
4681
|
enableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4642
4682
|
body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
|
|
4643
|
-
headers: jsonContentHeaders$
|
|
4683
|
+
headers: jsonContentHeaders$n,
|
|
4644
4684
|
method: 'POST',
|
|
4645
4685
|
path: `/cockpit/v1beta1/enable-managed-alerts`
|
|
4646
4686
|
});
|
|
@@ -4652,7 +4692,7 @@ let API$o = class API extends API$u {
|
|
|
4652
4692
|
*/
|
|
4653
4693
|
disableManagedAlerts = (request = {}) => this.client.fetch({
|
|
4654
4694
|
body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
|
|
4655
|
-
headers: jsonContentHeaders$
|
|
4695
|
+
headers: jsonContentHeaders$n,
|
|
4656
4696
|
method: 'POST',
|
|
4657
4697
|
path: `/cockpit/v1beta1/disable-managed-alerts`
|
|
4658
4698
|
});
|
|
@@ -4664,7 +4704,7 @@ let API$o = class API extends API$u {
|
|
|
4664
4704
|
*/
|
|
4665
4705
|
triggerTestAlert = (request = {}) => this.client.fetch({
|
|
4666
4706
|
body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
|
|
4667
|
-
headers: jsonContentHeaders$
|
|
4707
|
+
headers: jsonContentHeaders$n,
|
|
4668
4708
|
method: 'POST',
|
|
4669
4709
|
path: `/cockpit/v1beta1/trigger-test-alert`
|
|
4670
4710
|
});
|
|
@@ -4678,7 +4718,7 @@ let API$o = class API extends API$u {
|
|
|
4678
4718
|
*/
|
|
4679
4719
|
createGrafanaUser = request => this.client.fetch({
|
|
4680
4720
|
body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
|
|
4681
|
-
headers: jsonContentHeaders$
|
|
4721
|
+
headers: jsonContentHeaders$n,
|
|
4682
4722
|
method: 'POST',
|
|
4683
4723
|
path: `/cockpit/v1beta1/grafana-users`
|
|
4684
4724
|
}, unmarshalGrafanaUser);
|
|
@@ -4705,7 +4745,7 @@ let API$o = class API extends API$u {
|
|
|
4705
4745
|
*/
|
|
4706
4746
|
deleteGrafanaUser = request => this.client.fetch({
|
|
4707
4747
|
body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
|
|
4708
|
-
headers: jsonContentHeaders$
|
|
4748
|
+
headers: jsonContentHeaders$n,
|
|
4709
4749
|
method: 'POST',
|
|
4710
4750
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
4711
4751
|
});
|
|
@@ -4719,7 +4759,7 @@ let API$o = class API extends API$u {
|
|
|
4719
4759
|
*/
|
|
4720
4760
|
resetGrafanaUserPassword = request => this.client.fetch({
|
|
4721
4761
|
body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
|
|
4722
|
-
headers: jsonContentHeaders$
|
|
4762
|
+
headers: jsonContentHeaders$n,
|
|
4723
4763
|
method: 'POST',
|
|
4724
4764
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
|
|
4725
4765
|
}, unmarshalGrafanaUser);
|
|
@@ -4746,16 +4786,42 @@ let API$o = class API extends API$u {
|
|
|
4746
4786
|
*/
|
|
4747
4787
|
selectPlan = request => this.client.fetch({
|
|
4748
4788
|
body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
|
|
4749
|
-
headers: jsonContentHeaders$
|
|
4789
|
+
headers: jsonContentHeaders$n,
|
|
4750
4790
|
method: 'POST',
|
|
4751
4791
|
path: `/cockpit/v1beta1/select-plan`
|
|
4752
4792
|
}, unmarshalSelectPlanResponse);
|
|
4793
|
+
pageOfListGrafanaProductDashboards = (request = {}) => this.client.fetch({
|
|
4794
|
+
method: 'GET',
|
|
4795
|
+
path: `/cockpit/v1beta1/grafana-product-dashboards`,
|
|
4796
|
+
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['tags', request.tags])
|
|
4797
|
+
}, unmarshalListGrafanaProductDashboardsResponse);
|
|
4798
|
+
|
|
4799
|
+
/**
|
|
4800
|
+
* List product dashboards. Get a list of available product dashboards.
|
|
4801
|
+
*
|
|
4802
|
+
* @param request - The request {@link ListGrafanaProductDashboardsRequest}
|
|
4803
|
+
* @returns A Promise of ListGrafanaProductDashboardsResponse
|
|
4804
|
+
*/
|
|
4805
|
+
listGrafanaProductDashboards = (request = {}) => enrichForPagination('dashboards', this.pageOfListGrafanaProductDashboards, request);
|
|
4806
|
+
|
|
4807
|
+
/**
|
|
4808
|
+
* Get a product dashboard. Get a product dashboard specified by the dashboard
|
|
4809
|
+
* ID.
|
|
4810
|
+
*
|
|
4811
|
+
* @param request - The request {@link GetGrafanaProductDashboardRequest}
|
|
4812
|
+
* @returns A Promise of GrafanaProductDashboard
|
|
4813
|
+
*/
|
|
4814
|
+
getGrafanaProductDashboard = request => this.client.fetch({
|
|
4815
|
+
method: 'GET',
|
|
4816
|
+
path: `/cockpit/v1beta1/grafana-product-dashboards/${validatePathParam('dashboardName', request.dashboardName)}`,
|
|
4817
|
+
urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
4818
|
+
}, unmarshalGrafanaProductDashboard);
|
|
4753
4819
|
};
|
|
4754
4820
|
|
|
4755
4821
|
// This file was automatically generated. DO NOT EDIT.
|
|
4756
4822
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
4757
4823
|
|
|
4758
|
-
var index_gen$
|
|
4824
|
+
var index_gen$m = /*#__PURE__*/Object.freeze({
|
|
4759
4825
|
__proto__: null,
|
|
4760
4826
|
API: API$o,
|
|
4761
4827
|
COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
|
|
@@ -4763,7 +4829,7 @@ var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
|
4763
4829
|
|
|
4764
4830
|
var index$p = /*#__PURE__*/Object.freeze({
|
|
4765
4831
|
__proto__: null,
|
|
4766
|
-
v1beta1: index_gen$
|
|
4832
|
+
v1beta1: index_gen$m
|
|
4767
4833
|
});
|
|
4768
4834
|
|
|
4769
4835
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4805,6 +4871,7 @@ const unmarshalTriggerMnqNatsClientConfig$1 = data => {
|
|
|
4805
4871
|
return {
|
|
4806
4872
|
mnqCredentialId: data.mnq_credential_id,
|
|
4807
4873
|
mnqNamespaceId: data.mnq_namespace_id,
|
|
4874
|
+
mnqNatsAccountId: data.mnq_nats_account_id,
|
|
4808
4875
|
mnqProjectId: data.mnq_project_id,
|
|
4809
4876
|
mnqRegion: data.mnq_region,
|
|
4810
4877
|
subject: data.subject
|
|
@@ -5141,7 +5208,7 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
|
|
|
5141
5208
|
|
|
5142
5209
|
// This file was automatically generated. DO NOT EDIT.
|
|
5143
5210
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5144
|
-
const jsonContentHeaders$
|
|
5211
|
+
const jsonContentHeaders$m = {
|
|
5145
5212
|
'Content-Type': 'application/json; charset=utf-8'
|
|
5146
5213
|
};
|
|
5147
5214
|
|
|
@@ -5191,7 +5258,7 @@ let API$n = class API extends API$u {
|
|
|
5191
5258
|
*/
|
|
5192
5259
|
createNamespace = (request = {}) => this.client.fetch({
|
|
5193
5260
|
body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
|
|
5194
|
-
headers: jsonContentHeaders$
|
|
5261
|
+
headers: jsonContentHeaders$m,
|
|
5195
5262
|
method: 'POST',
|
|
5196
5263
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
5197
5264
|
}, unmarshalNamespace$3);
|
|
@@ -5205,7 +5272,7 @@ let API$n = class API extends API$u {
|
|
|
5205
5272
|
*/
|
|
5206
5273
|
updateNamespace = request => this.client.fetch({
|
|
5207
5274
|
body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
|
|
5208
|
-
headers: jsonContentHeaders$
|
|
5275
|
+
headers: jsonContentHeaders$m,
|
|
5209
5276
|
method: 'PATCH',
|
|
5210
5277
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
5211
5278
|
}, unmarshalNamespace$3);
|
|
@@ -5263,7 +5330,7 @@ let API$n = class API extends API$u {
|
|
|
5263
5330
|
*/
|
|
5264
5331
|
createContainer = request => this.client.fetch({
|
|
5265
5332
|
body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
|
|
5266
|
-
headers: jsonContentHeaders$
|
|
5333
|
+
headers: jsonContentHeaders$m,
|
|
5267
5334
|
method: 'POST',
|
|
5268
5335
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
|
|
5269
5336
|
}, unmarshalContainer);
|
|
@@ -5277,7 +5344,7 @@ let API$n = class API extends API$u {
|
|
|
5277
5344
|
*/
|
|
5278
5345
|
updateContainer = request => this.client.fetch({
|
|
5279
5346
|
body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
|
|
5280
|
-
headers: jsonContentHeaders$
|
|
5347
|
+
headers: jsonContentHeaders$m,
|
|
5281
5348
|
method: 'PATCH',
|
|
5282
5349
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
|
|
5283
5350
|
}, unmarshalContainer);
|
|
@@ -5301,7 +5368,7 @@ let API$n = class API extends API$u {
|
|
|
5301
5368
|
*/
|
|
5302
5369
|
deployContainer = request => this.client.fetch({
|
|
5303
5370
|
body: '{}',
|
|
5304
|
-
headers: jsonContentHeaders$
|
|
5371
|
+
headers: jsonContentHeaders$m,
|
|
5305
5372
|
method: 'POST',
|
|
5306
5373
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
|
|
5307
5374
|
}, unmarshalContainer);
|
|
@@ -5347,7 +5414,7 @@ let API$n = class API extends API$u {
|
|
|
5347
5414
|
*/
|
|
5348
5415
|
createCron = request => this.client.fetch({
|
|
5349
5416
|
body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
|
|
5350
|
-
headers: jsonContentHeaders$
|
|
5417
|
+
headers: jsonContentHeaders$m,
|
|
5351
5418
|
method: 'POST',
|
|
5352
5419
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
5353
5420
|
}, unmarshalCron$1);
|
|
@@ -5360,7 +5427,7 @@ let API$n = class API extends API$u {
|
|
|
5360
5427
|
*/
|
|
5361
5428
|
updateCron = request => this.client.fetch({
|
|
5362
5429
|
body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
|
|
5363
|
-
headers: jsonContentHeaders$
|
|
5430
|
+
headers: jsonContentHeaders$m,
|
|
5364
5431
|
method: 'PATCH',
|
|
5365
5432
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
5366
5433
|
}, unmarshalCron$1);
|
|
@@ -5434,7 +5501,7 @@ let API$n = class API extends API$u {
|
|
|
5434
5501
|
*/
|
|
5435
5502
|
createDomain = request => this.client.fetch({
|
|
5436
5503
|
body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
|
|
5437
|
-
headers: jsonContentHeaders$
|
|
5504
|
+
headers: jsonContentHeaders$m,
|
|
5438
5505
|
method: 'POST',
|
|
5439
5506
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
5440
5507
|
}, unmarshalDomain$3);
|
|
@@ -5476,7 +5543,7 @@ let API$n = class API extends API$u {
|
|
|
5476
5543
|
*/
|
|
5477
5544
|
createToken = (request = {}) => this.client.fetch({
|
|
5478
5545
|
body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
|
|
5479
|
-
headers: jsonContentHeaders$
|
|
5546
|
+
headers: jsonContentHeaders$m,
|
|
5480
5547
|
method: 'POST',
|
|
5481
5548
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
5482
5549
|
}, unmarshalToken$1);
|
|
@@ -5534,7 +5601,7 @@ let API$n = class API extends API$u {
|
|
|
5534
5601
|
*/
|
|
5535
5602
|
createTrigger = request => this.client.fetch({
|
|
5536
5603
|
body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
|
|
5537
|
-
headers: jsonContentHeaders$
|
|
5604
|
+
headers: jsonContentHeaders$m,
|
|
5538
5605
|
method: 'POST',
|
|
5539
5606
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
5540
5607
|
}, unmarshalTrigger$1);
|
|
@@ -5591,7 +5658,7 @@ let API$n = class API extends API$u {
|
|
|
5591
5658
|
*/
|
|
5592
5659
|
updateTrigger = request => this.client.fetch({
|
|
5593
5660
|
body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
|
|
5594
|
-
headers: jsonContentHeaders$
|
|
5661
|
+
headers: jsonContentHeaders$m,
|
|
5595
5662
|
method: 'PATCH',
|
|
5596
5663
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
5597
5664
|
}, unmarshalTrigger$1);
|
|
@@ -5611,7 +5678,7 @@ let API$n = class API extends API$u {
|
|
|
5611
5678
|
// This file was automatically generated. DO NOT EDIT.
|
|
5612
5679
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5613
5680
|
|
|
5614
|
-
var index_gen$
|
|
5681
|
+
var index_gen$l = /*#__PURE__*/Object.freeze({
|
|
5615
5682
|
__proto__: null,
|
|
5616
5683
|
API: API$n,
|
|
5617
5684
|
CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
|
|
@@ -5624,7 +5691,7 @@ var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
|
5624
5691
|
|
|
5625
5692
|
var index$o = /*#__PURE__*/Object.freeze({
|
|
5626
5693
|
__proto__: null,
|
|
5627
|
-
v1beta1: index_gen$
|
|
5694
|
+
v1beta1: index_gen$l
|
|
5628
5695
|
});
|
|
5629
5696
|
|
|
5630
5697
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -6277,7 +6344,7 @@ const marshalUpgradeInstanceRequest$1 = (request, defaults) => ({
|
|
|
6277
6344
|
|
|
6278
6345
|
// This file was automatically generated. DO NOT EDIT.
|
|
6279
6346
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6280
|
-
const jsonContentHeaders$
|
|
6347
|
+
const jsonContentHeaders$l = {
|
|
6281
6348
|
'Content-Type': 'application/json; charset=utf-8'
|
|
6282
6349
|
};
|
|
6283
6350
|
|
|
@@ -6326,7 +6393,7 @@ let API$m = class API extends API$u {
|
|
|
6326
6393
|
*/
|
|
6327
6394
|
upgradeInstance = request => this.client.fetch({
|
|
6328
6395
|
body: JSON.stringify(marshalUpgradeInstanceRequest$1(request, this.client.settings)),
|
|
6329
|
-
headers: jsonContentHeaders$
|
|
6396
|
+
headers: jsonContentHeaders$l,
|
|
6330
6397
|
method: 'POST',
|
|
6331
6398
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
|
|
6332
6399
|
}, unmarshalInstance$2);
|
|
@@ -6384,7 +6451,7 @@ let API$m = class API extends API$u {
|
|
|
6384
6451
|
*/
|
|
6385
6452
|
createInstance = request => this.client.fetch({
|
|
6386
6453
|
body: JSON.stringify(marshalCreateInstanceRequest$1(request, this.client.settings)),
|
|
6387
|
-
headers: jsonContentHeaders$
|
|
6454
|
+
headers: jsonContentHeaders$l,
|
|
6388
6455
|
method: 'POST',
|
|
6389
6456
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
|
|
6390
6457
|
}, unmarshalInstance$2);
|
|
@@ -6398,7 +6465,7 @@ let API$m = class API extends API$u {
|
|
|
6398
6465
|
*/
|
|
6399
6466
|
updateInstance = request => this.client.fetch({
|
|
6400
6467
|
body: JSON.stringify(marshalUpdateInstanceRequest$1(request, this.client.settings)),
|
|
6401
|
-
headers: jsonContentHeaders$
|
|
6468
|
+
headers: jsonContentHeaders$l,
|
|
6402
6469
|
method: 'PATCH',
|
|
6403
6470
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
|
|
6404
6471
|
}, unmarshalInstance$2);
|
|
@@ -6429,7 +6496,7 @@ let API$m = class API extends API$u {
|
|
|
6429
6496
|
*/
|
|
6430
6497
|
cloneInstance = request => this.client.fetch({
|
|
6431
6498
|
body: JSON.stringify(marshalCloneInstanceRequest$1(request, this.client.settings)),
|
|
6432
|
-
headers: jsonContentHeaders$
|
|
6499
|
+
headers: jsonContentHeaders$l,
|
|
6433
6500
|
method: 'POST',
|
|
6434
6501
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
|
|
6435
6502
|
}, unmarshalInstance$2);
|
|
@@ -6444,7 +6511,7 @@ let API$m = class API extends API$u {
|
|
|
6444
6511
|
*/
|
|
6445
6512
|
restartInstance = request => this.client.fetch({
|
|
6446
6513
|
body: '{}',
|
|
6447
|
-
headers: jsonContentHeaders$
|
|
6514
|
+
headers: jsonContentHeaders$l,
|
|
6448
6515
|
method: 'POST',
|
|
6449
6516
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
|
|
6450
6517
|
}, unmarshalInstance$2);
|
|
@@ -6475,7 +6542,7 @@ let API$m = class API extends API$u {
|
|
|
6475
6542
|
*/
|
|
6476
6543
|
renewInstanceCertificate = request => this.client.fetch({
|
|
6477
6544
|
body: '{}',
|
|
6478
|
-
headers: jsonContentHeaders$
|
|
6545
|
+
headers: jsonContentHeaders$l,
|
|
6479
6546
|
method: 'POST',
|
|
6480
6547
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
|
|
6481
6548
|
});
|
|
@@ -6504,7 +6571,7 @@ let API$m = class API extends API$u {
|
|
|
6504
6571
|
*/
|
|
6505
6572
|
createReadReplica = request => this.client.fetch({
|
|
6506
6573
|
body: JSON.stringify(marshalCreateReadReplicaRequest$1(request, this.client.settings)),
|
|
6507
|
-
headers: jsonContentHeaders$
|
|
6574
|
+
headers: jsonContentHeaders$l,
|
|
6508
6575
|
method: 'POST',
|
|
6509
6576
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
|
|
6510
6577
|
}, unmarshalReadReplica$1);
|
|
@@ -6556,7 +6623,7 @@ let API$m = class API extends API$u {
|
|
|
6556
6623
|
*/
|
|
6557
6624
|
resetReadReplica = request => this.client.fetch({
|
|
6558
6625
|
body: '{}',
|
|
6559
|
-
headers: jsonContentHeaders$
|
|
6626
|
+
headers: jsonContentHeaders$l,
|
|
6560
6627
|
method: 'POST',
|
|
6561
6628
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
|
|
6562
6629
|
}, unmarshalReadReplica$1);
|
|
@@ -6570,7 +6637,7 @@ let API$m = class API extends API$u {
|
|
|
6570
6637
|
*/
|
|
6571
6638
|
promoteReadReplica = request => this.client.fetch({
|
|
6572
6639
|
body: '{}',
|
|
6573
|
-
headers: jsonContentHeaders$
|
|
6640
|
+
headers: jsonContentHeaders$l,
|
|
6574
6641
|
method: 'POST',
|
|
6575
6642
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
|
|
6576
6643
|
}, unmarshalInstance$2);
|
|
@@ -6585,7 +6652,7 @@ let API$m = class API extends API$u {
|
|
|
6585
6652
|
*/
|
|
6586
6653
|
createReadReplicaEndpoint = request => this.client.fetch({
|
|
6587
6654
|
body: JSON.stringify(marshalCreateReadReplicaEndpointRequest$1(request, this.client.settings)),
|
|
6588
|
-
headers: jsonContentHeaders$
|
|
6655
|
+
headers: jsonContentHeaders$l,
|
|
6589
6656
|
method: 'POST',
|
|
6590
6657
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
|
|
6591
6658
|
}, unmarshalReadReplica$1);
|
|
@@ -6637,7 +6704,7 @@ let API$m = class API extends API$u {
|
|
|
6637
6704
|
*/
|
|
6638
6705
|
purgeInstanceLogs = request => this.client.fetch({
|
|
6639
6706
|
body: JSON.stringify(marshalPurgeInstanceLogsRequest$1(request, this.client.settings)),
|
|
6640
|
-
headers: jsonContentHeaders$
|
|
6707
|
+
headers: jsonContentHeaders$l,
|
|
6641
6708
|
method: 'POST',
|
|
6642
6709
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
|
|
6643
6710
|
});
|
|
@@ -6665,7 +6732,7 @@ let API$m = class API extends API$u {
|
|
|
6665
6732
|
*/
|
|
6666
6733
|
addInstanceSettings = request => this.client.fetch({
|
|
6667
6734
|
body: JSON.stringify(marshalAddInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6668
|
-
headers: jsonContentHeaders$
|
|
6735
|
+
headers: jsonContentHeaders$l,
|
|
6669
6736
|
method: 'POST',
|
|
6670
6737
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6671
6738
|
}, unmarshalAddInstanceSettingsResponse$1);
|
|
@@ -6680,7 +6747,7 @@ let API$m = class API extends API$u {
|
|
|
6680
6747
|
*/
|
|
6681
6748
|
deleteInstanceSettings = request => this.client.fetch({
|
|
6682
6749
|
body: JSON.stringify(marshalDeleteInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6683
|
-
headers: jsonContentHeaders$
|
|
6750
|
+
headers: jsonContentHeaders$l,
|
|
6684
6751
|
method: 'DELETE',
|
|
6685
6752
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6686
6753
|
}, unmarshalDeleteInstanceSettingsResponse$1);
|
|
@@ -6695,7 +6762,7 @@ let API$m = class API extends API$u {
|
|
|
6695
6762
|
*/
|
|
6696
6763
|
setInstanceSettings = request => this.client.fetch({
|
|
6697
6764
|
body: JSON.stringify(marshalSetInstanceSettingsRequest$1(request, this.client.settings)),
|
|
6698
|
-
headers: jsonContentHeaders$
|
|
6765
|
+
headers: jsonContentHeaders$l,
|
|
6699
6766
|
method: 'PUT',
|
|
6700
6767
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
|
|
6701
6768
|
}, unmarshalSetInstanceSettingsResponse$1);
|
|
@@ -6725,7 +6792,7 @@ let API$m = class API extends API$u {
|
|
|
6725
6792
|
*/
|
|
6726
6793
|
addInstanceACLRules = request => this.client.fetch({
|
|
6727
6794
|
body: JSON.stringify(marshalAddInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6728
|
-
headers: jsonContentHeaders$
|
|
6795
|
+
headers: jsonContentHeaders$l,
|
|
6729
6796
|
method: 'POST',
|
|
6730
6797
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6731
6798
|
}, unmarshalAddInstanceACLRulesResponse$1);
|
|
@@ -6739,7 +6806,7 @@ let API$m = class API extends API$u {
|
|
|
6739
6806
|
*/
|
|
6740
6807
|
setInstanceACLRules = request => this.client.fetch({
|
|
6741
6808
|
body: JSON.stringify(marshalSetInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6742
|
-
headers: jsonContentHeaders$
|
|
6809
|
+
headers: jsonContentHeaders$l,
|
|
6743
6810
|
method: 'PUT',
|
|
6744
6811
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6745
6812
|
}, unmarshalSetInstanceACLRulesResponse$1);
|
|
@@ -6753,7 +6820,7 @@ let API$m = class API extends API$u {
|
|
|
6753
6820
|
*/
|
|
6754
6821
|
deleteInstanceACLRules = request => this.client.fetch({
|
|
6755
6822
|
body: JSON.stringify(marshalDeleteInstanceACLRulesRequest$1(request, this.client.settings)),
|
|
6756
|
-
headers: jsonContentHeaders$
|
|
6823
|
+
headers: jsonContentHeaders$l,
|
|
6757
6824
|
method: 'DELETE',
|
|
6758
6825
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
|
|
6759
6826
|
}, unmarshalDeleteInstanceACLRulesResponse$1);
|
|
@@ -6784,7 +6851,7 @@ let API$m = class API extends API$u {
|
|
|
6784
6851
|
*/
|
|
6785
6852
|
createUser = request => this.client.fetch({
|
|
6786
6853
|
body: JSON.stringify(marshalCreateUserRequest$2(request, this.client.settings)),
|
|
6787
|
-
headers: jsonContentHeaders$
|
|
6854
|
+
headers: jsonContentHeaders$l,
|
|
6788
6855
|
method: 'POST',
|
|
6789
6856
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
|
|
6790
6857
|
}, unmarshalUser$2);
|
|
@@ -6799,7 +6866,7 @@ let API$m = class API extends API$u {
|
|
|
6799
6866
|
*/
|
|
6800
6867
|
updateUser = request => this.client.fetch({
|
|
6801
6868
|
body: JSON.stringify(marshalUpdateUserRequest$1(request, this.client.settings)),
|
|
6802
|
-
headers: jsonContentHeaders$
|
|
6869
|
+
headers: jsonContentHeaders$l,
|
|
6803
6870
|
method: 'PATCH',
|
|
6804
6871
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
|
|
6805
6872
|
}, unmarshalUser$2);
|
|
@@ -6842,7 +6909,7 @@ let API$m = class API extends API$u {
|
|
|
6842
6909
|
*/
|
|
6843
6910
|
createDatabase = request => this.client.fetch({
|
|
6844
6911
|
body: JSON.stringify(marshalCreateDatabaseRequest$1(request, this.client.settings)),
|
|
6845
|
-
headers: jsonContentHeaders$
|
|
6912
|
+
headers: jsonContentHeaders$l,
|
|
6846
6913
|
method: 'POST',
|
|
6847
6914
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
|
|
6848
6915
|
}, unmarshalDatabase$1);
|
|
@@ -6886,7 +6953,7 @@ let API$m = class API extends API$u {
|
|
|
6886
6953
|
*/
|
|
6887
6954
|
setPrivilege = request => this.client.fetch({
|
|
6888
6955
|
body: JSON.stringify(marshalSetPrivilegeRequest$1(request, this.client.settings)),
|
|
6889
|
-
headers: jsonContentHeaders$
|
|
6956
|
+
headers: jsonContentHeaders$l,
|
|
6890
6957
|
method: 'PUT',
|
|
6891
6958
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
|
|
6892
6959
|
}, unmarshalPrivilege$1);
|
|
@@ -6939,7 +7006,7 @@ let API$m = class API extends API$u {
|
|
|
6939
7006
|
*/
|
|
6940
7007
|
createSnapshot = request => this.client.fetch({
|
|
6941
7008
|
body: JSON.stringify(marshalCreateSnapshotRequest$2(request, this.client.settings)),
|
|
6942
|
-
headers: jsonContentHeaders$
|
|
7009
|
+
headers: jsonContentHeaders$l,
|
|
6943
7010
|
method: 'POST',
|
|
6944
7011
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
|
|
6945
7012
|
}, unmarshalSnapshot$2);
|
|
@@ -6954,7 +7021,7 @@ let API$m = class API extends API$u {
|
|
|
6954
7021
|
*/
|
|
6955
7022
|
updateSnapshot = request => this.client.fetch({
|
|
6956
7023
|
body: JSON.stringify(marshalUpdateSnapshotRequest$1(request, this.client.settings)),
|
|
6957
|
-
headers: jsonContentHeaders$
|
|
7024
|
+
headers: jsonContentHeaders$l,
|
|
6958
7025
|
method: 'PATCH',
|
|
6959
7026
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
6960
7027
|
}, unmarshalSnapshot$2);
|
|
@@ -6987,7 +7054,7 @@ let API$m = class API extends API$u {
|
|
|
6987
7054
|
*/
|
|
6988
7055
|
createInstanceFromSnapshot = request => this.client.fetch({
|
|
6989
7056
|
body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest$1(request, this.client.settings)),
|
|
6990
|
-
headers: jsonContentHeaders$
|
|
7057
|
+
headers: jsonContentHeaders$l,
|
|
6991
7058
|
method: 'POST',
|
|
6992
7059
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
|
|
6993
7060
|
}, unmarshalInstance$2);
|
|
@@ -7002,7 +7069,7 @@ let API$m = class API extends API$u {
|
|
|
7002
7069
|
*/
|
|
7003
7070
|
createEndpoint = request => this.client.fetch({
|
|
7004
7071
|
body: JSON.stringify(marshalCreateEndpointRequest$1(request, this.client.settings)),
|
|
7005
|
-
headers: jsonContentHeaders$
|
|
7072
|
+
headers: jsonContentHeaders$l,
|
|
7006
7073
|
method: 'POST',
|
|
7007
7074
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
|
|
7008
7075
|
}, unmarshalEndpoint$2);
|
|
@@ -7043,7 +7110,7 @@ let API$m = class API extends API$u {
|
|
|
7043
7110
|
*/
|
|
7044
7111
|
migrateEndpoint = request => this.client.fetch({
|
|
7045
7112
|
body: JSON.stringify(marshalMigrateEndpointRequest$1(request, this.client.settings)),
|
|
7046
|
-
headers: jsonContentHeaders$
|
|
7113
|
+
headers: jsonContentHeaders$l,
|
|
7047
7114
|
method: 'POST',
|
|
7048
7115
|
path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
|
|
7049
7116
|
}, unmarshalEndpoint$2);
|
|
@@ -7058,7 +7125,7 @@ const UpdateInstanceRequest$1 = {
|
|
|
7058
7125
|
}
|
|
7059
7126
|
};
|
|
7060
7127
|
|
|
7061
|
-
var validationRules_gen$
|
|
7128
|
+
var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
|
|
7062
7129
|
__proto__: null,
|
|
7063
7130
|
UpdateInstanceRequest: UpdateInstanceRequest$1
|
|
7064
7131
|
});
|
|
@@ -7066,7 +7133,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
7066
7133
|
// This file was automatically generated. DO NOT EDIT.
|
|
7067
7134
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7068
7135
|
|
|
7069
|
-
var index_gen$
|
|
7136
|
+
var index_gen$k = /*#__PURE__*/Object.freeze({
|
|
7070
7137
|
__proto__: null,
|
|
7071
7138
|
API: API$m,
|
|
7072
7139
|
INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
|
|
@@ -7074,12 +7141,12 @@ var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
|
7074
7141
|
MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
|
|
7075
7142
|
READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES$1,
|
|
7076
7143
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$2,
|
|
7077
|
-
ValidationRules: validationRules_gen$
|
|
7144
|
+
ValidationRules: validationRules_gen$6
|
|
7078
7145
|
});
|
|
7079
7146
|
|
|
7080
7147
|
var index$n = /*#__PURE__*/Object.freeze({
|
|
7081
7148
|
__proto__: null,
|
|
7082
|
-
v1beta1: index_gen$
|
|
7149
|
+
v1beta1: index_gen$k
|
|
7083
7150
|
});
|
|
7084
7151
|
|
|
7085
7152
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -8278,7 +8345,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
|
8278
8345
|
|
|
8279
8346
|
// This file was automatically generated. DO NOT EDIT.
|
|
8280
8347
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
8281
|
-
const jsonContentHeaders$
|
|
8348
|
+
const jsonContentHeaders$k = {
|
|
8282
8349
|
'Content-Type': 'application/json; charset=utf-8'
|
|
8283
8350
|
};
|
|
8284
8351
|
|
|
@@ -8313,7 +8380,7 @@ let API$l = class API extends API$u {
|
|
|
8313
8380
|
*/
|
|
8314
8381
|
createDNSZone = request => this.client.fetch({
|
|
8315
8382
|
body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
|
|
8316
|
-
headers: jsonContentHeaders$
|
|
8383
|
+
headers: jsonContentHeaders$k,
|
|
8317
8384
|
method: 'POST',
|
|
8318
8385
|
path: `/domain/v2beta1/dns-zones`
|
|
8319
8386
|
}, unmarshalDNSZone);
|
|
@@ -8326,7 +8393,7 @@ let API$l = class API extends API$u {
|
|
|
8326
8393
|
*/
|
|
8327
8394
|
updateDNSZone = request => this.client.fetch({
|
|
8328
8395
|
body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
|
|
8329
|
-
headers: jsonContentHeaders$
|
|
8396
|
+
headers: jsonContentHeaders$k,
|
|
8330
8397
|
method: 'PATCH',
|
|
8331
8398
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
|
|
8332
8399
|
}, unmarshalDNSZone);
|
|
@@ -8340,7 +8407,7 @@ let API$l = class API extends API$u {
|
|
|
8340
8407
|
*/
|
|
8341
8408
|
cloneDNSZone = request => this.client.fetch({
|
|
8342
8409
|
body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
|
|
8343
|
-
headers: jsonContentHeaders$
|
|
8410
|
+
headers: jsonContentHeaders$k,
|
|
8344
8411
|
method: 'POST',
|
|
8345
8412
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
|
|
8346
8413
|
}, unmarshalDNSZone);
|
|
@@ -8393,7 +8460,7 @@ let API$l = class API extends API$u {
|
|
|
8393
8460
|
*/
|
|
8394
8461
|
updateDNSZoneRecords = request => this.client.fetch({
|
|
8395
8462
|
body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
|
|
8396
|
-
headers: jsonContentHeaders$
|
|
8463
|
+
headers: jsonContentHeaders$k,
|
|
8397
8464
|
method: 'PATCH',
|
|
8398
8465
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
|
|
8399
8466
|
}, unmarshalUpdateDNSZoneRecordsResponse);
|
|
@@ -8420,7 +8487,7 @@ let API$l = class API extends API$u {
|
|
|
8420
8487
|
*/
|
|
8421
8488
|
updateDNSZoneNameservers = request => this.client.fetch({
|
|
8422
8489
|
body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
|
|
8423
|
-
headers: jsonContentHeaders$
|
|
8490
|
+
headers: jsonContentHeaders$k,
|
|
8424
8491
|
method: 'PUT',
|
|
8425
8492
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
|
|
8426
8493
|
}, unmarshalUpdateDNSZoneNameserversResponse);
|
|
@@ -8460,7 +8527,7 @@ let API$l = class API extends API$u {
|
|
|
8460
8527
|
*/
|
|
8461
8528
|
importRawDNSZone = request => this.client.fetch({
|
|
8462
8529
|
body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
|
|
8463
|
-
headers: jsonContentHeaders$
|
|
8530
|
+
headers: jsonContentHeaders$k,
|
|
8464
8531
|
method: 'POST',
|
|
8465
8532
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
|
|
8466
8533
|
}, unmarshalImportRawDNSZoneResponse);
|
|
@@ -8474,7 +8541,7 @@ let API$l = class API extends API$u {
|
|
|
8474
8541
|
*/
|
|
8475
8542
|
importProviderDNSZone = request => this.client.fetch({
|
|
8476
8543
|
body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
|
|
8477
|
-
headers: jsonContentHeaders$
|
|
8544
|
+
headers: jsonContentHeaders$k,
|
|
8478
8545
|
method: 'POST',
|
|
8479
8546
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
|
|
8480
8547
|
}, unmarshalImportProviderDNSZoneResponse);
|
|
@@ -8489,7 +8556,7 @@ let API$l = class API extends API$u {
|
|
|
8489
8556
|
*/
|
|
8490
8557
|
refreshDNSZone = request => this.client.fetch({
|
|
8491
8558
|
body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
|
|
8492
|
-
headers: jsonContentHeaders$
|
|
8559
|
+
headers: jsonContentHeaders$k,
|
|
8493
8560
|
method: 'POST',
|
|
8494
8561
|
path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
|
|
8495
8562
|
}, unmarshalRefreshDNSZoneResponse);
|
|
@@ -8544,7 +8611,7 @@ let API$l = class API extends API$u {
|
|
|
8544
8611
|
*/
|
|
8545
8612
|
restoreDNSZoneVersion = request => this.client.fetch({
|
|
8546
8613
|
body: '{}',
|
|
8547
|
-
headers: jsonContentHeaders$
|
|
8614
|
+
headers: jsonContentHeaders$k,
|
|
8548
8615
|
method: 'POST',
|
|
8549
8616
|
path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
|
|
8550
8617
|
}, unmarshalRestoreDNSZoneVersionResponse);
|
|
@@ -8579,7 +8646,7 @@ let API$l = class API extends API$u {
|
|
|
8579
8646
|
*/
|
|
8580
8647
|
createSSLCertificate = request => this.client.fetch({
|
|
8581
8648
|
body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
|
|
8582
|
-
headers: jsonContentHeaders$
|
|
8649
|
+
headers: jsonContentHeaders$k,
|
|
8583
8650
|
method: 'POST',
|
|
8584
8651
|
path: `/domain/v2beta1/ssl-certificates`
|
|
8585
8652
|
}, unmarshalSSLCertificate);
|
|
@@ -8665,7 +8732,7 @@ class RegistrarAPI extends API$u {
|
|
|
8665
8732
|
*/
|
|
8666
8733
|
buyDomains = request => this.client.fetch({
|
|
8667
8734
|
body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
|
|
8668
|
-
headers: jsonContentHeaders$
|
|
8735
|
+
headers: jsonContentHeaders$k,
|
|
8669
8736
|
method: 'POST',
|
|
8670
8737
|
path: `/domain/v2beta1/buy-domains`
|
|
8671
8738
|
}, unmarshalOrderResponse);
|
|
@@ -8678,7 +8745,7 @@ class RegistrarAPI extends API$u {
|
|
|
8678
8745
|
*/
|
|
8679
8746
|
renewDomains = request => this.client.fetch({
|
|
8680
8747
|
body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
|
|
8681
|
-
headers: jsonContentHeaders$
|
|
8748
|
+
headers: jsonContentHeaders$k,
|
|
8682
8749
|
method: 'POST',
|
|
8683
8750
|
path: `/domain/v2beta1/renew-domains`
|
|
8684
8751
|
}, unmarshalOrderResponse);
|
|
@@ -8692,7 +8759,7 @@ class RegistrarAPI extends API$u {
|
|
|
8692
8759
|
*/
|
|
8693
8760
|
transferInDomain = request => this.client.fetch({
|
|
8694
8761
|
body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
|
|
8695
|
-
headers: jsonContentHeaders$
|
|
8762
|
+
headers: jsonContentHeaders$k,
|
|
8696
8763
|
method: 'POST',
|
|
8697
8764
|
path: `/domain/v2beta1/domains/transfer-domains`
|
|
8698
8765
|
}, unmarshalOrderResponse);
|
|
@@ -8712,7 +8779,7 @@ class RegistrarAPI extends API$u {
|
|
|
8712
8779
|
*/
|
|
8713
8780
|
tradeDomain = request => this.client.fetch({
|
|
8714
8781
|
body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
|
|
8715
|
-
headers: jsonContentHeaders$
|
|
8782
|
+
headers: jsonContentHeaders$k,
|
|
8716
8783
|
method: 'POST',
|
|
8717
8784
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
|
|
8718
8785
|
}, unmarshalOrderResponse);
|
|
@@ -8727,7 +8794,7 @@ class RegistrarAPI extends API$u {
|
|
|
8727
8794
|
*/
|
|
8728
8795
|
registerExternalDomain = request => this.client.fetch({
|
|
8729
8796
|
body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
|
|
8730
|
-
headers: jsonContentHeaders$
|
|
8797
|
+
headers: jsonContentHeaders$k,
|
|
8731
8798
|
method: 'POST',
|
|
8732
8799
|
path: `/domain/v2beta1/external-domains`
|
|
8733
8800
|
}, unmarshalRegisterExternalDomainResponse);
|
|
@@ -8755,7 +8822,7 @@ class RegistrarAPI extends API$u {
|
|
|
8755
8822
|
*/
|
|
8756
8823
|
checkContactsCompatibility = (request = {}) => this.client.fetch({
|
|
8757
8824
|
body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
|
|
8758
|
-
headers: jsonContentHeaders$
|
|
8825
|
+
headers: jsonContentHeaders$k,
|
|
8759
8826
|
method: 'POST',
|
|
8760
8827
|
path: `/domain/v2beta1/check-contacts-compatibility`
|
|
8761
8828
|
}, unmarshalCheckContactsCompatibilityResponse);
|
|
@@ -8794,7 +8861,7 @@ class RegistrarAPI extends API$u {
|
|
|
8794
8861
|
*/
|
|
8795
8862
|
updateContact = request => this.client.fetch({
|
|
8796
8863
|
body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
|
|
8797
|
-
headers: jsonContentHeaders$
|
|
8864
|
+
headers: jsonContentHeaders$k,
|
|
8798
8865
|
method: 'PATCH',
|
|
8799
8866
|
path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
|
|
8800
8867
|
}, unmarshalContact);
|
|
@@ -8859,7 +8926,7 @@ class RegistrarAPI extends API$u {
|
|
|
8859
8926
|
*/
|
|
8860
8927
|
updateDomain = request => this.client.fetch({
|
|
8861
8928
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
|
|
8862
|
-
headers: jsonContentHeaders$
|
|
8929
|
+
headers: jsonContentHeaders$k,
|
|
8863
8930
|
method: 'PATCH',
|
|
8864
8931
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
|
|
8865
8932
|
}, unmarshalDomain$2);
|
|
@@ -8874,7 +8941,7 @@ class RegistrarAPI extends API$u {
|
|
|
8874
8941
|
*/
|
|
8875
8942
|
lockDomainTransfer = request => this.client.fetch({
|
|
8876
8943
|
body: '{}',
|
|
8877
|
-
headers: jsonContentHeaders$
|
|
8944
|
+
headers: jsonContentHeaders$k,
|
|
8878
8945
|
method: 'POST',
|
|
8879
8946
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
|
|
8880
8947
|
}, unmarshalDomain$2);
|
|
@@ -8889,7 +8956,7 @@ class RegistrarAPI extends API$u {
|
|
|
8889
8956
|
*/
|
|
8890
8957
|
unlockDomainTransfer = request => this.client.fetch({
|
|
8891
8958
|
body: '{}',
|
|
8892
|
-
headers: jsonContentHeaders$
|
|
8959
|
+
headers: jsonContentHeaders$k,
|
|
8893
8960
|
method: 'POST',
|
|
8894
8961
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
|
|
8895
8962
|
}, unmarshalDomain$2);
|
|
@@ -8904,7 +8971,7 @@ class RegistrarAPI extends API$u {
|
|
|
8904
8971
|
*/
|
|
8905
8972
|
enableDomainAutoRenew = request => this.client.fetch({
|
|
8906
8973
|
body: '{}',
|
|
8907
|
-
headers: jsonContentHeaders$
|
|
8974
|
+
headers: jsonContentHeaders$k,
|
|
8908
8975
|
method: 'POST',
|
|
8909
8976
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
|
|
8910
8977
|
}, unmarshalDomain$2);
|
|
@@ -8919,7 +8986,7 @@ class RegistrarAPI extends API$u {
|
|
|
8919
8986
|
*/
|
|
8920
8987
|
disableDomainAutoRenew = request => this.client.fetch({
|
|
8921
8988
|
body: '{}',
|
|
8922
|
-
headers: jsonContentHeaders$
|
|
8989
|
+
headers: jsonContentHeaders$k,
|
|
8923
8990
|
method: 'POST',
|
|
8924
8991
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
|
|
8925
8992
|
}, unmarshalDomain$2);
|
|
@@ -8948,7 +9015,7 @@ class RegistrarAPI extends API$u {
|
|
|
8948
9015
|
*/
|
|
8949
9016
|
enableDomainDNSSEC = request => this.client.fetch({
|
|
8950
9017
|
body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
|
|
8951
|
-
headers: jsonContentHeaders$
|
|
9018
|
+
headers: jsonContentHeaders$k,
|
|
8952
9019
|
method: 'POST',
|
|
8953
9020
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
|
|
8954
9021
|
}, unmarshalDomain$2);
|
|
@@ -8961,7 +9028,7 @@ class RegistrarAPI extends API$u {
|
|
|
8961
9028
|
*/
|
|
8962
9029
|
disableDomainDNSSEC = request => this.client.fetch({
|
|
8963
9030
|
body: '{}',
|
|
8964
|
-
headers: jsonContentHeaders$
|
|
9031
|
+
headers: jsonContentHeaders$k,
|
|
8965
9032
|
method: 'POST',
|
|
8966
9033
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
|
|
8967
9034
|
}, unmarshalDomain$2);
|
|
@@ -9005,7 +9072,7 @@ class RegistrarAPI extends API$u {
|
|
|
9005
9072
|
*/
|
|
9006
9073
|
createDomainHost = request => this.client.fetch({
|
|
9007
9074
|
body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
|
|
9008
|
-
headers: jsonContentHeaders$
|
|
9075
|
+
headers: jsonContentHeaders$k,
|
|
9009
9076
|
method: 'POST',
|
|
9010
9077
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
|
|
9011
9078
|
}, unmarshalHost);
|
|
@@ -9031,7 +9098,7 @@ class RegistrarAPI extends API$u {
|
|
|
9031
9098
|
*/
|
|
9032
9099
|
updateDomainHost = request => this.client.fetch({
|
|
9033
9100
|
body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
|
|
9034
|
-
headers: jsonContentHeaders$
|
|
9101
|
+
headers: jsonContentHeaders$k,
|
|
9035
9102
|
method: 'PATCH',
|
|
9036
9103
|
path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
|
|
9037
9104
|
}, unmarshalHost);
|
|
@@ -9051,7 +9118,7 @@ class RegistrarAPI extends API$u {
|
|
|
9051
9118
|
// This file was automatically generated. DO NOT EDIT.
|
|
9052
9119
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9053
9120
|
|
|
9054
|
-
var index_gen$
|
|
9121
|
+
var index_gen$j = /*#__PURE__*/Object.freeze({
|
|
9055
9122
|
__proto__: null,
|
|
9056
9123
|
API: API$l,
|
|
9057
9124
|
DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
|
|
@@ -9066,7 +9133,7 @@ var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
|
9066
9133
|
|
|
9067
9134
|
var index$m = /*#__PURE__*/Object.freeze({
|
|
9068
9135
|
__proto__: null,
|
|
9069
|
-
v2beta1: index_gen$
|
|
9136
|
+
v2beta1: index_gen$j
|
|
9070
9137
|
});
|
|
9071
9138
|
|
|
9072
9139
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9173,7 +9240,7 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
|
|
|
9173
9240
|
|
|
9174
9241
|
// This file was automatically generated. DO NOT EDIT.
|
|
9175
9242
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9176
|
-
const jsonContentHeaders$
|
|
9243
|
+
const jsonContentHeaders$j = {
|
|
9177
9244
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9178
9245
|
};
|
|
9179
9246
|
|
|
@@ -9191,7 +9258,7 @@ let API$k = class API extends API$u {
|
|
|
9191
9258
|
*/
|
|
9192
9259
|
createFlexibleIP = request => this.client.fetch({
|
|
9193
9260
|
body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
|
|
9194
|
-
headers: jsonContentHeaders$
|
|
9261
|
+
headers: jsonContentHeaders$j,
|
|
9195
9262
|
method: 'POST',
|
|
9196
9263
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
|
|
9197
9264
|
}, unmarshalFlexibleIP);
|
|
@@ -9241,7 +9308,7 @@ let API$k = class API extends API$u {
|
|
|
9241
9308
|
*/
|
|
9242
9309
|
updateFlexibleIP = request => this.client.fetch({
|
|
9243
9310
|
body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
|
|
9244
|
-
headers: jsonContentHeaders$
|
|
9311
|
+
headers: jsonContentHeaders$j,
|
|
9245
9312
|
method: 'PATCH',
|
|
9246
9313
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
|
|
9247
9314
|
}, unmarshalFlexibleIP);
|
|
@@ -9267,7 +9334,7 @@ let API$k = class API extends API$u {
|
|
|
9267
9334
|
*/
|
|
9268
9335
|
attachFlexibleIP = request => this.client.fetch({
|
|
9269
9336
|
body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
|
|
9270
|
-
headers: jsonContentHeaders$
|
|
9337
|
+
headers: jsonContentHeaders$j,
|
|
9271
9338
|
method: 'POST',
|
|
9272
9339
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
|
|
9273
9340
|
}, unmarshalAttachFlexibleIPsResponse);
|
|
@@ -9281,7 +9348,7 @@ let API$k = class API extends API$u {
|
|
|
9281
9348
|
*/
|
|
9282
9349
|
detachFlexibleIP = request => this.client.fetch({
|
|
9283
9350
|
body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
|
|
9284
|
-
headers: jsonContentHeaders$
|
|
9351
|
+
headers: jsonContentHeaders$j,
|
|
9285
9352
|
method: 'POST',
|
|
9286
9353
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
|
|
9287
9354
|
}, unmarshalDetachFlexibleIPsResponse);
|
|
@@ -9295,7 +9362,7 @@ let API$k = class API extends API$u {
|
|
|
9295
9362
|
*/
|
|
9296
9363
|
generateMACAddr = request => this.client.fetch({
|
|
9297
9364
|
body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
|
|
9298
|
-
headers: jsonContentHeaders$
|
|
9365
|
+
headers: jsonContentHeaders$j,
|
|
9299
9366
|
method: 'POST',
|
|
9300
9367
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
|
|
9301
9368
|
}, unmarshalFlexibleIP);
|
|
@@ -9310,7 +9377,7 @@ let API$k = class API extends API$u {
|
|
|
9310
9377
|
*/
|
|
9311
9378
|
duplicateMACAddr = request => this.client.fetch({
|
|
9312
9379
|
body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
|
|
9313
|
-
headers: jsonContentHeaders$
|
|
9380
|
+
headers: jsonContentHeaders$j,
|
|
9314
9381
|
method: 'POST',
|
|
9315
9382
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
|
|
9316
9383
|
}, unmarshalFlexibleIP);
|
|
@@ -9325,7 +9392,7 @@ let API$k = class API extends API$u {
|
|
|
9325
9392
|
*/
|
|
9326
9393
|
moveMACAddr = request => this.client.fetch({
|
|
9327
9394
|
body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
|
|
9328
|
-
headers: jsonContentHeaders$
|
|
9395
|
+
headers: jsonContentHeaders$j,
|
|
9329
9396
|
method: 'POST',
|
|
9330
9397
|
path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
|
|
9331
9398
|
}, unmarshalFlexibleIP);
|
|
@@ -9355,7 +9422,7 @@ const ListFlexibleIPsRequest = {
|
|
|
9355
9422
|
}
|
|
9356
9423
|
};
|
|
9357
9424
|
|
|
9358
|
-
var validationRules_gen$
|
|
9425
|
+
var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
9359
9426
|
__proto__: null,
|
|
9360
9427
|
ListFlexibleIPsRequest: ListFlexibleIPsRequest
|
|
9361
9428
|
});
|
|
@@ -9363,17 +9430,17 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
|
9363
9430
|
// This file was automatically generated. DO NOT EDIT.
|
|
9364
9431
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9365
9432
|
|
|
9366
|
-
var index_gen$
|
|
9433
|
+
var index_gen$i = /*#__PURE__*/Object.freeze({
|
|
9367
9434
|
__proto__: null,
|
|
9368
9435
|
API: API$k,
|
|
9369
9436
|
FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
|
|
9370
9437
|
MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
|
|
9371
|
-
ValidationRules: validationRules_gen$
|
|
9438
|
+
ValidationRules: validationRules_gen$5
|
|
9372
9439
|
});
|
|
9373
9440
|
|
|
9374
9441
|
var index$l = /*#__PURE__*/Object.freeze({
|
|
9375
9442
|
__proto__: null,
|
|
9376
|
-
v1alpha1: index_gen$
|
|
9443
|
+
v1alpha1: index_gen$i
|
|
9377
9444
|
});
|
|
9378
9445
|
|
|
9379
9446
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -9415,6 +9482,7 @@ const unmarshalTriggerMnqNatsClientConfig = data => {
|
|
|
9415
9482
|
return {
|
|
9416
9483
|
mnqCredentialId: data.mnq_credential_id,
|
|
9417
9484
|
mnqNamespaceId: data.mnq_namespace_id,
|
|
9485
|
+
mnqNatsAccountId: data.mnq_nats_account_id,
|
|
9418
9486
|
mnqProjectId: data.mnq_project_id,
|
|
9419
9487
|
mnqRegion: data.mnq_region,
|
|
9420
9488
|
subject: data.subject
|
|
@@ -9789,7 +9857,7 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
|
|
|
9789
9857
|
|
|
9790
9858
|
// This file was automatically generated. DO NOT EDIT.
|
|
9791
9859
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9792
|
-
const jsonContentHeaders$
|
|
9860
|
+
const jsonContentHeaders$i = {
|
|
9793
9861
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9794
9862
|
};
|
|
9795
9863
|
|
|
@@ -9841,7 +9909,7 @@ let API$j = class API extends API$u {
|
|
|
9841
9909
|
*/
|
|
9842
9910
|
createNamespace = (request = {}) => this.client.fetch({
|
|
9843
9911
|
body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
|
|
9844
|
-
headers: jsonContentHeaders$
|
|
9912
|
+
headers: jsonContentHeaders$i,
|
|
9845
9913
|
method: 'POST',
|
|
9846
9914
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
9847
9915
|
}, unmarshalNamespace$2);
|
|
@@ -9855,7 +9923,7 @@ let API$j = class API extends API$u {
|
|
|
9855
9923
|
*/
|
|
9856
9924
|
updateNamespace = request => this.client.fetch({
|
|
9857
9925
|
body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
|
|
9858
|
-
headers: jsonContentHeaders$
|
|
9926
|
+
headers: jsonContentHeaders$i,
|
|
9859
9927
|
method: 'PATCH',
|
|
9860
9928
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
|
|
9861
9929
|
}, unmarshalNamespace$2);
|
|
@@ -9914,7 +9982,7 @@ let API$j = class API extends API$u {
|
|
|
9914
9982
|
*/
|
|
9915
9983
|
createFunction = request => this.client.fetch({
|
|
9916
9984
|
body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
|
|
9917
|
-
headers: jsonContentHeaders$
|
|
9985
|
+
headers: jsonContentHeaders$i,
|
|
9918
9986
|
method: 'POST',
|
|
9919
9987
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
|
|
9920
9988
|
}, unmarshalFunction);
|
|
@@ -9928,7 +9996,7 @@ let API$j = class API extends API$u {
|
|
|
9928
9996
|
*/
|
|
9929
9997
|
updateFunction = request => this.client.fetch({
|
|
9930
9998
|
body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
|
|
9931
|
-
headers: jsonContentHeaders$
|
|
9999
|
+
headers: jsonContentHeaders$i,
|
|
9932
10000
|
method: 'PATCH',
|
|
9933
10001
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
|
|
9934
10002
|
}, unmarshalFunction);
|
|
@@ -9952,7 +10020,7 @@ let API$j = class API extends API$u {
|
|
|
9952
10020
|
*/
|
|
9953
10021
|
deployFunction = request => this.client.fetch({
|
|
9954
10022
|
body: '{}',
|
|
9955
|
-
headers: jsonContentHeaders$
|
|
10023
|
+
headers: jsonContentHeaders$i,
|
|
9956
10024
|
method: 'POST',
|
|
9957
10025
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
|
|
9958
10026
|
}, unmarshalFunction);
|
|
@@ -10035,7 +10103,7 @@ let API$j = class API extends API$u {
|
|
|
10035
10103
|
*/
|
|
10036
10104
|
createCron = request => this.client.fetch({
|
|
10037
10105
|
body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
|
|
10038
|
-
headers: jsonContentHeaders$
|
|
10106
|
+
headers: jsonContentHeaders$i,
|
|
10039
10107
|
method: 'POST',
|
|
10040
10108
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
|
|
10041
10109
|
}, unmarshalCron);
|
|
@@ -10048,7 +10116,7 @@ let API$j = class API extends API$u {
|
|
|
10048
10116
|
*/
|
|
10049
10117
|
updateCron = request => this.client.fetch({
|
|
10050
10118
|
body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
|
|
10051
|
-
headers: jsonContentHeaders$
|
|
10119
|
+
headers: jsonContentHeaders$i,
|
|
10052
10120
|
method: 'PATCH',
|
|
10053
10121
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
|
|
10054
10122
|
}, unmarshalCron);
|
|
@@ -10122,7 +10190,7 @@ let API$j = class API extends API$u {
|
|
|
10122
10190
|
*/
|
|
10123
10191
|
createDomain = request => this.client.fetch({
|
|
10124
10192
|
body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
|
|
10125
|
-
headers: jsonContentHeaders$
|
|
10193
|
+
headers: jsonContentHeaders$i,
|
|
10126
10194
|
method: 'POST',
|
|
10127
10195
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
|
|
10128
10196
|
}, unmarshalDomain$1);
|
|
@@ -10164,7 +10232,7 @@ let API$j = class API extends API$u {
|
|
|
10164
10232
|
*/
|
|
10165
10233
|
createToken = (request = {}) => this.client.fetch({
|
|
10166
10234
|
body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
|
|
10167
|
-
headers: jsonContentHeaders$
|
|
10235
|
+
headers: jsonContentHeaders$i,
|
|
10168
10236
|
method: 'POST',
|
|
10169
10237
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
|
|
10170
10238
|
}, unmarshalToken);
|
|
@@ -10214,7 +10282,7 @@ let API$j = class API extends API$u {
|
|
|
10214
10282
|
}, unmarshalToken);
|
|
10215
10283
|
createTrigger = request => this.client.fetch({
|
|
10216
10284
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
10217
|
-
headers: jsonContentHeaders$
|
|
10285
|
+
headers: jsonContentHeaders$i,
|
|
10218
10286
|
method: 'POST',
|
|
10219
10287
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
10220
10288
|
}, unmarshalTrigger);
|
|
@@ -10249,7 +10317,7 @@ let API$j = class API extends API$u {
|
|
|
10249
10317
|
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
10250
10318
|
updateTrigger = request => this.client.fetch({
|
|
10251
10319
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
10252
|
-
headers: jsonContentHeaders$
|
|
10320
|
+
headers: jsonContentHeaders$i,
|
|
10253
10321
|
method: 'PATCH',
|
|
10254
10322
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
10255
10323
|
}, unmarshalTrigger);
|
|
@@ -10262,7 +10330,7 @@ let API$j = class API extends API$u {
|
|
|
10262
10330
|
// This file was automatically generated. DO NOT EDIT.
|
|
10263
10331
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10264
10332
|
|
|
10265
|
-
var index_gen$
|
|
10333
|
+
var index_gen$h = /*#__PURE__*/Object.freeze({
|
|
10266
10334
|
__proto__: null,
|
|
10267
10335
|
API: API$j,
|
|
10268
10336
|
CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
|
|
@@ -10275,7 +10343,7 @@ var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
|
10275
10343
|
|
|
10276
10344
|
var index$k = /*#__PURE__*/Object.freeze({
|
|
10277
10345
|
__proto__: null,
|
|
10278
|
-
v1beta1: index_gen$
|
|
10346
|
+
v1beta1: index_gen$h
|
|
10279
10347
|
});
|
|
10280
10348
|
|
|
10281
10349
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -10658,7 +10726,7 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
10658
10726
|
|
|
10659
10727
|
// This file was automatically generated. DO NOT EDIT.
|
|
10660
10728
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
10661
|
-
const jsonContentHeaders$
|
|
10729
|
+
const jsonContentHeaders$h = {
|
|
10662
10730
|
'Content-Type': 'application/json; charset=utf-8'
|
|
10663
10731
|
};
|
|
10664
10732
|
|
|
@@ -10690,7 +10758,7 @@ let API$i = class API extends API$u {
|
|
|
10690
10758
|
*/
|
|
10691
10759
|
createSSHKey = request => this.client.fetch({
|
|
10692
10760
|
body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
|
|
10693
|
-
headers: jsonContentHeaders$
|
|
10761
|
+
headers: jsonContentHeaders$h,
|
|
10694
10762
|
method: 'POST',
|
|
10695
10763
|
path: `/iam/v1alpha1/ssh-keys`
|
|
10696
10764
|
}, unmarshalSSHKey);
|
|
@@ -10717,7 +10785,7 @@ let API$i = class API extends API$u {
|
|
|
10717
10785
|
*/
|
|
10718
10786
|
updateSSHKey = request => this.client.fetch({
|
|
10719
10787
|
body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
|
|
10720
|
-
headers: jsonContentHeaders$
|
|
10788
|
+
headers: jsonContentHeaders$h,
|
|
10721
10789
|
method: 'PATCH',
|
|
10722
10790
|
path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
|
|
10723
10791
|
}, unmarshalSSHKey);
|
|
@@ -10787,7 +10855,7 @@ let API$i = class API extends API$u {
|
|
|
10787
10855
|
*/
|
|
10788
10856
|
createUser = request => this.client.fetch({
|
|
10789
10857
|
body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
|
|
10790
|
-
headers: jsonContentHeaders$
|
|
10858
|
+
headers: jsonContentHeaders$h,
|
|
10791
10859
|
method: 'POST',
|
|
10792
10860
|
path: `/iam/v1alpha1/users`
|
|
10793
10861
|
}, unmarshalUser$1);
|
|
@@ -10819,7 +10887,7 @@ let API$i = class API extends API$u {
|
|
|
10819
10887
|
*/
|
|
10820
10888
|
createApplication = request => this.client.fetch({
|
|
10821
10889
|
body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
|
|
10822
|
-
headers: jsonContentHeaders$
|
|
10890
|
+
headers: jsonContentHeaders$h,
|
|
10823
10891
|
method: 'POST',
|
|
10824
10892
|
path: `/iam/v1alpha1/applications`
|
|
10825
10893
|
}, unmarshalApplication);
|
|
@@ -10847,7 +10915,7 @@ let API$i = class API extends API$u {
|
|
|
10847
10915
|
*/
|
|
10848
10916
|
updateApplication = request => this.client.fetch({
|
|
10849
10917
|
body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
|
|
10850
|
-
headers: jsonContentHeaders$
|
|
10918
|
+
headers: jsonContentHeaders$h,
|
|
10851
10919
|
method: 'PATCH',
|
|
10852
10920
|
path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
|
|
10853
10921
|
}, unmarshalApplication);
|
|
@@ -10891,7 +10959,7 @@ let API$i = class API extends API$u {
|
|
|
10891
10959
|
*/
|
|
10892
10960
|
createGroup = request => this.client.fetch({
|
|
10893
10961
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
10894
|
-
headers: jsonContentHeaders$
|
|
10962
|
+
headers: jsonContentHeaders$h,
|
|
10895
10963
|
method: 'POST',
|
|
10896
10964
|
path: `/iam/v1alpha1/groups`
|
|
10897
10965
|
}, unmarshalGroup);
|
|
@@ -10918,7 +10986,7 @@ let API$i = class API extends API$u {
|
|
|
10918
10986
|
*/
|
|
10919
10987
|
updateGroup = request => this.client.fetch({
|
|
10920
10988
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
10921
|
-
headers: jsonContentHeaders$
|
|
10989
|
+
headers: jsonContentHeaders$h,
|
|
10922
10990
|
method: 'PATCH',
|
|
10923
10991
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
|
|
10924
10992
|
}, unmarshalGroup);
|
|
@@ -10933,7 +11001,7 @@ let API$i = class API extends API$u {
|
|
|
10933
11001
|
*/
|
|
10934
11002
|
setGroupMembers = request => this.client.fetch({
|
|
10935
11003
|
body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
|
|
10936
|
-
headers: jsonContentHeaders$
|
|
11004
|
+
headers: jsonContentHeaders$h,
|
|
10937
11005
|
method: 'PUT',
|
|
10938
11006
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
|
|
10939
11007
|
}, unmarshalGroup);
|
|
@@ -10948,7 +11016,7 @@ let API$i = class API extends API$u {
|
|
|
10948
11016
|
*/
|
|
10949
11017
|
addGroupMember = request => this.client.fetch({
|
|
10950
11018
|
body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
|
|
10951
|
-
headers: jsonContentHeaders$
|
|
11019
|
+
headers: jsonContentHeaders$h,
|
|
10952
11020
|
method: 'POST',
|
|
10953
11021
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
10954
11022
|
}, unmarshalGroup);
|
|
@@ -10966,7 +11034,7 @@ let API$i = class API extends API$u {
|
|
|
10966
11034
|
*/
|
|
10967
11035
|
addGroupMembers = request => this.client.fetch({
|
|
10968
11036
|
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
10969
|
-
headers: jsonContentHeaders$
|
|
11037
|
+
headers: jsonContentHeaders$h,
|
|
10970
11038
|
method: 'POST',
|
|
10971
11039
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
10972
11040
|
}, unmarshalGroup);
|
|
@@ -10985,7 +11053,7 @@ let API$i = class API extends API$u {
|
|
|
10985
11053
|
*/
|
|
10986
11054
|
removeGroupMember = request => this.client.fetch({
|
|
10987
11055
|
body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
|
|
10988
|
-
headers: jsonContentHeaders$
|
|
11056
|
+
headers: jsonContentHeaders$h,
|
|
10989
11057
|
method: 'POST',
|
|
10990
11058
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
|
|
10991
11059
|
}, unmarshalGroup);
|
|
@@ -11031,7 +11099,7 @@ let API$i = class API extends API$u {
|
|
|
11031
11099
|
*/
|
|
11032
11100
|
createPolicy = request => this.client.fetch({
|
|
11033
11101
|
body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
|
|
11034
|
-
headers: jsonContentHeaders$
|
|
11102
|
+
headers: jsonContentHeaders$h,
|
|
11035
11103
|
method: 'POST',
|
|
11036
11104
|
path: `/iam/v1alpha1/policies`
|
|
11037
11105
|
}, unmarshalPolicy);
|
|
@@ -11060,7 +11128,7 @@ let API$i = class API extends API$u {
|
|
|
11060
11128
|
*/
|
|
11061
11129
|
updatePolicy = request => this.client.fetch({
|
|
11062
11130
|
body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
|
|
11063
|
-
headers: jsonContentHeaders$
|
|
11131
|
+
headers: jsonContentHeaders$h,
|
|
11064
11132
|
method: 'PATCH',
|
|
11065
11133
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
|
|
11066
11134
|
}, unmarshalPolicy);
|
|
@@ -11087,7 +11155,7 @@ let API$i = class API extends API$u {
|
|
|
11087
11155
|
*/
|
|
11088
11156
|
clonePolicy = request => this.client.fetch({
|
|
11089
11157
|
body: '{}',
|
|
11090
|
-
headers: jsonContentHeaders$
|
|
11158
|
+
headers: jsonContentHeaders$h,
|
|
11091
11159
|
method: 'POST',
|
|
11092
11160
|
path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
|
|
11093
11161
|
}, unmarshalPolicy);
|
|
@@ -11105,7 +11173,7 @@ let API$i = class API extends API$u {
|
|
|
11105
11173
|
*/
|
|
11106
11174
|
setRules = request => this.client.fetch({
|
|
11107
11175
|
body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
|
|
11108
|
-
headers: jsonContentHeaders$
|
|
11176
|
+
headers: jsonContentHeaders$h,
|
|
11109
11177
|
method: 'PUT',
|
|
11110
11178
|
path: `/iam/v1alpha1/rules`
|
|
11111
11179
|
}, unmarshalSetRulesResponse);
|
|
@@ -11176,7 +11244,7 @@ let API$i = class API extends API$u {
|
|
|
11176
11244
|
*/
|
|
11177
11245
|
createAPIKey = request => this.client.fetch({
|
|
11178
11246
|
body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
|
|
11179
|
-
headers: jsonContentHeaders$
|
|
11247
|
+
headers: jsonContentHeaders$h,
|
|
11180
11248
|
method: 'POST',
|
|
11181
11249
|
path: `/iam/v1alpha1/api-keys`
|
|
11182
11250
|
}, unmarshalAPIKey);
|
|
@@ -11206,7 +11274,7 @@ let API$i = class API extends API$u {
|
|
|
11206
11274
|
*/
|
|
11207
11275
|
updateAPIKey = request => this.client.fetch({
|
|
11208
11276
|
body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
|
|
11209
|
-
headers: jsonContentHeaders$
|
|
11277
|
+
headers: jsonContentHeaders$h,
|
|
11210
11278
|
method: 'PATCH',
|
|
11211
11279
|
path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
|
|
11212
11280
|
}, unmarshalAPIKey);
|
|
@@ -11495,7 +11563,7 @@ const UpdateSSHKeyRequest = {
|
|
|
11495
11563
|
}
|
|
11496
11564
|
};
|
|
11497
11565
|
|
|
11498
|
-
var validationRules_gen$
|
|
11566
|
+
var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
|
|
11499
11567
|
__proto__: null,
|
|
11500
11568
|
CreateAPIKeyRequest: CreateAPIKeyRequest,
|
|
11501
11569
|
CreateApplicationRequest: CreateApplicationRequest,
|
|
@@ -11523,15 +11591,15 @@ var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
|
|
|
11523
11591
|
// This file was automatically generated. DO NOT EDIT.
|
|
11524
11592
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
11525
11593
|
|
|
11526
|
-
var index_gen$
|
|
11594
|
+
var index_gen$g = /*#__PURE__*/Object.freeze({
|
|
11527
11595
|
__proto__: null,
|
|
11528
11596
|
API: API$i,
|
|
11529
|
-
ValidationRules: validationRules_gen$
|
|
11597
|
+
ValidationRules: validationRules_gen$4
|
|
11530
11598
|
});
|
|
11531
11599
|
|
|
11532
11600
|
var index$j = /*#__PURE__*/Object.freeze({
|
|
11533
11601
|
__proto__: null,
|
|
11534
|
-
v1alpha1: index_gen$
|
|
11602
|
+
v1alpha1: index_gen$g
|
|
11535
11603
|
});
|
|
11536
11604
|
|
|
11537
11605
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -11684,7 +11752,8 @@ const unmarshalServerIp = data => {
|
|
|
11684
11752
|
gateway: data.gateway,
|
|
11685
11753
|
id: data.id,
|
|
11686
11754
|
netmask: data.netmask,
|
|
11687
|
-
provisioningMode: data.provisioning_mode
|
|
11755
|
+
provisioningMode: data.provisioning_mode,
|
|
11756
|
+
tags: data.tags
|
|
11688
11757
|
};
|
|
11689
11758
|
};
|
|
11690
11759
|
const unmarshalServerIpv6 = data => {
|
|
@@ -12523,7 +12592,8 @@ const marshalServerIp = (request, defaults) => ({
|
|
|
12523
12592
|
gateway: request.gateway,
|
|
12524
12593
|
id: request.id,
|
|
12525
12594
|
netmask: request.netmask,
|
|
12526
|
-
provisioning_mode: request.provisioningMode
|
|
12595
|
+
provisioning_mode: request.provisioningMode,
|
|
12596
|
+
tags: request.tags
|
|
12527
12597
|
});
|
|
12528
12598
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
12529
12599
|
address: request.address,
|
|
@@ -12902,9 +12972,9 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
12902
12972
|
enable_ipv6: request.enableIpv6,
|
|
12903
12973
|
name: request.name,
|
|
12904
12974
|
placement_group: request.placementGroup,
|
|
12905
|
-
private_nics: request.privateNics
|
|
12975
|
+
private_nics: request.privateNics,
|
|
12906
12976
|
protected: request.protected,
|
|
12907
|
-
public_ips: request.publicIps
|
|
12977
|
+
public_ips: request.publicIps,
|
|
12908
12978
|
routed_ip_enabled: request.routedIpEnabled,
|
|
12909
12979
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
|
12910
12980
|
tags: request.tags,
|
|
@@ -12921,7 +12991,7 @@ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
|
|
|
12921
12991
|
|
|
12922
12992
|
// This file was automatically generated. DO NOT EDIT.
|
|
12923
12993
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
12924
|
-
const jsonContentHeaders$
|
|
12994
|
+
const jsonContentHeaders$g = {
|
|
12925
12995
|
'Content-Type': 'application/json; charset=utf-8'
|
|
12926
12996
|
};
|
|
12927
12997
|
|
|
@@ -12982,7 +13052,7 @@ let API$h = class API extends API$u {
|
|
|
12982
13052
|
listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
|
|
12983
13053
|
_createServer = request => this.client.fetch({
|
|
12984
13054
|
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
12985
|
-
headers: jsonContentHeaders$
|
|
13055
|
+
headers: jsonContentHeaders$g,
|
|
12986
13056
|
method: 'POST',
|
|
12987
13057
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
12988
13058
|
}, unmarshalCreateServerResponse);
|
|
@@ -13009,13 +13079,13 @@ let API$h = class API extends API$u {
|
|
|
13009
13079
|
}, unmarshalGetServerResponse);
|
|
13010
13080
|
_setServer = request => this.client.fetch({
|
|
13011
13081
|
body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
|
|
13012
|
-
headers: jsonContentHeaders$
|
|
13082
|
+
headers: jsonContentHeaders$g,
|
|
13013
13083
|
method: 'PUT',
|
|
13014
13084
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
|
|
13015
13085
|
}, unmarshalSetServerResponse);
|
|
13016
13086
|
_updateServer = request => this.client.fetch({
|
|
13017
13087
|
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
13018
|
-
headers: jsonContentHeaders$
|
|
13088
|
+
headers: jsonContentHeaders$g,
|
|
13019
13089
|
method: 'PATCH',
|
|
13020
13090
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
13021
13091
|
}, unmarshalUpdateServerResponse);
|
|
@@ -13053,7 +13123,7 @@ let API$h = class API extends API$u {
|
|
|
13053
13123
|
*/
|
|
13054
13124
|
serverAction = request => this.client.fetch({
|
|
13055
13125
|
body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
|
|
13056
|
-
headers: jsonContentHeaders$
|
|
13126
|
+
headers: jsonContentHeaders$g,
|
|
13057
13127
|
method: 'POST',
|
|
13058
13128
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
|
|
13059
13129
|
}, unmarshalServerActionResponse);
|
|
@@ -13112,13 +13182,13 @@ let API$h = class API extends API$u {
|
|
|
13112
13182
|
*/
|
|
13113
13183
|
createImage = request => this.client.fetch({
|
|
13114
13184
|
body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
|
|
13115
|
-
headers: jsonContentHeaders$
|
|
13185
|
+
headers: jsonContentHeaders$g,
|
|
13116
13186
|
method: 'POST',
|
|
13117
13187
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
|
|
13118
13188
|
}, unmarshalCreateImageResponse);
|
|
13119
13189
|
_setImage = request => this.client.fetch({
|
|
13120
13190
|
body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
|
|
13121
|
-
headers: jsonContentHeaders$
|
|
13191
|
+
headers: jsonContentHeaders$g,
|
|
13122
13192
|
method: 'PUT',
|
|
13123
13193
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
|
|
13124
13194
|
}, unmarshalSetImageResponse);
|
|
@@ -13157,7 +13227,7 @@ let API$h = class API extends API$u {
|
|
|
13157
13227
|
*/
|
|
13158
13228
|
createSnapshot = (request = {}) => this.client.fetch({
|
|
13159
13229
|
body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
|
|
13160
|
-
headers: jsonContentHeaders$
|
|
13230
|
+
headers: jsonContentHeaders$g,
|
|
13161
13231
|
method: 'POST',
|
|
13162
13232
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
13163
13233
|
}, unmarshalCreateSnapshotResponse);
|
|
@@ -13174,7 +13244,7 @@ let API$h = class API extends API$u {
|
|
|
13174
13244
|
}, unmarshalGetSnapshotResponse);
|
|
13175
13245
|
_setSnapshot = request => this.client.fetch({
|
|
13176
13246
|
body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
|
|
13177
|
-
headers: jsonContentHeaders$
|
|
13247
|
+
headers: jsonContentHeaders$g,
|
|
13178
13248
|
method: 'PUT',
|
|
13179
13249
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
|
|
13180
13250
|
}, unmarshalSetSnapshotResponse);
|
|
@@ -13198,7 +13268,7 @@ let API$h = class API extends API$u {
|
|
|
13198
13268
|
*/
|
|
13199
13269
|
exportSnapshot = request => this.client.fetch({
|
|
13200
13270
|
body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
|
|
13201
|
-
headers: jsonContentHeaders$
|
|
13271
|
+
headers: jsonContentHeaders$g,
|
|
13202
13272
|
method: 'POST',
|
|
13203
13273
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
|
|
13204
13274
|
}, unmarshalExportSnapshotResponse);
|
|
@@ -13226,7 +13296,7 @@ let API$h = class API extends API$u {
|
|
|
13226
13296
|
*/
|
|
13227
13297
|
createVolume = (request = {}) => this.client.fetch({
|
|
13228
13298
|
body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
|
|
13229
|
-
headers: jsonContentHeaders$
|
|
13299
|
+
headers: jsonContentHeaders$g,
|
|
13230
13300
|
method: 'POST',
|
|
13231
13301
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
13232
13302
|
}, unmarshalCreateVolumeResponse);
|
|
@@ -13252,7 +13322,7 @@ let API$h = class API extends API$u {
|
|
|
13252
13322
|
*/
|
|
13253
13323
|
updateVolume = request => this.client.fetch({
|
|
13254
13324
|
body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
|
|
13255
|
-
headers: jsonContentHeaders$
|
|
13325
|
+
headers: jsonContentHeaders$g,
|
|
13256
13326
|
method: 'PATCH',
|
|
13257
13327
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
13258
13328
|
}, unmarshalUpdateVolumeResponse);
|
|
@@ -13289,7 +13359,7 @@ let API$h = class API extends API$u {
|
|
|
13289
13359
|
*/
|
|
13290
13360
|
createSecurityGroup = request => this.client.fetch({
|
|
13291
13361
|
body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
|
|
13292
|
-
headers: jsonContentHeaders$
|
|
13362
|
+
headers: jsonContentHeaders$g,
|
|
13293
13363
|
method: 'POST',
|
|
13294
13364
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
13295
13365
|
}, unmarshalCreateSecurityGroupResponse);
|
|
@@ -13317,7 +13387,7 @@ let API$h = class API extends API$u {
|
|
|
13317
13387
|
});
|
|
13318
13388
|
_setSecurityGroup = request => this.client.fetch({
|
|
13319
13389
|
body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
|
|
13320
|
-
headers: jsonContentHeaders$
|
|
13390
|
+
headers: jsonContentHeaders$g,
|
|
13321
13391
|
method: 'PUT',
|
|
13322
13392
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
|
|
13323
13393
|
}, unmarshalSetSecurityGroupResponse);
|
|
@@ -13355,7 +13425,7 @@ let API$h = class API extends API$u {
|
|
|
13355
13425
|
*/
|
|
13356
13426
|
createSecurityGroupRule = request => this.client.fetch({
|
|
13357
13427
|
body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13358
|
-
headers: jsonContentHeaders$
|
|
13428
|
+
headers: jsonContentHeaders$g,
|
|
13359
13429
|
method: 'POST',
|
|
13360
13430
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13361
13431
|
}, unmarshalCreateSecurityGroupRuleResponse);
|
|
@@ -13371,7 +13441,7 @@ let API$h = class API extends API$u {
|
|
|
13371
13441
|
*/
|
|
13372
13442
|
setSecurityGroupRules = request => this.client.fetch({
|
|
13373
13443
|
body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
|
|
13374
|
-
headers: jsonContentHeaders$
|
|
13444
|
+
headers: jsonContentHeaders$g,
|
|
13375
13445
|
method: 'PUT',
|
|
13376
13446
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
|
|
13377
13447
|
}, unmarshalSetSecurityGroupRulesResponse);
|
|
@@ -13398,7 +13468,7 @@ let API$h = class API extends API$u {
|
|
|
13398
13468
|
}, unmarshalGetSecurityGroupRuleResponse);
|
|
13399
13469
|
_setSecurityGroupRule = request => this.client.fetch({
|
|
13400
13470
|
body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
|
|
13401
|
-
headers: jsonContentHeaders$
|
|
13471
|
+
headers: jsonContentHeaders$g,
|
|
13402
13472
|
method: 'PUT',
|
|
13403
13473
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
|
|
13404
13474
|
}, unmarshalSetSecurityGroupRuleResponse);
|
|
@@ -13426,7 +13496,7 @@ let API$h = class API extends API$u {
|
|
|
13426
13496
|
*/
|
|
13427
13497
|
createPlacementGroup = (request = {}) => this.client.fetch({
|
|
13428
13498
|
body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
|
|
13429
|
-
headers: jsonContentHeaders$
|
|
13499
|
+
headers: jsonContentHeaders$g,
|
|
13430
13500
|
method: 'POST',
|
|
13431
13501
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
13432
13502
|
}, unmarshalCreatePlacementGroupResponse);
|
|
@@ -13450,7 +13520,7 @@ let API$h = class API extends API$u {
|
|
|
13450
13520
|
*/
|
|
13451
13521
|
setPlacementGroup = request => this.client.fetch({
|
|
13452
13522
|
body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
|
|
13453
|
-
headers: jsonContentHeaders$
|
|
13523
|
+
headers: jsonContentHeaders$g,
|
|
13454
13524
|
method: 'PUT',
|
|
13455
13525
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13456
13526
|
}, unmarshalSetPlacementGroupResponse);
|
|
@@ -13464,7 +13534,7 @@ let API$h = class API extends API$u {
|
|
|
13464
13534
|
*/
|
|
13465
13535
|
updatePlacementGroup = request => this.client.fetch({
|
|
13466
13536
|
body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
|
|
13467
|
-
headers: jsonContentHeaders$
|
|
13537
|
+
headers: jsonContentHeaders$g,
|
|
13468
13538
|
method: 'PATCH',
|
|
13469
13539
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
|
|
13470
13540
|
}, unmarshalUpdatePlacementGroupResponse);
|
|
@@ -13500,7 +13570,7 @@ let API$h = class API extends API$u {
|
|
|
13500
13570
|
*/
|
|
13501
13571
|
setPlacementGroupServers = request => this.client.fetch({
|
|
13502
13572
|
body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
|
|
13503
|
-
headers: jsonContentHeaders$
|
|
13573
|
+
headers: jsonContentHeaders$g,
|
|
13504
13574
|
method: 'PUT',
|
|
13505
13575
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13506
13576
|
}, unmarshalSetPlacementGroupServersResponse);
|
|
@@ -13514,7 +13584,7 @@ let API$h = class API extends API$u {
|
|
|
13514
13584
|
*/
|
|
13515
13585
|
updatePlacementGroupServers = request => this.client.fetch({
|
|
13516
13586
|
body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
|
|
13517
|
-
headers: jsonContentHeaders$
|
|
13587
|
+
headers: jsonContentHeaders$g,
|
|
13518
13588
|
method: 'PATCH',
|
|
13519
13589
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
|
|
13520
13590
|
}, unmarshalUpdatePlacementGroupServersResponse);
|
|
@@ -13541,7 +13611,7 @@ let API$h = class API extends API$u {
|
|
|
13541
13611
|
*/
|
|
13542
13612
|
createIp = (request = {}) => this.client.fetch({
|
|
13543
13613
|
body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
|
|
13544
|
-
headers: jsonContentHeaders$
|
|
13614
|
+
headers: jsonContentHeaders$g,
|
|
13545
13615
|
method: 'POST',
|
|
13546
13616
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
13547
13617
|
}, unmarshalCreateIpResponse);
|
|
@@ -13566,7 +13636,7 @@ let API$h = class API extends API$u {
|
|
|
13566
13636
|
*/
|
|
13567
13637
|
updateIp = request => this.client.fetch({
|
|
13568
13638
|
body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
|
|
13569
|
-
headers: jsonContentHeaders$
|
|
13639
|
+
headers: jsonContentHeaders$g,
|
|
13570
13640
|
method: 'PATCH',
|
|
13571
13641
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
|
|
13572
13642
|
}, unmarshalUpdateIpResponse);
|
|
@@ -13602,7 +13672,7 @@ let API$h = class API extends API$u {
|
|
|
13602
13672
|
*/
|
|
13603
13673
|
createPrivateNIC = request => this.client.fetch({
|
|
13604
13674
|
body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
|
|
13605
|
-
headers: jsonContentHeaders$
|
|
13675
|
+
headers: jsonContentHeaders$g,
|
|
13606
13676
|
method: 'POST',
|
|
13607
13677
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
|
|
13608
13678
|
}, unmarshalCreatePrivateNICResponse);
|
|
@@ -13627,7 +13697,7 @@ let API$h = class API extends API$u {
|
|
|
13627
13697
|
*/
|
|
13628
13698
|
updatePrivateNIC = request => this.client.fetch({
|
|
13629
13699
|
body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
|
|
13630
|
-
headers: jsonContentHeaders$
|
|
13700
|
+
headers: jsonContentHeaders$g,
|
|
13631
13701
|
method: 'PATCH',
|
|
13632
13702
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
|
|
13633
13703
|
}, unmarshalPrivateNIC);
|
|
@@ -13687,7 +13757,7 @@ let API$h = class API extends API$u {
|
|
|
13687
13757
|
*/
|
|
13688
13758
|
planBlockMigration = (request = {}) => this.client.fetch({
|
|
13689
13759
|
body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
|
|
13690
|
-
headers: jsonContentHeaders$
|
|
13760
|
+
headers: jsonContentHeaders$g,
|
|
13691
13761
|
method: 'POST',
|
|
13692
13762
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
|
|
13693
13763
|
}, unmarshalMigrationPlan);
|
|
@@ -13702,7 +13772,7 @@ let API$h = class API extends API$u {
|
|
|
13702
13772
|
*/
|
|
13703
13773
|
applyBlockMigration = request => this.client.fetch({
|
|
13704
13774
|
body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
|
|
13705
|
-
headers: jsonContentHeaders$
|
|
13775
|
+
headers: jsonContentHeaders$g,
|
|
13706
13776
|
method: 'POST',
|
|
13707
13777
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
|
|
13708
13778
|
});
|
|
@@ -14618,7 +14688,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
|
|
|
14618
14688
|
|
|
14619
14689
|
// This file was automatically generated. DO NOT EDIT.
|
|
14620
14690
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
14621
|
-
const jsonContentHeaders$
|
|
14691
|
+
const jsonContentHeaders$f = {
|
|
14622
14692
|
'Content-Type': 'application/json; charset=utf-8'
|
|
14623
14693
|
};
|
|
14624
14694
|
|
|
@@ -14655,7 +14725,7 @@ let API$g = class API extends API$u {
|
|
|
14655
14725
|
*/
|
|
14656
14726
|
createHub = request => this.client.fetch({
|
|
14657
14727
|
body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
|
|
14658
|
-
headers: jsonContentHeaders$
|
|
14728
|
+
headers: jsonContentHeaders$f,
|
|
14659
14729
|
method: 'POST',
|
|
14660
14730
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
|
|
14661
14731
|
}, unmarshalHub);
|
|
@@ -14691,7 +14761,7 @@ let API$g = class API extends API$u {
|
|
|
14691
14761
|
*/
|
|
14692
14762
|
updateHub = request => this.client.fetch({
|
|
14693
14763
|
body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
|
|
14694
|
-
headers: jsonContentHeaders$
|
|
14764
|
+
headers: jsonContentHeaders$f,
|
|
14695
14765
|
method: 'PATCH',
|
|
14696
14766
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
|
|
14697
14767
|
}, unmarshalHub);
|
|
@@ -14704,7 +14774,7 @@ let API$g = class API extends API$u {
|
|
|
14704
14774
|
*/
|
|
14705
14775
|
enableHub = request => this.client.fetch({
|
|
14706
14776
|
body: '{}',
|
|
14707
|
-
headers: jsonContentHeaders$
|
|
14777
|
+
headers: jsonContentHeaders$f,
|
|
14708
14778
|
method: 'POST',
|
|
14709
14779
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
|
|
14710
14780
|
}, unmarshalHub);
|
|
@@ -14717,7 +14787,7 @@ let API$g = class API extends API$u {
|
|
|
14717
14787
|
*/
|
|
14718
14788
|
disableHub = request => this.client.fetch({
|
|
14719
14789
|
body: '{}',
|
|
14720
|
-
headers: jsonContentHeaders$
|
|
14790
|
+
headers: jsonContentHeaders$f,
|
|
14721
14791
|
method: 'POST',
|
|
14722
14792
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
|
|
14723
14793
|
}, unmarshalHub);
|
|
@@ -14757,7 +14827,7 @@ let API$g = class API extends API$u {
|
|
|
14757
14827
|
*/
|
|
14758
14828
|
setHubCA = request => this.client.fetch({
|
|
14759
14829
|
body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
|
|
14760
|
-
headers: jsonContentHeaders$
|
|
14830
|
+
headers: jsonContentHeaders$f,
|
|
14761
14831
|
method: 'POST',
|
|
14762
14832
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
|
|
14763
14833
|
}, unmarshalHub);
|
|
@@ -14797,7 +14867,7 @@ let API$g = class API extends API$u {
|
|
|
14797
14867
|
*/
|
|
14798
14868
|
createDevice = request => this.client.fetch({
|
|
14799
14869
|
body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
|
|
14800
|
-
headers: jsonContentHeaders$
|
|
14870
|
+
headers: jsonContentHeaders$f,
|
|
14801
14871
|
method: 'POST',
|
|
14802
14872
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
|
|
14803
14873
|
}, unmarshalCreateDeviceResponse);
|
|
@@ -14824,7 +14894,7 @@ let API$g = class API extends API$u {
|
|
|
14824
14894
|
*/
|
|
14825
14895
|
updateDevice = request => this.client.fetch({
|
|
14826
14896
|
body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
|
|
14827
|
-
headers: jsonContentHeaders$
|
|
14897
|
+
headers: jsonContentHeaders$f,
|
|
14828
14898
|
method: 'PATCH',
|
|
14829
14899
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
|
|
14830
14900
|
}, unmarshalDevice);
|
|
@@ -14837,7 +14907,7 @@ let API$g = class API extends API$u {
|
|
|
14837
14907
|
*/
|
|
14838
14908
|
enableDevice = request => this.client.fetch({
|
|
14839
14909
|
body: '{}',
|
|
14840
|
-
headers: jsonContentHeaders$
|
|
14910
|
+
headers: jsonContentHeaders$f,
|
|
14841
14911
|
method: 'POST',
|
|
14842
14912
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
|
|
14843
14913
|
}, unmarshalDevice);
|
|
@@ -14850,7 +14920,7 @@ let API$g = class API extends API$u {
|
|
|
14850
14920
|
*/
|
|
14851
14921
|
disableDevice = request => this.client.fetch({
|
|
14852
14922
|
body: '{}',
|
|
14853
|
-
headers: jsonContentHeaders$
|
|
14923
|
+
headers: jsonContentHeaders$f,
|
|
14854
14924
|
method: 'POST',
|
|
14855
14925
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
|
|
14856
14926
|
}, unmarshalDevice);
|
|
@@ -14864,7 +14934,7 @@ let API$g = class API extends API$u {
|
|
|
14864
14934
|
*/
|
|
14865
14935
|
renewDeviceCertificate = request => this.client.fetch({
|
|
14866
14936
|
body: '{}',
|
|
14867
|
-
headers: jsonContentHeaders$
|
|
14937
|
+
headers: jsonContentHeaders$f,
|
|
14868
14938
|
method: 'POST',
|
|
14869
14939
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
|
|
14870
14940
|
}, unmarshalRenewDeviceCertificateResponse);
|
|
@@ -14878,7 +14948,7 @@ let API$g = class API extends API$u {
|
|
|
14878
14948
|
*/
|
|
14879
14949
|
setDeviceCertificate = request => this.client.fetch({
|
|
14880
14950
|
body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
|
|
14881
|
-
headers: jsonContentHeaders$
|
|
14951
|
+
headers: jsonContentHeaders$f,
|
|
14882
14952
|
method: 'PUT',
|
|
14883
14953
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
|
|
14884
14954
|
}, unmarshalSetDeviceCertificateResponse);
|
|
@@ -14953,7 +15023,7 @@ let API$g = class API extends API$u {
|
|
|
14953
15023
|
*/
|
|
14954
15024
|
createRoute = request => this.client.fetch({
|
|
14955
15025
|
body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
|
|
14956
|
-
headers: jsonContentHeaders$
|
|
15026
|
+
headers: jsonContentHeaders$f,
|
|
14957
15027
|
method: 'POST',
|
|
14958
15028
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
14959
15029
|
}, unmarshalRoute$1);
|
|
@@ -14967,7 +15037,7 @@ let API$g = class API extends API$u {
|
|
|
14967
15037
|
*/
|
|
14968
15038
|
updateRoute = request => this.client.fetch({
|
|
14969
15039
|
body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
|
|
14970
|
-
headers: jsonContentHeaders$
|
|
15040
|
+
headers: jsonContentHeaders$f,
|
|
14971
15041
|
method: 'PATCH',
|
|
14972
15042
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
14973
15043
|
}, unmarshalRoute$1);
|
|
@@ -15019,7 +15089,7 @@ let API$g = class API extends API$u {
|
|
|
15019
15089
|
*/
|
|
15020
15090
|
createNetwork = request => this.client.fetch({
|
|
15021
15091
|
body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
|
|
15022
|
-
headers: jsonContentHeaders$
|
|
15092
|
+
headers: jsonContentHeaders$f,
|
|
15023
15093
|
method: 'POST',
|
|
15024
15094
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
|
|
15025
15095
|
}, unmarshalCreateNetworkResponse);
|
|
@@ -15067,7 +15137,7 @@ let API$g = class API extends API$u {
|
|
|
15067
15137
|
*/
|
|
15068
15138
|
putTwinDocument = request => this.client.fetch({
|
|
15069
15139
|
body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
|
|
15070
|
-
headers: jsonContentHeaders$
|
|
15140
|
+
headers: jsonContentHeaders$f,
|
|
15071
15141
|
method: 'PUT',
|
|
15072
15142
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15073
15143
|
}, unmarshalTwinDocument);
|
|
@@ -15080,7 +15150,7 @@ let API$g = class API extends API$u {
|
|
|
15080
15150
|
*/
|
|
15081
15151
|
patchTwinDocument = request => this.client.fetch({
|
|
15082
15152
|
body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
|
|
15083
|
-
headers: jsonContentHeaders$
|
|
15153
|
+
headers: jsonContentHeaders$f,
|
|
15084
15154
|
method: 'PATCH',
|
|
15085
15155
|
path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
|
|
15086
15156
|
}, unmarshalTwinDocument);
|
|
@@ -15120,7 +15190,7 @@ let API$g = class API extends API$u {
|
|
|
15120
15190
|
// This file was automatically generated. DO NOT EDIT.
|
|
15121
15191
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15122
15192
|
|
|
15123
|
-
var index_gen$
|
|
15193
|
+
var index_gen$f = /*#__PURE__*/Object.freeze({
|
|
15124
15194
|
__proto__: null,
|
|
15125
15195
|
API: API$g,
|
|
15126
15196
|
HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
|
|
@@ -15128,12 +15198,15 @@ var index_gen$e = /*#__PURE__*/Object.freeze({
|
|
|
15128
15198
|
|
|
15129
15199
|
var index$g = /*#__PURE__*/Object.freeze({
|
|
15130
15200
|
__proto__: null,
|
|
15131
|
-
v1: index_gen$
|
|
15201
|
+
v1: index_gen$f
|
|
15132
15202
|
});
|
|
15133
15203
|
|
|
15134
15204
|
// This file was automatically generated. DO NOT EDIT.
|
|
15135
15205
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15136
15206
|
|
|
15207
|
+
/** Lists transient statutes of the enum {@link NameStatus}. */
|
|
15208
|
+
const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
|
|
15209
|
+
|
|
15137
15210
|
/** Lists transient statutes of the enum {@link PinStatus}. */
|
|
15138
15211
|
const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
|
|
15139
15212
|
|
|
@@ -15170,6 +15243,23 @@ const unmarshalPinInfo = data => {
|
|
|
15170
15243
|
url: data.url
|
|
15171
15244
|
};
|
|
15172
15245
|
};
|
|
15246
|
+
const unmarshalName = data => {
|
|
15247
|
+
if (!isJSONObject(data)) {
|
|
15248
|
+
throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
|
|
15249
|
+
}
|
|
15250
|
+
return {
|
|
15251
|
+
createdAt: unmarshalDate(data.created_at),
|
|
15252
|
+
key: data.key,
|
|
15253
|
+
name: data.name,
|
|
15254
|
+
nameId: data.name_id,
|
|
15255
|
+
projectId: data.project_id,
|
|
15256
|
+
region: data.region,
|
|
15257
|
+
status: data.status,
|
|
15258
|
+
tags: data.tags,
|
|
15259
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
15260
|
+
value: data.value
|
|
15261
|
+
};
|
|
15262
|
+
};
|
|
15173
15263
|
const unmarshalPin = data => {
|
|
15174
15264
|
if (!isJSONObject(data)) {
|
|
15175
15265
|
throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
|
|
@@ -15199,6 +15289,28 @@ const unmarshalVolume$1 = data => {
|
|
|
15199
15289
|
updatedAt: unmarshalDate(data.updated_at)
|
|
15200
15290
|
};
|
|
15201
15291
|
};
|
|
15292
|
+
const unmarshalExportKeyNameResponse = data => {
|
|
15293
|
+
if (!isJSONObject(data)) {
|
|
15294
|
+
throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
|
|
15295
|
+
}
|
|
15296
|
+
return {
|
|
15297
|
+
createdAt: unmarshalDate(data.created_at),
|
|
15298
|
+
nameId: data.name_id,
|
|
15299
|
+
privateKey: data.private_key,
|
|
15300
|
+
projectId: data.project_id,
|
|
15301
|
+
publicKey: data.public_key,
|
|
15302
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
15303
|
+
};
|
|
15304
|
+
};
|
|
15305
|
+
const unmarshalListNamesResponse = data => {
|
|
15306
|
+
if (!isJSONObject(data)) {
|
|
15307
|
+
throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
|
|
15308
|
+
}
|
|
15309
|
+
return {
|
|
15310
|
+
names: unmarshalArrayOfObject(data.names, unmarshalName),
|
|
15311
|
+
totalCount: data.total_count
|
|
15312
|
+
};
|
|
15313
|
+
};
|
|
15202
15314
|
const unmarshalListPinsResponse = data => {
|
|
15203
15315
|
if (!isJSONObject(data)) {
|
|
15204
15316
|
throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
|
|
@@ -15246,8 +15358,24 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
|
15246
15358
|
name: request.name,
|
|
15247
15359
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
15248
15360
|
});
|
|
15249
|
-
const
|
|
15250
|
-
|
|
15361
|
+
const marshalIpnsApiCreateNameRequest = (request, defaults) => ({
|
|
15362
|
+
name: request.name,
|
|
15363
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
15364
|
+
value: request.value
|
|
15365
|
+
});
|
|
15366
|
+
const marshalIpnsApiImportKeyNameRequest = (request, defaults) => ({
|
|
15367
|
+
name: request.name,
|
|
15368
|
+
private_key: request.privateKey,
|
|
15369
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
15370
|
+
value: request.value
|
|
15371
|
+
});
|
|
15372
|
+
const marshalIpnsApiUpdateNameRequest = (request, defaults) => ({
|
|
15373
|
+
name: request.name,
|
|
15374
|
+
tags: request.tags,
|
|
15375
|
+
value: request.value
|
|
15376
|
+
});
|
|
15377
|
+
const marshalReplacePinRequest = (request, defaults) => ({
|
|
15378
|
+
cid: request.cid,
|
|
15251
15379
|
name: request.name,
|
|
15252
15380
|
origins: request.origins,
|
|
15253
15381
|
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
@@ -15260,7 +15388,7 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
15260
15388
|
|
|
15261
15389
|
// This file was automatically generated. DO NOT EDIT.
|
|
15262
15390
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15263
|
-
const jsonContentHeaders$
|
|
15391
|
+
const jsonContentHeaders$e = {
|
|
15264
15392
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15265
15393
|
};
|
|
15266
15394
|
|
|
@@ -15281,7 +15409,7 @@ let API$f = class API extends API$u {
|
|
|
15281
15409
|
*/
|
|
15282
15410
|
createVolume = request => this.client.fetch({
|
|
15283
15411
|
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
15284
|
-
headers: jsonContentHeaders$
|
|
15412
|
+
headers: jsonContentHeaders$e,
|
|
15285
15413
|
method: 'POST',
|
|
15286
15414
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes`
|
|
15287
15415
|
}, unmarshalVolume$1);
|
|
@@ -15320,7 +15448,7 @@ let API$f = class API extends API$u {
|
|
|
15320
15448
|
*/
|
|
15321
15449
|
updateVolume = request => this.client.fetch({
|
|
15322
15450
|
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
15323
|
-
headers: jsonContentHeaders$
|
|
15451
|
+
headers: jsonContentHeaders$e,
|
|
15324
15452
|
method: 'PATCH',
|
|
15325
15453
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
|
|
15326
15454
|
}, unmarshalVolume$1);
|
|
@@ -15351,7 +15479,7 @@ let API$f = class API extends API$u {
|
|
|
15351
15479
|
*/
|
|
15352
15480
|
createPinByURL = request => this.client.fetch({
|
|
15353
15481
|
body: JSON.stringify(marshalCreatePinByURLRequest(request, this.client.settings)),
|
|
15354
|
-
headers: jsonContentHeaders$
|
|
15482
|
+
headers: jsonContentHeaders$e,
|
|
15355
15483
|
method: 'POST',
|
|
15356
15484
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-url`
|
|
15357
15485
|
}, unmarshalPin);
|
|
@@ -15370,13 +15498,13 @@ let API$f = class API extends API$u {
|
|
|
15370
15498
|
*/
|
|
15371
15499
|
createPinByCID = request => this.client.fetch({
|
|
15372
15500
|
body: JSON.stringify(marshalCreatePinByCIDRequest(request, this.client.settings)),
|
|
15373
|
-
headers: jsonContentHeaders$
|
|
15501
|
+
headers: jsonContentHeaders$e,
|
|
15374
15502
|
method: 'POST',
|
|
15375
15503
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/create-by-cid`
|
|
15376
15504
|
}, unmarshalPin);
|
|
15377
15505
|
replacePin = request => this.client.fetch({
|
|
15378
15506
|
body: JSON.stringify(marshalReplacePinRequest(request, this.client.settings)),
|
|
15379
|
-
headers: jsonContentHeaders$
|
|
15507
|
+
headers: jsonContentHeaders$e,
|
|
15380
15508
|
method: 'POST',
|
|
15381
15509
|
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}/replace`
|
|
15382
15510
|
}, unmarshalReplacePinResponse);
|
|
@@ -15431,18 +15559,121 @@ let API$f = class API extends API$u {
|
|
|
15431
15559
|
});
|
|
15432
15560
|
};
|
|
15433
15561
|
|
|
15562
|
+
/** IPFS Naming service API. */
|
|
15563
|
+
class IpnsAPI extends API$u {
|
|
15564
|
+
/** Lists the available regions of the API. */
|
|
15565
|
+
static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
15566
|
+
|
|
15567
|
+
/**
|
|
15568
|
+
* Create a new name. You can use the `ipns key` command to list and generate
|
|
15569
|
+
* more names and their respective keys.
|
|
15570
|
+
*
|
|
15571
|
+
* @param request - The request {@link IpnsApiCreateNameRequest}
|
|
15572
|
+
* @returns A Promise of Name
|
|
15573
|
+
*/
|
|
15574
|
+
createName = request => this.client.fetch({
|
|
15575
|
+
body: JSON.stringify(marshalIpnsApiCreateNameRequest(request, this.client.settings)),
|
|
15576
|
+
headers: jsonContentHeaders$e,
|
|
15577
|
+
method: 'POST',
|
|
15578
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
|
|
15579
|
+
}, unmarshalName);
|
|
15580
|
+
|
|
15581
|
+
/**
|
|
15582
|
+
* Get information about a name. Retrieve information about a specific name.
|
|
15583
|
+
*
|
|
15584
|
+
* @param request - The request {@link IpnsApiGetNameRequest}
|
|
15585
|
+
* @returns A Promise of Name
|
|
15586
|
+
*/
|
|
15587
|
+
getName = request => this.client.fetch({
|
|
15588
|
+
method: 'GET',
|
|
15589
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
|
|
15590
|
+
}, unmarshalName);
|
|
15591
|
+
|
|
15592
|
+
/**
|
|
15593
|
+
* Waits for {@link Name} to be in a final state.
|
|
15594
|
+
*
|
|
15595
|
+
* @param request - The request {@link GetNameRequest}
|
|
15596
|
+
* @param options - The waiting options
|
|
15597
|
+
* @returns A Promise of Name
|
|
15598
|
+
*/
|
|
15599
|
+
waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
|
|
15600
|
+
|
|
15601
|
+
/**
|
|
15602
|
+
* Delete an existing name. Delete a name by its ID.
|
|
15603
|
+
*
|
|
15604
|
+
* @param request - The request {@link IpnsApiDeleteNameRequest}
|
|
15605
|
+
*/
|
|
15606
|
+
deleteName = request => this.client.fetch({
|
|
15607
|
+
method: 'DELETE',
|
|
15608
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
|
|
15609
|
+
});
|
|
15610
|
+
pageOfListNames = (request = {}) => this.client.fetch({
|
|
15611
|
+
method: 'GET',
|
|
15612
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
|
|
15613
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
15614
|
+
}, unmarshalListNamesResponse);
|
|
15615
|
+
|
|
15616
|
+
/**
|
|
15617
|
+
* List all names by a Project ID. Retrieve information about all names from a
|
|
15618
|
+
* Project ID.
|
|
15619
|
+
*
|
|
15620
|
+
* @param request - The request {@link IpnsApiListNamesRequest}
|
|
15621
|
+
* @returns A Promise of ListNamesResponse
|
|
15622
|
+
*/
|
|
15623
|
+
listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
|
|
15624
|
+
|
|
15625
|
+
/**
|
|
15626
|
+
* Update name information. Update name information (CID, tag, name...).
|
|
15627
|
+
*
|
|
15628
|
+
* @param request - The request {@link IpnsApiUpdateNameRequest}
|
|
15629
|
+
* @returns A Promise of Name
|
|
15630
|
+
*/
|
|
15631
|
+
updateName = request => this.client.fetch({
|
|
15632
|
+
body: JSON.stringify(marshalIpnsApiUpdateNameRequest(request, this.client.settings)),
|
|
15633
|
+
headers: jsonContentHeaders$e,
|
|
15634
|
+
method: 'PATCH',
|
|
15635
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
|
|
15636
|
+
}, unmarshalName);
|
|
15637
|
+
|
|
15638
|
+
/**
|
|
15639
|
+
* Export your private key. Export a private key by its ID.
|
|
15640
|
+
*
|
|
15641
|
+
* @param request - The request {@link IpnsApiExportKeyNameRequest}
|
|
15642
|
+
* @returns A Promise of ExportKeyNameResponse
|
|
15643
|
+
*/
|
|
15644
|
+
exportKeyName = request => this.client.fetch({
|
|
15645
|
+
method: 'GET',
|
|
15646
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}/export-key`
|
|
15647
|
+
}, unmarshalExportKeyNameResponse);
|
|
15648
|
+
|
|
15649
|
+
/**
|
|
15650
|
+
* Import your private key. Import a private key.
|
|
15651
|
+
*
|
|
15652
|
+
* @param request - The request {@link IpnsApiImportKeyNameRequest}
|
|
15653
|
+
* @returns A Promise of Name
|
|
15654
|
+
*/
|
|
15655
|
+
importKeyName = request => this.client.fetch({
|
|
15656
|
+
body: JSON.stringify(marshalIpnsApiImportKeyNameRequest(request, this.client.settings)),
|
|
15657
|
+
headers: jsonContentHeaders$e,
|
|
15658
|
+
method: 'POST',
|
|
15659
|
+
path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
|
|
15660
|
+
}, unmarshalName);
|
|
15661
|
+
}
|
|
15662
|
+
|
|
15434
15663
|
// This file was automatically generated. DO NOT EDIT.
|
|
15435
15664
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15436
15665
|
|
|
15437
|
-
var index_gen$
|
|
15666
|
+
var index_gen$e = /*#__PURE__*/Object.freeze({
|
|
15438
15667
|
__proto__: null,
|
|
15439
15668
|
API: API$f,
|
|
15669
|
+
IpnsAPI: IpnsAPI,
|
|
15670
|
+
NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
|
|
15440
15671
|
PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
|
|
15441
15672
|
});
|
|
15442
15673
|
|
|
15443
15674
|
var index$f = /*#__PURE__*/Object.freeze({
|
|
15444
15675
|
__proto__: null,
|
|
15445
|
-
v1alpha1: index_gen$
|
|
15676
|
+
v1alpha1: index_gen$e
|
|
15446
15677
|
});
|
|
15447
15678
|
|
|
15448
15679
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -15875,7 +16106,7 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
|
|
|
15875
16106
|
|
|
15876
16107
|
// This file was automatically generated. DO NOT EDIT.
|
|
15877
16108
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
15878
|
-
const jsonContentHeaders$
|
|
16109
|
+
const jsonContentHeaders$d = {
|
|
15879
16110
|
'Content-Type': 'application/json; charset=utf-8'
|
|
15880
16111
|
};
|
|
15881
16112
|
|
|
@@ -15905,7 +16136,7 @@ let API$e = class API extends API$u {
|
|
|
15905
16136
|
*/
|
|
15906
16137
|
createCluster = request => this.client.fetch({
|
|
15907
16138
|
body: JSON.stringify(marshalCreateClusterRequest$1(request, this.client.settings)),
|
|
15908
|
-
headers: jsonContentHeaders$
|
|
16139
|
+
headers: jsonContentHeaders$d,
|
|
15909
16140
|
method: 'POST',
|
|
15910
16141
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters`
|
|
15911
16142
|
}, unmarshalCluster$1);
|
|
@@ -15940,7 +16171,7 @@ let API$e = class API extends API$u {
|
|
|
15940
16171
|
*/
|
|
15941
16172
|
updateCluster = request => this.client.fetch({
|
|
15942
16173
|
body: JSON.stringify(marshalUpdateClusterRequest$1(request, this.client.settings)),
|
|
15943
|
-
headers: jsonContentHeaders$
|
|
16174
|
+
headers: jsonContentHeaders$d,
|
|
15944
16175
|
method: 'PATCH',
|
|
15945
16176
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}`
|
|
15946
16177
|
}, unmarshalCluster$1);
|
|
@@ -15968,7 +16199,7 @@ let API$e = class API extends API$u {
|
|
|
15968
16199
|
*/
|
|
15969
16200
|
upgradeCluster = request => this.client.fetch({
|
|
15970
16201
|
body: JSON.stringify(marshalUpgradeClusterRequest(request, this.client.settings)),
|
|
15971
|
-
headers: jsonContentHeaders$
|
|
16202
|
+
headers: jsonContentHeaders$d,
|
|
15972
16203
|
method: 'POST',
|
|
15973
16204
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/upgrade`
|
|
15974
16205
|
}, unmarshalCluster$1);
|
|
@@ -15984,7 +16215,7 @@ let API$e = class API extends API$u {
|
|
|
15984
16215
|
*/
|
|
15985
16216
|
setClusterType = request => this.client.fetch({
|
|
15986
16217
|
body: JSON.stringify(marshalSetClusterTypeRequest(request, this.client.settings)),
|
|
15987
|
-
headers: jsonContentHeaders$
|
|
16218
|
+
headers: jsonContentHeaders$d,
|
|
15988
16219
|
method: 'POST',
|
|
15989
16220
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/set-type`
|
|
15990
16221
|
}, unmarshalCluster$1);
|
|
@@ -16032,7 +16263,7 @@ let API$e = class API extends API$u {
|
|
|
16032
16263
|
*/
|
|
16033
16264
|
resetClusterAdminToken = request => this.client.fetch({
|
|
16034
16265
|
body: '{}',
|
|
16035
|
-
headers: jsonContentHeaders$
|
|
16266
|
+
headers: jsonContentHeaders$d,
|
|
16036
16267
|
method: 'POST',
|
|
16037
16268
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`
|
|
16038
16269
|
});
|
|
@@ -16047,7 +16278,7 @@ let API$e = class API extends API$u {
|
|
|
16047
16278
|
*/
|
|
16048
16279
|
migrateToPrivateNetworkCluster = request => this.client.fetch({
|
|
16049
16280
|
body: JSON.stringify(marshalMigrateToPrivateNetworkClusterRequest(request, this.client.settings)),
|
|
16050
|
-
headers: jsonContentHeaders$
|
|
16281
|
+
headers: jsonContentHeaders$d,
|
|
16051
16282
|
method: 'POST',
|
|
16052
16283
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-private-network`
|
|
16053
16284
|
}, unmarshalCluster$1);
|
|
@@ -16075,7 +16306,7 @@ let API$e = class API extends API$u {
|
|
|
16075
16306
|
*/
|
|
16076
16307
|
createPool = request => this.client.fetch({
|
|
16077
16308
|
body: JSON.stringify(marshalCreatePoolRequest(request, this.client.settings)),
|
|
16078
|
-
headers: jsonContentHeaders$
|
|
16309
|
+
headers: jsonContentHeaders$d,
|
|
16079
16310
|
method: 'POST',
|
|
16080
16311
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/pools`
|
|
16081
16312
|
}, unmarshalPool);
|
|
@@ -16111,7 +16342,7 @@ let API$e = class API extends API$u {
|
|
|
16111
16342
|
*/
|
|
16112
16343
|
upgradePool = request => this.client.fetch({
|
|
16113
16344
|
body: JSON.stringify(marshalUpgradePoolRequest(request, this.client.settings)),
|
|
16114
|
-
headers: jsonContentHeaders$
|
|
16345
|
+
headers: jsonContentHeaders$d,
|
|
16115
16346
|
method: 'POST',
|
|
16116
16347
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/upgrade`
|
|
16117
16348
|
}, unmarshalPool);
|
|
@@ -16125,7 +16356,7 @@ let API$e = class API extends API$u {
|
|
|
16125
16356
|
*/
|
|
16126
16357
|
updatePool = request => this.client.fetch({
|
|
16127
16358
|
body: JSON.stringify(marshalUpdatePoolRequest(request, this.client.settings)),
|
|
16128
|
-
headers: jsonContentHeaders$
|
|
16359
|
+
headers: jsonContentHeaders$d,
|
|
16129
16360
|
method: 'PATCH',
|
|
16130
16361
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}`
|
|
16131
16362
|
}, unmarshalPool);
|
|
@@ -16152,7 +16383,7 @@ let API$e = class API extends API$u {
|
|
|
16152
16383
|
*/
|
|
16153
16384
|
createExternalNode = request => this.client.fetch({
|
|
16154
16385
|
body: '{}',
|
|
16155
|
-
headers: jsonContentHeaders$
|
|
16386
|
+
headers: jsonContentHeaders$d,
|
|
16156
16387
|
method: 'POST',
|
|
16157
16388
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam('poolId', request.poolId)}/external-nodes`
|
|
16158
16389
|
}, unmarshalExternalNode);
|
|
@@ -16205,7 +16436,7 @@ let API$e = class API extends API$u {
|
|
|
16205
16436
|
*/
|
|
16206
16437
|
replaceNode = request => this.client.fetch({
|
|
16207
16438
|
body: '{}',
|
|
16208
|
-
headers: jsonContentHeaders$
|
|
16439
|
+
headers: jsonContentHeaders$d,
|
|
16209
16440
|
method: 'POST',
|
|
16210
16441
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/replace`
|
|
16211
16442
|
}, unmarshalNode);
|
|
@@ -16222,7 +16453,7 @@ let API$e = class API extends API$u {
|
|
|
16222
16453
|
*/
|
|
16223
16454
|
rebootNode = request => this.client.fetch({
|
|
16224
16455
|
body: '{}',
|
|
16225
|
-
headers: jsonContentHeaders$
|
|
16456
|
+
headers: jsonContentHeaders$d,
|
|
16226
16457
|
method: 'POST',
|
|
16227
16458
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}/reboot`
|
|
16228
16459
|
}, unmarshalNode);
|
|
@@ -16389,7 +16620,7 @@ const UpdateClusterRequestAutoscalerConfig = {
|
|
|
16389
16620
|
}
|
|
16390
16621
|
};
|
|
16391
16622
|
|
|
16392
|
-
var validationRules_gen$
|
|
16623
|
+
var validationRules_gen$3 = /*#__PURE__*/Object.freeze({
|
|
16393
16624
|
__proto__: null,
|
|
16394
16625
|
CreateClusterRequest: CreateClusterRequest,
|
|
16395
16626
|
CreateClusterRequestAutoscalerConfig: CreateClusterRequestAutoscalerConfig,
|
|
@@ -16411,7 +16642,7 @@ var index$e = /*#__PURE__*/Object.freeze({
|
|
|
16411
16642
|
CLUSTER_TRANSIENT_STATUSES: CLUSTER_TRANSIENT_STATUSES$1,
|
|
16412
16643
|
NODE_TRANSIENT_STATUSES: NODE_TRANSIENT_STATUSES,
|
|
16413
16644
|
POOL_TRANSIENT_STATUSES: POOL_TRANSIENT_STATUSES,
|
|
16414
|
-
ValidationRules: validationRules_gen$
|
|
16645
|
+
ValidationRules: validationRules_gen$3
|
|
16415
16646
|
});
|
|
16416
16647
|
|
|
16417
16648
|
var index$d = /*#__PURE__*/Object.freeze({
|
|
@@ -17470,7 +17701,7 @@ const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
|
|
|
17470
17701
|
|
|
17471
17702
|
// This file was automatically generated. DO NOT EDIT.
|
|
17472
17703
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
17473
|
-
const jsonContentHeaders$
|
|
17704
|
+
const jsonContentHeaders$c = {
|
|
17474
17705
|
'Content-Type': 'application/json; charset=utf-8'
|
|
17475
17706
|
};
|
|
17476
17707
|
|
|
@@ -17504,7 +17735,7 @@ let API$d = class API extends API$u {
|
|
|
17504
17735
|
*/
|
|
17505
17736
|
createLb = request => this.client.fetch({
|
|
17506
17737
|
body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
|
|
17507
|
-
headers: jsonContentHeaders$
|
|
17738
|
+
headers: jsonContentHeaders$c,
|
|
17508
17739
|
method: 'POST',
|
|
17509
17740
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`
|
|
17510
17741
|
}, unmarshalLb);
|
|
@@ -17537,7 +17768,7 @@ let API$d = class API extends API$u {
|
|
|
17537
17768
|
*/
|
|
17538
17769
|
updateLb = request => this.client.fetch({
|
|
17539
17770
|
body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
|
|
17540
|
-
headers: jsonContentHeaders$
|
|
17771
|
+
headers: jsonContentHeaders$c,
|
|
17541
17772
|
method: 'PUT',
|
|
17542
17773
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
17543
17774
|
}, unmarshalLb);
|
|
@@ -17561,7 +17792,7 @@ let API$d = class API extends API$u {
|
|
|
17561
17792
|
*/
|
|
17562
17793
|
migrateLb = request => this.client.fetch({
|
|
17563
17794
|
body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
|
|
17564
|
-
headers: jsonContentHeaders$
|
|
17795
|
+
headers: jsonContentHeaders$c,
|
|
17565
17796
|
method: 'POST',
|
|
17566
17797
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
17567
17798
|
}, unmarshalLb);
|
|
@@ -17587,7 +17818,7 @@ let API$d = class API extends API$u {
|
|
|
17587
17818
|
*/
|
|
17588
17819
|
createIp = (request = {}) => this.client.fetch({
|
|
17589
17820
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
17590
|
-
headers: jsonContentHeaders$
|
|
17821
|
+
headers: jsonContentHeaders$c,
|
|
17591
17822
|
method: 'POST',
|
|
17592
17823
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
|
|
17593
17824
|
}, unmarshalIp);
|
|
@@ -17621,7 +17852,7 @@ let API$d = class API extends API$u {
|
|
|
17621
17852
|
*/
|
|
17622
17853
|
updateIp = request => this.client.fetch({
|
|
17623
17854
|
body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
|
|
17624
|
-
headers: jsonContentHeaders$
|
|
17855
|
+
headers: jsonContentHeaders$c,
|
|
17625
17856
|
method: 'PATCH',
|
|
17626
17857
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
17627
17858
|
}, unmarshalIp);
|
|
@@ -17647,7 +17878,7 @@ let API$d = class API extends API$u {
|
|
|
17647
17878
|
*/
|
|
17648
17879
|
createBackend = request => this.client.fetch({
|
|
17649
17880
|
body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
|
|
17650
|
-
headers: jsonContentHeaders$
|
|
17881
|
+
headers: jsonContentHeaders$c,
|
|
17651
17882
|
method: 'POST',
|
|
17652
17883
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
17653
17884
|
}, unmarshalBackend);
|
|
@@ -17671,7 +17902,7 @@ let API$d = class API extends API$u {
|
|
|
17671
17902
|
*/
|
|
17672
17903
|
updateBackend = request => this.client.fetch({
|
|
17673
17904
|
body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
|
|
17674
|
-
headers: jsonContentHeaders$
|
|
17905
|
+
headers: jsonContentHeaders$c,
|
|
17675
17906
|
method: 'PUT',
|
|
17676
17907
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
17677
17908
|
}, unmarshalBackend);
|
|
@@ -17694,7 +17925,7 @@ let API$d = class API extends API$u {
|
|
|
17694
17925
|
*/
|
|
17695
17926
|
addBackendServers = request => this.client.fetch({
|
|
17696
17927
|
body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
|
|
17697
|
-
headers: jsonContentHeaders$
|
|
17928
|
+
headers: jsonContentHeaders$c,
|
|
17698
17929
|
method: 'POST',
|
|
17699
17930
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
17700
17931
|
}, unmarshalBackend);
|
|
@@ -17707,7 +17938,7 @@ let API$d = class API extends API$u {
|
|
|
17707
17938
|
*/
|
|
17708
17939
|
removeBackendServers = request => this.client.fetch({
|
|
17709
17940
|
body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
|
|
17710
|
-
headers: jsonContentHeaders$
|
|
17941
|
+
headers: jsonContentHeaders$c,
|
|
17711
17942
|
method: 'DELETE',
|
|
17712
17943
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
17713
17944
|
}, unmarshalBackend);
|
|
@@ -17720,7 +17951,7 @@ let API$d = class API extends API$u {
|
|
|
17720
17951
|
*/
|
|
17721
17952
|
setBackendServers = request => this.client.fetch({
|
|
17722
17953
|
body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
|
|
17723
|
-
headers: jsonContentHeaders$
|
|
17954
|
+
headers: jsonContentHeaders$c,
|
|
17724
17955
|
method: 'PUT',
|
|
17725
17956
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
17726
17957
|
}, unmarshalBackend);
|
|
@@ -17733,7 +17964,7 @@ let API$d = class API extends API$u {
|
|
|
17733
17964
|
*/
|
|
17734
17965
|
updateHealthCheck = request => this.client.fetch({
|
|
17735
17966
|
body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
|
|
17736
|
-
headers: jsonContentHeaders$
|
|
17967
|
+
headers: jsonContentHeaders$c,
|
|
17737
17968
|
method: 'PUT',
|
|
17738
17969
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
17739
17970
|
}, unmarshalHealthCheck);
|
|
@@ -17759,7 +17990,7 @@ let API$d = class API extends API$u {
|
|
|
17759
17990
|
*/
|
|
17760
17991
|
createFrontend = request => this.client.fetch({
|
|
17761
17992
|
body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
|
|
17762
|
-
headers: jsonContentHeaders$
|
|
17993
|
+
headers: jsonContentHeaders$c,
|
|
17763
17994
|
method: 'POST',
|
|
17764
17995
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
17765
17996
|
}, unmarshalFrontend);
|
|
@@ -17783,7 +18014,7 @@ let API$d = class API extends API$u {
|
|
|
17783
18014
|
*/
|
|
17784
18015
|
updateFrontend = request => this.client.fetch({
|
|
17785
18016
|
body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
|
|
17786
|
-
headers: jsonContentHeaders$
|
|
18017
|
+
headers: jsonContentHeaders$c,
|
|
17787
18018
|
method: 'PUT',
|
|
17788
18019
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
17789
18020
|
}, unmarshalFrontend);
|
|
@@ -17819,7 +18050,7 @@ let API$d = class API extends API$u {
|
|
|
17819
18050
|
*/
|
|
17820
18051
|
createRoute = request => this.client.fetch({
|
|
17821
18052
|
body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
|
|
17822
|
-
headers: jsonContentHeaders$
|
|
18053
|
+
headers: jsonContentHeaders$c,
|
|
17823
18054
|
method: 'POST',
|
|
17824
18055
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
17825
18056
|
}, unmarshalRoute);
|
|
@@ -17843,7 +18074,7 @@ let API$d = class API extends API$u {
|
|
|
17843
18074
|
*/
|
|
17844
18075
|
updateRoute = request => this.client.fetch({
|
|
17845
18076
|
body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
|
|
17846
|
-
headers: jsonContentHeaders$
|
|
18077
|
+
headers: jsonContentHeaders$c,
|
|
17847
18078
|
method: 'PUT',
|
|
17848
18079
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
17849
18080
|
}, unmarshalRoute);
|
|
@@ -17905,7 +18136,7 @@ let API$d = class API extends API$u {
|
|
|
17905
18136
|
*/
|
|
17906
18137
|
createAcl = request => this.client.fetch({
|
|
17907
18138
|
body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
|
|
17908
|
-
headers: jsonContentHeaders$
|
|
18139
|
+
headers: jsonContentHeaders$c,
|
|
17909
18140
|
method: 'POST',
|
|
17910
18141
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
17911
18142
|
}, unmarshalAcl);
|
|
@@ -17929,7 +18160,7 @@ let API$d = class API extends API$u {
|
|
|
17929
18160
|
*/
|
|
17930
18161
|
updateAcl = request => this.client.fetch({
|
|
17931
18162
|
body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
|
|
17932
|
-
headers: jsonContentHeaders$
|
|
18163
|
+
headers: jsonContentHeaders$c,
|
|
17933
18164
|
method: 'PUT',
|
|
17934
18165
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
17935
18166
|
}, unmarshalAcl);
|
|
@@ -17953,7 +18184,7 @@ let API$d = class API extends API$u {
|
|
|
17953
18184
|
*/
|
|
17954
18185
|
createCertificate = request => this.client.fetch({
|
|
17955
18186
|
body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
|
|
17956
|
-
headers: jsonContentHeaders$
|
|
18187
|
+
headers: jsonContentHeaders$c,
|
|
17957
18188
|
method: 'POST',
|
|
17958
18189
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
17959
18190
|
}, unmarshalCertificate);
|
|
@@ -17999,7 +18230,7 @@ let API$d = class API extends API$u {
|
|
|
17999
18230
|
*/
|
|
18000
18231
|
updateCertificate = request => this.client.fetch({
|
|
18001
18232
|
body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
|
|
18002
|
-
headers: jsonContentHeaders$
|
|
18233
|
+
headers: jsonContentHeaders$c,
|
|
18003
18234
|
method: 'PUT',
|
|
18004
18235
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
18005
18236
|
}, unmarshalCertificate);
|
|
@@ -18035,7 +18266,7 @@ let API$d = class API extends API$u {
|
|
|
18035
18266
|
*/
|
|
18036
18267
|
createSubscriber = request => this.client.fetch({
|
|
18037
18268
|
body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
|
|
18038
|
-
headers: jsonContentHeaders$
|
|
18269
|
+
headers: jsonContentHeaders$c,
|
|
18039
18270
|
method: 'POST',
|
|
18040
18271
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`
|
|
18041
18272
|
}, unmarshalSubscriber);
|
|
@@ -18072,7 +18303,7 @@ let API$d = class API extends API$u {
|
|
|
18072
18303
|
*/
|
|
18073
18304
|
updateSubscriber = request => this.client.fetch({
|
|
18074
18305
|
body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
|
|
18075
|
-
headers: jsonContentHeaders$
|
|
18306
|
+
headers: jsonContentHeaders$c,
|
|
18076
18307
|
method: 'PUT',
|
|
18077
18308
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
18078
18309
|
}, unmarshalSubscriber);
|
|
@@ -18095,7 +18326,7 @@ let API$d = class API extends API$u {
|
|
|
18095
18326
|
*/
|
|
18096
18327
|
subscribeToLb = request => this.client.fetch({
|
|
18097
18328
|
body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
|
|
18098
|
-
headers: jsonContentHeaders$
|
|
18329
|
+
headers: jsonContentHeaders$c,
|
|
18099
18330
|
method: 'POST',
|
|
18100
18331
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
18101
18332
|
}, unmarshalLb);
|
|
@@ -18132,7 +18363,7 @@ let API$d = class API extends API$u {
|
|
|
18132
18363
|
*/
|
|
18133
18364
|
attachPrivateNetwork = request => this.client.fetch({
|
|
18134
18365
|
body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
18135
|
-
headers: jsonContentHeaders$
|
|
18366
|
+
headers: jsonContentHeaders$c,
|
|
18136
18367
|
method: 'POST',
|
|
18137
18368
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
18138
18369
|
}, unmarshalPrivateNetwork$3);
|
|
@@ -18144,7 +18375,7 @@ let API$d = class API extends API$u {
|
|
|
18144
18375
|
*/
|
|
18145
18376
|
detachPrivateNetwork = request => this.client.fetch({
|
|
18146
18377
|
body: '{}',
|
|
18147
|
-
headers: jsonContentHeaders$
|
|
18378
|
+
headers: jsonContentHeaders$c,
|
|
18148
18379
|
method: 'POST',
|
|
18149
18380
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
18150
18381
|
});
|
|
@@ -18186,7 +18417,7 @@ class ZonedAPI extends API$u {
|
|
|
18186
18417
|
*/
|
|
18187
18418
|
createLb = request => this.client.fetch({
|
|
18188
18419
|
body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
|
|
18189
|
-
headers: jsonContentHeaders$
|
|
18420
|
+
headers: jsonContentHeaders$c,
|
|
18190
18421
|
method: 'POST',
|
|
18191
18422
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`
|
|
18192
18423
|
}, unmarshalLb);
|
|
@@ -18223,7 +18454,7 @@ class ZonedAPI extends API$u {
|
|
|
18223
18454
|
*/
|
|
18224
18455
|
updateLb = request => this.client.fetch({
|
|
18225
18456
|
body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
|
|
18226
|
-
headers: jsonContentHeaders$
|
|
18457
|
+
headers: jsonContentHeaders$c,
|
|
18227
18458
|
method: 'PUT',
|
|
18228
18459
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
18229
18460
|
}, unmarshalLb);
|
|
@@ -18252,7 +18483,7 @@ class ZonedAPI extends API$u {
|
|
|
18252
18483
|
*/
|
|
18253
18484
|
migrateLb = request => this.client.fetch({
|
|
18254
18485
|
body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
|
|
18255
|
-
headers: jsonContentHeaders$
|
|
18486
|
+
headers: jsonContentHeaders$c,
|
|
18256
18487
|
method: 'POST',
|
|
18257
18488
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
18258
18489
|
}, unmarshalLb);
|
|
@@ -18282,7 +18513,7 @@ class ZonedAPI extends API$u {
|
|
|
18282
18513
|
*/
|
|
18283
18514
|
createIp = (request = {}) => this.client.fetch({
|
|
18284
18515
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
18285
|
-
headers: jsonContentHeaders$
|
|
18516
|
+
headers: jsonContentHeaders$c,
|
|
18286
18517
|
method: 'POST',
|
|
18287
18518
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
18288
18519
|
}, unmarshalIp);
|
|
@@ -18319,7 +18550,7 @@ class ZonedAPI extends API$u {
|
|
|
18319
18550
|
*/
|
|
18320
18551
|
updateIp = request => this.client.fetch({
|
|
18321
18552
|
body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
|
|
18322
|
-
headers: jsonContentHeaders$
|
|
18553
|
+
headers: jsonContentHeaders$c,
|
|
18323
18554
|
method: 'PATCH',
|
|
18324
18555
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
18325
18556
|
}, unmarshalIp);
|
|
@@ -18352,7 +18583,7 @@ class ZonedAPI extends API$u {
|
|
|
18352
18583
|
*/
|
|
18353
18584
|
createBackend = request => this.client.fetch({
|
|
18354
18585
|
body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
|
|
18355
|
-
headers: jsonContentHeaders$
|
|
18586
|
+
headers: jsonContentHeaders$c,
|
|
18356
18587
|
method: 'POST',
|
|
18357
18588
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
18358
18589
|
}, unmarshalBackend);
|
|
@@ -18381,7 +18612,7 @@ class ZonedAPI extends API$u {
|
|
|
18381
18612
|
*/
|
|
18382
18613
|
updateBackend = request => this.client.fetch({
|
|
18383
18614
|
body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
|
|
18384
|
-
headers: jsonContentHeaders$
|
|
18615
|
+
headers: jsonContentHeaders$c,
|
|
18385
18616
|
method: 'PUT',
|
|
18386
18617
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
18387
18618
|
}, unmarshalBackend);
|
|
@@ -18409,7 +18640,7 @@ class ZonedAPI extends API$u {
|
|
|
18409
18640
|
*/
|
|
18410
18641
|
addBackendServers = request => this.client.fetch({
|
|
18411
18642
|
body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
|
|
18412
|
-
headers: jsonContentHeaders$
|
|
18643
|
+
headers: jsonContentHeaders$c,
|
|
18413
18644
|
method: 'POST',
|
|
18414
18645
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18415
18646
|
}, unmarshalBackend);
|
|
@@ -18424,7 +18655,7 @@ class ZonedAPI extends API$u {
|
|
|
18424
18655
|
*/
|
|
18425
18656
|
removeBackendServers = request => this.client.fetch({
|
|
18426
18657
|
body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
|
|
18427
|
-
headers: jsonContentHeaders$
|
|
18658
|
+
headers: jsonContentHeaders$c,
|
|
18428
18659
|
method: 'DELETE',
|
|
18429
18660
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18430
18661
|
}, unmarshalBackend);
|
|
@@ -18440,7 +18671,7 @@ class ZonedAPI extends API$u {
|
|
|
18440
18671
|
*/
|
|
18441
18672
|
setBackendServers = request => this.client.fetch({
|
|
18442
18673
|
body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
|
|
18443
|
-
headers: jsonContentHeaders$
|
|
18674
|
+
headers: jsonContentHeaders$c,
|
|
18444
18675
|
method: 'PUT',
|
|
18445
18676
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
18446
18677
|
}, unmarshalBackend);
|
|
@@ -18456,7 +18687,7 @@ class ZonedAPI extends API$u {
|
|
|
18456
18687
|
*/
|
|
18457
18688
|
updateHealthCheck = request => this.client.fetch({
|
|
18458
18689
|
body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
|
|
18459
|
-
headers: jsonContentHeaders$
|
|
18690
|
+
headers: jsonContentHeaders$c,
|
|
18460
18691
|
method: 'PUT',
|
|
18461
18692
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
18462
18693
|
}, unmarshalHealthCheck);
|
|
@@ -18489,7 +18720,7 @@ class ZonedAPI extends API$u {
|
|
|
18489
18720
|
*/
|
|
18490
18721
|
createFrontend = request => this.client.fetch({
|
|
18491
18722
|
body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
|
|
18492
|
-
headers: jsonContentHeaders$
|
|
18723
|
+
headers: jsonContentHeaders$c,
|
|
18493
18724
|
method: 'POST',
|
|
18494
18725
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
18495
18726
|
}, unmarshalFrontend);
|
|
@@ -18519,7 +18750,7 @@ class ZonedAPI extends API$u {
|
|
|
18519
18750
|
*/
|
|
18520
18751
|
updateFrontend = request => this.client.fetch({
|
|
18521
18752
|
body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
|
|
18522
|
-
headers: jsonContentHeaders$
|
|
18753
|
+
headers: jsonContentHeaders$c,
|
|
18523
18754
|
method: 'PUT',
|
|
18524
18755
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
18525
18756
|
}, unmarshalFrontend);
|
|
@@ -18561,7 +18792,7 @@ class ZonedAPI extends API$u {
|
|
|
18561
18792
|
*/
|
|
18562
18793
|
createRoute = request => this.client.fetch({
|
|
18563
18794
|
body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
|
|
18564
|
-
headers: jsonContentHeaders$
|
|
18795
|
+
headers: jsonContentHeaders$c,
|
|
18565
18796
|
method: 'POST',
|
|
18566
18797
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes`
|
|
18567
18798
|
}, unmarshalRoute);
|
|
@@ -18588,7 +18819,7 @@ class ZonedAPI extends API$u {
|
|
|
18588
18819
|
*/
|
|
18589
18820
|
updateRoute = request => this.client.fetch({
|
|
18590
18821
|
body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
|
|
18591
|
-
headers: jsonContentHeaders$
|
|
18822
|
+
headers: jsonContentHeaders$c,
|
|
18592
18823
|
method: 'PUT',
|
|
18593
18824
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
18594
18825
|
}, unmarshalRoute);
|
|
@@ -18658,7 +18889,7 @@ class ZonedAPI extends API$u {
|
|
|
18658
18889
|
*/
|
|
18659
18890
|
createAcl = request => this.client.fetch({
|
|
18660
18891
|
body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
|
|
18661
|
-
headers: jsonContentHeaders$
|
|
18892
|
+
headers: jsonContentHeaders$c,
|
|
18662
18893
|
method: 'POST',
|
|
18663
18894
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
18664
18895
|
}, unmarshalAcl);
|
|
@@ -18685,7 +18916,7 @@ class ZonedAPI extends API$u {
|
|
|
18685
18916
|
*/
|
|
18686
18917
|
updateAcl = request => this.client.fetch({
|
|
18687
18918
|
body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
|
|
18688
|
-
headers: jsonContentHeaders$
|
|
18919
|
+
headers: jsonContentHeaders$c,
|
|
18689
18920
|
method: 'PUT',
|
|
18690
18921
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
18691
18922
|
}, unmarshalAcl);
|
|
@@ -18711,7 +18942,7 @@ class ZonedAPI extends API$u {
|
|
|
18711
18942
|
*/
|
|
18712
18943
|
setAcls = request => this.client.fetch({
|
|
18713
18944
|
body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
|
|
18714
|
-
headers: jsonContentHeaders$
|
|
18945
|
+
headers: jsonContentHeaders$c,
|
|
18715
18946
|
method: 'PUT',
|
|
18716
18947
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
18717
18948
|
}, unmarshalSetAclsResponse);
|
|
@@ -18726,7 +18957,7 @@ class ZonedAPI extends API$u {
|
|
|
18726
18957
|
*/
|
|
18727
18958
|
createCertificate = request => this.client.fetch({
|
|
18728
18959
|
body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
|
|
18729
|
-
headers: jsonContentHeaders$
|
|
18960
|
+
headers: jsonContentHeaders$c,
|
|
18730
18961
|
method: 'POST',
|
|
18731
18962
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
18732
18963
|
}, unmarshalCertificate);
|
|
@@ -18779,7 +19010,7 @@ class ZonedAPI extends API$u {
|
|
|
18779
19010
|
*/
|
|
18780
19011
|
updateCertificate = request => this.client.fetch({
|
|
18781
19012
|
body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
|
|
18782
|
-
headers: jsonContentHeaders$
|
|
19013
|
+
headers: jsonContentHeaders$c,
|
|
18783
19014
|
method: 'PUT',
|
|
18784
19015
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
18785
19016
|
}, unmarshalCertificate);
|
|
@@ -18821,7 +19052,7 @@ class ZonedAPI extends API$u {
|
|
|
18821
19052
|
*/
|
|
18822
19053
|
createSubscriber = request => this.client.fetch({
|
|
18823
19054
|
body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
|
|
18824
|
-
headers: jsonContentHeaders$
|
|
19055
|
+
headers: jsonContentHeaders$c,
|
|
18825
19056
|
method: 'POST',
|
|
18826
19057
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`
|
|
18827
19058
|
}, unmarshalSubscriber);
|
|
@@ -18865,7 +19096,7 @@ class ZonedAPI extends API$u {
|
|
|
18865
19096
|
*/
|
|
18866
19097
|
updateSubscriber = request => this.client.fetch({
|
|
18867
19098
|
body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
|
|
18868
|
-
headers: jsonContentHeaders$
|
|
19099
|
+
headers: jsonContentHeaders$c,
|
|
18869
19100
|
method: 'PUT',
|
|
18870
19101
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
18871
19102
|
}, unmarshalSubscriber);
|
|
@@ -18890,7 +19121,7 @@ class ZonedAPI extends API$u {
|
|
|
18890
19121
|
*/
|
|
18891
19122
|
subscribeToLb = request => this.client.fetch({
|
|
18892
19123
|
body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
|
|
18893
|
-
headers: jsonContentHeaders$
|
|
19124
|
+
headers: jsonContentHeaders$c,
|
|
18894
19125
|
method: 'POST',
|
|
18895
19126
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
18896
19127
|
}, unmarshalLb);
|
|
@@ -18935,7 +19166,7 @@ class ZonedAPI extends API$u {
|
|
|
18935
19166
|
*/
|
|
18936
19167
|
attachPrivateNetwork = request => this.client.fetch({
|
|
18937
19168
|
body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
18938
|
-
headers: jsonContentHeaders$
|
|
19169
|
+
headers: jsonContentHeaders$c,
|
|
18939
19170
|
method: 'POST',
|
|
18940
19171
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
18941
19172
|
}, unmarshalPrivateNetwork$3);
|
|
@@ -18948,7 +19179,7 @@ class ZonedAPI extends API$u {
|
|
|
18948
19179
|
*/
|
|
18949
19180
|
detachPrivateNetwork = request => this.client.fetch({
|
|
18950
19181
|
body: '{}',
|
|
18951
|
-
headers: jsonContentHeaders$
|
|
19182
|
+
headers: jsonContentHeaders$c,
|
|
18952
19183
|
method: 'POST',
|
|
18953
19184
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
18954
19185
|
});
|
|
@@ -19174,7 +19405,7 @@ let API$c = class API extends API$u {
|
|
|
19174
19405
|
// This file was automatically generated. DO NOT EDIT.
|
|
19175
19406
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19176
19407
|
|
|
19177
|
-
var index_gen$
|
|
19408
|
+
var index_gen$d = /*#__PURE__*/Object.freeze({
|
|
19178
19409
|
__proto__: null,
|
|
19179
19410
|
API: API$c
|
|
19180
19411
|
});
|
|
@@ -19396,15 +19627,15 @@ let API$b = class API extends API$u {
|
|
|
19396
19627
|
// This file was automatically generated. DO NOT EDIT.
|
|
19397
19628
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19398
19629
|
|
|
19399
|
-
var index_gen$
|
|
19630
|
+
var index_gen$c = /*#__PURE__*/Object.freeze({
|
|
19400
19631
|
__proto__: null,
|
|
19401
19632
|
API: API$b
|
|
19402
19633
|
});
|
|
19403
19634
|
|
|
19404
19635
|
var index$a = /*#__PURE__*/Object.freeze({
|
|
19405
19636
|
__proto__: null,
|
|
19406
|
-
v1: index_gen$
|
|
19407
|
-
v2: index_gen$
|
|
19637
|
+
v1: index_gen$d,
|
|
19638
|
+
v2: index_gen$c
|
|
19408
19639
|
});
|
|
19409
19640
|
|
|
19410
19641
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -19530,7 +19761,7 @@ const marshalUpdateNamespaceRequest$1 = (request, defaults) => ({
|
|
|
19530
19761
|
|
|
19531
19762
|
// This file was automatically generated. DO NOT EDIT.
|
|
19532
19763
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19533
|
-
const jsonContentHeaders$
|
|
19764
|
+
const jsonContentHeaders$b = {
|
|
19534
19765
|
'Content-Type': 'application/json; charset=utf-8'
|
|
19535
19766
|
};
|
|
19536
19767
|
|
|
@@ -19569,7 +19800,7 @@ let API$a = class API extends API$u {
|
|
|
19569
19800
|
*/
|
|
19570
19801
|
createNamespace = request => this.client.fetch({
|
|
19571
19802
|
body: JSON.stringify(marshalCreateNamespaceRequest$1(request, this.client.settings)),
|
|
19572
|
-
headers: jsonContentHeaders$
|
|
19803
|
+
headers: jsonContentHeaders$b,
|
|
19573
19804
|
method: 'POST',
|
|
19574
19805
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
19575
19806
|
}, unmarshalNamespace$1);
|
|
@@ -19583,7 +19814,7 @@ let API$a = class API extends API$u {
|
|
|
19583
19814
|
*/
|
|
19584
19815
|
updateNamespace = request => this.client.fetch({
|
|
19585
19816
|
body: JSON.stringify(marshalUpdateNamespaceRequest$1(request, this.client.settings)),
|
|
19586
|
-
headers: jsonContentHeaders$
|
|
19817
|
+
headers: jsonContentHeaders$b,
|
|
19587
19818
|
method: 'PATCH',
|
|
19588
19819
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
|
|
19589
19820
|
}, unmarshalNamespace$1);
|
|
@@ -19626,7 +19857,7 @@ let API$a = class API extends API$u {
|
|
|
19626
19857
|
*/
|
|
19627
19858
|
createCredential = request => this.client.fetch({
|
|
19628
19859
|
body: JSON.stringify(marshalCreateCredentialRequest(request, this.client.settings)),
|
|
19629
|
-
headers: jsonContentHeaders$
|
|
19860
|
+
headers: jsonContentHeaders$b,
|
|
19630
19861
|
method: 'POST',
|
|
19631
19862
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials`
|
|
19632
19863
|
}, unmarshalCredential);
|
|
@@ -19669,7 +19900,7 @@ let API$a = class API extends API$u {
|
|
|
19669
19900
|
*/
|
|
19670
19901
|
updateCredential = request => this.client.fetch({
|
|
19671
19902
|
body: JSON.stringify(marshalUpdateCredentialRequest(request, this.client.settings)),
|
|
19672
|
-
headers: jsonContentHeaders$
|
|
19903
|
+
headers: jsonContentHeaders$b,
|
|
19673
19904
|
method: 'PATCH',
|
|
19674
19905
|
path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
|
|
19675
19906
|
}, unmarshalCredential);
|
|
@@ -19691,44 +19922,710 @@ let API$a = class API extends API$u {
|
|
|
19691
19922
|
// This file was automatically generated. DO NOT EDIT.
|
|
19692
19923
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19693
19924
|
|
|
19694
|
-
var index_gen$
|
|
19925
|
+
var index_gen$b = /*#__PURE__*/Object.freeze({
|
|
19695
19926
|
__proto__: null,
|
|
19696
19927
|
API: API$a
|
|
19697
19928
|
});
|
|
19698
19929
|
|
|
19699
|
-
var index$9 = /*#__PURE__*/Object.freeze({
|
|
19700
|
-
__proto__: null,
|
|
19701
|
-
v1alpha1: index_gen$a
|
|
19702
|
-
});
|
|
19703
|
-
|
|
19704
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
19705
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19706
|
-
|
|
19707
|
-
/** Lists transient statutes of the enum {@link DatabaseBackupStatus}. */
|
|
19708
|
-
const DATABASE_BACKUP_TRANSIENT_STATUSES = ['creating', 'restoring', 'deleting', 'exporting'];
|
|
19709
|
-
|
|
19710
|
-
/** Lists transient statutes of the enum {@link InstanceLogStatus}. */
|
|
19711
|
-
const INSTANCE_LOG_TRANSIENT_STATUSES = ['creating'];
|
|
19712
|
-
|
|
19713
|
-
/** Lists transient statutes of the enum {@link InstanceStatus}. */
|
|
19714
|
-
const INSTANCE_TRANSIENT_STATUSES = ['provisioning', 'configuring', 'deleting', 'autohealing', 'initializing', 'backuping', 'snapshotting', 'restarting'];
|
|
19715
|
-
|
|
19716
|
-
/** Lists transient statutes of the enum {@link MaintenanceStatus}. */
|
|
19717
|
-
const MAINTENANCE_TRANSIENT_STATUSES = ['pending'];
|
|
19718
|
-
|
|
19719
|
-
/** Lists transient statutes of the enum {@link ReadReplicaStatus}. */
|
|
19720
|
-
const READ_REPLICA_TRANSIENT_STATUSES = ['provisioning', 'initializing', 'deleting', 'configuring', 'promoting'];
|
|
19721
|
-
|
|
19722
|
-
/** Lists transient statutes of the enum {@link SnapshotStatus}. */
|
|
19723
|
-
const SNAPSHOT_TRANSIENT_STATUSES = ['creating', 'restoring', 'deleting'];
|
|
19724
|
-
|
|
19725
19930
|
// This file was automatically generated. DO NOT EDIT.
|
|
19726
19931
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
19727
|
-
const
|
|
19932
|
+
const unmarshalFile = data => {
|
|
19728
19933
|
if (!isJSONObject(data)) {
|
|
19729
|
-
throw new TypeError(`Unmarshalling the type '
|
|
19934
|
+
throw new TypeError(`Unmarshalling the type 'File' failed as data isn't a dictionary.`);
|
|
19730
19935
|
}
|
|
19731
|
-
return {
|
|
19936
|
+
return {
|
|
19937
|
+
content: data.content,
|
|
19938
|
+
name: data.name
|
|
19939
|
+
};
|
|
19940
|
+
};
|
|
19941
|
+
const unmarshalSnsPermissions = data => {
|
|
19942
|
+
if (!isJSONObject(data)) {
|
|
19943
|
+
throw new TypeError(`Unmarshalling the type 'SnsPermissions' failed as data isn't a dictionary.`);
|
|
19944
|
+
}
|
|
19945
|
+
return {
|
|
19946
|
+
canManage: data.can_manage,
|
|
19947
|
+
canPublish: data.can_publish,
|
|
19948
|
+
canReceive: data.can_receive
|
|
19949
|
+
};
|
|
19950
|
+
};
|
|
19951
|
+
const unmarshalSqsPermissions = data => {
|
|
19952
|
+
if (!isJSONObject(data)) {
|
|
19953
|
+
throw new TypeError(`Unmarshalling the type 'SqsPermissions' failed as data isn't a dictionary.`);
|
|
19954
|
+
}
|
|
19955
|
+
return {
|
|
19956
|
+
canManage: data.can_manage,
|
|
19957
|
+
canPublish: data.can_publish,
|
|
19958
|
+
canReceive: data.can_receive
|
|
19959
|
+
};
|
|
19960
|
+
};
|
|
19961
|
+
const unmarshalNatsAccount = data => {
|
|
19962
|
+
if (!isJSONObject(data)) {
|
|
19963
|
+
throw new TypeError(`Unmarshalling the type 'NatsAccount' failed as data isn't a dictionary.`);
|
|
19964
|
+
}
|
|
19965
|
+
return {
|
|
19966
|
+
createdAt: unmarshalDate(data.created_at),
|
|
19967
|
+
endpoint: data.endpoint,
|
|
19968
|
+
id: data.id,
|
|
19969
|
+
name: data.name,
|
|
19970
|
+
projectId: data.project_id,
|
|
19971
|
+
region: data.region,
|
|
19972
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
19973
|
+
};
|
|
19974
|
+
};
|
|
19975
|
+
const unmarshalNatsCredentials = data => {
|
|
19976
|
+
if (!isJSONObject(data)) {
|
|
19977
|
+
throw new TypeError(`Unmarshalling the type 'NatsCredentials' failed as data isn't a dictionary.`);
|
|
19978
|
+
}
|
|
19979
|
+
return {
|
|
19980
|
+
checksum: data.checksum,
|
|
19981
|
+
createdAt: unmarshalDate(data.created_at),
|
|
19982
|
+
credentials: data.credentials ? unmarshalFile(data.credentials) : undefined,
|
|
19983
|
+
id: data.id,
|
|
19984
|
+
name: data.name,
|
|
19985
|
+
natsAccountId: data.nats_account_id,
|
|
19986
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
19987
|
+
};
|
|
19988
|
+
};
|
|
19989
|
+
const unmarshalSnsCredentials = data => {
|
|
19990
|
+
if (!isJSONObject(data)) {
|
|
19991
|
+
throw new TypeError(`Unmarshalling the type 'SnsCredentials' failed as data isn't a dictionary.`);
|
|
19992
|
+
}
|
|
19993
|
+
return {
|
|
19994
|
+
accessKey: data.access_key,
|
|
19995
|
+
createdAt: unmarshalDate(data.created_at),
|
|
19996
|
+
id: data.id,
|
|
19997
|
+
name: data.name,
|
|
19998
|
+
permissions: data.permissions ? unmarshalSnsPermissions(data.permissions) : undefined,
|
|
19999
|
+
projectId: data.project_id,
|
|
20000
|
+
region: data.region,
|
|
20001
|
+
secretChecksum: data.secret_checksum,
|
|
20002
|
+
secretKey: data.secret_key,
|
|
20003
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
20004
|
+
};
|
|
20005
|
+
};
|
|
20006
|
+
const unmarshalSqsCredentials = data => {
|
|
20007
|
+
if (!isJSONObject(data)) {
|
|
20008
|
+
throw new TypeError(`Unmarshalling the type 'SqsCredentials' failed as data isn't a dictionary.`);
|
|
20009
|
+
}
|
|
20010
|
+
return {
|
|
20011
|
+
accessKey: data.access_key,
|
|
20012
|
+
createdAt: unmarshalDate(data.created_at),
|
|
20013
|
+
id: data.id,
|
|
20014
|
+
name: data.name,
|
|
20015
|
+
permissions: data.permissions ? unmarshalSqsPermissions(data.permissions) : undefined,
|
|
20016
|
+
projectId: data.project_id,
|
|
20017
|
+
region: data.region,
|
|
20018
|
+
secretChecksum: data.secret_checksum,
|
|
20019
|
+
secretKey: data.secret_key,
|
|
20020
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
20021
|
+
};
|
|
20022
|
+
};
|
|
20023
|
+
const unmarshalListNatsAccountsResponse = data => {
|
|
20024
|
+
if (!isJSONObject(data)) {
|
|
20025
|
+
throw new TypeError(`Unmarshalling the type 'ListNatsAccountsResponse' failed as data isn't a dictionary.`);
|
|
20026
|
+
}
|
|
20027
|
+
return {
|
|
20028
|
+
natsAccounts: unmarshalArrayOfObject(data.nats_accounts, unmarshalNatsAccount),
|
|
20029
|
+
totalCount: data.total_count
|
|
20030
|
+
};
|
|
20031
|
+
};
|
|
20032
|
+
const unmarshalListNatsCredentialsResponse = data => {
|
|
20033
|
+
if (!isJSONObject(data)) {
|
|
20034
|
+
throw new TypeError(`Unmarshalling the type 'ListNatsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
20035
|
+
}
|
|
20036
|
+
return {
|
|
20037
|
+
natsCredentials: unmarshalArrayOfObject(data.nats_credentials, unmarshalNatsCredentials),
|
|
20038
|
+
totalCount: data.total_count
|
|
20039
|
+
};
|
|
20040
|
+
};
|
|
20041
|
+
const unmarshalListSnsCredentialsResponse = data => {
|
|
20042
|
+
if (!isJSONObject(data)) {
|
|
20043
|
+
throw new TypeError(`Unmarshalling the type 'ListSnsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
20044
|
+
}
|
|
20045
|
+
return {
|
|
20046
|
+
snsCredentials: unmarshalArrayOfObject(data.sns_credentials, unmarshalSnsCredentials),
|
|
20047
|
+
totalCount: data.total_count
|
|
20048
|
+
};
|
|
20049
|
+
};
|
|
20050
|
+
const unmarshalListSqsCredentialsResponse = data => {
|
|
20051
|
+
if (!isJSONObject(data)) {
|
|
20052
|
+
throw new TypeError(`Unmarshalling the type 'ListSqsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
20053
|
+
}
|
|
20054
|
+
return {
|
|
20055
|
+
sqsCredentials: unmarshalArrayOfObject(data.sqs_credentials, unmarshalSqsCredentials),
|
|
20056
|
+
totalCount: data.total_count
|
|
20057
|
+
};
|
|
20058
|
+
};
|
|
20059
|
+
const unmarshalSnsInfo = data => {
|
|
20060
|
+
if (!isJSONObject(data)) {
|
|
20061
|
+
throw new TypeError(`Unmarshalling the type 'SnsInfo' failed as data isn't a dictionary.`);
|
|
20062
|
+
}
|
|
20063
|
+
return {
|
|
20064
|
+
createdAt: unmarshalDate(data.created_at),
|
|
20065
|
+
projectId: data.project_id,
|
|
20066
|
+
region: data.region,
|
|
20067
|
+
snsEndpointUrl: data.sns_endpoint_url,
|
|
20068
|
+
status: data.status,
|
|
20069
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
20070
|
+
};
|
|
20071
|
+
};
|
|
20072
|
+
const unmarshalSqsInfo = data => {
|
|
20073
|
+
if (!isJSONObject(data)) {
|
|
20074
|
+
throw new TypeError(`Unmarshalling the type 'SqsInfo' failed as data isn't a dictionary.`);
|
|
20075
|
+
}
|
|
20076
|
+
return {
|
|
20077
|
+
createdAt: unmarshalDate(data.created_at),
|
|
20078
|
+
projectId: data.project_id,
|
|
20079
|
+
region: data.region,
|
|
20080
|
+
sqsEndpointUrl: data.sqs_endpoint_url,
|
|
20081
|
+
status: data.status,
|
|
20082
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
20083
|
+
};
|
|
20084
|
+
};
|
|
20085
|
+
const marshalSnsPermissions = (request, defaults) => ({
|
|
20086
|
+
can_manage: request.canManage,
|
|
20087
|
+
can_publish: request.canPublish,
|
|
20088
|
+
can_receive: request.canReceive
|
|
20089
|
+
});
|
|
20090
|
+
const marshalSqsPermissions = (request, defaults) => ({
|
|
20091
|
+
can_manage: request.canManage,
|
|
20092
|
+
can_publish: request.canPublish,
|
|
20093
|
+
can_receive: request.canReceive
|
|
20094
|
+
});
|
|
20095
|
+
const marshalNatsApiCreateNatsAccountRequest = (request, defaults) => ({
|
|
20096
|
+
name: request.name || randomName('mnq'),
|
|
20097
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20098
|
+
});
|
|
20099
|
+
const marshalNatsApiCreateNatsCredentialsRequest = (request, defaults) => ({
|
|
20100
|
+
name: request.name || randomName('mnq'),
|
|
20101
|
+
nats_account_id: request.natsAccountId
|
|
20102
|
+
});
|
|
20103
|
+
const marshalNatsApiUpdateNatsAccountRequest = (request, defaults) => ({
|
|
20104
|
+
name: request.name
|
|
20105
|
+
});
|
|
20106
|
+
const marshalSnsApiActivateSnsRequest = (request, defaults) => ({
|
|
20107
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20108
|
+
});
|
|
20109
|
+
const marshalSnsApiCreateSnsCredentialsRequest = (request, defaults) => ({
|
|
20110
|
+
name: request.name || randomName('mnq_sns'),
|
|
20111
|
+
permissions: request.permissions ? marshalSnsPermissions(request.permissions) : undefined,
|
|
20112
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20113
|
+
});
|
|
20114
|
+
const marshalSnsApiDeactivateSnsRequest = (request, defaults) => ({
|
|
20115
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20116
|
+
});
|
|
20117
|
+
const marshalSnsApiUpdateSnsCredentialsRequest = (request, defaults) => ({
|
|
20118
|
+
name: request.name,
|
|
20119
|
+
permissions: request.permissions ? marshalSnsPermissions(request.permissions) : undefined
|
|
20120
|
+
});
|
|
20121
|
+
const marshalSqsApiActivateSqsRequest = (request, defaults) => ({
|
|
20122
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20123
|
+
});
|
|
20124
|
+
const marshalSqsApiCreateSqsCredentialsRequest = (request, defaults) => ({
|
|
20125
|
+
name: request.name || randomName('mnq_sqs'),
|
|
20126
|
+
permissions: request.permissions ? marshalSqsPermissions(request.permissions) : undefined,
|
|
20127
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20128
|
+
});
|
|
20129
|
+
const marshalSqsApiDeactivateSqsRequest = (request, defaults) => ({
|
|
20130
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
20131
|
+
});
|
|
20132
|
+
const marshalSqsApiUpdateSqsCredentialsRequest = (request, defaults) => ({
|
|
20133
|
+
name: request.name,
|
|
20134
|
+
permissions: request.permissions ? marshalSqsPermissions(request.permissions) : undefined
|
|
20135
|
+
});
|
|
20136
|
+
|
|
20137
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
20138
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20139
|
+
const jsonContentHeaders$a = {
|
|
20140
|
+
'Content-Type': 'application/json; charset=utf-8'
|
|
20141
|
+
};
|
|
20142
|
+
|
|
20143
|
+
/**
|
|
20144
|
+
* Messaging and Queuing NATS API.
|
|
20145
|
+
*
|
|
20146
|
+
* This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
|
|
20147
|
+
* Messaging and Queuing NATS API.
|
|
20148
|
+
*/
|
|
20149
|
+
class NatsAPI extends API$u {
|
|
20150
|
+
/** Lists the available regions of the API. */
|
|
20151
|
+
static LOCALITIES = ['fr-par'];
|
|
20152
|
+
|
|
20153
|
+
/**
|
|
20154
|
+
* Create a NATS account. Create a NATS account associated with a Project.
|
|
20155
|
+
*
|
|
20156
|
+
* @param request - The request {@link NatsApiCreateNatsAccountRequest}
|
|
20157
|
+
* @returns A Promise of NatsAccount
|
|
20158
|
+
*/
|
|
20159
|
+
createNatsAccount = (request = {}) => this.client.fetch({
|
|
20160
|
+
body: JSON.stringify(marshalNatsApiCreateNatsAccountRequest(request, this.client.settings)),
|
|
20161
|
+
headers: jsonContentHeaders$a,
|
|
20162
|
+
method: 'POST',
|
|
20163
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts`
|
|
20164
|
+
}, unmarshalNatsAccount);
|
|
20165
|
+
|
|
20166
|
+
/**
|
|
20167
|
+
* Delete a NATS account. Delete a NATS account, specified by its NATS account
|
|
20168
|
+
* ID. Note that deleting a NATS account is irreversible, and any credentials,
|
|
20169
|
+
* streams, consumer and stored messages belonging to this NATS account will
|
|
20170
|
+
* also be deleted.
|
|
20171
|
+
*
|
|
20172
|
+
* @param request - The request {@link NatsApiDeleteNatsAccountRequest}
|
|
20173
|
+
*/
|
|
20174
|
+
deleteNatsAccount = request => this.client.fetch({
|
|
20175
|
+
method: 'DELETE',
|
|
20176
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
|
|
20177
|
+
});
|
|
20178
|
+
|
|
20179
|
+
/**
|
|
20180
|
+
* Update the name of a NATS account. Update the name of a NATS account,
|
|
20181
|
+
* specified by its NATS account ID.
|
|
20182
|
+
*
|
|
20183
|
+
* @param request - The request {@link NatsApiUpdateNatsAccountRequest}
|
|
20184
|
+
* @returns A Promise of NatsAccount
|
|
20185
|
+
*/
|
|
20186
|
+
updateNatsAccount = request => this.client.fetch({
|
|
20187
|
+
body: JSON.stringify(marshalNatsApiUpdateNatsAccountRequest(request, this.client.settings)),
|
|
20188
|
+
headers: jsonContentHeaders$a,
|
|
20189
|
+
method: 'PATCH',
|
|
20190
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
|
|
20191
|
+
}, unmarshalNatsAccount);
|
|
20192
|
+
|
|
20193
|
+
/**
|
|
20194
|
+
* Get a NATS account. Retrieve information about an existing NATS account
|
|
20195
|
+
* identified by its NATS account ID. Its full details, including name and
|
|
20196
|
+
* endpoint, are returned in the response.
|
|
20197
|
+
*
|
|
20198
|
+
* @param request - The request {@link NatsApiGetNatsAccountRequest}
|
|
20199
|
+
* @returns A Promise of NatsAccount
|
|
20200
|
+
*/
|
|
20201
|
+
getNatsAccount = request => this.client.fetch({
|
|
20202
|
+
method: 'GET',
|
|
20203
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts/${validatePathParam('natsAccountId', request.natsAccountId)}`
|
|
20204
|
+
}, unmarshalNatsAccount);
|
|
20205
|
+
pageOfListNatsAccounts = (request = {}) => this.client.fetch({
|
|
20206
|
+
method: 'GET',
|
|
20207
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-accounts`,
|
|
20208
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20209
|
+
}, unmarshalListNatsAccountsResponse);
|
|
20210
|
+
|
|
20211
|
+
/**
|
|
20212
|
+
* List NATS accounts. List all NATS accounts in the specified region, for a
|
|
20213
|
+
* Scaleway Organization or Project. By default, the NATS accounts returned in
|
|
20214
|
+
* the list are ordered by creation date in ascending order, though this can
|
|
20215
|
+
* be modified via the `order_by` field.
|
|
20216
|
+
*
|
|
20217
|
+
* @param request - The request {@link NatsApiListNatsAccountsRequest}
|
|
20218
|
+
* @returns A Promise of ListNatsAccountsResponse
|
|
20219
|
+
*/
|
|
20220
|
+
listNatsAccounts = (request = {}) => enrichForPagination('natsAccounts', this.pageOfListNatsAccounts, request);
|
|
20221
|
+
|
|
20222
|
+
/**
|
|
20223
|
+
* Create NATS credentials. Create a set of credentials for a NATS account,
|
|
20224
|
+
* specified by its NATS account ID.
|
|
20225
|
+
*
|
|
20226
|
+
* @param request - The request {@link NatsApiCreateNatsCredentialsRequest}
|
|
20227
|
+
* @returns A Promise of NatsCredentials
|
|
20228
|
+
*/
|
|
20229
|
+
createNatsCredentials = request => this.client.fetch({
|
|
20230
|
+
body: JSON.stringify(marshalNatsApiCreateNatsCredentialsRequest(request, this.client.settings)),
|
|
20231
|
+
headers: jsonContentHeaders$a,
|
|
20232
|
+
method: 'POST',
|
|
20233
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials`
|
|
20234
|
+
}, unmarshalNatsCredentials);
|
|
20235
|
+
|
|
20236
|
+
/**
|
|
20237
|
+
* Delete NATS credentials. Delete a set of credentials, specified by their
|
|
20238
|
+
* credentials ID. Deleting credentials is irreversible and cannot be undone.
|
|
20239
|
+
* The credentials can no longer be used to access the NATS account, and
|
|
20240
|
+
* active connections using this credentials will be closed.
|
|
20241
|
+
*
|
|
20242
|
+
* @param request - The request {@link NatsApiDeleteNatsCredentialsRequest}
|
|
20243
|
+
*/
|
|
20244
|
+
deleteNatsCredentials = request => this.client.fetch({
|
|
20245
|
+
method: 'DELETE',
|
|
20246
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials/${validatePathParam('natsCredentialsId', request.natsCredentialsId)}`
|
|
20247
|
+
});
|
|
20248
|
+
|
|
20249
|
+
/**
|
|
20250
|
+
* Get NATS credentials. Retrieve an existing set of credentials, identified
|
|
20251
|
+
* by the `nats_credentials_id`. The credentials themselves are NOT returned,
|
|
20252
|
+
* only their metadata (NATS account ID, credentials name, etc), are returned
|
|
20253
|
+
* in the response.
|
|
20254
|
+
*
|
|
20255
|
+
* @param request - The request {@link NatsApiGetNatsCredentialsRequest}
|
|
20256
|
+
* @returns A Promise of NatsCredentials
|
|
20257
|
+
*/
|
|
20258
|
+
getNatsCredentials = request => this.client.fetch({
|
|
20259
|
+
method: 'GET',
|
|
20260
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials/${validatePathParam('natsCredentialsId', request.natsCredentialsId)}`
|
|
20261
|
+
}, unmarshalNatsCredentials);
|
|
20262
|
+
pageOfListNatsCredentials = request => this.client.fetch({
|
|
20263
|
+
method: 'GET',
|
|
20264
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nats-credentials`,
|
|
20265
|
+
urlParams: urlParams(['nats_account_id', request.natsAccountId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
20266
|
+
}, unmarshalListNatsCredentialsResponse);
|
|
20267
|
+
|
|
20268
|
+
/**
|
|
20269
|
+
* List NATS credentials. List existing credentials in the specified NATS
|
|
20270
|
+
* account. The response contains only the metadata for the credentials, not
|
|
20271
|
+
* the credentials themselves, which are only returned after a **Create
|
|
20272
|
+
* Credentials** call.
|
|
20273
|
+
*
|
|
20274
|
+
* @param request - The request {@link NatsApiListNatsCredentialsRequest}
|
|
20275
|
+
* @returns A Promise of ListNatsCredentialsResponse
|
|
20276
|
+
*/
|
|
20277
|
+
listNatsCredentials = request => enrichForPagination('natsCredentials', this.pageOfListNatsCredentials, request);
|
|
20278
|
+
}
|
|
20279
|
+
|
|
20280
|
+
/**
|
|
20281
|
+
* Messaging and Queuing SNS API.
|
|
20282
|
+
*
|
|
20283
|
+
* This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
|
|
20284
|
+
* Messaging and Queuing SNS API.
|
|
20285
|
+
*/
|
|
20286
|
+
class SnsAPI extends API$u {
|
|
20287
|
+
/** Lists the available regions of the API. */
|
|
20288
|
+
static LOCALITIES = ['fr-par'];
|
|
20289
|
+
|
|
20290
|
+
/**
|
|
20291
|
+
* Activate SNS. Activate SNS for the specified Project ID. SNS must be
|
|
20292
|
+
* activated before any usage. Activating SNS does not trigger any billing,
|
|
20293
|
+
* and you can deactivate at any time.
|
|
20294
|
+
*
|
|
20295
|
+
* @param request - The request {@link SnsApiActivateSnsRequest}
|
|
20296
|
+
* @returns A Promise of SnsInfo
|
|
20297
|
+
*/
|
|
20298
|
+
activateSns = (request = {}) => this.client.fetch({
|
|
20299
|
+
body: JSON.stringify(marshalSnsApiActivateSnsRequest(request, this.client.settings)),
|
|
20300
|
+
headers: jsonContentHeaders$a,
|
|
20301
|
+
method: 'POST',
|
|
20302
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/activate-sns`
|
|
20303
|
+
}, unmarshalSnsInfo);
|
|
20304
|
+
|
|
20305
|
+
/**
|
|
20306
|
+
* Get SNS info. Retrieve the SNS information of the specified Project ID.
|
|
20307
|
+
* Informations include the activation status and the SNS API endpoint URL.
|
|
20308
|
+
*
|
|
20309
|
+
* @param request - The request {@link SnsApiGetSnsInfoRequest}
|
|
20310
|
+
* @returns A Promise of SnsInfo
|
|
20311
|
+
*/
|
|
20312
|
+
getSnsInfo = (request = {}) => this.client.fetch({
|
|
20313
|
+
method: 'GET',
|
|
20314
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-info`,
|
|
20315
|
+
urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
20316
|
+
}, unmarshalSnsInfo);
|
|
20317
|
+
|
|
20318
|
+
/**
|
|
20319
|
+
* Deactivate SNS. Deactivate SNS for the specified Project ID.You must delete
|
|
20320
|
+
* all topics and credentials before this call or you need to set the
|
|
20321
|
+
* force_delete parameter.
|
|
20322
|
+
*
|
|
20323
|
+
* @param request - The request {@link SnsApiDeactivateSnsRequest}
|
|
20324
|
+
* @returns A Promise of SnsInfo
|
|
20325
|
+
*/
|
|
20326
|
+
deactivateSns = (request = {}) => this.client.fetch({
|
|
20327
|
+
body: JSON.stringify(marshalSnsApiDeactivateSnsRequest(request, this.client.settings)),
|
|
20328
|
+
headers: jsonContentHeaders$a,
|
|
20329
|
+
method: 'POST',
|
|
20330
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/deactivate-sns`
|
|
20331
|
+
}, unmarshalSnsInfo);
|
|
20332
|
+
|
|
20333
|
+
/**
|
|
20334
|
+
* Create SNS credentials. Create a set of credentials for SNS, specified by a
|
|
20335
|
+
* Project ID. Credentials give the bearer access to topics, and the level of
|
|
20336
|
+
* permissions can be defined granularly.
|
|
20337
|
+
*
|
|
20338
|
+
* @param request - The request {@link SnsApiCreateSnsCredentialsRequest}
|
|
20339
|
+
* @returns A Promise of SnsCredentials
|
|
20340
|
+
*/
|
|
20341
|
+
createSnsCredentials = (request = {}) => this.client.fetch({
|
|
20342
|
+
body: JSON.stringify(marshalSnsApiCreateSnsCredentialsRequest(request, this.client.settings)),
|
|
20343
|
+
headers: jsonContentHeaders$a,
|
|
20344
|
+
method: 'POST',
|
|
20345
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials`
|
|
20346
|
+
}, unmarshalSnsCredentials);
|
|
20347
|
+
|
|
20348
|
+
/**
|
|
20349
|
+
* Delete SNS credentials. Delete a set of SNS credentials, specified by their
|
|
20350
|
+
* credentials ID. Deleting credentials is irreversible and cannot be undone.
|
|
20351
|
+
* The credentials can then no longer be used to access SNS.
|
|
20352
|
+
*
|
|
20353
|
+
* @param request - The request {@link SnsApiDeleteSnsCredentialsRequest}
|
|
20354
|
+
*/
|
|
20355
|
+
deleteSnsCredentials = request => this.client.fetch({
|
|
20356
|
+
method: 'DELETE',
|
|
20357
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
|
|
20358
|
+
});
|
|
20359
|
+
|
|
20360
|
+
/**
|
|
20361
|
+
* Update SNS credentials. Update a set of SNS credentials. You can update the
|
|
20362
|
+
* credentials' name, or their permissions.
|
|
20363
|
+
*
|
|
20364
|
+
* @param request - The request {@link SnsApiUpdateSnsCredentialsRequest}
|
|
20365
|
+
* @returns A Promise of SnsCredentials
|
|
20366
|
+
*/
|
|
20367
|
+
updateSnsCredentials = request => this.client.fetch({
|
|
20368
|
+
body: JSON.stringify(marshalSnsApiUpdateSnsCredentialsRequest(request, this.client.settings)),
|
|
20369
|
+
headers: jsonContentHeaders$a,
|
|
20370
|
+
method: 'PATCH',
|
|
20371
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
|
|
20372
|
+
}, unmarshalSnsCredentials);
|
|
20373
|
+
|
|
20374
|
+
/**
|
|
20375
|
+
* Get SNS credentials. Retrieve an existing set of credentials, identified by
|
|
20376
|
+
* the `credentials_id`. The credentials themselves, as well as their metadata
|
|
20377
|
+
* (name, project ID etc), are returned in the response.
|
|
20378
|
+
*
|
|
20379
|
+
* @param request - The request {@link SnsApiGetSnsCredentialsRequest}
|
|
20380
|
+
* @returns A Promise of SnsCredentials
|
|
20381
|
+
*/
|
|
20382
|
+
getSnsCredentials = request => this.client.fetch({
|
|
20383
|
+
method: 'GET',
|
|
20384
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials/${validatePathParam('snsCredentialsId', request.snsCredentialsId)}`
|
|
20385
|
+
}, unmarshalSnsCredentials);
|
|
20386
|
+
pageOfListSnsCredentials = (request = {}) => this.client.fetch({
|
|
20387
|
+
method: 'GET',
|
|
20388
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sns-credentials`,
|
|
20389
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20390
|
+
}, unmarshalListSnsCredentialsResponse);
|
|
20391
|
+
|
|
20392
|
+
/**
|
|
20393
|
+
* List SNS credentials. List existing SNS credentials in the specified
|
|
20394
|
+
* region. The response contains only the metadata for the credentials, not
|
|
20395
|
+
* the credentials themselves.
|
|
20396
|
+
*
|
|
20397
|
+
* @param request - The request {@link SnsApiListSnsCredentialsRequest}
|
|
20398
|
+
* @returns A Promise of ListSnsCredentialsResponse
|
|
20399
|
+
*/
|
|
20400
|
+
listSnsCredentials = (request = {}) => enrichForPagination('snsCredentials', this.pageOfListSnsCredentials, request);
|
|
20401
|
+
}
|
|
20402
|
+
|
|
20403
|
+
/**
|
|
20404
|
+
* Messaging and Queuing SQS API.
|
|
20405
|
+
*
|
|
20406
|
+
* This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
|
|
20407
|
+
* Messaging and Queuing SQS API.
|
|
20408
|
+
*/
|
|
20409
|
+
class SqsAPI extends API$u {
|
|
20410
|
+
/** Lists the available regions of the API. */
|
|
20411
|
+
static LOCALITIES = ['fr-par'];
|
|
20412
|
+
|
|
20413
|
+
/**
|
|
20414
|
+
* Activate SQS. Activate SQS for the specified Project ID. SQS must be
|
|
20415
|
+
* activated before any usage such as creating credentials and queues.
|
|
20416
|
+
* Activating SQS does not trigger any billing, and you can deactivate at any
|
|
20417
|
+
* time.
|
|
20418
|
+
*
|
|
20419
|
+
* @param request - The request {@link SqsApiActivateSqsRequest}
|
|
20420
|
+
* @returns A Promise of SqsInfo
|
|
20421
|
+
*/
|
|
20422
|
+
activateSqs = (request = {}) => this.client.fetch({
|
|
20423
|
+
body: JSON.stringify(marshalSqsApiActivateSqsRequest(request, this.client.settings)),
|
|
20424
|
+
headers: jsonContentHeaders$a,
|
|
20425
|
+
method: 'POST',
|
|
20426
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/activate-sqs`
|
|
20427
|
+
}, unmarshalSqsInfo);
|
|
20428
|
+
|
|
20429
|
+
/**
|
|
20430
|
+
* Get SQS info. Retrieve the SQS information of the specified Project ID.
|
|
20431
|
+
* Informations include the activation status and the SQS API endpoint URL.
|
|
20432
|
+
*
|
|
20433
|
+
* @param request - The request {@link SqsApiGetSqsInfoRequest}
|
|
20434
|
+
* @returns A Promise of SqsInfo
|
|
20435
|
+
*/
|
|
20436
|
+
getSqsInfo = (request = {}) => this.client.fetch({
|
|
20437
|
+
method: 'GET',
|
|
20438
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-info`,
|
|
20439
|
+
urlParams: urlParams(['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
20440
|
+
}, unmarshalSqsInfo);
|
|
20441
|
+
|
|
20442
|
+
/**
|
|
20443
|
+
* Deactivate SQS. Deactivate SQS for the specified Project ID. You must
|
|
20444
|
+
* delete all queues and credentials before this call or you need to set the
|
|
20445
|
+
* force_delete parameter.
|
|
20446
|
+
*
|
|
20447
|
+
* @param request - The request {@link SqsApiDeactivateSqsRequest}
|
|
20448
|
+
* @returns A Promise of SqsInfo
|
|
20449
|
+
*/
|
|
20450
|
+
deactivateSqs = (request = {}) => this.client.fetch({
|
|
20451
|
+
body: JSON.stringify(marshalSqsApiDeactivateSqsRequest(request, this.client.settings)),
|
|
20452
|
+
headers: jsonContentHeaders$a,
|
|
20453
|
+
method: 'POST',
|
|
20454
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/deactivate-sqs`
|
|
20455
|
+
}, unmarshalSqsInfo);
|
|
20456
|
+
|
|
20457
|
+
/**
|
|
20458
|
+
* Create SQS credentials. Create a set of credentials for SQS, specified by a
|
|
20459
|
+
* Project ID. Credentials give the bearer access to queues, and the level of
|
|
20460
|
+
* permissions can be defined granularly.
|
|
20461
|
+
*
|
|
20462
|
+
* @param request - The request {@link SqsApiCreateSqsCredentialsRequest}
|
|
20463
|
+
* @returns A Promise of SqsCredentials
|
|
20464
|
+
*/
|
|
20465
|
+
createSqsCredentials = (request = {}) => this.client.fetch({
|
|
20466
|
+
body: JSON.stringify(marshalSqsApiCreateSqsCredentialsRequest(request, this.client.settings)),
|
|
20467
|
+
headers: jsonContentHeaders$a,
|
|
20468
|
+
method: 'POST',
|
|
20469
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials`
|
|
20470
|
+
}, unmarshalSqsCredentials);
|
|
20471
|
+
|
|
20472
|
+
/**
|
|
20473
|
+
* Delete SQS credentials. Delete a set of SQS credentials, specified by their
|
|
20474
|
+
* credentials ID. Deleting credentials is irreversible and cannot be undone.
|
|
20475
|
+
* The credentials can then no longer be used to access SQS.
|
|
20476
|
+
*
|
|
20477
|
+
* @param request - The request {@link SqsApiDeleteSqsCredentialsRequest}
|
|
20478
|
+
*/
|
|
20479
|
+
deleteSqsCredentials = request => this.client.fetch({
|
|
20480
|
+
method: 'DELETE',
|
|
20481
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
|
|
20482
|
+
});
|
|
20483
|
+
|
|
20484
|
+
/**
|
|
20485
|
+
* Update SQS credentials. Update a set of SQS credentials. You can update the
|
|
20486
|
+
* credentials' name, or their permissions.
|
|
20487
|
+
*
|
|
20488
|
+
* @param request - The request {@link SqsApiUpdateSqsCredentialsRequest}
|
|
20489
|
+
* @returns A Promise of SqsCredentials
|
|
20490
|
+
*/
|
|
20491
|
+
updateSqsCredentials = request => this.client.fetch({
|
|
20492
|
+
body: JSON.stringify(marshalSqsApiUpdateSqsCredentialsRequest(request, this.client.settings)),
|
|
20493
|
+
headers: jsonContentHeaders$a,
|
|
20494
|
+
method: 'PATCH',
|
|
20495
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
|
|
20496
|
+
}, unmarshalSqsCredentials);
|
|
20497
|
+
|
|
20498
|
+
/**
|
|
20499
|
+
* Get SQS credentials. Retrieve an existing set of credentials, identified by
|
|
20500
|
+
* the `credentials_id`. The credentials themselves, as well as their metadata
|
|
20501
|
+
* (name, project ID etc), are returned in the response.
|
|
20502
|
+
*
|
|
20503
|
+
* @param request - The request {@link SqsApiGetSqsCredentialsRequest}
|
|
20504
|
+
* @returns A Promise of SqsCredentials
|
|
20505
|
+
*/
|
|
20506
|
+
getSqsCredentials = request => this.client.fetch({
|
|
20507
|
+
method: 'GET',
|
|
20508
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials/${validatePathParam('sqsCredentialsId', request.sqsCredentialsId)}`
|
|
20509
|
+
}, unmarshalSqsCredentials);
|
|
20510
|
+
pageOfListSqsCredentials = (request = {}) => this.client.fetch({
|
|
20511
|
+
method: 'GET',
|
|
20512
|
+
path: `/mnq/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/sqs-credentials`,
|
|
20513
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
20514
|
+
}, unmarshalListSqsCredentialsResponse);
|
|
20515
|
+
|
|
20516
|
+
/**
|
|
20517
|
+
* List SQS credentials. List existing SQS credentials in the specified
|
|
20518
|
+
* region. The response contains only the metadata for the credentials, not
|
|
20519
|
+
* the credentials themselves.
|
|
20520
|
+
*
|
|
20521
|
+
* @param request - The request {@link SqsApiListSqsCredentialsRequest}
|
|
20522
|
+
* @returns A Promise of ListSqsCredentialsResponse
|
|
20523
|
+
*/
|
|
20524
|
+
listSqsCredentials = (request = {}) => enrichForPagination('sqsCredentials', this.pageOfListSqsCredentials, request);
|
|
20525
|
+
}
|
|
20526
|
+
|
|
20527
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
20528
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20529
|
+
|
|
20530
|
+
const NatsApiCreateNatsAccountRequest = {
|
|
20531
|
+
name: {
|
|
20532
|
+
maxLength: 64,
|
|
20533
|
+
minLength: 1
|
|
20534
|
+
}
|
|
20535
|
+
};
|
|
20536
|
+
const NatsApiCreateNatsCredentialsRequest = {
|
|
20537
|
+
name: {
|
|
20538
|
+
maxLength: 500,
|
|
20539
|
+
minLength: 1
|
|
20540
|
+
}
|
|
20541
|
+
};
|
|
20542
|
+
const NatsApiUpdateNatsAccountRequest = {
|
|
20543
|
+
name: {
|
|
20544
|
+
maxLength: 64,
|
|
20545
|
+
minLength: 1
|
|
20546
|
+
}
|
|
20547
|
+
};
|
|
20548
|
+
const SnsApiCreateSnsCredentialsRequest = {
|
|
20549
|
+
name: {
|
|
20550
|
+
maxLength: 500,
|
|
20551
|
+
minLength: 1
|
|
20552
|
+
}
|
|
20553
|
+
};
|
|
20554
|
+
const SnsApiUpdateSnsCredentialsRequest = {
|
|
20555
|
+
name: {
|
|
20556
|
+
maxLength: 500,
|
|
20557
|
+
minLength: 1
|
|
20558
|
+
}
|
|
20559
|
+
};
|
|
20560
|
+
const SqsApiCreateSqsCredentialsRequest = {
|
|
20561
|
+
name: {
|
|
20562
|
+
maxLength: 500,
|
|
20563
|
+
minLength: 1
|
|
20564
|
+
}
|
|
20565
|
+
};
|
|
20566
|
+
const SqsApiUpdateSqsCredentialsRequest = {
|
|
20567
|
+
name: {
|
|
20568
|
+
maxLength: 500,
|
|
20569
|
+
minLength: 1
|
|
20570
|
+
}
|
|
20571
|
+
};
|
|
20572
|
+
|
|
20573
|
+
var validationRules_gen$2 = /*#__PURE__*/Object.freeze({
|
|
20574
|
+
__proto__: null,
|
|
20575
|
+
NatsApiCreateNatsAccountRequest: NatsApiCreateNatsAccountRequest,
|
|
20576
|
+
NatsApiCreateNatsCredentialsRequest: NatsApiCreateNatsCredentialsRequest,
|
|
20577
|
+
NatsApiUpdateNatsAccountRequest: NatsApiUpdateNatsAccountRequest,
|
|
20578
|
+
SnsApiCreateSnsCredentialsRequest: SnsApiCreateSnsCredentialsRequest,
|
|
20579
|
+
SnsApiUpdateSnsCredentialsRequest: SnsApiUpdateSnsCredentialsRequest,
|
|
20580
|
+
SqsApiCreateSqsCredentialsRequest: SqsApiCreateSqsCredentialsRequest,
|
|
20581
|
+
SqsApiUpdateSqsCredentialsRequest: SqsApiUpdateSqsCredentialsRequest
|
|
20582
|
+
});
|
|
20583
|
+
|
|
20584
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
20585
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20586
|
+
|
|
20587
|
+
var index_gen$a = /*#__PURE__*/Object.freeze({
|
|
20588
|
+
__proto__: null,
|
|
20589
|
+
NatsAPI: NatsAPI,
|
|
20590
|
+
SnsAPI: SnsAPI,
|
|
20591
|
+
SqsAPI: SqsAPI,
|
|
20592
|
+
ValidationRules: validationRules_gen$2
|
|
20593
|
+
});
|
|
20594
|
+
|
|
20595
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
20596
|
+
__proto__: null,
|
|
20597
|
+
v1alpha1: index_gen$b,
|
|
20598
|
+
v1beta1: index_gen$a
|
|
20599
|
+
});
|
|
20600
|
+
|
|
20601
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
20602
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20603
|
+
|
|
20604
|
+
/** Lists transient statutes of the enum {@link DatabaseBackupStatus}. */
|
|
20605
|
+
const DATABASE_BACKUP_TRANSIENT_STATUSES = ['creating', 'restoring', 'deleting', 'exporting'];
|
|
20606
|
+
|
|
20607
|
+
/** Lists transient statutes of the enum {@link InstanceLogStatus}. */
|
|
20608
|
+
const INSTANCE_LOG_TRANSIENT_STATUSES = ['creating'];
|
|
20609
|
+
|
|
20610
|
+
/** Lists transient statutes of the enum {@link InstanceStatus}. */
|
|
20611
|
+
const INSTANCE_TRANSIENT_STATUSES = ['provisioning', 'configuring', 'deleting', 'autohealing', 'initializing', 'backuping', 'snapshotting', 'restarting'];
|
|
20612
|
+
|
|
20613
|
+
/** Lists transient statutes of the enum {@link MaintenanceStatus}. */
|
|
20614
|
+
const MAINTENANCE_TRANSIENT_STATUSES = ['pending'];
|
|
20615
|
+
|
|
20616
|
+
/** Lists transient statutes of the enum {@link ReadReplicaStatus}. */
|
|
20617
|
+
const READ_REPLICA_TRANSIENT_STATUSES = ['provisioning', 'initializing', 'deleting', 'configuring', 'promoting'];
|
|
20618
|
+
|
|
20619
|
+
/** Lists transient statutes of the enum {@link SnapshotStatus}. */
|
|
20620
|
+
const SNAPSHOT_TRANSIENT_STATUSES = ['creating', 'restoring', 'deleting'];
|
|
20621
|
+
|
|
20622
|
+
// This file was automatically generated. DO NOT EDIT.
|
|
20623
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
20624
|
+
const unmarshalEndpointDirectAccessDetails = data => {
|
|
20625
|
+
if (!isJSONObject(data)) {
|
|
20626
|
+
throw new TypeError(`Unmarshalling the type 'EndpointDirectAccessDetails' failed as data isn't a dictionary.`);
|
|
20627
|
+
}
|
|
20628
|
+
return {};
|
|
19732
20629
|
};
|
|
19733
20630
|
const unmarshalEndpointLoadBalancerDetails = data => {
|
|
19734
20631
|
if (!isJSONObject(data)) {
|
|
@@ -19849,6 +20746,7 @@ const unmarshalNodeTypeVolumeType = data => {
|
|
|
19849
20746
|
}
|
|
19850
20747
|
return {
|
|
19851
20748
|
chunkSize: data.chunk_size,
|
|
20749
|
+
class: data.class,
|
|
19852
20750
|
description: data.description,
|
|
19853
20751
|
maxSize: data.max_size,
|
|
19854
20752
|
minSize: data.min_size,
|
|
@@ -19883,6 +20781,7 @@ const unmarshalVolume = data => {
|
|
|
19883
20781
|
throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
|
|
19884
20782
|
}
|
|
19885
20783
|
return {
|
|
20784
|
+
class: data.class,
|
|
19886
20785
|
size: data.size,
|
|
19887
20786
|
type: data.type
|
|
19888
20787
|
};
|