@stack-spot/portal-network 0.235.3 → 0.237.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/CHANGELOG.md +22 -0
- package/dist/api/cloudPlatform.d.ts +364 -800
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +181 -543
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/apis.json +9 -5
- package/dist/client/cloud-platform.d.ts +748 -548
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +667 -297
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +2 -2
- package/scripts/generate-apis.ts +4 -3
- package/src/api/cloudPlatform.ts +582 -1487
- package/src/api-docs/cloud-platform-docs-prd.json +6489 -0
- package/src/api-docs/cloud-platform-docs-stg.json +6898 -0
- package/src/apis.json +9 -5
- package/src/client/cloud-platform.ts +597 -292
|
@@ -8,243 +8,190 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://
|
|
11
|
+
baseUrl: "https://api.platform.stg.zup.corp",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://
|
|
15
|
+
generatedServerUrl: "https://api.platform.stg.zup.corp"
|
|
16
16
|
};
|
|
17
|
-
export function
|
|
18
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
17
|
+
export function vpnControllerPutTags({ $namespace, name, body }, opts) {
|
|
18
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
19
19
|
...opts,
|
|
20
20
|
method: "PUT",
|
|
21
21
|
body
|
|
22
22
|
})));
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
24
|
+
export function serviceControlPolicyControllerPutTarget({ $namespace, name, target }, opts) {
|
|
25
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/target`, oazapfts.json({
|
|
26
26
|
...opts,
|
|
27
27
|
method: "PUT",
|
|
28
|
-
body
|
|
28
|
+
body: target
|
|
29
29
|
})));
|
|
30
30
|
}
|
|
31
|
-
export function
|
|
32
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
31
|
+
export function serviceControlPolicyControllerPutTags({ $namespace, name, body }, opts) {
|
|
32
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
33
33
|
...opts,
|
|
34
34
|
method: "PUT",
|
|
35
35
|
body
|
|
36
36
|
})));
|
|
37
37
|
}
|
|
38
|
-
export function
|
|
39
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
38
|
+
export function serviceControlPolicyControllerPutName({ $namespace, name, body }, opts) {
|
|
39
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/name`, oazapfts.json({
|
|
40
40
|
...opts,
|
|
41
41
|
method: "PUT",
|
|
42
42
|
body
|
|
43
43
|
})));
|
|
44
44
|
}
|
|
45
|
-
export function
|
|
46
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
45
|
+
export function serviceControlPolicyControllerPutDescription({ $namespace, name, body }, opts) {
|
|
46
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/description`, oazapfts.json({
|
|
47
47
|
...opts,
|
|
48
48
|
method: "PUT",
|
|
49
49
|
body
|
|
50
50
|
})));
|
|
51
51
|
}
|
|
52
|
-
export function
|
|
53
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
52
|
+
export function serviceControlPolicyControllerPutContent({ $namespace, name, jsonNode }, opts) {
|
|
53
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}/content`, oazapfts.json({
|
|
54
54
|
...opts,
|
|
55
55
|
method: "PUT",
|
|
56
|
-
body
|
|
56
|
+
body: jsonNode
|
|
57
57
|
})));
|
|
58
58
|
}
|
|
59
|
-
export function
|
|
60
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
59
|
+
export function foundationControllerPutSecProjectTags({ $namespace, body }, opts) {
|
|
60
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/sec-project-tags`, oazapfts.json({
|
|
61
61
|
...opts,
|
|
62
62
|
method: "PUT",
|
|
63
63
|
body
|
|
64
64
|
})));
|
|
65
65
|
}
|
|
66
|
-
export function
|
|
67
|
-
return oazapfts.ok(oazapfts.
|
|
68
|
-
...opts
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
export function putRole({ roleName, role }, opts) {
|
|
72
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/roles/${encodeURIComponent(roleName)}`, oazapfts.json({
|
|
66
|
+
export function projectControllerPutTags({ $namespace, name, body }, opts) {
|
|
67
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
73
68
|
...opts,
|
|
74
69
|
method: "PUT",
|
|
75
|
-
body
|
|
70
|
+
body
|
|
76
71
|
})));
|
|
77
72
|
}
|
|
78
|
-
export function
|
|
79
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
80
|
-
...opts,
|
|
81
|
-
method: "DELETE"
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }, opts) {
|
|
85
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
|
|
73
|
+
export function projectControllerPutName({ $namespace, name, body }, opts) {
|
|
74
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/projects/${encodeURIComponent(name)}/name`, oazapfts.json({
|
|
86
75
|
...opts,
|
|
87
76
|
method: "PUT",
|
|
88
|
-
body
|
|
89
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
90
|
-
Authorization: authorization,
|
|
91
|
-
"x-account-id": xAccountId
|
|
92
|
-
})
|
|
77
|
+
body
|
|
93
78
|
})));
|
|
94
79
|
}
|
|
95
|
-
export function
|
|
96
|
-
return oazapfts.ok(oazapfts.
|
|
97
|
-
...opts
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
export function putServiceControlPolicy({ foundationId, serviceControlPolicyId, serviceControlPolicy }, opts) {
|
|
101
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/service-control-policies/${encodeURIComponent(serviceControlPolicyId)}`, oazapfts.json({
|
|
80
|
+
export function networkControllerPutTags({ $namespace, name, body }, opts) {
|
|
81
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
102
82
|
...opts,
|
|
103
83
|
method: "PUT",
|
|
104
|
-
body
|
|
84
|
+
body
|
|
105
85
|
})));
|
|
106
86
|
}
|
|
107
|
-
export function
|
|
108
|
-
return oazapfts.ok(oazapfts.
|
|
109
|
-
...opts,
|
|
110
|
-
method: "DELETE"
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
export function putFoundationSecProjectTags({ foundationId, body }, opts) {
|
|
114
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/sec-project-tags`, oazapfts.json({
|
|
87
|
+
export function networkControllerPutNetworkName({ $namespace, name, body }, opts) {
|
|
88
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}/networkName`, oazapfts.json({
|
|
115
89
|
...opts,
|
|
116
90
|
method: "PUT",
|
|
117
91
|
body
|
|
118
92
|
})));
|
|
119
93
|
}
|
|
120
|
-
export function
|
|
121
|
-
return oazapfts.ok(oazapfts.
|
|
94
|
+
export function folderControllerPutTags({ $namespace, name, body }, opts) {
|
|
95
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
122
96
|
...opts,
|
|
123
97
|
method: "PUT",
|
|
124
|
-
body
|
|
125
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
126
|
-
Authorization: authorization,
|
|
127
|
-
"x-account-id": xAccountId
|
|
128
|
-
})
|
|
98
|
+
body
|
|
129
99
|
})));
|
|
130
100
|
}
|
|
131
|
-
export function
|
|
132
|
-
return oazapfts.ok(oazapfts.
|
|
101
|
+
export function folderControllerPutName({ $namespace, name, body }, opts) {
|
|
102
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/folders/${encodeURIComponent(name)}/name`, oazapfts.json({
|
|
133
103
|
...opts,
|
|
134
104
|
method: "PUT",
|
|
135
|
-
body
|
|
136
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
137
|
-
Authorization: authorization,
|
|
138
|
-
"x-account-id": xAccountId
|
|
139
|
-
})
|
|
105
|
+
body
|
|
140
106
|
})));
|
|
141
107
|
}
|
|
142
|
-
export function
|
|
143
|
-
return oazapfts.ok(oazapfts.
|
|
144
|
-
...opts,
|
|
145
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
146
|
-
Authorization: authorization,
|
|
147
|
-
"x-account-id": xAccountId
|
|
148
|
-
})
|
|
149
|
-
}));
|
|
150
|
-
}
|
|
151
|
-
export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }, opts) {
|
|
152
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
|
|
108
|
+
export function dnsZoneControllerPutTags({ $namespace, name, body }, opts) {
|
|
109
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
153
110
|
...opts,
|
|
154
111
|
method: "PUT",
|
|
155
|
-
body
|
|
156
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
157
|
-
Authorization: authorization,
|
|
158
|
-
"x-account-id": xAccountId
|
|
159
|
-
})
|
|
112
|
+
body
|
|
160
113
|
})));
|
|
161
114
|
}
|
|
162
|
-
export function
|
|
163
|
-
return oazapfts.ok(oazapfts.
|
|
115
|
+
export function dnsRecordControllerPutTtl({ $namespace, name, body }, opts) {
|
|
116
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/ttl`, oazapfts.json({
|
|
164
117
|
...opts,
|
|
165
118
|
method: "PUT",
|
|
166
|
-
body
|
|
167
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
168
|
-
Authorization: authorization,
|
|
169
|
-
"x-account-id": xAccountId
|
|
170
|
-
})
|
|
119
|
+
body
|
|
171
120
|
})));
|
|
172
121
|
}
|
|
173
|
-
export function
|
|
174
|
-
return oazapfts.ok(oazapfts.
|
|
122
|
+
export function dnsRecordControllerPutRecords({ $namespace, name, body }, opts) {
|
|
123
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records/${encodeURIComponent(name)}/records`, oazapfts.json({
|
|
175
124
|
...opts,
|
|
176
125
|
method: "PUT",
|
|
177
|
-
body
|
|
178
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
179
|
-
Authorization: authorization,
|
|
180
|
-
"x-account-id": xAccountId
|
|
181
|
-
})
|
|
126
|
+
body
|
|
182
127
|
})));
|
|
183
128
|
}
|
|
184
|
-
export function
|
|
185
|
-
return oazapfts.ok(oazapfts.
|
|
129
|
+
export function cidrControllerPutTags({ $namespace, name, body }, opts) {
|
|
130
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/cidrs/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
186
131
|
...opts,
|
|
187
132
|
method: "PUT",
|
|
188
|
-
body
|
|
189
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
190
|
-
Authorization: authorization,
|
|
191
|
-
"x-account-id": xAccountId
|
|
192
|
-
})
|
|
133
|
+
body
|
|
193
134
|
})));
|
|
194
135
|
}
|
|
195
|
-
export function
|
|
196
|
-
return oazapfts.ok(oazapfts.
|
|
136
|
+
export function certificateControllerPutTags({ $namespace, name, body }, opts) {
|
|
137
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/certificates/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
197
138
|
...opts,
|
|
198
139
|
method: "PUT",
|
|
199
|
-
body
|
|
200
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
201
|
-
Authorization: authorization,
|
|
202
|
-
"x-account-id": xAccountId
|
|
203
|
-
})
|
|
140
|
+
body
|
|
204
141
|
})));
|
|
205
142
|
}
|
|
206
|
-
export function
|
|
207
|
-
return oazapfts.ok(oazapfts.
|
|
143
|
+
export function boundarySsoControllerPutTags({ $namespace, name, body }, opts) {
|
|
144
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
208
145
|
...opts,
|
|
209
146
|
method: "PUT",
|
|
210
147
|
body
|
|
211
148
|
})));
|
|
212
149
|
}
|
|
213
|
-
export function
|
|
214
|
-
return oazapfts.ok(oazapfts.
|
|
150
|
+
export function boundarySsoControllerPutPolicyDocument({ $namespace, name, jsonNode }, opts) {
|
|
151
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}/policy-document`, oazapfts.json({
|
|
215
152
|
...opts,
|
|
216
153
|
method: "PUT",
|
|
217
|
-
body
|
|
218
|
-
}));
|
|
154
|
+
body: jsonNode
|
|
155
|
+
})));
|
|
219
156
|
}
|
|
220
|
-
export function
|
|
221
|
-
return oazapfts.ok(oazapfts.
|
|
157
|
+
export function boundaryControllerPutTags({ $namespace, name, body }, opts) {
|
|
158
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}/tags`, oazapfts.json({
|
|
222
159
|
...opts,
|
|
223
160
|
method: "PUT",
|
|
224
161
|
body
|
|
225
|
-
}));
|
|
162
|
+
})));
|
|
226
163
|
}
|
|
227
|
-
export function
|
|
228
|
-
return oazapfts.ok(oazapfts.
|
|
164
|
+
export function boundaryControllerPutPolicyDocument({ $namespace, name, jsonNode }, opts) {
|
|
165
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}/policy-document`, oazapfts.json({
|
|
229
166
|
...opts,
|
|
230
167
|
method: "PUT",
|
|
231
|
-
body
|
|
168
|
+
body: jsonNode
|
|
232
169
|
})));
|
|
233
170
|
}
|
|
234
|
-
export function
|
|
235
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
236
|
-
...opts
|
|
237
|
-
method: "PUT",
|
|
238
|
-
body
|
|
171
|
+
export function roleControllerList(opts) {
|
|
172
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/roles", {
|
|
173
|
+
...opts
|
|
239
174
|
}));
|
|
240
175
|
}
|
|
241
|
-
export function
|
|
242
|
-
return oazapfts.ok(oazapfts.
|
|
176
|
+
export function roleControllerCreate({ roleSpec }, opts) {
|
|
177
|
+
return oazapfts.ok(oazapfts.fetchText("/v2/roles", oazapfts.json({
|
|
243
178
|
...opts,
|
|
244
|
-
method: "
|
|
245
|
-
body
|
|
179
|
+
method: "POST",
|
|
180
|
+
body: roleSpec
|
|
181
|
+
})));
|
|
182
|
+
}
|
|
183
|
+
export function foundationControllerList(opts) {
|
|
184
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/foundations", {
|
|
185
|
+
...opts
|
|
246
186
|
}));
|
|
247
187
|
}
|
|
188
|
+
export function foundationControllerCreate({ foundationSpec }, opts) {
|
|
189
|
+
return oazapfts.ok(oazapfts.fetchText("/v2/foundations", oazapfts.json({
|
|
190
|
+
...opts,
|
|
191
|
+
method: "POST",
|
|
192
|
+
body: foundationSpec
|
|
193
|
+
})));
|
|
194
|
+
}
|
|
248
195
|
export function vpnControllerList({ $namespace }, opts) {
|
|
249
196
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/vpns`, {
|
|
250
197
|
...opts
|
|
@@ -257,8 +204,22 @@ export function vpnControllerCreate({ $namespace, vpnSpec }, opts) {
|
|
|
257
204
|
body: vpnSpec
|
|
258
205
|
})));
|
|
259
206
|
}
|
|
260
|
-
export function
|
|
261
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
207
|
+
export function serviceControlPolicyControllerList({ $namespace }, opts) {
|
|
208
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, {
|
|
209
|
+
...opts
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
export function serviceControlPolicyControllerCreate({ $namespace, serviceControlPolicySpec }, opts) {
|
|
213
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies`, oazapfts.json({
|
|
214
|
+
...opts,
|
|
215
|
+
method: "POST",
|
|
216
|
+
body: serviceControlPolicySpec
|
|
217
|
+
})));
|
|
218
|
+
}
|
|
219
|
+
export function projectControllerListByFolderRef({ $namespace, folderRef }, opts) {
|
|
220
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/projects${QS.query(QS.explode({
|
|
221
|
+
folderRef
|
|
222
|
+
}))}`, {
|
|
262
223
|
...opts
|
|
263
224
|
}));
|
|
264
225
|
}
|
|
@@ -281,6 +242,20 @@ export function permissionSetControllerCreate({ $namespace, permissionSetSpec },
|
|
|
281
242
|
body: permissionSetSpec
|
|
282
243
|
})));
|
|
283
244
|
}
|
|
245
|
+
export function networkControllerListBy({ $namespace, projectName }, opts) {
|
|
246
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/networks${QS.query(QS.explode({
|
|
247
|
+
projectName
|
|
248
|
+
}))}`, {
|
|
249
|
+
...opts
|
|
250
|
+
}));
|
|
251
|
+
}
|
|
252
|
+
export function networkControllerCreate({ $namespace, networkSpec }, opts) {
|
|
253
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks`, oazapfts.json({
|
|
254
|
+
...opts,
|
|
255
|
+
method: "POST",
|
|
256
|
+
body: networkSpec
|
|
257
|
+
})));
|
|
258
|
+
}
|
|
284
259
|
export function managedPolicyAttachmentControllerList({ $namespace }, opts) {
|
|
285
260
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments`, {
|
|
286
261
|
...opts
|
|
@@ -341,8 +316,10 @@ export function identityCenterControllerCreate({ $namespace, identityCenterSpec
|
|
|
341
316
|
body: identityCenterSpec
|
|
342
317
|
})));
|
|
343
318
|
}
|
|
344
|
-
export function
|
|
345
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/folders
|
|
319
|
+
export function folderControllerListByFolderRef({ $namespace, folderName }, opts) {
|
|
320
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/folders${QS.query(QS.explode({
|
|
321
|
+
folderName
|
|
322
|
+
}))}`, {
|
|
346
323
|
...opts
|
|
347
324
|
}));
|
|
348
325
|
}
|
|
@@ -389,7 +366,7 @@ export function firewallControllerCreate({ $namespace, firewallSpec }, opts) {
|
|
|
389
366
|
body: firewallSpec
|
|
390
367
|
})));
|
|
391
368
|
}
|
|
392
|
-
export function
|
|
369
|
+
export function dnsZoneControllerListBy({ $namespace, $type, projectName }, opts) {
|
|
393
370
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/dns-zones${QS.query(QS.explode({
|
|
394
371
|
"type": $type,
|
|
395
372
|
projectName
|
|
@@ -404,8 +381,10 @@ export function dnsZoneControllerCreate({ $namespace, dnsZoneSpec }, opts) {
|
|
|
404
381
|
body: dnsZoneSpec
|
|
405
382
|
})));
|
|
406
383
|
}
|
|
407
|
-
export function
|
|
408
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records
|
|
384
|
+
export function dnsRecordControllerListBy({ $namespace, dnsZoneName }, opts) {
|
|
385
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/dns-records${QS.query(QS.explode({
|
|
386
|
+
dnsZoneName
|
|
387
|
+
}))}`, {
|
|
409
388
|
...opts
|
|
410
389
|
}));
|
|
411
390
|
}
|
|
@@ -452,272 +431,81 @@ export function certificateControllerCreate({ $namespace, certificateSpec }, opt
|
|
|
452
431
|
body: certificateSpec
|
|
453
432
|
})));
|
|
454
433
|
}
|
|
455
|
-
export function
|
|
456
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
434
|
+
export function boundarySsoControllerList({ $namespace }, opts) {
|
|
435
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, {
|
|
457
436
|
...opts
|
|
458
437
|
}));
|
|
459
438
|
}
|
|
460
|
-
export function
|
|
461
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
439
|
+
export function boundarySsoControllerCreate({ $namespace, boundarySsoSpec }, opts) {
|
|
440
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos`, oazapfts.json({
|
|
462
441
|
...opts,
|
|
463
442
|
method: "POST",
|
|
464
|
-
body:
|
|
443
|
+
body: boundarySsoSpec
|
|
465
444
|
})));
|
|
466
445
|
}
|
|
467
|
-
export function
|
|
468
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
446
|
+
export function boundaryControllerList({ $namespace }, opts) {
|
|
447
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, {
|
|
469
448
|
...opts
|
|
470
449
|
}));
|
|
471
450
|
}
|
|
472
|
-
export function
|
|
473
|
-
return oazapfts.ok(oazapfts.
|
|
474
|
-
...opts,
|
|
475
|
-
method: "POST",
|
|
476
|
-
body: role
|
|
477
|
-
})));
|
|
478
|
-
}
|
|
479
|
-
export function listFoundations({ authorization, xAccountId }, opts) {
|
|
480
|
-
return oazapfts.ok(oazapfts.fetchJson("/portal/foundations", {
|
|
481
|
-
...opts,
|
|
482
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
483
|
-
Authorization: authorization,
|
|
484
|
-
"x-account-id": xAccountId
|
|
485
|
-
})
|
|
486
|
-
}));
|
|
487
|
-
}
|
|
488
|
-
export function createFoundation({ authorization, xAccountId, createFoundationRequest }, opts) {
|
|
489
|
-
return oazapfts.ok(oazapfts.fetchJson("/portal/foundations", oazapfts.json({
|
|
490
|
-
...opts,
|
|
491
|
-
method: "POST",
|
|
492
|
-
body: createFoundationRequest,
|
|
493
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
494
|
-
Authorization: authorization,
|
|
495
|
-
"x-account-id": xAccountId
|
|
496
|
-
})
|
|
497
|
-
})));
|
|
498
|
-
}
|
|
499
|
-
export function listVpns({ authorization, xAccountId, foundationId }, opts) {
|
|
500
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, {
|
|
501
|
-
...opts,
|
|
502
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
503
|
-
Authorization: authorization,
|
|
504
|
-
"x-account-id": xAccountId
|
|
505
|
-
})
|
|
506
|
-
}));
|
|
507
|
-
}
|
|
508
|
-
export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }, opts) {
|
|
509
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
451
|
+
export function boundaryControllerCreate({ $namespace, boundarySpec }, opts) {
|
|
452
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries`, oazapfts.json({
|
|
510
453
|
...opts,
|
|
511
454
|
method: "POST",
|
|
512
|
-
body:
|
|
513
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
514
|
-
Authorization: authorization,
|
|
515
|
-
"x-account-id": xAccountId
|
|
516
|
-
})
|
|
455
|
+
body: boundarySpec
|
|
517
456
|
})));
|
|
518
457
|
}
|
|
519
|
-
export function
|
|
520
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
458
|
+
export function accountAssignmentControllerList({ $namespace }, opts) {
|
|
459
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, {
|
|
521
460
|
...opts
|
|
522
461
|
}));
|
|
523
462
|
}
|
|
524
|
-
export function
|
|
525
|
-
return oazapfts.ok(oazapfts.
|
|
526
|
-
...opts,
|
|
527
|
-
method: "POST",
|
|
528
|
-
body: serviceControlPolicy
|
|
529
|
-
})));
|
|
530
|
-
}
|
|
531
|
-
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }, opts) {
|
|
532
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
533
|
-
parentFolderId
|
|
534
|
-
}))}`, {
|
|
535
|
-
...opts,
|
|
536
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
537
|
-
Authorization: authorization,
|
|
538
|
-
"x-account-id": xAccountId
|
|
539
|
-
})
|
|
540
|
-
}));
|
|
541
|
-
}
|
|
542
|
-
export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }, opts) {
|
|
543
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
544
|
-
...opts,
|
|
545
|
-
method: "POST",
|
|
546
|
-
body: createProjectRequest,
|
|
547
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
548
|
-
Authorization: authorization,
|
|
549
|
-
"x-account-id": xAccountId
|
|
550
|
-
})
|
|
551
|
-
})));
|
|
552
|
-
}
|
|
553
|
-
export function listNetwork({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
554
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
555
|
-
projectId
|
|
556
|
-
}))}`, {
|
|
557
|
-
...opts,
|
|
558
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
559
|
-
Authorization: authorization,
|
|
560
|
-
"x-account-id": xAccountId
|
|
561
|
-
})
|
|
562
|
-
}));
|
|
563
|
-
}
|
|
564
|
-
export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }, opts) {
|
|
565
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
566
|
-
...opts,
|
|
567
|
-
method: "POST",
|
|
568
|
-
body: createNetworkRequest,
|
|
569
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
570
|
-
Authorization: authorization,
|
|
571
|
-
"x-account-id": xAccountId
|
|
572
|
-
})
|
|
573
|
-
})));
|
|
574
|
-
}
|
|
575
|
-
export function getFolder({ authorization, xAccountId, foundationId, folderId }, opts) {
|
|
576
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/folders${QS.query(QS.explode({
|
|
577
|
-
folderId
|
|
578
|
-
}))}`, {
|
|
579
|
-
...opts,
|
|
580
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
581
|
-
Authorization: authorization,
|
|
582
|
-
"x-account-id": xAccountId
|
|
583
|
-
})
|
|
584
|
-
}));
|
|
585
|
-
}
|
|
586
|
-
export function createFolder({ authorization, xAccountId, foundationId, createFolderRequest }, opts) {
|
|
587
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
|
|
588
|
-
...opts,
|
|
589
|
-
method: "POST",
|
|
590
|
-
body: createFolderRequest,
|
|
591
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
592
|
-
Authorization: authorization,
|
|
593
|
-
"x-account-id": xAccountId
|
|
594
|
-
})
|
|
595
|
-
})));
|
|
596
|
-
}
|
|
597
|
-
export function listDnsZone({ authorization, xAccountId, foundationId, projectId, privacy }, opts) {
|
|
598
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones${QS.query(QS.explode({
|
|
599
|
-
projectId,
|
|
600
|
-
privacy
|
|
601
|
-
}))}`, {
|
|
602
|
-
...opts,
|
|
603
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
604
|
-
Authorization: authorization,
|
|
605
|
-
"x-account-id": xAccountId
|
|
606
|
-
})
|
|
607
|
-
}));
|
|
608
|
-
}
|
|
609
|
-
export function createDnsZone({ authorization, xAccountId, foundationId, createDnsZoneRequest }, opts) {
|
|
610
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
|
|
463
|
+
export function accountAssignmentControllerCreate({ $namespace, accountAssignmentSpec }, opts) {
|
|
464
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments`, oazapfts.json({
|
|
611
465
|
...opts,
|
|
612
466
|
method: "POST",
|
|
613
|
-
body:
|
|
614
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
615
|
-
Authorization: authorization,
|
|
616
|
-
"x-account-id": xAccountId
|
|
617
|
-
})
|
|
467
|
+
body: accountAssignmentSpec
|
|
618
468
|
})));
|
|
619
469
|
}
|
|
620
|
-
export function
|
|
621
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
622
|
-
|
|
623
|
-
dnsZoneId
|
|
624
|
-
}))}`, {
|
|
625
|
-
...opts,
|
|
626
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
627
|
-
Authorization: authorization,
|
|
628
|
-
"x-account-id": xAccountId
|
|
629
|
-
})
|
|
470
|
+
export function roleControllerGet({ name }, opts) {
|
|
471
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(name)}`, {
|
|
472
|
+
...opts
|
|
630
473
|
}));
|
|
631
474
|
}
|
|
632
|
-
export function
|
|
633
|
-
return oazapfts.ok(oazapfts.
|
|
634
|
-
...opts,
|
|
635
|
-
method: "POST",
|
|
636
|
-
body: createDnsRecordRequest,
|
|
637
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
638
|
-
Authorization: authorization,
|
|
639
|
-
"x-account-id": xAccountId
|
|
640
|
-
})
|
|
641
|
-
})));
|
|
642
|
-
}
|
|
643
|
-
export function listCidr({ authorization, xAccountId, foundationId }, opts) {
|
|
644
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
|
|
475
|
+
export function roleControllerDelete({ name }, opts) {
|
|
476
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/roles/${encodeURIComponent(name)}`, {
|
|
645
477
|
...opts,
|
|
646
|
-
|
|
647
|
-
Authorization: authorization,
|
|
648
|
-
"x-account-id": xAccountId
|
|
649
|
-
})
|
|
478
|
+
method: "DELETE"
|
|
650
479
|
}));
|
|
651
480
|
}
|
|
652
|
-
export function
|
|
653
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
654
|
-
...opts
|
|
655
|
-
method: "POST",
|
|
656
|
-
body: createCidrRequest,
|
|
657
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
658
|
-
Authorization: authorization,
|
|
659
|
-
"x-account-id": xAccountId
|
|
660
|
-
})
|
|
661
|
-
})));
|
|
662
|
-
}
|
|
663
|
-
export function listCertificates({ authorization, xAccountId, foundationId, forInbound }, opts) {
|
|
664
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates${QS.query(QS.explode({
|
|
665
|
-
forInbound
|
|
666
|
-
}))}`, {
|
|
667
|
-
...opts,
|
|
668
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
669
|
-
Authorization: authorization,
|
|
670
|
-
"x-account-id": xAccountId
|
|
671
|
-
})
|
|
481
|
+
export function oidcControllerGet(opts) {
|
|
482
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/oidc", {
|
|
483
|
+
...opts
|
|
672
484
|
}));
|
|
673
485
|
}
|
|
674
|
-
export function
|
|
675
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
676
|
-
...opts,
|
|
677
|
-
method: "POST",
|
|
678
|
-
body,
|
|
679
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
680
|
-
Authorization: authorization,
|
|
681
|
-
"x-account-id": xAccountId
|
|
682
|
-
})
|
|
683
|
-
})));
|
|
684
|
-
}
|
|
685
|
-
export function listBoundary({ foundationId }, opts) {
|
|
686
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries`, {
|
|
486
|
+
export function foundationControllerGet({ $namespace }, opts) {
|
|
487
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}`, {
|
|
687
488
|
...opts
|
|
688
489
|
}));
|
|
689
490
|
}
|
|
690
|
-
export function
|
|
691
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
692
|
-
...opts,
|
|
693
|
-
method: "POST",
|
|
694
|
-
body: createBoundaryRequest
|
|
695
|
-
})));
|
|
696
|
-
}
|
|
697
|
-
export function listBoundarySso({ foundationId }, opts) {
|
|
698
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries-sso`, {
|
|
491
|
+
export function vpnControllerGet({ $namespace, name }, opts) {
|
|
492
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}`, {
|
|
699
493
|
...opts
|
|
700
494
|
}));
|
|
701
495
|
}
|
|
702
|
-
export function
|
|
703
|
-
return oazapfts.ok(oazapfts.
|
|
496
|
+
export function vpnControllerDelete({ $namespace, name }, opts) {
|
|
497
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/vpns/${encodeURIComponent(name)}`, {
|
|
704
498
|
...opts,
|
|
705
|
-
method: "
|
|
706
|
-
body: createBoundarySsoRequest
|
|
707
|
-
})));
|
|
708
|
-
}
|
|
709
|
-
export function oidcControllerGet(opts) {
|
|
710
|
-
return oazapfts.ok(oazapfts.fetchJson("/v2/oidc/v2/oidc", {
|
|
711
|
-
...opts
|
|
499
|
+
method: "DELETE"
|
|
712
500
|
}));
|
|
713
501
|
}
|
|
714
|
-
export function
|
|
715
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
502
|
+
export function serviceControlPolicyControllerGet({ $namespace, name }, opts) {
|
|
503
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
|
|
716
504
|
...opts
|
|
717
505
|
}));
|
|
718
506
|
}
|
|
719
|
-
export function
|
|
720
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
507
|
+
export function serviceControlPolicyControllerDelete({ $namespace, name }, opts) {
|
|
508
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/service-control-policies/${encodeURIComponent(name)}`, {
|
|
721
509
|
...opts,
|
|
722
510
|
method: "DELETE"
|
|
723
511
|
}));
|
|
@@ -744,6 +532,17 @@ export function permissionSetControllerDelete({ $namespace, name }, opts) {
|
|
|
744
532
|
method: "DELETE"
|
|
745
533
|
}));
|
|
746
534
|
}
|
|
535
|
+
export function networkControllerGet({ $namespace, name }, opts) {
|
|
536
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
|
|
537
|
+
...opts
|
|
538
|
+
}));
|
|
539
|
+
}
|
|
540
|
+
export function networkControllerDelete({ $namespace, name }, opts) {
|
|
541
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/networks/${encodeURIComponent(name)}`, {
|
|
542
|
+
...opts,
|
|
543
|
+
method: "DELETE"
|
|
544
|
+
}));
|
|
545
|
+
}
|
|
747
546
|
export function managedPolicyAttachmentControllerGet({ $namespace, name }, opts) {
|
|
748
547
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/managed-policy-attachments/${encodeURIComponent(name)}`, {
|
|
749
548
|
...opts
|
|
@@ -898,203 +697,42 @@ export function certificateControllerDelete({ $namespace, name }, opts) {
|
|
|
898
697
|
method: "DELETE"
|
|
899
698
|
}));
|
|
900
699
|
}
|
|
901
|
-
export function
|
|
902
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
700
|
+
export function boundarySsoControllerGet({ $namespace, name }, opts) {
|
|
701
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
|
|
903
702
|
...opts
|
|
904
703
|
}));
|
|
905
704
|
}
|
|
906
|
-
export function
|
|
907
|
-
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/
|
|
705
|
+
export function boundarySsoControllerDelete({ $namespace, name }, opts) {
|
|
706
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundary-ssos/${encodeURIComponent(name)}`, {
|
|
908
707
|
...opts,
|
|
909
708
|
method: "DELETE"
|
|
910
709
|
}));
|
|
911
710
|
}
|
|
912
|
-
export function
|
|
913
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
914
|
-
...opts
|
|
915
|
-
}));
|
|
916
|
-
}
|
|
917
|
-
export function getFoundation({ authorization, xAccountId, foundationId }, opts) {
|
|
918
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}`, {
|
|
919
|
-
...opts,
|
|
920
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
921
|
-
Authorization: authorization,
|
|
922
|
-
"x-account-id": xAccountId
|
|
923
|
-
})
|
|
924
|
-
}));
|
|
925
|
-
}
|
|
926
|
-
export function getVpn({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
927
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
928
|
-
...opts,
|
|
929
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
930
|
-
Authorization: authorization,
|
|
931
|
-
"x-account-id": xAccountId
|
|
932
|
-
})
|
|
933
|
-
}));
|
|
934
|
-
}
|
|
935
|
-
export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
936
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
937
|
-
...opts,
|
|
938
|
-
method: "DELETE",
|
|
939
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
940
|
-
Authorization: authorization,
|
|
941
|
-
"x-account-id": xAccountId
|
|
942
|
-
})
|
|
943
|
-
}));
|
|
944
|
-
}
|
|
945
|
-
export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
946
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
|
|
947
|
-
...opts,
|
|
948
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
949
|
-
Authorization: authorization,
|
|
950
|
-
"x-account-id": xAccountId
|
|
951
|
-
})
|
|
952
|
-
}));
|
|
953
|
-
}
|
|
954
|
-
export function getProject({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
955
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
956
|
-
...opts,
|
|
957
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
958
|
-
Authorization: authorization,
|
|
959
|
-
"x-account-id": xAccountId
|
|
960
|
-
})
|
|
961
|
-
}));
|
|
962
|
-
}
|
|
963
|
-
export function deleteProject({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
964
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
965
|
-
...opts,
|
|
966
|
-
method: "DELETE",
|
|
967
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
968
|
-
Authorization: authorization,
|
|
969
|
-
"x-account-id": xAccountId
|
|
970
|
-
})
|
|
971
|
-
}));
|
|
972
|
-
}
|
|
973
|
-
export function getNetwork({ authorization, xAccountId, foundationId, networkId }, opts) {
|
|
974
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
975
|
-
...opts,
|
|
976
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
977
|
-
Authorization: authorization,
|
|
978
|
-
"x-account-id": xAccountId
|
|
979
|
-
})
|
|
980
|
-
}));
|
|
981
|
-
}
|
|
982
|
-
export function deleteNetwork({ authorization, xAccountId, foundationId, networkId }, opts) {
|
|
983
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
984
|
-
...opts,
|
|
985
|
-
method: "DELETE",
|
|
986
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
987
|
-
Authorization: authorization,
|
|
988
|
-
"x-account-id": xAccountId
|
|
989
|
-
})
|
|
990
|
-
}));
|
|
991
|
-
}
|
|
992
|
-
export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }, opts) {
|
|
993
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
994
|
-
...opts,
|
|
995
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
996
|
-
Authorization: authorization,
|
|
997
|
-
"x-account-id": xAccountId
|
|
998
|
-
})
|
|
999
|
-
}));
|
|
1000
|
-
}
|
|
1001
|
-
export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }, opts) {
|
|
1002
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
1003
|
-
...opts,
|
|
1004
|
-
method: "DELETE",
|
|
1005
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1006
|
-
Authorization: authorization,
|
|
1007
|
-
"x-account-id": xAccountId
|
|
1008
|
-
})
|
|
1009
|
-
}));
|
|
1010
|
-
}
|
|
1011
|
-
export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }, opts) {
|
|
1012
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1013
|
-
...opts,
|
|
1014
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1015
|
-
Authorization: authorization,
|
|
1016
|
-
"x-account-id": xAccountId
|
|
1017
|
-
})
|
|
1018
|
-
}));
|
|
1019
|
-
}
|
|
1020
|
-
export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }, opts) {
|
|
1021
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1022
|
-
...opts,
|
|
1023
|
-
method: "DELETE",
|
|
1024
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1025
|
-
Authorization: authorization,
|
|
1026
|
-
"x-account-id": xAccountId
|
|
1027
|
-
})
|
|
1028
|
-
}));
|
|
1029
|
-
}
|
|
1030
|
-
export function getCidr({ authorization, xAccountId, foundationId, cidrId }, opts) {
|
|
1031
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1032
|
-
...opts,
|
|
1033
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1034
|
-
Authorization: authorization,
|
|
1035
|
-
"x-account-id": xAccountId
|
|
1036
|
-
})
|
|
1037
|
-
}));
|
|
1038
|
-
}
|
|
1039
|
-
export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }, opts) {
|
|
1040
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1041
|
-
...opts,
|
|
1042
|
-
method: "DELETE",
|
|
1043
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1044
|
-
Authorization: authorization,
|
|
1045
|
-
"x-account-id": xAccountId
|
|
1046
|
-
})
|
|
1047
|
-
}));
|
|
1048
|
-
}
|
|
1049
|
-
export function getCertificate({ authorization, xAccountId, foundationId, certificateId }, opts) {
|
|
1050
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1051
|
-
...opts,
|
|
1052
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1053
|
-
Authorization: authorization,
|
|
1054
|
-
"x-account-id": xAccountId
|
|
1055
|
-
})
|
|
1056
|
-
}));
|
|
1057
|
-
}
|
|
1058
|
-
export function deleteCertificate({ authorization, xAccountId, foundationId, certificateId }, opts) {
|
|
1059
|
-
return oazapfts.ok(oazapfts.fetchText(`/portal/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1060
|
-
...opts,
|
|
1061
|
-
method: "DELETE",
|
|
1062
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1063
|
-
Authorization: authorization,
|
|
1064
|
-
"x-account-id": xAccountId
|
|
1065
|
-
})
|
|
1066
|
-
}));
|
|
1067
|
-
}
|
|
1068
|
-
export function getBoundary({ foundationId, boundaryId }, opts) {
|
|
1069
|
-
return oazapfts.ok(oazapfts.fetchJson(`/portal/foundations/${encodeURIComponent(foundationId)}/boundaries/${encodeURIComponent(boundaryId)}`, {
|
|
711
|
+
export function boundaryControllerGet({ $namespace, name }, opts) {
|
|
712
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
|
|
1070
713
|
...opts
|
|
1071
714
|
}));
|
|
1072
715
|
}
|
|
1073
|
-
export function
|
|
1074
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
716
|
+
export function boundaryControllerDelete({ $namespace, name }, opts) {
|
|
717
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/boundaries/${encodeURIComponent(name)}`, {
|
|
1075
718
|
...opts,
|
|
1076
719
|
method: "DELETE"
|
|
1077
720
|
}));
|
|
1078
721
|
}
|
|
1079
|
-
export function
|
|
1080
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
722
|
+
export function accountAssignmentControllerGet({ $namespace, name }, opts) {
|
|
723
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
|
|
1081
724
|
...opts
|
|
1082
725
|
}));
|
|
1083
726
|
}
|
|
1084
|
-
export function
|
|
1085
|
-
return oazapfts.ok(oazapfts.fetchText(`/
|
|
727
|
+
export function accountAssignmentControllerDelete({ $namespace, name }, opts) {
|
|
728
|
+
return oazapfts.ok(oazapfts.fetchText(`/v2/foundations/${encodeURIComponent($namespace)}/account-assignments/${encodeURIComponent(name)}`, {
|
|
1086
729
|
...opts,
|
|
1087
730
|
method: "DELETE"
|
|
1088
731
|
}));
|
|
1089
732
|
}
|
|
1090
|
-
export function
|
|
1091
|
-
return oazapfts.ok(oazapfts.
|
|
1092
|
-
...opts
|
|
1093
|
-
method: "DELETE",
|
|
1094
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1095
|
-
Authorization: authorization,
|
|
1096
|
-
"x-account-id": xAccountId
|
|
1097
|
-
})
|
|
733
|
+
export function finOpsControllerGet(opts) {
|
|
734
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/finops", {
|
|
735
|
+
...opts
|
|
1098
736
|
}));
|
|
1099
737
|
}
|
|
1100
738
|
//# sourceMappingURL=cloudPlatform.js.map
|