@scaleway/sdk-lb 2.17.0 → 2.18.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/v1/api.gen.d.ts +130 -130
- package/dist/v1/api.gen.js +343 -236
- package/package.json +4 -4
package/dist/v1/api.gen.js
CHANGED
|
@@ -12,297 +12,351 @@ This API allows you to manage your Scaleway Load Balancer services.
|
|
|
12
12
|
var ZonedAPI = class extends API {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
15
|
-
this.pageOfListLbs = (request = {}) => this.client.fetch({
|
|
15
|
+
this.pageOfListLbs = (request = {}, options) => this.client.fetch({
|
|
16
16
|
method: "GET",
|
|
17
17
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs`,
|
|
18
|
-
urlParams: urlParams(["lb_ids", request.lbIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
18
|
+
urlParams: urlParams(["lb_ids", request.lbIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags]),
|
|
19
|
+
signal: options?.signal
|
|
19
20
|
}, unmarshalListLbsResponse);
|
|
20
|
-
this.listLbs = (request = {}) => enrichForPagination("lbs", this.pageOfListLbs, request);
|
|
21
|
-
this.createLb = (request) => this.client.fetch({
|
|
21
|
+
this.listLbs = (request = {}, options) => enrichForPagination("lbs", this.pageOfListLbs, request, options);
|
|
22
|
+
this.createLb = (request, options) => this.client.fetch({
|
|
22
23
|
body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
|
|
23
24
|
headers: jsonContentHeaders,
|
|
24
25
|
method: "POST",
|
|
25
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs
|
|
26
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs`,
|
|
27
|
+
signal: options?.signal
|
|
26
28
|
}, unmarshalLb);
|
|
27
|
-
this.getLb = (request) => this.client.fetch({
|
|
29
|
+
this.getLb = (request, options) => this.client.fetch({
|
|
28
30
|
method: "GET",
|
|
29
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}
|
|
31
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
32
|
+
signal: options?.signal
|
|
30
33
|
}, unmarshalLb);
|
|
31
34
|
this.waitForLb = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
32
|
-
this.updateLb = (request) => this.client.fetch({
|
|
35
|
+
this.updateLb = (request, options) => this.client.fetch({
|
|
33
36
|
body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
|
|
34
37
|
headers: jsonContentHeaders,
|
|
35
38
|
method: "PUT",
|
|
36
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}
|
|
39
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
40
|
+
signal: options?.signal
|
|
37
41
|
}, unmarshalLb);
|
|
38
|
-
this.deleteLb = (request) => this.client.fetch({
|
|
42
|
+
this.deleteLb = (request, options) => this.client.fetch({
|
|
39
43
|
method: "DELETE",
|
|
40
44
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
41
|
-
urlParams: urlParams(["release_ip", request.releaseIp])
|
|
45
|
+
urlParams: urlParams(["release_ip", request.releaseIp]),
|
|
46
|
+
signal: options?.signal
|
|
42
47
|
});
|
|
43
|
-
this.migrateLb = (request) => this.client.fetch({
|
|
48
|
+
this.migrateLb = (request, options) => this.client.fetch({
|
|
44
49
|
body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
|
|
45
50
|
headers: jsonContentHeaders,
|
|
46
51
|
method: "POST",
|
|
47
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate
|
|
52
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate`,
|
|
53
|
+
signal: options?.signal
|
|
48
54
|
}, unmarshalLb);
|
|
49
|
-
this.pageOfListIPs = (request = {}) => this.client.fetch({
|
|
55
|
+
this.pageOfListIPs = (request = {}, options) => this.client.fetch({
|
|
50
56
|
method: "GET",
|
|
51
57
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
52
|
-
urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
58
|
+
urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags]),
|
|
59
|
+
signal: options?.signal
|
|
53
60
|
}, unmarshalListIpsResponse);
|
|
54
|
-
this.listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
55
|
-
this.createIp = (request) => this.client.fetch({
|
|
61
|
+
this.listIPs = (request = {}, options) => enrichForPagination("ips", this.pageOfListIPs, request, options);
|
|
62
|
+
this.createIp = (request, options) => this.client.fetch({
|
|
56
63
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
57
64
|
headers: jsonContentHeaders,
|
|
58
65
|
method: "POST",
|
|
59
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips
|
|
66
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
67
|
+
signal: options?.signal
|
|
60
68
|
}, unmarshalIp);
|
|
61
|
-
this.getIp = (request) => this.client.fetch({
|
|
69
|
+
this.getIp = (request, options) => this.client.fetch({
|
|
62
70
|
method: "GET",
|
|
63
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
71
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
72
|
+
signal: options?.signal
|
|
64
73
|
}, unmarshalIp);
|
|
65
|
-
this.releaseIp = (request) => this.client.fetch({
|
|
74
|
+
this.releaseIp = (request, options) => this.client.fetch({
|
|
66
75
|
method: "DELETE",
|
|
67
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
76
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
77
|
+
signal: options?.signal
|
|
68
78
|
});
|
|
69
|
-
this.updateIp = (request) => this.client.fetch({
|
|
79
|
+
this.updateIp = (request, options) => this.client.fetch({
|
|
70
80
|
body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
|
|
71
81
|
headers: jsonContentHeaders,
|
|
72
82
|
method: "PATCH",
|
|
73
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
83
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
84
|
+
signal: options?.signal
|
|
74
85
|
}, unmarshalIp);
|
|
75
|
-
this.pageOfListBackends = (request) => this.client.fetch({
|
|
86
|
+
this.pageOfListBackends = (request, options) => this.client.fetch({
|
|
76
87
|
method: "GET",
|
|
77
88
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
78
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
89
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
90
|
+
signal: options?.signal
|
|
79
91
|
}, unmarshalListBackendsResponse);
|
|
80
|
-
this.listBackends = (request) => enrichForPagination("backends", this.pageOfListBackends, request);
|
|
81
|
-
this.createBackend = (request) => this.client.fetch({
|
|
92
|
+
this.listBackends = (request, options) => enrichForPagination("backends", this.pageOfListBackends, request, options);
|
|
93
|
+
this.createBackend = (request, options) => this.client.fetch({
|
|
82
94
|
body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
|
|
83
95
|
headers: jsonContentHeaders,
|
|
84
96
|
method: "POST",
|
|
85
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/backends
|
|
97
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
98
|
+
signal: options?.signal
|
|
86
99
|
}, unmarshalBackend);
|
|
87
|
-
this.getBackend = (request) => this.client.fetch({
|
|
100
|
+
this.getBackend = (request, options) => this.client.fetch({
|
|
88
101
|
method: "GET",
|
|
89
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
102
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
103
|
+
signal: options?.signal
|
|
90
104
|
}, unmarshalBackend);
|
|
91
|
-
this.updateBackend = (request) => this.client.fetch({
|
|
105
|
+
this.updateBackend = (request, options) => this.client.fetch({
|
|
92
106
|
body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
|
|
93
107
|
headers: jsonContentHeaders,
|
|
94
108
|
method: "PUT",
|
|
95
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
109
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
110
|
+
signal: options?.signal
|
|
96
111
|
}, unmarshalBackend);
|
|
97
|
-
this.deleteBackend = (request) => this.client.fetch({
|
|
112
|
+
this.deleteBackend = (request, options) => this.client.fetch({
|
|
98
113
|
method: "DELETE",
|
|
99
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
114
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
115
|
+
signal: options?.signal
|
|
100
116
|
});
|
|
101
|
-
this.addBackendServers = (request) => this.client.fetch({
|
|
117
|
+
this.addBackendServers = (request, options) => this.client.fetch({
|
|
102
118
|
body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
|
|
103
119
|
headers: jsonContentHeaders,
|
|
104
120
|
method: "POST",
|
|
105
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
121
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
122
|
+
signal: options?.signal
|
|
106
123
|
}, unmarshalBackend);
|
|
107
|
-
this.removeBackendServers = (request) => this.client.fetch({
|
|
124
|
+
this.removeBackendServers = (request, options) => this.client.fetch({
|
|
108
125
|
body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
|
|
109
126
|
headers: jsonContentHeaders,
|
|
110
127
|
method: "DELETE",
|
|
111
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
128
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
129
|
+
signal: options?.signal
|
|
112
130
|
}, unmarshalBackend);
|
|
113
|
-
this.setBackendServers = (request) => this.client.fetch({
|
|
131
|
+
this.setBackendServers = (request, options) => this.client.fetch({
|
|
114
132
|
body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
|
|
115
133
|
headers: jsonContentHeaders,
|
|
116
134
|
method: "PUT",
|
|
117
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
135
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
136
|
+
signal: options?.signal
|
|
118
137
|
}, unmarshalBackend);
|
|
119
|
-
this.updateHealthCheck = (request) => this.client.fetch({
|
|
138
|
+
this.updateHealthCheck = (request, options) => this.client.fetch({
|
|
120
139
|
body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
|
|
121
140
|
headers: jsonContentHeaders,
|
|
122
141
|
method: "PUT",
|
|
123
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck
|
|
142
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck`,
|
|
143
|
+
signal: options?.signal
|
|
124
144
|
}, unmarshalHealthCheck);
|
|
125
|
-
this.pageOfListFrontends = (request) => this.client.fetch({
|
|
145
|
+
this.pageOfListFrontends = (request, options) => this.client.fetch({
|
|
126
146
|
method: "GET",
|
|
127
147
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
128
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
148
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
149
|
+
signal: options?.signal
|
|
129
150
|
}, unmarshalListFrontendsResponse);
|
|
130
|
-
this.listFrontends = (request) => enrichForPagination("frontends", this.pageOfListFrontends, request);
|
|
131
|
-
this.createFrontend = (request) => this.client.fetch({
|
|
151
|
+
this.listFrontends = (request, options) => enrichForPagination("frontends", this.pageOfListFrontends, request, options);
|
|
152
|
+
this.createFrontend = (request, options) => this.client.fetch({
|
|
132
153
|
body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
|
|
133
154
|
headers: jsonContentHeaders,
|
|
134
155
|
method: "POST",
|
|
135
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends
|
|
156
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
157
|
+
signal: options?.signal
|
|
136
158
|
}, unmarshalFrontend);
|
|
137
|
-
this.getFrontend = (request) => this.client.fetch({
|
|
159
|
+
this.getFrontend = (request, options) => this.client.fetch({
|
|
138
160
|
method: "GET",
|
|
139
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
161
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
162
|
+
signal: options?.signal
|
|
140
163
|
}, unmarshalFrontend);
|
|
141
|
-
this.updateFrontend = (request) => this.client.fetch({
|
|
164
|
+
this.updateFrontend = (request, options) => this.client.fetch({
|
|
142
165
|
body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
|
|
143
166
|
headers: jsonContentHeaders,
|
|
144
167
|
method: "PUT",
|
|
145
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
168
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
169
|
+
signal: options?.signal
|
|
146
170
|
}, unmarshalFrontend);
|
|
147
|
-
this.deleteFrontend = (request) => this.client.fetch({
|
|
171
|
+
this.deleteFrontend = (request, options) => this.client.fetch({
|
|
148
172
|
method: "DELETE",
|
|
149
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
173
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
174
|
+
signal: options?.signal
|
|
150
175
|
});
|
|
151
|
-
this.pageOfListRoutes = (request = {}) => this.client.fetch({
|
|
176
|
+
this.pageOfListRoutes = (request = {}, options) => this.client.fetch({
|
|
152
177
|
method: "GET",
|
|
153
178
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes`,
|
|
154
|
-
urlParams: urlParams(["frontend_id", request.frontendId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
179
|
+
urlParams: urlParams(["frontend_id", request.frontendId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
180
|
+
signal: options?.signal
|
|
155
181
|
}, unmarshalListRoutesResponse);
|
|
156
|
-
this.listRoutes = (request = {}) => enrichForPagination("routes", this.pageOfListRoutes, request);
|
|
157
|
-
this.createRoute = (request) => this.client.fetch({
|
|
182
|
+
this.listRoutes = (request = {}, options) => enrichForPagination("routes", this.pageOfListRoutes, request, options);
|
|
183
|
+
this.createRoute = (request, options) => this.client.fetch({
|
|
158
184
|
body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
|
|
159
185
|
headers: jsonContentHeaders,
|
|
160
186
|
method: "POST",
|
|
161
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes
|
|
187
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes`,
|
|
188
|
+
signal: options?.signal
|
|
162
189
|
}, unmarshalRoute);
|
|
163
|
-
this.getRoute = (request) => this.client.fetch({
|
|
190
|
+
this.getRoute = (request, options) => this.client.fetch({
|
|
164
191
|
method: "GET",
|
|
165
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
192
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
193
|
+
signal: options?.signal
|
|
166
194
|
}, unmarshalRoute);
|
|
167
|
-
this.updateRoute = (request) => this.client.fetch({
|
|
195
|
+
this.updateRoute = (request, options) => this.client.fetch({
|
|
168
196
|
body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
|
|
169
197
|
headers: jsonContentHeaders,
|
|
170
198
|
method: "PUT",
|
|
171
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
199
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
200
|
+
signal: options?.signal
|
|
172
201
|
}, unmarshalRoute);
|
|
173
|
-
this.deleteRoute = (request) => this.client.fetch({
|
|
202
|
+
this.deleteRoute = (request, options) => this.client.fetch({
|
|
174
203
|
method: "DELETE",
|
|
175
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
204
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
205
|
+
signal: options?.signal
|
|
176
206
|
});
|
|
177
|
-
this.getLbStats = (request) => this.client.fetch({
|
|
207
|
+
this.getLbStats = (request, options) => this.client.fetch({
|
|
178
208
|
method: "GET",
|
|
179
209
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/stats`,
|
|
180
|
-
urlParams: urlParams(["backend_id", request.backendId])
|
|
210
|
+
urlParams: urlParams(["backend_id", request.backendId]),
|
|
211
|
+
signal: options?.signal
|
|
181
212
|
}, unmarshalLbStats);
|
|
182
|
-
this.pageOfListBackendStats = (request) => this.client.fetch({
|
|
213
|
+
this.pageOfListBackendStats = (request, options) => this.client.fetch({
|
|
183
214
|
method: "GET",
|
|
184
215
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/backend-stats`,
|
|
185
|
-
urlParams: urlParams(["backend_id", request.backendId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
216
|
+
urlParams: urlParams(["backend_id", request.backendId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
217
|
+
signal: options?.signal
|
|
186
218
|
}, unmarshalListBackendStatsResponse);
|
|
187
|
-
this.listBackendStats = (request) => enrichForPagination("backendServersStats", this.pageOfListBackendStats, request);
|
|
188
|
-
this.pageOfListAcls = (request) => this.client.fetch({
|
|
219
|
+
this.listBackendStats = (request, options) => enrichForPagination("backendServersStats", this.pageOfListBackendStats, request, options);
|
|
220
|
+
this.pageOfListAcls = (request, options) => this.client.fetch({
|
|
189
221
|
method: "GET",
|
|
190
222
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
191
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
223
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
224
|
+
signal: options?.signal
|
|
192
225
|
}, unmarshalListAclResponse);
|
|
193
|
-
this.listAcls = (request) => enrichForPagination("acls", this.pageOfListAcls, request);
|
|
194
|
-
this.createAcl = (request) => this.client.fetch({
|
|
226
|
+
this.listAcls = (request, options) => enrichForPagination("acls", this.pageOfListAcls, request, options);
|
|
227
|
+
this.createAcl = (request, options) => this.client.fetch({
|
|
195
228
|
body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
|
|
196
229
|
headers: jsonContentHeaders,
|
|
197
230
|
method: "POST",
|
|
198
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls
|
|
231
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
232
|
+
signal: options?.signal
|
|
199
233
|
}, unmarshalAcl);
|
|
200
|
-
this.getAcl = (request) => this.client.fetch({
|
|
234
|
+
this.getAcl = (request, options) => this.client.fetch({
|
|
201
235
|
method: "GET",
|
|
202
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
236
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
237
|
+
signal: options?.signal
|
|
203
238
|
}, unmarshalAcl);
|
|
204
|
-
this.updateAcl = (request) => this.client.fetch({
|
|
239
|
+
this.updateAcl = (request, options) => this.client.fetch({
|
|
205
240
|
body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
|
|
206
241
|
headers: jsonContentHeaders,
|
|
207
242
|
method: "PUT",
|
|
208
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
243
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
244
|
+
signal: options?.signal
|
|
209
245
|
}, unmarshalAcl);
|
|
210
|
-
this.deleteAcl = (request) => this.client.fetch({
|
|
246
|
+
this.deleteAcl = (request, options) => this.client.fetch({
|
|
211
247
|
method: "DELETE",
|
|
212
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
248
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
249
|
+
signal: options?.signal
|
|
213
250
|
});
|
|
214
|
-
this.setAcls = (request) => this.client.fetch({
|
|
251
|
+
this.setAcls = (request, options) => this.client.fetch({
|
|
215
252
|
body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
|
|
216
253
|
headers: jsonContentHeaders,
|
|
217
254
|
method: "PUT",
|
|
218
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls
|
|
255
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
256
|
+
signal: options?.signal
|
|
219
257
|
}, unmarshalSetAclsResponse);
|
|
220
|
-
this.createCertificate = (request) => this.client.fetch({
|
|
258
|
+
this.createCertificate = (request, options) => this.client.fetch({
|
|
221
259
|
body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
|
|
222
260
|
headers: jsonContentHeaders,
|
|
223
261
|
method: "POST",
|
|
224
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates
|
|
262
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
263
|
+
signal: options?.signal
|
|
225
264
|
}, unmarshalCertificate);
|
|
226
|
-
this.pageOfListCertificates = (request) => this.client.fetch({
|
|
265
|
+
this.pageOfListCertificates = (request, options) => this.client.fetch({
|
|
227
266
|
method: "GET",
|
|
228
267
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
229
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
268
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
269
|
+
signal: options?.signal
|
|
230
270
|
}, unmarshalListCertificatesResponse);
|
|
231
|
-
this.listCertificates = (request) => enrichForPagination("certificates", this.pageOfListCertificates, request);
|
|
232
|
-
this.getCertificate = (request) => this.client.fetch({
|
|
271
|
+
this.listCertificates = (request, options) => enrichForPagination("certificates", this.pageOfListCertificates, request, options);
|
|
272
|
+
this.getCertificate = (request, options) => this.client.fetch({
|
|
233
273
|
method: "GET",
|
|
234
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
274
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
275
|
+
signal: options?.signal
|
|
235
276
|
}, unmarshalCertificate);
|
|
236
277
|
this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
237
|
-
this.updateCertificate = (request) => this.client.fetch({
|
|
278
|
+
this.updateCertificate = (request, options) => this.client.fetch({
|
|
238
279
|
body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
|
|
239
280
|
headers: jsonContentHeaders,
|
|
240
281
|
method: "PUT",
|
|
241
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
282
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
283
|
+
signal: options?.signal
|
|
242
284
|
}, unmarshalCertificate);
|
|
243
|
-
this.deleteCertificate = (request) => this.client.fetch({
|
|
285
|
+
this.deleteCertificate = (request, options) => this.client.fetch({
|
|
244
286
|
method: "DELETE",
|
|
245
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
287
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
288
|
+
signal: options?.signal
|
|
246
289
|
});
|
|
247
|
-
this.pageOfListLbTypes = (request = {}) => this.client.fetch({
|
|
290
|
+
this.pageOfListLbTypes = (request = {}, options) => this.client.fetch({
|
|
248
291
|
method: "GET",
|
|
249
292
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb-types`,
|
|
250
|
-
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
293
|
+
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
294
|
+
signal: options?.signal
|
|
251
295
|
}, unmarshalListLbTypesResponse);
|
|
252
|
-
this.listLbTypes = (request = {}) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request);
|
|
253
|
-
this.createSubscriber = (request) => this.client.fetch({
|
|
296
|
+
this.listLbTypes = (request = {}, options) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request, options);
|
|
297
|
+
this.createSubscriber = (request, options) => this.client.fetch({
|
|
254
298
|
body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
|
|
255
299
|
headers: jsonContentHeaders,
|
|
256
300
|
method: "POST",
|
|
257
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers
|
|
301
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers`,
|
|
302
|
+
signal: options?.signal
|
|
258
303
|
}, unmarshalSubscriber);
|
|
259
|
-
this.getSubscriber = (request) => this.client.fetch({
|
|
304
|
+
this.getSubscriber = (request, options) => this.client.fetch({
|
|
260
305
|
method: "GET",
|
|
261
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}
|
|
306
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
307
|
+
signal: options?.signal
|
|
262
308
|
}, unmarshalSubscriber);
|
|
263
|
-
this.pageOfListSubscriber = (request = {}) => this.client.fetch({
|
|
309
|
+
this.pageOfListSubscriber = (request = {}, options) => this.client.fetch({
|
|
264
310
|
method: "GET",
|
|
265
311
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers`,
|
|
266
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
312
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
|
|
313
|
+
signal: options?.signal
|
|
267
314
|
}, unmarshalListSubscriberResponse);
|
|
268
|
-
this.listSubscriber = (request = {}) => enrichForPagination("subscribers", this.pageOfListSubscriber, request);
|
|
269
|
-
this.updateSubscriber = (request) => this.client.fetch({
|
|
315
|
+
this.listSubscriber = (request = {}, options) => enrichForPagination("subscribers", this.pageOfListSubscriber, request, options);
|
|
316
|
+
this.updateSubscriber = (request, options) => this.client.fetch({
|
|
270
317
|
body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
|
|
271
318
|
headers: jsonContentHeaders,
|
|
272
319
|
method: "PUT",
|
|
273
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}
|
|
320
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
321
|
+
signal: options?.signal
|
|
274
322
|
}, unmarshalSubscriber);
|
|
275
|
-
this.deleteSubscriber = (request) => this.client.fetch({
|
|
323
|
+
this.deleteSubscriber = (request, options) => this.client.fetch({
|
|
276
324
|
method: "DELETE",
|
|
277
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/subscription/${validatePathParam("subscriberId", request.subscriberId)}
|
|
325
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/subscription/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
326
|
+
signal: options?.signal
|
|
278
327
|
});
|
|
279
|
-
this.subscribeToLb = (request) => this.client.fetch({
|
|
328
|
+
this.subscribeToLb = (request, options) => this.client.fetch({
|
|
280
329
|
body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
|
|
281
330
|
headers: jsonContentHeaders,
|
|
282
331
|
method: "POST",
|
|
283
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe
|
|
332
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe`,
|
|
333
|
+
signal: options?.signal
|
|
284
334
|
}, unmarshalLb);
|
|
285
|
-
this.unsubscribeFromLb = (request) => this.client.fetch({
|
|
335
|
+
this.unsubscribeFromLb = (request, options) => this.client.fetch({
|
|
286
336
|
method: "DELETE",
|
|
287
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam("lbId", request.lbId)}/unsubscribe
|
|
337
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam("lbId", request.lbId)}/unsubscribe`,
|
|
338
|
+
signal: options?.signal
|
|
288
339
|
}, unmarshalLb);
|
|
289
|
-
this.pageOfListLbPrivateNetworks = (request) => this.client.fetch({
|
|
340
|
+
this.pageOfListLbPrivateNetworks = (request, options) => this.client.fetch({
|
|
290
341
|
method: "GET",
|
|
291
342
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks`,
|
|
292
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
343
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
344
|
+
signal: options?.signal
|
|
293
345
|
}, unmarshalListLbPrivateNetworksResponse);
|
|
294
|
-
this.listLbPrivateNetworks = (request) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request);
|
|
295
|
-
this.attachPrivateNetwork = (request) => this.client.fetch({
|
|
346
|
+
this.listLbPrivateNetworks = (request, options) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request, options);
|
|
347
|
+
this.attachPrivateNetwork = (request, options) => this.client.fetch({
|
|
296
348
|
body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
297
349
|
headers: jsonContentHeaders,
|
|
298
350
|
method: "POST",
|
|
299
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/attach-private-network
|
|
351
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/attach-private-network`,
|
|
352
|
+
signal: options?.signal
|
|
300
353
|
}, unmarshalPrivateNetwork);
|
|
301
|
-
this.detachPrivateNetwork = (request) => this.client.fetch({
|
|
354
|
+
this.detachPrivateNetwork = (request, options) => this.client.fetch({
|
|
302
355
|
body: JSON.stringify(marshalZonedApiDetachPrivateNetworkRequest(request, this.client.settings)),
|
|
303
356
|
headers: jsonContentHeaders,
|
|
304
357
|
method: "POST",
|
|
305
|
-
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/detach-private-network
|
|
358
|
+
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/detach-private-network`,
|
|
359
|
+
signal: options?.signal
|
|
306
360
|
});
|
|
307
361
|
}
|
|
308
362
|
static {
|
|
@@ -326,291 +380,344 @@ This API allows you to manage your Load Balancers.
|
|
|
326
380
|
var API$1 = class extends API {
|
|
327
381
|
constructor(..._args2) {
|
|
328
382
|
super(..._args2);
|
|
329
|
-
this.pageOfListLbs = (request = {}) => this.client.fetch({
|
|
383
|
+
this.pageOfListLbs = (request = {}, options) => this.client.fetch({
|
|
330
384
|
method: "GET",
|
|
331
385
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs`,
|
|
332
|
-
urlParams: urlParams(["lb_ids", request.lbIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
386
|
+
urlParams: urlParams(["lb_ids", request.lbIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags]),
|
|
387
|
+
signal: options?.signal
|
|
333
388
|
}, unmarshalListLbsResponse);
|
|
334
|
-
this.listLbs = (request = {}) => enrichForPagination("lbs", this.pageOfListLbs, request);
|
|
335
|
-
this.createLb = (request) => this.client.fetch({
|
|
389
|
+
this.listLbs = (request = {}, options) => enrichForPagination("lbs", this.pageOfListLbs, request, options);
|
|
390
|
+
this.createLb = (request, options) => this.client.fetch({
|
|
336
391
|
body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
|
|
337
392
|
headers: jsonContentHeaders,
|
|
338
393
|
method: "POST",
|
|
339
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs
|
|
394
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs`,
|
|
395
|
+
signal: options?.signal
|
|
340
396
|
}, unmarshalLb);
|
|
341
|
-
this.getLb = (request) => this.client.fetch({
|
|
397
|
+
this.getLb = (request, options) => this.client.fetch({
|
|
342
398
|
method: "GET",
|
|
343
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}
|
|
399
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
400
|
+
signal: options?.signal
|
|
344
401
|
}, unmarshalLb);
|
|
345
402
|
this.waitForLb = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
346
|
-
this.updateLb = (request) => this.client.fetch({
|
|
403
|
+
this.updateLb = (request, options) => this.client.fetch({
|
|
347
404
|
body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
|
|
348
405
|
headers: jsonContentHeaders,
|
|
349
406
|
method: "PUT",
|
|
350
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}
|
|
407
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
408
|
+
signal: options?.signal
|
|
351
409
|
}, unmarshalLb);
|
|
352
|
-
this.deleteLb = (request) => this.client.fetch({
|
|
410
|
+
this.deleteLb = (request, options) => this.client.fetch({
|
|
353
411
|
method: "DELETE",
|
|
354
412
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
355
|
-
urlParams: urlParams(["release_ip", request.releaseIp])
|
|
413
|
+
urlParams: urlParams(["release_ip", request.releaseIp]),
|
|
414
|
+
signal: options?.signal
|
|
356
415
|
});
|
|
357
|
-
this.migrateLb = (request) => this.client.fetch({
|
|
416
|
+
this.migrateLb = (request, options) => this.client.fetch({
|
|
358
417
|
body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
|
|
359
418
|
headers: jsonContentHeaders,
|
|
360
419
|
method: "POST",
|
|
361
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate
|
|
420
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate`,
|
|
421
|
+
signal: options?.signal
|
|
362
422
|
}, unmarshalLb);
|
|
363
|
-
this.pageOfListIPs = (request = {}) => this.client.fetch({
|
|
423
|
+
this.pageOfListIPs = (request = {}, options) => this.client.fetch({
|
|
364
424
|
method: "GET",
|
|
365
425
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips`,
|
|
366
|
-
urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
426
|
+
urlParams: urlParams(["ip_address", request.ipAddress], ["ip_type", request.ipType], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags]),
|
|
427
|
+
signal: options?.signal
|
|
367
428
|
}, unmarshalListIpsResponse);
|
|
368
|
-
this.listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
369
|
-
this.createIp = (request) => this.client.fetch({
|
|
429
|
+
this.listIPs = (request = {}, options) => enrichForPagination("ips", this.pageOfListIPs, request, options);
|
|
430
|
+
this.createIp = (request, options) => this.client.fetch({
|
|
370
431
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
371
432
|
headers: jsonContentHeaders,
|
|
372
433
|
method: "POST",
|
|
373
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips
|
|
434
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips`,
|
|
435
|
+
signal: options?.signal
|
|
374
436
|
}, unmarshalIp);
|
|
375
|
-
this.getIp = (request) => this.client.fetch({
|
|
437
|
+
this.getIp = (request, options) => this.client.fetch({
|
|
376
438
|
method: "GET",
|
|
377
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
439
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
440
|
+
signal: options?.signal
|
|
378
441
|
}, unmarshalIp);
|
|
379
|
-
this.releaseIp = (request) => this.client.fetch({
|
|
442
|
+
this.releaseIp = (request, options) => this.client.fetch({
|
|
380
443
|
method: "DELETE",
|
|
381
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
444
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
445
|
+
signal: options?.signal
|
|
382
446
|
});
|
|
383
|
-
this.updateIp = (request) => this.client.fetch({
|
|
447
|
+
this.updateIp = (request, options) => this.client.fetch({
|
|
384
448
|
body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
|
|
385
449
|
headers: jsonContentHeaders,
|
|
386
450
|
method: "PATCH",
|
|
387
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}
|
|
451
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
452
|
+
signal: options?.signal
|
|
388
453
|
}, unmarshalIp);
|
|
389
|
-
this.pageOfListBackends = (request) => this.client.fetch({
|
|
454
|
+
this.pageOfListBackends = (request, options) => this.client.fetch({
|
|
390
455
|
method: "GET",
|
|
391
456
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
392
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
457
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
458
|
+
signal: options?.signal
|
|
393
459
|
}, unmarshalListBackendsResponse);
|
|
394
|
-
this.listBackends = (request) => enrichForPagination("backends", this.pageOfListBackends, request);
|
|
395
|
-
this.createBackend = (request) => this.client.fetch({
|
|
460
|
+
this.listBackends = (request, options) => enrichForPagination("backends", this.pageOfListBackends, request, options);
|
|
461
|
+
this.createBackend = (request, options) => this.client.fetch({
|
|
396
462
|
body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
|
|
397
463
|
headers: jsonContentHeaders,
|
|
398
464
|
method: "POST",
|
|
399
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/backends
|
|
465
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
466
|
+
signal: options?.signal
|
|
400
467
|
}, unmarshalBackend);
|
|
401
|
-
this.getBackend = (request) => this.client.fetch({
|
|
468
|
+
this.getBackend = (request, options) => this.client.fetch({
|
|
402
469
|
method: "GET",
|
|
403
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
470
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
471
|
+
signal: options?.signal
|
|
404
472
|
}, unmarshalBackend);
|
|
405
|
-
this.updateBackend = (request) => this.client.fetch({
|
|
473
|
+
this.updateBackend = (request, options) => this.client.fetch({
|
|
406
474
|
body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
|
|
407
475
|
headers: jsonContentHeaders,
|
|
408
476
|
method: "PUT",
|
|
409
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
477
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
478
|
+
signal: options?.signal
|
|
410
479
|
}, unmarshalBackend);
|
|
411
|
-
this.deleteBackend = (request) => this.client.fetch({
|
|
480
|
+
this.deleteBackend = (request, options) => this.client.fetch({
|
|
412
481
|
method: "DELETE",
|
|
413
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}
|
|
482
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
483
|
+
signal: options?.signal
|
|
414
484
|
});
|
|
415
|
-
this.addBackendServers = (request) => this.client.fetch({
|
|
485
|
+
this.addBackendServers = (request, options) => this.client.fetch({
|
|
416
486
|
body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
|
|
417
487
|
headers: jsonContentHeaders,
|
|
418
488
|
method: "POST",
|
|
419
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
489
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
490
|
+
signal: options?.signal
|
|
420
491
|
}, unmarshalBackend);
|
|
421
|
-
this.removeBackendServers = (request) => this.client.fetch({
|
|
492
|
+
this.removeBackendServers = (request, options) => this.client.fetch({
|
|
422
493
|
body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
|
|
423
494
|
headers: jsonContentHeaders,
|
|
424
495
|
method: "DELETE",
|
|
425
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
496
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
497
|
+
signal: options?.signal
|
|
426
498
|
}, unmarshalBackend);
|
|
427
|
-
this.setBackendServers = (request) => this.client.fetch({
|
|
499
|
+
this.setBackendServers = (request, options) => this.client.fetch({
|
|
428
500
|
body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
|
|
429
501
|
headers: jsonContentHeaders,
|
|
430
502
|
method: "PUT",
|
|
431
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers
|
|
503
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
504
|
+
signal: options?.signal
|
|
432
505
|
}, unmarshalBackend);
|
|
433
|
-
this.updateHealthCheck = (request) => this.client.fetch({
|
|
506
|
+
this.updateHealthCheck = (request, options) => this.client.fetch({
|
|
434
507
|
body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
|
|
435
508
|
headers: jsonContentHeaders,
|
|
436
509
|
method: "PUT",
|
|
437
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck
|
|
510
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck`,
|
|
511
|
+
signal: options?.signal
|
|
438
512
|
}, unmarshalHealthCheck);
|
|
439
|
-
this.pageOfListFrontends = (request) => this.client.fetch({
|
|
513
|
+
this.pageOfListFrontends = (request, options) => this.client.fetch({
|
|
440
514
|
method: "GET",
|
|
441
515
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
442
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
516
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
517
|
+
signal: options?.signal
|
|
443
518
|
}, unmarshalListFrontendsResponse);
|
|
444
|
-
this.listFrontends = (request) => enrichForPagination("frontends", this.pageOfListFrontends, request);
|
|
445
|
-
this.createFrontend = (request) => this.client.fetch({
|
|
519
|
+
this.listFrontends = (request, options) => enrichForPagination("frontends", this.pageOfListFrontends, request, options);
|
|
520
|
+
this.createFrontend = (request, options) => this.client.fetch({
|
|
446
521
|
body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
|
|
447
522
|
headers: jsonContentHeaders,
|
|
448
523
|
method: "POST",
|
|
449
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends
|
|
524
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
525
|
+
signal: options?.signal
|
|
450
526
|
}, unmarshalFrontend);
|
|
451
|
-
this.getFrontend = (request) => this.client.fetch({
|
|
527
|
+
this.getFrontend = (request, options) => this.client.fetch({
|
|
452
528
|
method: "GET",
|
|
453
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
529
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
530
|
+
signal: options?.signal
|
|
454
531
|
}, unmarshalFrontend);
|
|
455
|
-
this.updateFrontend = (request) => this.client.fetch({
|
|
532
|
+
this.updateFrontend = (request, options) => this.client.fetch({
|
|
456
533
|
body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
|
|
457
534
|
headers: jsonContentHeaders,
|
|
458
535
|
method: "PUT",
|
|
459
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
536
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
537
|
+
signal: options?.signal
|
|
460
538
|
}, unmarshalFrontend);
|
|
461
|
-
this.deleteFrontend = (request) => this.client.fetch({
|
|
539
|
+
this.deleteFrontend = (request, options) => this.client.fetch({
|
|
462
540
|
method: "DELETE",
|
|
463
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}
|
|
541
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
542
|
+
signal: options?.signal
|
|
464
543
|
});
|
|
465
|
-
this.pageOfListRoutes = (request = {}) => this.client.fetch({
|
|
544
|
+
this.pageOfListRoutes = (request = {}, options) => this.client.fetch({
|
|
466
545
|
method: "GET",
|
|
467
546
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`,
|
|
468
|
-
urlParams: urlParams(["frontend_id", request.frontendId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
547
|
+
urlParams: urlParams(["frontend_id", request.frontendId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
548
|
+
signal: options?.signal
|
|
469
549
|
}, unmarshalListRoutesResponse);
|
|
470
|
-
this.listRoutes = (request = {}) => enrichForPagination("routes", this.pageOfListRoutes, request);
|
|
471
|
-
this.createRoute = (request) => this.client.fetch({
|
|
550
|
+
this.listRoutes = (request = {}, options) => enrichForPagination("routes", this.pageOfListRoutes, request, options);
|
|
551
|
+
this.createRoute = (request, options) => this.client.fetch({
|
|
472
552
|
body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
|
|
473
553
|
headers: jsonContentHeaders,
|
|
474
554
|
method: "POST",
|
|
475
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes
|
|
555
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`,
|
|
556
|
+
signal: options?.signal
|
|
476
557
|
}, unmarshalRoute);
|
|
477
|
-
this.getRoute = (request) => this.client.fetch({
|
|
558
|
+
this.getRoute = (request, options) => this.client.fetch({
|
|
478
559
|
method: "GET",
|
|
479
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
560
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
561
|
+
signal: options?.signal
|
|
480
562
|
}, unmarshalRoute);
|
|
481
|
-
this.updateRoute = (request) => this.client.fetch({
|
|
563
|
+
this.updateRoute = (request, options) => this.client.fetch({
|
|
482
564
|
body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
|
|
483
565
|
headers: jsonContentHeaders,
|
|
484
566
|
method: "PUT",
|
|
485
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
567
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
568
|
+
signal: options?.signal
|
|
486
569
|
}, unmarshalRoute);
|
|
487
|
-
this.deleteRoute = (request) => this.client.fetch({
|
|
570
|
+
this.deleteRoute = (request, options) => this.client.fetch({
|
|
488
571
|
method: "DELETE",
|
|
489
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}
|
|
572
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
573
|
+
signal: options?.signal
|
|
490
574
|
});
|
|
491
|
-
this.getLbStats = (request) => this.client.fetch({
|
|
575
|
+
this.getLbStats = (request, options) => this.client.fetch({
|
|
492
576
|
method: "GET",
|
|
493
577
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/stats`,
|
|
494
|
-
urlParams: urlParams(["backend_id", request.backendId])
|
|
578
|
+
urlParams: urlParams(["backend_id", request.backendId]),
|
|
579
|
+
signal: options?.signal
|
|
495
580
|
}, unmarshalLbStats);
|
|
496
|
-
this.pageOfListBackendStats = (request) => this.client.fetch({
|
|
581
|
+
this.pageOfListBackendStats = (request, options) => this.client.fetch({
|
|
497
582
|
method: "GET",
|
|
498
583
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/backend-stats`,
|
|
499
|
-
urlParams: urlParams(["backend_id", request.backendId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
584
|
+
urlParams: urlParams(["backend_id", request.backendId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
585
|
+
signal: options?.signal
|
|
500
586
|
}, unmarshalListBackendStatsResponse);
|
|
501
|
-
this.listBackendStats = (request) => enrichForPagination("backendServersStats", this.pageOfListBackendStats, request);
|
|
502
|
-
this.pageOfListAcls = (request) => this.client.fetch({
|
|
587
|
+
this.listBackendStats = (request, options) => enrichForPagination("backendServersStats", this.pageOfListBackendStats, request, options);
|
|
588
|
+
this.pageOfListAcls = (request, options) => this.client.fetch({
|
|
503
589
|
method: "GET",
|
|
504
590
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
505
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
591
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
592
|
+
signal: options?.signal
|
|
506
593
|
}, unmarshalListAclResponse);
|
|
507
|
-
this.listAcls = (request) => enrichForPagination("acls", this.pageOfListAcls, request);
|
|
508
|
-
this.createAcl = (request) => this.client.fetch({
|
|
594
|
+
this.listAcls = (request, options) => enrichForPagination("acls", this.pageOfListAcls, request, options);
|
|
595
|
+
this.createAcl = (request, options) => this.client.fetch({
|
|
509
596
|
body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
|
|
510
597
|
headers: jsonContentHeaders,
|
|
511
598
|
method: "POST",
|
|
512
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls
|
|
599
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
600
|
+
signal: options?.signal
|
|
513
601
|
}, unmarshalAcl);
|
|
514
|
-
this.getAcl = (request) => this.client.fetch({
|
|
602
|
+
this.getAcl = (request, options) => this.client.fetch({
|
|
515
603
|
method: "GET",
|
|
516
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
604
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
605
|
+
signal: options?.signal
|
|
517
606
|
}, unmarshalAcl);
|
|
518
|
-
this.updateAcl = (request) => this.client.fetch({
|
|
607
|
+
this.updateAcl = (request, options) => this.client.fetch({
|
|
519
608
|
body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
|
|
520
609
|
headers: jsonContentHeaders,
|
|
521
610
|
method: "PUT",
|
|
522
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
611
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
612
|
+
signal: options?.signal
|
|
523
613
|
}, unmarshalAcl);
|
|
524
|
-
this.deleteAcl = (request) => this.client.fetch({
|
|
614
|
+
this.deleteAcl = (request, options) => this.client.fetch({
|
|
525
615
|
method: "DELETE",
|
|
526
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}
|
|
616
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
617
|
+
signal: options?.signal
|
|
527
618
|
});
|
|
528
|
-
this.createCertificate = (request) => this.client.fetch({
|
|
619
|
+
this.createCertificate = (request, options) => this.client.fetch({
|
|
529
620
|
body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
|
|
530
621
|
headers: jsonContentHeaders,
|
|
531
622
|
method: "POST",
|
|
532
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates
|
|
623
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
624
|
+
signal: options?.signal
|
|
533
625
|
}, unmarshalCertificate);
|
|
534
|
-
this.pageOfListCertificates = (request) => this.client.fetch({
|
|
626
|
+
this.pageOfListCertificates = (request, options) => this.client.fetch({
|
|
535
627
|
method: "GET",
|
|
536
628
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
537
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
629
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
630
|
+
signal: options?.signal
|
|
538
631
|
}, unmarshalListCertificatesResponse);
|
|
539
|
-
this.listCertificates = (request) => enrichForPagination("certificates", this.pageOfListCertificates, request);
|
|
540
|
-
this.getCertificate = (request) => this.client.fetch({
|
|
632
|
+
this.listCertificates = (request, options) => enrichForPagination("certificates", this.pageOfListCertificates, request, options);
|
|
633
|
+
this.getCertificate = (request, options) => this.client.fetch({
|
|
541
634
|
method: "GET",
|
|
542
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
635
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
636
|
+
signal: options?.signal
|
|
543
637
|
}, unmarshalCertificate);
|
|
544
638
|
this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
545
|
-
this.updateCertificate = (request) => this.client.fetch({
|
|
639
|
+
this.updateCertificate = (request, options) => this.client.fetch({
|
|
546
640
|
body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
|
|
547
641
|
headers: jsonContentHeaders,
|
|
548
642
|
method: "PUT",
|
|
549
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
643
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
644
|
+
signal: options?.signal
|
|
550
645
|
}, unmarshalCertificate);
|
|
551
|
-
this.deleteCertificate = (request) => this.client.fetch({
|
|
646
|
+
this.deleteCertificate = (request, options) => this.client.fetch({
|
|
552
647
|
method: "DELETE",
|
|
553
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}
|
|
648
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
649
|
+
signal: options?.signal
|
|
554
650
|
});
|
|
555
|
-
this.pageOfListLbTypes = (request = {}) => this.client.fetch({
|
|
651
|
+
this.pageOfListLbTypes = (request = {}, options) => this.client.fetch({
|
|
556
652
|
method: "GET",
|
|
557
653
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb-types`,
|
|
558
|
-
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
654
|
+
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
655
|
+
signal: options?.signal
|
|
559
656
|
}, unmarshalListLbTypesResponse);
|
|
560
|
-
this.listLbTypes = (request = {}) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request);
|
|
561
|
-
this.createSubscriber = (request) => this.client.fetch({
|
|
657
|
+
this.listLbTypes = (request = {}, options) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request, options);
|
|
658
|
+
this.createSubscriber = (request, options) => this.client.fetch({
|
|
562
659
|
body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
|
|
563
660
|
headers: jsonContentHeaders,
|
|
564
661
|
method: "POST",
|
|
565
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers
|
|
662
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers`,
|
|
663
|
+
signal: options?.signal
|
|
566
664
|
}, unmarshalSubscriber);
|
|
567
|
-
this.getSubscriber = (request) => this.client.fetch({
|
|
665
|
+
this.getSubscriber = (request, options) => this.client.fetch({
|
|
568
666
|
method: "GET",
|
|
569
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}
|
|
667
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
668
|
+
signal: options?.signal
|
|
570
669
|
}, unmarshalSubscriber);
|
|
571
|
-
this.pageOfListSubscriber = (request = {}) => this.client.fetch({
|
|
670
|
+
this.pageOfListSubscriber = (request = {}, options) => this.client.fetch({
|
|
572
671
|
method: "GET",
|
|
573
672
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers`,
|
|
574
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
673
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId]),
|
|
674
|
+
signal: options?.signal
|
|
575
675
|
}, unmarshalListSubscriberResponse);
|
|
576
|
-
this.listSubscriber = (request = {}) => enrichForPagination("subscribers", this.pageOfListSubscriber, request);
|
|
577
|
-
this.updateSubscriber = (request) => this.client.fetch({
|
|
676
|
+
this.listSubscriber = (request = {}, options) => enrichForPagination("subscribers", this.pageOfListSubscriber, request, options);
|
|
677
|
+
this.updateSubscriber = (request, options) => this.client.fetch({
|
|
578
678
|
body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
|
|
579
679
|
headers: jsonContentHeaders,
|
|
580
680
|
method: "PUT",
|
|
581
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}
|
|
681
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
682
|
+
signal: options?.signal
|
|
582
683
|
}, unmarshalSubscriber);
|
|
583
|
-
this.deleteSubscriber = (request) => this.client.fetch({
|
|
684
|
+
this.deleteSubscriber = (request, options) => this.client.fetch({
|
|
584
685
|
method: "DELETE",
|
|
585
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/subscriber/${validatePathParam("subscriberId", request.subscriberId)}
|
|
686
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/subscriber/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
687
|
+
signal: options?.signal
|
|
586
688
|
});
|
|
587
|
-
this.subscribeToLb = (request) => this.client.fetch({
|
|
689
|
+
this.subscribeToLb = (request, options) => this.client.fetch({
|
|
588
690
|
body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
|
|
589
691
|
headers: jsonContentHeaders,
|
|
590
692
|
method: "POST",
|
|
591
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe
|
|
693
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe`,
|
|
694
|
+
signal: options?.signal
|
|
592
695
|
}, unmarshalLb);
|
|
593
|
-
this.unsubscribeFromLb = (request) => this.client.fetch({
|
|
696
|
+
this.unsubscribeFromLb = (request, options) => this.client.fetch({
|
|
594
697
|
method: "DELETE",
|
|
595
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam("lbId", request.lbId)}/unsubscribe
|
|
698
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam("lbId", request.lbId)}/unsubscribe`,
|
|
699
|
+
signal: options?.signal
|
|
596
700
|
}, unmarshalLb);
|
|
597
|
-
this.pageOfListLbPrivateNetworks = (request) => this.client.fetch({
|
|
701
|
+
this.pageOfListLbPrivateNetworks = (request, options) => this.client.fetch({
|
|
598
702
|
method: "GET",
|
|
599
703
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks`,
|
|
600
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
704
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]),
|
|
705
|
+
signal: options?.signal
|
|
601
706
|
}, unmarshalListLbPrivateNetworksResponse);
|
|
602
|
-
this.listLbPrivateNetworks = (request) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request);
|
|
603
|
-
this.attachPrivateNetwork = (request) => this.client.fetch({
|
|
707
|
+
this.listLbPrivateNetworks = (request, options) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request, options);
|
|
708
|
+
this.attachPrivateNetwork = (request, options) => this.client.fetch({
|
|
604
709
|
body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
605
710
|
headers: jsonContentHeaders,
|
|
606
711
|
method: "POST",
|
|
607
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/attach
|
|
712
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/attach`,
|
|
713
|
+
signal: options?.signal
|
|
608
714
|
}, unmarshalPrivateNetwork);
|
|
609
|
-
this.detachPrivateNetwork = (request) => this.client.fetch({
|
|
715
|
+
this.detachPrivateNetwork = (request, options) => this.client.fetch({
|
|
610
716
|
body: "{}",
|
|
611
717
|
headers: jsonContentHeaders,
|
|
612
718
|
method: "POST",
|
|
613
|
-
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/detach
|
|
719
|
+
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/detach`,
|
|
720
|
+
signal: options?.signal
|
|
614
721
|
});
|
|
615
722
|
}
|
|
616
723
|
static {
|