@scaleway/sdk 0.1.0-beta.9 → 1.0.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/README.md +1 -1
- package/dist/api/account/index.js +2 -2
- package/dist/api/account/v2/api.gen.js +5 -18
- package/dist/api/account/v2/index.gen.js +3 -0
- package/dist/api/account/v2/marshalling.gen.js +0 -2
- package/dist/api/account/v2alpha1/api.gen.js +3 -13
- package/dist/api/account/v2alpha1/marshalling.gen.js +0 -5
- package/dist/api/applesilicon/index.js +2 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.js +7 -27
- package/dist/api/applesilicon/v1alpha1/index.gen.js +4 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -14
- package/dist/api/baremetal/v1/api.gen.js +47 -49
- package/dist/api/baremetal/v1/api.utils.js +2 -10
- package/dist/api/baremetal/v1/content.gen.js +6 -3
- package/dist/api/baremetal/v1/index.js +4 -1
- package/dist/api/baremetal/v1/marshalling.gen.js +44 -45
- package/dist/api/baremetal/v1/validation-rules.gen.js +109 -0
- package/dist/api/container/index.js +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -51
- package/dist/api/container/v1beta1/content.gen.js +4 -4
- package/dist/api/container/v1beta1/{index.js → index.gen.js} +3 -1
- package/dist/api/container/v1beta1/marshalling.gen.js +12 -26
- package/dist/api/domain/index.js +2 -2
- package/dist/api/domain/v2beta1/api.gen.js +55 -85
- package/dist/api/domain/v2beta1/content.gen.js +22 -1
- package/dist/api/domain/v2beta1/index.gen.js +4 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +47 -165
- package/dist/api/flexibleip/index.js +2 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.js +5 -22
- package/dist/api/flexibleip/v1alpha1/content.gen.js +1 -1
- package/dist/api/flexibleip/v1alpha1/index.gen.js +6 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +0 -7
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +14 -0
- package/dist/api/function/index.js +2 -2
- package/dist/api/function/v1beta1/api.gen.js +54 -57
- package/dist/api/function/v1beta1/content.gen.js +8 -5
- package/dist/api/function/v1beta1/index.gen.js +4 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +125 -33
- package/dist/api/iam/index.js +2 -2
- package/dist/api/iam/v1alpha1/api.gen.js +15 -62
- package/dist/api/iam/v1alpha1/index.gen.js +5 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +7 -29
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +184 -0
- package/dist/api/instance/v1/api.gen.js +38 -118
- package/dist/api/instance/v1/api.utils.js +59 -51
- package/dist/api/instance/v1/content.gen.js +7 -7
- package/dist/api/instance/v1/marshalling.gen.js +46 -168
- package/dist/api/instance/v1/marshalling.utils.js +63 -0
- package/dist/api/iot/index.js +2 -2
- package/dist/api/iot/v1/api.gen.js +5 -56
- package/dist/api/iot/v1/index.gen.js +4 -0
- package/dist/api/iot/v1/marshalling.gen.js +2 -51
- package/dist/api/k8s/index.js +2 -2
- package/dist/api/k8s/v1/api.gen.js +17 -43
- package/dist/api/k8s/v1/content.gen.js +2 -2
- package/dist/api/k8s/v1/index.gen.js +6 -0
- package/dist/api/k8s/v1/marshalling.gen.js +18 -36
- package/dist/api/k8s/v1/validation-rules.gen.js +92 -0
- package/dist/api/lb/v1/api.gen.js +8 -163
- package/dist/api/lb/v1/api.utils.js +3 -9
- package/dist/api/lb/v1/content.gen.js +3 -3
- package/dist/api/lb/v1/marshalling.gen.js +74 -101
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v1/api.gen.js +3 -13
- package/dist/api/marketplace/v1/index.gen.js +3 -0
- package/dist/api/marketplace/v1/marshalling.gen.js +0 -13
- package/dist/api/marketplace/v2/api.gen.js +85 -0
- package/dist/api/marketplace/v2/index.gen.js +3 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +92 -0
- package/dist/api/mnq/index.js +2 -2
- package/dist/api/mnq/v1alpha1/api.gen.js +7 -25
- package/dist/api/mnq/v1alpha1/index.gen.js +3 -0
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +7 -46
- package/dist/api/rdb/index.js +2 -2
- package/dist/api/rdb/v1/api.gen.js +15 -89
- package/dist/api/rdb/v1/content.gen.js +10 -4
- package/dist/api/rdb/v1/index.gen.js +4 -0
- package/dist/api/rdb/v1/marshalling.gen.js +25 -81
- package/dist/api/redis/index.js +2 -2
- package/dist/api/redis/{v1alpha1 → v1}/api.gen.js +45 -77
- package/dist/api/redis/{v1alpha1 → v1}/content.gen.js +1 -1
- package/dist/api/redis/v1/index.gen.js +4 -0
- package/dist/api/redis/{v1alpha1 → v1}/marshalling.gen.js +42 -59
- package/dist/api/registry/index.js +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -29
- package/dist/api/registry/v1/content.gen.js +2 -2
- package/dist/api/registry/v1/{index.js → index.gen.js} +3 -1
- package/dist/api/registry/v1/marshalling.gen.js +2 -8
- package/dist/api/secret/index.js +2 -0
- package/dist/api/secret/v1alpha1/api.gen.js +135 -0
- package/dist/api/secret/v1alpha1/index.gen.js +3 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +82 -0
- package/dist/api/tem/index.js +2 -0
- package/dist/api/tem/v1alpha1/api.gen.js +109 -0
- package/dist/api/tem/v1alpha1/content.gen.js +10 -0
- package/dist/api/tem/v1alpha1/index.gen.js +4 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +132 -0
- package/dist/api/test/index.js +2 -2
- package/dist/api/test/v1/api.gen.js +6 -20
- package/dist/api/test/v1/index.gen.js +4 -0
- package/dist/api/test/v1/marshalling.gen.js +2 -5
- package/dist/api/vpc/index.js +2 -2
- package/dist/api/vpc/v1/api.gen.js +6 -17
- package/dist/api/vpc/v1/index.gen.js +3 -0
- package/dist/api/vpc/v1/marshalling.gen.js +1 -3
- package/dist/api/vpcgw/index.js +2 -2
- package/dist/api/vpcgw/v1/api.gen.js +5 -64
- package/dist/api/vpcgw/v1/content.gen.js +2 -2
- package/dist/api/vpcgw/v1/{index.js → index.gen.js} +3 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +3 -24
- package/dist/helpers/json.js +1 -2
- package/dist/helpers/marshalling.js +7 -20
- package/dist/index.cjs +3864 -2945
- package/dist/index.d.ts +7212 -4332
- package/dist/index.js +10 -6
- package/dist/internal/async/interval-retrier.js +10 -16
- package/dist/internal/interceptors/interceptor.js +3 -1
- package/dist/internal/interceptors/request.js +1 -3
- package/dist/internal/logger/console-logger.js +3 -5
- package/dist/internal/logger/index.js +3 -5
- package/dist/internal/logger/level-resolver.js +0 -3
- package/dist/internal/validations/string-validation.js +8 -10
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js +13 -0
- package/dist/scw/api.js +3 -4
- package/dist/scw/auth.js +3 -5
- package/dist/scw/client-ini-factory.js +32 -15
- package/dist/scw/client-ini-profile.js +10 -4
- package/dist/scw/client-settings.js +32 -15
- package/dist/scw/client.js +5 -6
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.js +8 -14
- package/dist/scw/errors/error-parser.js +2 -21
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +17 -15
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +7 -6
- package/dist/scw/errors/scw-error.js +20 -20
- package/dist/scw/errors/standard/already-exists-error.js +3 -4
- package/dist/scw/errors/standard/denied-authentication-error.js +4 -11
- package/dist/scw/errors/standard/invalid-arguments-error.js +1 -10
- package/dist/scw/errors/standard/out-of-stock-error.js +0 -3
- package/dist/scw/errors/standard/permissions-denied-error.js +1 -4
- package/dist/scw/errors/standard/precondition-failed-error.js +4 -8
- package/dist/scw/errors/standard/quotas-exceeded-error.js +14 -14
- package/dist/scw/errors/standard/resource-expired-error.js +3 -4
- package/dist/scw/errors/standard/resource-locked-error.js +3 -4
- package/dist/scw/errors/standard/resource-not-found-error.js +3 -4
- package/dist/scw/errors/standard/too-many-requests-error.js +3 -16
- package/dist/scw/errors/standard/transient-state-error.js +3 -4
- package/dist/scw/errors/types.js +0 -3
- package/dist/scw/fetch/build-fetcher.js +1 -9
- package/dist/scw/fetch/http-dumper.js +4 -7
- package/dist/scw/fetch/http-interceptors.js +9 -12
- package/dist/scw/fetch/resource-paginator.js +18 -16
- package/dist/scw/fetch/response-parser.js +17 -23
- package/node_modules/@scaleway/random-name/CHANGELOG.md +42 -63
- package/node_modules/@scaleway/random-name/dist/index.js +5 -246
- package/node_modules/@scaleway/random-name/package.json +6 -5
- package/package.json +4 -5
- package/dist/api/account/v2/index.js +0 -1
- package/dist/api/applesilicon/v1alpha1/index.js +0 -2
- package/dist/api/domain/v2beta1/index.js +0 -2
- package/dist/api/flexibleip/v1alpha1/index.js +0 -2
- package/dist/api/function/v1beta1/index.js +0 -2
- package/dist/api/iam/v1alpha1/index.js +0 -1
- package/dist/api/iot/v1/index.js +0 -2
- package/dist/api/k8s/v1/index.js +0 -2
- package/dist/api/marketplace/v1/index.js +0 -1
- package/dist/api/mnq/v1alpha1/index.js +0 -1
- package/dist/api/rdb/v1/index.js +0 -2
- package/dist/api/redis/v1alpha1/index.js +0 -2
- package/dist/api/test/v1/index.js +0 -1
- package/dist/api/vpc/v1/index.js +0 -1
- package/dist/node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js +0 -254
- package/node_modules/@scaleway/random-name/dist/index.browser.js +0 -256
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { waitForResource } from '../../../internal/async/interval-retrier.js';
|
|
2
|
-
import { API } from '../../../scw/api.js';
|
|
2
|
+
import { API as API$1 } from '../../../scw/api.js';
|
|
3
3
|
import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
|
|
4
4
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
5
5
|
import { LB_TRANSIENT_STATUSES, CERTIFICATE_TRANSIENT_STATUSES } from './content.gen.js';
|
|
@@ -9,98 +9,81 @@ import { unmarshalListLbsResponse, marshalCreateLbRequest, unmarshalLb, marshalU
|
|
|
9
9
|
const jsonContentHeaders = {
|
|
10
10
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
11
|
};
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* Load balancer API.
|
|
14
15
|
*
|
|
15
16
|
* This API allows you to manage your load balancer service.
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
-
class LbV1GenAPI extends API {
|
|
18
|
+
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
var _this;
|
|
21
|
-
|
|
22
21
|
super(...arguments);
|
|
23
22
|
_this = this;
|
|
24
|
-
|
|
25
23
|
this.pageOfListLbs = function (request) {
|
|
26
24
|
if (request === void 0) {
|
|
27
25
|
request = {};
|
|
28
26
|
}
|
|
29
|
-
|
|
30
27
|
return _this.client.fetch({
|
|
31
28
|
method: 'GET',
|
|
32
29
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/lbs`,
|
|
33
30
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId])
|
|
34
31
|
}, unmarshalListLbsResponse);
|
|
35
32
|
};
|
|
36
|
-
|
|
37
33
|
this.listLbs = function (request) {
|
|
38
34
|
if (request === void 0) {
|
|
39
35
|
request = {};
|
|
40
36
|
}
|
|
41
|
-
|
|
42
37
|
return enrichForPagination('lbs', _this.pageOfListLbs, request);
|
|
43
38
|
};
|
|
44
|
-
|
|
45
39
|
this.createLb = request => this.client.fetch({
|
|
46
40
|
body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
|
|
47
41
|
headers: jsonContentHeaders,
|
|
48
42
|
method: 'POST',
|
|
49
43
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`
|
|
50
44
|
}, unmarshalLb);
|
|
51
|
-
|
|
52
45
|
this.getLb = request => this.client.fetch({
|
|
53
46
|
method: 'GET',
|
|
54
47
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
55
48
|
}, unmarshalLb);
|
|
56
|
-
|
|
57
49
|
this.waitForLb = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
58
|
-
|
|
59
50
|
this.updateLb = request => this.client.fetch({
|
|
60
51
|
body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
|
|
61
52
|
headers: jsonContentHeaders,
|
|
62
53
|
method: 'PUT',
|
|
63
54
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
64
55
|
}, unmarshalLb);
|
|
65
|
-
|
|
66
56
|
this.deleteLb = request => this.client.fetch({
|
|
67
57
|
method: 'DELETE',
|
|
68
58
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`,
|
|
69
59
|
urlParams: urlParams(['release_ip', request.releaseIp])
|
|
70
60
|
});
|
|
71
|
-
|
|
72
61
|
this.migrateLb = request => this.client.fetch({
|
|
73
62
|
body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
|
|
74
63
|
headers: jsonContentHeaders,
|
|
75
64
|
method: 'POST',
|
|
76
65
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
77
66
|
}, unmarshalLb);
|
|
78
|
-
|
|
79
67
|
this.pageOfListIPs = function (request) {
|
|
80
68
|
if (request === void 0) {
|
|
81
69
|
request = {};
|
|
82
70
|
}
|
|
83
|
-
|
|
84
71
|
return _this.client.fetch({
|
|
85
72
|
method: 'GET',
|
|
86
73
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/ips`,
|
|
87
74
|
urlParams: urlParams(['ip_address', request.ipAddress], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId])
|
|
88
75
|
}, unmarshalListIpsResponse);
|
|
89
76
|
};
|
|
90
|
-
|
|
91
77
|
this.listIPs = function (request) {
|
|
92
78
|
if (request === void 0) {
|
|
93
79
|
request = {};
|
|
94
80
|
}
|
|
95
|
-
|
|
96
81
|
return enrichForPagination('ips', _this.pageOfListIPs, request);
|
|
97
82
|
};
|
|
98
|
-
|
|
99
83
|
this.createIp = function (request) {
|
|
100
84
|
if (request === void 0) {
|
|
101
85
|
request = {};
|
|
102
86
|
}
|
|
103
|
-
|
|
104
87
|
return _this.client.fetch({
|
|
105
88
|
body: JSON.stringify(marshalCreateIpRequest(request, _this.client.settings)),
|
|
106
89
|
headers: jsonContentHeaders,
|
|
@@ -108,318 +91,259 @@ class LbV1GenAPI extends API {
|
|
|
108
91
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/ips`
|
|
109
92
|
}, unmarshalIp);
|
|
110
93
|
};
|
|
111
|
-
|
|
112
94
|
this.getIp = request => this.client.fetch({
|
|
113
95
|
method: 'GET',
|
|
114
96
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
115
97
|
}, unmarshalIp);
|
|
116
|
-
|
|
117
98
|
this.releaseIp = request => this.client.fetch({
|
|
118
99
|
method: 'DELETE',
|
|
119
100
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
120
101
|
});
|
|
121
|
-
|
|
122
102
|
this.updateIp = request => this.client.fetch({
|
|
123
103
|
body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
|
|
124
104
|
headers: jsonContentHeaders,
|
|
125
105
|
method: 'PATCH',
|
|
126
106
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
127
107
|
}, unmarshalIp);
|
|
128
|
-
|
|
129
108
|
this.pageOfListBackends = request => this.client.fetch({
|
|
130
109
|
method: 'GET',
|
|
131
110
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`,
|
|
132
111
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
133
112
|
}, unmarshalListBackendsResponse);
|
|
134
|
-
|
|
135
113
|
this.listBackends = request => enrichForPagination('backends', this.pageOfListBackends, request);
|
|
136
|
-
|
|
137
114
|
this.createBackend = request => this.client.fetch({
|
|
138
115
|
body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
|
|
139
116
|
headers: jsonContentHeaders,
|
|
140
117
|
method: 'POST',
|
|
141
118
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
142
119
|
}, unmarshalBackend);
|
|
143
|
-
|
|
144
120
|
this.getBackend = request => this.client.fetch({
|
|
145
121
|
method: 'GET',
|
|
146
122
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
147
123
|
}, unmarshalBackend);
|
|
148
|
-
|
|
149
124
|
this.updateBackend = request => this.client.fetch({
|
|
150
125
|
body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
|
|
151
126
|
headers: jsonContentHeaders,
|
|
152
127
|
method: 'PUT',
|
|
153
128
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
154
129
|
}, unmarshalBackend);
|
|
155
|
-
|
|
156
130
|
this.deleteBackend = request => this.client.fetch({
|
|
157
131
|
method: 'DELETE',
|
|
158
132
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
159
133
|
});
|
|
160
|
-
|
|
161
134
|
this.addBackendServers = request => this.client.fetch({
|
|
162
135
|
body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
|
|
163
136
|
headers: jsonContentHeaders,
|
|
164
137
|
method: 'POST',
|
|
165
138
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
166
139
|
}, unmarshalBackend);
|
|
167
|
-
|
|
168
140
|
this.removeBackendServers = request => this.client.fetch({
|
|
169
141
|
body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
|
|
170
142
|
headers: jsonContentHeaders,
|
|
171
143
|
method: 'DELETE',
|
|
172
144
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
173
145
|
}, unmarshalBackend);
|
|
174
|
-
|
|
175
146
|
this.setBackendServers = request => this.client.fetch({
|
|
176
147
|
body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
|
|
177
148
|
headers: jsonContentHeaders,
|
|
178
149
|
method: 'PUT',
|
|
179
150
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
180
151
|
}, unmarshalBackend);
|
|
181
|
-
|
|
182
152
|
this.updateHealthCheck = request => this.client.fetch({
|
|
183
153
|
body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
|
|
184
154
|
headers: jsonContentHeaders,
|
|
185
155
|
method: 'PUT',
|
|
186
156
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
187
157
|
}, unmarshalHealthCheck);
|
|
188
|
-
|
|
189
158
|
this.pageOfListFrontends = request => this.client.fetch({
|
|
190
159
|
method: 'GET',
|
|
191
160
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`,
|
|
192
161
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
193
162
|
}, unmarshalListFrontendsResponse);
|
|
194
|
-
|
|
195
163
|
this.listFrontends = request => enrichForPagination('frontends', this.pageOfListFrontends, request);
|
|
196
|
-
|
|
197
164
|
this.createFrontend = request => this.client.fetch({
|
|
198
165
|
body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
|
|
199
166
|
headers: jsonContentHeaders,
|
|
200
167
|
method: 'POST',
|
|
201
168
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
202
169
|
}, unmarshalFrontend);
|
|
203
|
-
|
|
204
170
|
this.getFrontend = request => this.client.fetch({
|
|
205
171
|
method: 'GET',
|
|
206
172
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
207
173
|
}, unmarshalFrontend);
|
|
208
|
-
|
|
209
174
|
this.updateFrontend = request => this.client.fetch({
|
|
210
175
|
body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
|
|
211
176
|
headers: jsonContentHeaders,
|
|
212
177
|
method: 'PUT',
|
|
213
178
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
214
179
|
}, unmarshalFrontend);
|
|
215
|
-
|
|
216
180
|
this.deleteFrontend = request => this.client.fetch({
|
|
217
181
|
method: 'DELETE',
|
|
218
182
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
219
183
|
});
|
|
220
|
-
|
|
221
184
|
this.pageOfListRoutes = function (request) {
|
|
222
185
|
if (request === void 0) {
|
|
223
186
|
request = {};
|
|
224
187
|
}
|
|
225
|
-
|
|
226
188
|
return _this.client.fetch({
|
|
227
189
|
method: 'GET',
|
|
228
190
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/routes`,
|
|
229
191
|
urlParams: urlParams(['frontend_id', request.frontendId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize])
|
|
230
192
|
}, unmarshalListRoutesResponse);
|
|
231
193
|
};
|
|
232
|
-
|
|
233
194
|
this.listRoutes = function (request) {
|
|
234
195
|
if (request === void 0) {
|
|
235
196
|
request = {};
|
|
236
197
|
}
|
|
237
|
-
|
|
238
198
|
return enrichForPagination('routes', _this.pageOfListRoutes, request);
|
|
239
199
|
};
|
|
240
|
-
|
|
241
200
|
this.createRoute = request => this.client.fetch({
|
|
242
201
|
body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
|
|
243
202
|
headers: jsonContentHeaders,
|
|
244
203
|
method: 'POST',
|
|
245
204
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
|
|
246
205
|
}, unmarshalRoute);
|
|
247
|
-
|
|
248
206
|
this.getRoute = request => this.client.fetch({
|
|
249
207
|
method: 'GET',
|
|
250
208
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
251
209
|
}, unmarshalRoute);
|
|
252
|
-
|
|
253
210
|
this.updateRoute = request => this.client.fetch({
|
|
254
211
|
body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
|
|
255
212
|
headers: jsonContentHeaders,
|
|
256
213
|
method: 'PUT',
|
|
257
214
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
258
215
|
}, unmarshalRoute);
|
|
259
|
-
|
|
260
216
|
this.deleteRoute = request => this.client.fetch({
|
|
261
217
|
method: 'DELETE',
|
|
262
218
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
263
219
|
});
|
|
264
|
-
|
|
265
220
|
this.getLbStats = request => this.client.fetch({
|
|
266
221
|
method: 'GET',
|
|
267
222
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`
|
|
268
223
|
}, unmarshalLbStats);
|
|
269
|
-
|
|
270
224
|
this.pageOfListBackendStats = request => this.client.fetch({
|
|
271
225
|
method: 'GET',
|
|
272
226
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
|
|
273
227
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
274
228
|
}, unmarshalListBackendStatsResponse);
|
|
275
|
-
|
|
276
229
|
this.listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
|
|
277
|
-
|
|
278
230
|
this.pageOfListAcls = request => this.client.fetch({
|
|
279
231
|
method: 'GET',
|
|
280
232
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`,
|
|
281
233
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
282
234
|
}, unmarshalListAclResponse);
|
|
283
|
-
|
|
284
235
|
this.listAcls = request => enrichForPagination('acls', this.pageOfListAcls, request);
|
|
285
|
-
|
|
286
236
|
this.createAcl = request => this.client.fetch({
|
|
287
237
|
body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
|
|
288
238
|
headers: jsonContentHeaders,
|
|
289
239
|
method: 'POST',
|
|
290
240
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
291
241
|
}, unmarshalAcl);
|
|
292
|
-
|
|
293
242
|
this.getAcl = request => this.client.fetch({
|
|
294
243
|
method: 'GET',
|
|
295
244
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
296
245
|
}, unmarshalAcl);
|
|
297
|
-
|
|
298
246
|
this.updateAcl = request => this.client.fetch({
|
|
299
247
|
body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
|
|
300
248
|
headers: jsonContentHeaders,
|
|
301
249
|
method: 'PUT',
|
|
302
250
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
303
251
|
}, unmarshalAcl);
|
|
304
|
-
|
|
305
252
|
this.deleteAcl = request => this.client.fetch({
|
|
306
253
|
method: 'DELETE',
|
|
307
254
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
308
255
|
});
|
|
309
|
-
|
|
310
256
|
this.createCertificate = request => this.client.fetch({
|
|
311
257
|
body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
|
|
312
258
|
headers: jsonContentHeaders,
|
|
313
259
|
method: 'POST',
|
|
314
260
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
315
261
|
}, unmarshalCertificate);
|
|
316
|
-
|
|
317
262
|
this.pageOfListCertificates = request => this.client.fetch({
|
|
318
263
|
method: 'GET',
|
|
319
264
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`,
|
|
320
265
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
321
266
|
}, unmarshalListCertificatesResponse);
|
|
322
|
-
|
|
323
267
|
this.listCertificates = request => enrichForPagination('certificates', this.pageOfListCertificates, request);
|
|
324
|
-
|
|
325
268
|
this.getCertificate = request => this.client.fetch({
|
|
326
269
|
method: 'GET',
|
|
327
270
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
328
271
|
}, unmarshalCertificate);
|
|
329
|
-
|
|
330
272
|
this.waitForCertificate = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
331
|
-
|
|
332
273
|
this.updateCertificate = request => this.client.fetch({
|
|
333
274
|
body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
|
|
334
275
|
headers: jsonContentHeaders,
|
|
335
276
|
method: 'PUT',
|
|
336
277
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
337
278
|
}, unmarshalCertificate);
|
|
338
|
-
|
|
339
279
|
this.deleteCertificate = request => this.client.fetch({
|
|
340
280
|
method: 'DELETE',
|
|
341
281
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
342
282
|
});
|
|
343
|
-
|
|
344
283
|
this.pageOfListLbTypes = function (request) {
|
|
345
284
|
if (request === void 0) {
|
|
346
285
|
request = {};
|
|
347
286
|
}
|
|
348
|
-
|
|
349
287
|
return _this.client.fetch({
|
|
350
288
|
method: 'GET',
|
|
351
289
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/lb-types`,
|
|
352
290
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize])
|
|
353
291
|
}, unmarshalListLbTypesResponse);
|
|
354
292
|
};
|
|
355
|
-
|
|
356
293
|
this.listLbTypes = function (request) {
|
|
357
294
|
if (request === void 0) {
|
|
358
295
|
request = {};
|
|
359
296
|
}
|
|
360
|
-
|
|
361
297
|
return enrichForPagination('lbTypes', _this.pageOfListLbTypes, request);
|
|
362
298
|
};
|
|
363
|
-
|
|
364
299
|
this.createSubscriber = request => this.client.fetch({
|
|
365
300
|
body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
|
|
366
301
|
headers: jsonContentHeaders,
|
|
367
302
|
method: 'POST',
|
|
368
303
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`
|
|
369
304
|
}, unmarshalSubscriber);
|
|
370
|
-
|
|
371
305
|
this.getSubscriber = request => this.client.fetch({
|
|
372
306
|
method: 'GET',
|
|
373
307
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
374
308
|
}, unmarshalSubscriber);
|
|
375
|
-
|
|
376
309
|
this.pageOfListSubscriber = request => this.client.fetch({
|
|
377
310
|
method: 'GET',
|
|
378
311
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`,
|
|
379
312
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
380
313
|
}, unmarshalListSubscriberResponse);
|
|
381
|
-
|
|
382
314
|
this.listSubscriber = request => enrichForPagination('subscribers', this.pageOfListSubscriber, request);
|
|
383
|
-
|
|
384
315
|
this.updateSubscriber = request => this.client.fetch({
|
|
385
316
|
body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
|
|
386
317
|
headers: jsonContentHeaders,
|
|
387
318
|
method: 'PUT',
|
|
388
319
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
389
320
|
}, unmarshalSubscriber);
|
|
390
|
-
|
|
391
321
|
this.deleteSubscriber = request => this.client.fetch({
|
|
392
322
|
method: 'DELETE',
|
|
393
323
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/subscriber/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
394
324
|
});
|
|
395
|
-
|
|
396
325
|
this.subscribeToLb = request => this.client.fetch({
|
|
397
326
|
body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
|
|
398
327
|
headers: jsonContentHeaders,
|
|
399
328
|
method: 'POST',
|
|
400
329
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
401
330
|
}, unmarshalLb);
|
|
402
|
-
|
|
403
331
|
this.unsubscribeFromLb = request => this.client.fetch({
|
|
404
332
|
method: 'DELETE',
|
|
405
333
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/unsubscribe`
|
|
406
334
|
}, unmarshalLb);
|
|
407
|
-
|
|
408
335
|
this.pageOfListLbPrivateNetworks = request => this.client.fetch({
|
|
409
336
|
method: 'GET',
|
|
410
337
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks`,
|
|
411
338
|
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
412
339
|
}, unmarshalListLbPrivateNetworksResponse);
|
|
413
|
-
|
|
414
340
|
this.listLbPrivateNetworks = request => enrichForPagination('privateNetwork', this.pageOfListLbPrivateNetworks, request);
|
|
415
|
-
|
|
416
341
|
this.attachPrivateNetwork = request => this.client.fetch({
|
|
417
342
|
body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
418
343
|
headers: jsonContentHeaders,
|
|
419
344
|
method: 'POST',
|
|
420
345
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
421
346
|
}, unmarshalPrivateNetwork);
|
|
422
|
-
|
|
423
347
|
this.detachPrivateNetwork = request => this.client.fetch({
|
|
424
348
|
body: '{}',
|
|
425
349
|
headers: jsonContentHeaders,
|
|
@@ -427,101 +351,83 @@ class LbV1GenAPI extends API {
|
|
|
427
351
|
path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
428
352
|
});
|
|
429
353
|
}
|
|
430
|
-
|
|
431
354
|
}
|
|
355
|
+
|
|
432
356
|
/**
|
|
433
357
|
* Load balancer API.
|
|
434
358
|
*
|
|
435
359
|
* This API allows you to manage your load balancer service.
|
|
436
360
|
*/
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
class LbZonedV1GenAPI extends API {
|
|
361
|
+
API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
|
|
362
|
+
class ZonedAPI extends API$1 {
|
|
440
363
|
constructor() {
|
|
441
364
|
var _this2;
|
|
442
|
-
|
|
443
365
|
super(...arguments);
|
|
444
366
|
_this2 = this;
|
|
445
|
-
|
|
446
367
|
this.pageOfListLbs = function (request) {
|
|
447
368
|
if (request === void 0) {
|
|
448
369
|
request = {};
|
|
449
370
|
}
|
|
450
|
-
|
|
451
371
|
return _this2.client.fetch({
|
|
452
372
|
method: 'GET',
|
|
453
373
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this2.client.settings.defaultZone)}/lbs`,
|
|
454
374
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? _this2.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this2.client.settings.defaultProjectId])
|
|
455
375
|
}, unmarshalListLbsResponse);
|
|
456
376
|
};
|
|
457
|
-
|
|
458
377
|
this.listLbs = function (request) {
|
|
459
378
|
if (request === void 0) {
|
|
460
379
|
request = {};
|
|
461
380
|
}
|
|
462
|
-
|
|
463
381
|
return enrichForPagination('lbs', _this2.pageOfListLbs, request);
|
|
464
382
|
};
|
|
465
|
-
|
|
466
383
|
this.createLb = request => this.client.fetch({
|
|
467
384
|
body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
|
|
468
385
|
headers: jsonContentHeaders,
|
|
469
386
|
method: 'POST',
|
|
470
387
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`
|
|
471
388
|
}, unmarshalLb);
|
|
472
|
-
|
|
473
389
|
this.getLb = request => this.client.fetch({
|
|
474
390
|
method: 'GET',
|
|
475
391
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
476
392
|
}, unmarshalLb);
|
|
477
|
-
|
|
478
393
|
this.waitForLb = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
479
|
-
|
|
480
394
|
this.updateLb = request => this.client.fetch({
|
|
481
395
|
body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
|
|
482
396
|
headers: jsonContentHeaders,
|
|
483
397
|
method: 'PUT',
|
|
484
398
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
|
|
485
399
|
}, unmarshalLb);
|
|
486
|
-
|
|
487
400
|
this.deleteLb = request => this.client.fetch({
|
|
488
401
|
method: 'DELETE',
|
|
489
402
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`,
|
|
490
403
|
urlParams: urlParams(['release_ip', request.releaseIp])
|
|
491
404
|
});
|
|
492
|
-
|
|
493
405
|
this.migrateLb = request => this.client.fetch({
|
|
494
406
|
body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
|
|
495
407
|
headers: jsonContentHeaders,
|
|
496
408
|
method: 'POST',
|
|
497
409
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
|
|
498
410
|
}, unmarshalLb);
|
|
499
|
-
|
|
500
411
|
this.pageOfListIPs = function (request) {
|
|
501
412
|
if (request === void 0) {
|
|
502
413
|
request = {};
|
|
503
414
|
}
|
|
504
|
-
|
|
505
415
|
return _this2.client.fetch({
|
|
506
416
|
method: 'GET',
|
|
507
417
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this2.client.settings.defaultZone)}/ips`,
|
|
508
418
|
urlParams: urlParams(['ip_address', request.ipAddress], ['organization_id', request.organizationId ?? _this2.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this2.client.settings.defaultProjectId])
|
|
509
419
|
}, unmarshalListIpsResponse);
|
|
510
420
|
};
|
|
511
|
-
|
|
512
421
|
this.listIPs = function (request) {
|
|
513
422
|
if (request === void 0) {
|
|
514
423
|
request = {};
|
|
515
424
|
}
|
|
516
|
-
|
|
517
425
|
return enrichForPagination('ips', _this2.pageOfListIPs, request);
|
|
518
426
|
};
|
|
519
|
-
|
|
520
427
|
this.createIp = function (request) {
|
|
521
428
|
if (request === void 0) {
|
|
522
429
|
request = {};
|
|
523
430
|
}
|
|
524
|
-
|
|
525
431
|
return _this2.client.fetch({
|
|
526
432
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, _this2.client.settings)),
|
|
527
433
|
headers: jsonContentHeaders,
|
|
@@ -529,325 +435,265 @@ class LbZonedV1GenAPI extends API {
|
|
|
529
435
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this2.client.settings.defaultZone)}/ips`
|
|
530
436
|
}, unmarshalIp);
|
|
531
437
|
};
|
|
532
|
-
|
|
533
438
|
this.getIp = request => this.client.fetch({
|
|
534
439
|
method: 'GET',
|
|
535
440
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
536
441
|
}, unmarshalIp);
|
|
537
|
-
|
|
538
442
|
this.releaseIp = request => this.client.fetch({
|
|
539
443
|
method: 'DELETE',
|
|
540
444
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
541
445
|
});
|
|
542
|
-
|
|
543
446
|
this.updateIp = request => this.client.fetch({
|
|
544
447
|
body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
|
|
545
448
|
headers: jsonContentHeaders,
|
|
546
449
|
method: 'PATCH',
|
|
547
450
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
548
451
|
}, unmarshalIp);
|
|
549
|
-
|
|
550
452
|
this.pageOfListBackends = request => this.client.fetch({
|
|
551
453
|
method: 'GET',
|
|
552
454
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`,
|
|
553
455
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
554
456
|
}, unmarshalListBackendsResponse);
|
|
555
|
-
|
|
556
457
|
this.listBackends = request => enrichForPagination('backends', this.pageOfListBackends, request);
|
|
557
|
-
|
|
558
458
|
this.createBackend = request => this.client.fetch({
|
|
559
459
|
body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
|
|
560
460
|
headers: jsonContentHeaders,
|
|
561
461
|
method: 'POST',
|
|
562
462
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
|
|
563
463
|
}, unmarshalBackend);
|
|
564
|
-
|
|
565
464
|
this.getBackend = request => this.client.fetch({
|
|
566
465
|
method: 'GET',
|
|
567
466
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
568
467
|
}, unmarshalBackend);
|
|
569
|
-
|
|
570
468
|
this.updateBackend = request => this.client.fetch({
|
|
571
469
|
body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
|
|
572
470
|
headers: jsonContentHeaders,
|
|
573
471
|
method: 'PUT',
|
|
574
472
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
575
473
|
}, unmarshalBackend);
|
|
576
|
-
|
|
577
474
|
this.deleteBackend = request => this.client.fetch({
|
|
578
475
|
method: 'DELETE',
|
|
579
476
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
|
|
580
477
|
});
|
|
581
|
-
|
|
582
478
|
this.addBackendServers = request => this.client.fetch({
|
|
583
479
|
body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
|
|
584
480
|
headers: jsonContentHeaders,
|
|
585
481
|
method: 'POST',
|
|
586
482
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
587
483
|
}, unmarshalBackend);
|
|
588
|
-
|
|
589
484
|
this.removeBackendServers = request => this.client.fetch({
|
|
590
485
|
body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
|
|
591
486
|
headers: jsonContentHeaders,
|
|
592
487
|
method: 'DELETE',
|
|
593
488
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
594
489
|
}, unmarshalBackend);
|
|
595
|
-
|
|
596
490
|
this.setBackendServers = request => this.client.fetch({
|
|
597
491
|
body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
|
|
598
492
|
headers: jsonContentHeaders,
|
|
599
493
|
method: 'PUT',
|
|
600
494
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
|
|
601
495
|
}, unmarshalBackend);
|
|
602
|
-
|
|
603
496
|
this.updateHealthCheck = request => this.client.fetch({
|
|
604
497
|
body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
|
|
605
498
|
headers: jsonContentHeaders,
|
|
606
499
|
method: 'PUT',
|
|
607
500
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
|
|
608
501
|
}, unmarshalHealthCheck);
|
|
609
|
-
|
|
610
502
|
this.pageOfListFrontends = request => this.client.fetch({
|
|
611
503
|
method: 'GET',
|
|
612
504
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`,
|
|
613
505
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
614
506
|
}, unmarshalListFrontendsResponse);
|
|
615
|
-
|
|
616
507
|
this.listFrontends = request => enrichForPagination('frontends', this.pageOfListFrontends, request);
|
|
617
|
-
|
|
618
508
|
this.createFrontend = request => this.client.fetch({
|
|
619
509
|
body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
|
|
620
510
|
headers: jsonContentHeaders,
|
|
621
511
|
method: 'POST',
|
|
622
512
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
|
|
623
513
|
}, unmarshalFrontend);
|
|
624
|
-
|
|
625
514
|
this.getFrontend = request => this.client.fetch({
|
|
626
515
|
method: 'GET',
|
|
627
516
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
628
517
|
}, unmarshalFrontend);
|
|
629
|
-
|
|
630
518
|
this.updateFrontend = request => this.client.fetch({
|
|
631
519
|
body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
|
|
632
520
|
headers: jsonContentHeaders,
|
|
633
521
|
method: 'PUT',
|
|
634
522
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
635
523
|
}, unmarshalFrontend);
|
|
636
|
-
|
|
637
524
|
this.deleteFrontend = request => this.client.fetch({
|
|
638
525
|
method: 'DELETE',
|
|
639
526
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
|
|
640
527
|
});
|
|
641
|
-
|
|
642
528
|
this.pageOfListRoutes = function (request) {
|
|
643
529
|
if (request === void 0) {
|
|
644
530
|
request = {};
|
|
645
531
|
}
|
|
646
|
-
|
|
647
532
|
return _this2.client.fetch({
|
|
648
533
|
method: 'GET',
|
|
649
534
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this2.client.settings.defaultZone)}/routes`,
|
|
650
535
|
urlParams: urlParams(['frontend_id', request.frontendId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize])
|
|
651
536
|
}, unmarshalListRoutesResponse);
|
|
652
537
|
};
|
|
653
|
-
|
|
654
538
|
this.listRoutes = function (request) {
|
|
655
539
|
if (request === void 0) {
|
|
656
540
|
request = {};
|
|
657
541
|
}
|
|
658
|
-
|
|
659
542
|
return enrichForPagination('routes', _this2.pageOfListRoutes, request);
|
|
660
543
|
};
|
|
661
|
-
|
|
662
544
|
this.createRoute = request => this.client.fetch({
|
|
663
545
|
body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
|
|
664
546
|
headers: jsonContentHeaders,
|
|
665
547
|
method: 'POST',
|
|
666
548
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes`
|
|
667
549
|
}, unmarshalRoute);
|
|
668
|
-
|
|
669
550
|
this.getRoute = request => this.client.fetch({
|
|
670
551
|
method: 'GET',
|
|
671
552
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
672
553
|
}, unmarshalRoute);
|
|
673
|
-
|
|
674
554
|
this.updateRoute = request => this.client.fetch({
|
|
675
555
|
body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
|
|
676
556
|
headers: jsonContentHeaders,
|
|
677
557
|
method: 'PUT',
|
|
678
558
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
679
559
|
}, unmarshalRoute);
|
|
680
|
-
|
|
681
560
|
this.deleteRoute = request => this.client.fetch({
|
|
682
561
|
method: 'DELETE',
|
|
683
562
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
|
|
684
563
|
});
|
|
685
|
-
|
|
686
564
|
this.getLbStats = request => this.client.fetch({
|
|
687
565
|
method: 'GET',
|
|
688
566
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`
|
|
689
567
|
}, unmarshalLbStats);
|
|
690
|
-
|
|
691
568
|
this.pageOfListBackendStats = request => this.client.fetch({
|
|
692
569
|
method: 'GET',
|
|
693
570
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
|
|
694
571
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
695
572
|
}, unmarshalListBackendStatsResponse);
|
|
696
|
-
|
|
697
573
|
this.listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
|
|
698
|
-
|
|
699
574
|
this.pageOfListAcls = request => this.client.fetch({
|
|
700
575
|
method: 'GET',
|
|
701
576
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`,
|
|
702
577
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
703
578
|
}, unmarshalListAclResponse);
|
|
704
|
-
|
|
705
579
|
this.listAcls = request => enrichForPagination('acls', this.pageOfListAcls, request);
|
|
706
|
-
|
|
707
580
|
this.createAcl = request => this.client.fetch({
|
|
708
581
|
body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
|
|
709
582
|
headers: jsonContentHeaders,
|
|
710
583
|
method: 'POST',
|
|
711
584
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
712
585
|
}, unmarshalAcl);
|
|
713
|
-
|
|
714
586
|
this.getAcl = request => this.client.fetch({
|
|
715
587
|
method: 'GET',
|
|
716
588
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
717
589
|
}, unmarshalAcl);
|
|
718
|
-
|
|
719
590
|
this.updateAcl = request => this.client.fetch({
|
|
720
591
|
body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
|
|
721
592
|
headers: jsonContentHeaders,
|
|
722
593
|
method: 'PUT',
|
|
723
594
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
724
595
|
}, unmarshalAcl);
|
|
725
|
-
|
|
726
596
|
this.deleteAcl = request => this.client.fetch({
|
|
727
597
|
method: 'DELETE',
|
|
728
598
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
|
|
729
599
|
});
|
|
730
|
-
|
|
731
600
|
this.setAcls = request => this.client.fetch({
|
|
732
601
|
body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
|
|
733
602
|
headers: jsonContentHeaders,
|
|
734
603
|
method: 'PUT',
|
|
735
604
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
|
|
736
605
|
}, unmarshalSetAclsResponse);
|
|
737
|
-
|
|
738
606
|
this.createCertificate = request => this.client.fetch({
|
|
739
607
|
body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
|
|
740
608
|
headers: jsonContentHeaders,
|
|
741
609
|
method: 'POST',
|
|
742
610
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
|
|
743
611
|
}, unmarshalCertificate);
|
|
744
|
-
|
|
745
612
|
this.pageOfListCertificates = request => this.client.fetch({
|
|
746
613
|
method: 'GET',
|
|
747
614
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`,
|
|
748
615
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
749
616
|
}, unmarshalListCertificatesResponse);
|
|
750
|
-
|
|
751
617
|
this.listCertificates = request => enrichForPagination('certificates', this.pageOfListCertificates, request);
|
|
752
|
-
|
|
753
618
|
this.getCertificate = request => this.client.fetch({
|
|
754
619
|
method: 'GET',
|
|
755
620
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
756
621
|
}, unmarshalCertificate);
|
|
757
|
-
|
|
758
622
|
this.waitForCertificate = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
759
|
-
|
|
760
623
|
this.updateCertificate = request => this.client.fetch({
|
|
761
624
|
body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
|
|
762
625
|
headers: jsonContentHeaders,
|
|
763
626
|
method: 'PUT',
|
|
764
627
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
765
628
|
}, unmarshalCertificate);
|
|
766
|
-
|
|
767
629
|
this.deleteCertificate = request => this.client.fetch({
|
|
768
630
|
method: 'DELETE',
|
|
769
631
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
|
|
770
632
|
});
|
|
771
|
-
|
|
772
633
|
this.pageOfListLbTypes = function (request) {
|
|
773
634
|
if (request === void 0) {
|
|
774
635
|
request = {};
|
|
775
636
|
}
|
|
776
|
-
|
|
777
637
|
return _this2.client.fetch({
|
|
778
638
|
method: 'GET',
|
|
779
639
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this2.client.settings.defaultZone)}/lb-types`,
|
|
780
640
|
urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this2.client.settings.defaultPageSize])
|
|
781
641
|
}, unmarshalListLbTypesResponse);
|
|
782
642
|
};
|
|
783
|
-
|
|
784
643
|
this.listLbTypes = function (request) {
|
|
785
644
|
if (request === void 0) {
|
|
786
645
|
request = {};
|
|
787
646
|
}
|
|
788
|
-
|
|
789
647
|
return enrichForPagination('lbTypes', _this2.pageOfListLbTypes, request);
|
|
790
648
|
};
|
|
791
|
-
|
|
792
649
|
this.createSubscriber = request => this.client.fetch({
|
|
793
650
|
body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
|
|
794
651
|
headers: jsonContentHeaders,
|
|
795
652
|
method: 'POST',
|
|
796
653
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`
|
|
797
654
|
}, unmarshalSubscriber);
|
|
798
|
-
|
|
799
655
|
this.getSubscriber = request => this.client.fetch({
|
|
800
656
|
method: 'GET',
|
|
801
657
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
802
658
|
}, unmarshalSubscriber);
|
|
803
|
-
|
|
804
659
|
this.pageOfListSubscriber = request => this.client.fetch({
|
|
805
660
|
method: 'GET',
|
|
806
661
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`,
|
|
807
662
|
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
808
663
|
}, unmarshalListSubscriberResponse);
|
|
809
|
-
|
|
810
664
|
this.listSubscriber = request => enrichForPagination('subscribers', this.pageOfListSubscriber, request);
|
|
811
|
-
|
|
812
665
|
this.updateSubscriber = request => this.client.fetch({
|
|
813
666
|
body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
|
|
814
667
|
headers: jsonContentHeaders,
|
|
815
668
|
method: 'PUT',
|
|
816
669
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
817
670
|
}, unmarshalSubscriber);
|
|
818
|
-
|
|
819
671
|
this.deleteSubscriber = request => this.client.fetch({
|
|
820
672
|
method: 'DELETE',
|
|
821
673
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/subscription/${validatePathParam('subscriberId', request.subscriberId)}`
|
|
822
674
|
});
|
|
823
|
-
|
|
824
675
|
this.subscribeToLb = request => this.client.fetch({
|
|
825
676
|
body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
|
|
826
677
|
headers: jsonContentHeaders,
|
|
827
678
|
method: 'POST',
|
|
828
679
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
|
|
829
680
|
}, unmarshalLb);
|
|
830
|
-
|
|
831
681
|
this.unsubscribeFromLb = request => this.client.fetch({
|
|
832
682
|
method: 'DELETE',
|
|
833
683
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/unsubscribe`
|
|
834
684
|
}, unmarshalLb);
|
|
835
|
-
|
|
836
685
|
this.pageOfListLbPrivateNetworks = request => this.client.fetch({
|
|
837
686
|
method: 'GET',
|
|
838
687
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks`,
|
|
839
688
|
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
840
689
|
}, unmarshalListLbPrivateNetworksResponse);
|
|
841
|
-
|
|
842
690
|
this.listLbPrivateNetworks = request => enrichForPagination('privateNetwork', this.pageOfListLbPrivateNetworks, request);
|
|
843
|
-
|
|
844
691
|
this.attachPrivateNetwork = request => this.client.fetch({
|
|
845
692
|
body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
846
693
|
headers: jsonContentHeaders,
|
|
847
694
|
method: 'POST',
|
|
848
695
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
|
|
849
696
|
}, unmarshalPrivateNetwork);
|
|
850
|
-
|
|
851
697
|
this.detachPrivateNetwork = request => this.client.fetch({
|
|
852
698
|
body: '{}',
|
|
853
699
|
headers: jsonContentHeaders,
|
|
@@ -855,8 +701,7 @@ class LbZonedV1GenAPI extends API {
|
|
|
855
701
|
path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
|
|
856
702
|
});
|
|
857
703
|
}
|
|
858
|
-
|
|
859
704
|
}
|
|
860
|
-
|
|
705
|
+
ZonedAPI.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
|
|
861
706
|
|
|
862
|
-
export {
|
|
707
|
+
export { API, ZonedAPI };
|