@halo-dev/api-client 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +2077 -0
- package/dist/index.d.ts +3167 -0
- package/dist/index.mjs +2020 -0
- package/package.json +53 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2020 @@
|
|
|
1
|
+
import globalAxios from 'axios';
|
|
2
|
+
|
|
3
|
+
const BASE_PATH = "http://localhost:8090".replace(/\/+$/, "");
|
|
4
|
+
class BaseAPI {
|
|
5
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
6
|
+
this.basePath = basePath;
|
|
7
|
+
this.axios = axios;
|
|
8
|
+
if (configuration) {
|
|
9
|
+
this.configuration = configuration;
|
|
10
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class RequiredError extends Error {
|
|
15
|
+
constructor(field, msg) {
|
|
16
|
+
super(msg);
|
|
17
|
+
this.field = field;
|
|
18
|
+
this.name = "RequiredError";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const DUMMY_BASE_URL = "https://example.com";
|
|
23
|
+
const assertParamExists = function(functionName, paramName, paramValue) {
|
|
24
|
+
if (paramValue === null || paramValue === void 0) {
|
|
25
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const setSearchParams = function(url, ...objects) {
|
|
29
|
+
const searchParams = new URLSearchParams(url.search);
|
|
30
|
+
for (const object of objects) {
|
|
31
|
+
for (const key in object) {
|
|
32
|
+
if (Array.isArray(object[key])) {
|
|
33
|
+
searchParams.delete(key);
|
|
34
|
+
for (const item of object[key]) {
|
|
35
|
+
searchParams.append(key, item);
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
searchParams.set(key, object[key]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
url.search = searchParams.toString();
|
|
43
|
+
};
|
|
44
|
+
const serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
45
|
+
const nonString = typeof value !== "string";
|
|
46
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
47
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || "";
|
|
48
|
+
};
|
|
49
|
+
const toPathString = function(url) {
|
|
50
|
+
return url.pathname + url.search + url.hash;
|
|
51
|
+
};
|
|
52
|
+
const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
53
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
54
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
|
|
55
|
+
return axios.request(axiosRequestArgs);
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const PluginStatusPhaseEnum = {
|
|
60
|
+
Created: "CREATED",
|
|
61
|
+
Disabled: "DISABLED",
|
|
62
|
+
Resolved: "RESOLVED",
|
|
63
|
+
Started: "STARTED",
|
|
64
|
+
Stopped: "STOPPED",
|
|
65
|
+
Failed: "FAILED"
|
|
66
|
+
};
|
|
67
|
+
const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
68
|
+
return {
|
|
69
|
+
getCurrentUserDetail: async (options = {}) => {
|
|
70
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
71
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
|
+
let baseOptions;
|
|
73
|
+
if (configuration) {
|
|
74
|
+
baseOptions = configuration.baseOptions;
|
|
75
|
+
}
|
|
76
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
77
|
+
const localVarHeaderParameter = {};
|
|
78
|
+
const localVarQueryParameter = {};
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
82
|
+
return {
|
|
83
|
+
url: toPathString(localVarUrlObj),
|
|
84
|
+
options: localVarRequestOptions
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
90
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
91
|
+
return {
|
|
92
|
+
async getCurrentUserDetail(options) {
|
|
93
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetail(options);
|
|
94
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
99
|
+
const localVarFp = ApiHaloRunV1alpha1UserApiFp(configuration);
|
|
100
|
+
return {
|
|
101
|
+
getCurrentUserDetail(options) {
|
|
102
|
+
return localVarFp.getCurrentUserDetail(options).then((request) => request(axios, basePath));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
class ApiHaloRunV1alpha1UserApi extends BaseAPI {
|
|
107
|
+
getCurrentUserDetail(options) {
|
|
108
|
+
return ApiHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const CoreHaloRunV1alpha1LinkApiAxiosParamCreator = function(configuration) {
|
|
112
|
+
return {
|
|
113
|
+
createcoreHaloRunV1alpha1Link: async (link, options = {}) => {
|
|
114
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
116
|
+
let baseOptions;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
121
|
+
const localVarHeaderParameter = {};
|
|
122
|
+
const localVarQueryParameter = {};
|
|
123
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
deletecoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
134
|
+
assertParamExists("deletecoreHaloRunV1alpha1Link", "name", name);
|
|
135
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
+
let baseOptions;
|
|
138
|
+
if (configuration) {
|
|
139
|
+
baseOptions = configuration.baseOptions;
|
|
140
|
+
}
|
|
141
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
142
|
+
const localVarHeaderParameter = {};
|
|
143
|
+
const localVarQueryParameter = {};
|
|
144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
getcoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
153
|
+
assertParamExists("getcoreHaloRunV1alpha1Link", "name", name);
|
|
154
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
}
|
|
160
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
161
|
+
const localVarHeaderParameter = {};
|
|
162
|
+
const localVarQueryParameter = {};
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
166
|
+
return {
|
|
167
|
+
url: toPathString(localVarUrlObj),
|
|
168
|
+
options: localVarRequestOptions
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
listcoreHaloRunV1alpha1Link: async (page, size, sort, options = {}) => {
|
|
172
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
174
|
+
let baseOptions;
|
|
175
|
+
if (configuration) {
|
|
176
|
+
baseOptions = configuration.baseOptions;
|
|
177
|
+
}
|
|
178
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
179
|
+
const localVarHeaderParameter = {};
|
|
180
|
+
const localVarQueryParameter = {};
|
|
181
|
+
if (page !== void 0) {
|
|
182
|
+
localVarQueryParameter["page"] = page;
|
|
183
|
+
}
|
|
184
|
+
if (size !== void 0) {
|
|
185
|
+
localVarQueryParameter["size"] = size;
|
|
186
|
+
}
|
|
187
|
+
if (sort !== void 0) {
|
|
188
|
+
localVarQueryParameter["sort"] = sort;
|
|
189
|
+
}
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
193
|
+
return {
|
|
194
|
+
url: toPathString(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
updatecoreHaloRunV1alpha1Link: async (name, link, options = {}) => {
|
|
199
|
+
assertParamExists("updatecoreHaloRunV1alpha1Link", "name", name);
|
|
200
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
202
|
+
let baseOptions;
|
|
203
|
+
if (configuration) {
|
|
204
|
+
baseOptions = configuration.baseOptions;
|
|
205
|
+
}
|
|
206
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
207
|
+
const localVarHeaderParameter = {};
|
|
208
|
+
const localVarQueryParameter = {};
|
|
209
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
210
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
213
|
+
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
214
|
+
return {
|
|
215
|
+
url: toPathString(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
const CoreHaloRunV1alpha1LinkApiFp = function(configuration) {
|
|
222
|
+
const localVarAxiosParamCreator = CoreHaloRunV1alpha1LinkApiAxiosParamCreator(configuration);
|
|
223
|
+
return {
|
|
224
|
+
async createcoreHaloRunV1alpha1Link(link, options) {
|
|
225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createcoreHaloRunV1alpha1Link(link, options);
|
|
226
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
|
+
},
|
|
228
|
+
async deletecoreHaloRunV1alpha1Link(name, options) {
|
|
229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecoreHaloRunV1alpha1Link(name, options);
|
|
230
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
|
+
},
|
|
232
|
+
async getcoreHaloRunV1alpha1Link(name, options) {
|
|
233
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getcoreHaloRunV1alpha1Link(name, options);
|
|
234
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
235
|
+
},
|
|
236
|
+
async listcoreHaloRunV1alpha1Link(page, size, sort, options) {
|
|
237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listcoreHaloRunV1alpha1Link(page, size, sort, options);
|
|
238
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
239
|
+
},
|
|
240
|
+
async updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecoreHaloRunV1alpha1Link(name, link, options);
|
|
242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
const CoreHaloRunV1alpha1LinkApiFactory = function(configuration, basePath, axios) {
|
|
247
|
+
const localVarFp = CoreHaloRunV1alpha1LinkApiFp(configuration);
|
|
248
|
+
return {
|
|
249
|
+
createcoreHaloRunV1alpha1Link(link, options) {
|
|
250
|
+
return localVarFp.createcoreHaloRunV1alpha1Link(link, options).then((request) => request(axios, basePath));
|
|
251
|
+
},
|
|
252
|
+
deletecoreHaloRunV1alpha1Link(name, options) {
|
|
253
|
+
return localVarFp.deletecoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
255
|
+
getcoreHaloRunV1alpha1Link(name, options) {
|
|
256
|
+
return localVarFp.getcoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
257
|
+
},
|
|
258
|
+
listcoreHaloRunV1alpha1Link(page, size, sort, options) {
|
|
259
|
+
return localVarFp.listcoreHaloRunV1alpha1Link(page, size, sort, options).then((request) => request(axios, basePath));
|
|
260
|
+
},
|
|
261
|
+
updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
262
|
+
return localVarFp.updatecoreHaloRunV1alpha1Link(name, link, options).then((request) => request(axios, basePath));
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
class CoreHaloRunV1alpha1LinkApi extends BaseAPI {
|
|
267
|
+
createcoreHaloRunV1alpha1Link(link, options) {
|
|
268
|
+
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).createcoreHaloRunV1alpha1Link(link, options).then((request) => request(this.axios, this.basePath));
|
|
269
|
+
}
|
|
270
|
+
deletecoreHaloRunV1alpha1Link(name, options) {
|
|
271
|
+
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).deletecoreHaloRunV1alpha1Link(name, options).then((request) => request(this.axios, this.basePath));
|
|
272
|
+
}
|
|
273
|
+
getcoreHaloRunV1alpha1Link(name, options) {
|
|
274
|
+
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).getcoreHaloRunV1alpha1Link(name, options).then((request) => request(this.axios, this.basePath));
|
|
275
|
+
}
|
|
276
|
+
listcoreHaloRunV1alpha1Link(page, size, sort, options) {
|
|
277
|
+
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).listcoreHaloRunV1alpha1Link(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
278
|
+
}
|
|
279
|
+
updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
280
|
+
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).updatecoreHaloRunV1alpha1Link(name, link, options).then((request) => request(this.axios, this.basePath));
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration) {
|
|
284
|
+
return {
|
|
285
|
+
createcoreHaloRunV1alpha1LinkGroup: async (linkGroup, options = {}) => {
|
|
286
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/linkgroups`;
|
|
287
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
288
|
+
let baseOptions;
|
|
289
|
+
if (configuration) {
|
|
290
|
+
baseOptions = configuration.baseOptions;
|
|
291
|
+
}
|
|
292
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
293
|
+
const localVarHeaderParameter = {};
|
|
294
|
+
const localVarQueryParameter = {};
|
|
295
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkGroup, localVarRequestOptions, configuration);
|
|
300
|
+
return {
|
|
301
|
+
url: toPathString(localVarUrlObj),
|
|
302
|
+
options: localVarRequestOptions
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
deletecoreHaloRunV1alpha1LinkGroup: async (name, options = {}) => {
|
|
306
|
+
assertParamExists("deletecoreHaloRunV1alpha1LinkGroup", "name", name);
|
|
307
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/linkgroups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
309
|
+
let baseOptions;
|
|
310
|
+
if (configuration) {
|
|
311
|
+
baseOptions = configuration.baseOptions;
|
|
312
|
+
}
|
|
313
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
314
|
+
const localVarHeaderParameter = {};
|
|
315
|
+
const localVarQueryParameter = {};
|
|
316
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
317
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
318
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
319
|
+
return {
|
|
320
|
+
url: toPathString(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
getcoreHaloRunV1alpha1LinkGroup: async (name, options = {}) => {
|
|
325
|
+
assertParamExists("getcoreHaloRunV1alpha1LinkGroup", "name", name);
|
|
326
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/linkgroups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
327
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
328
|
+
let baseOptions;
|
|
329
|
+
if (configuration) {
|
|
330
|
+
baseOptions = configuration.baseOptions;
|
|
331
|
+
}
|
|
332
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
333
|
+
const localVarHeaderParameter = {};
|
|
334
|
+
const localVarQueryParameter = {};
|
|
335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
338
|
+
return {
|
|
339
|
+
url: toPathString(localVarUrlObj),
|
|
340
|
+
options: localVarRequestOptions
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
listcoreHaloRunV1alpha1LinkGroup: async (page, size, sort, options = {}) => {
|
|
344
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/linkgroups`;
|
|
345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
|
+
let baseOptions;
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
}
|
|
350
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
351
|
+
const localVarHeaderParameter = {};
|
|
352
|
+
const localVarQueryParameter = {};
|
|
353
|
+
if (page !== void 0) {
|
|
354
|
+
localVarQueryParameter["page"] = page;
|
|
355
|
+
}
|
|
356
|
+
if (size !== void 0) {
|
|
357
|
+
localVarQueryParameter["size"] = size;
|
|
358
|
+
}
|
|
359
|
+
if (sort !== void 0) {
|
|
360
|
+
localVarQueryParameter["sort"] = sort;
|
|
361
|
+
}
|
|
362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
365
|
+
return {
|
|
366
|
+
url: toPathString(localVarUrlObj),
|
|
367
|
+
options: localVarRequestOptions
|
|
368
|
+
};
|
|
369
|
+
},
|
|
370
|
+
updatecoreHaloRunV1alpha1LinkGroup: async (name, linkGroup, options = {}) => {
|
|
371
|
+
assertParamExists("updatecoreHaloRunV1alpha1LinkGroup", "name", name);
|
|
372
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/linkgroups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
373
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
374
|
+
let baseOptions;
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
}
|
|
378
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
379
|
+
const localVarHeaderParameter = {};
|
|
380
|
+
const localVarQueryParameter = {};
|
|
381
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
382
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
385
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkGroup, localVarRequestOptions, configuration);
|
|
386
|
+
return {
|
|
387
|
+
url: toPathString(localVarUrlObj),
|
|
388
|
+
options: localVarRequestOptions
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
const CoreHaloRunV1alpha1LinkGroupApiFp = function(configuration) {
|
|
394
|
+
const localVarAxiosParamCreator = CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator(configuration);
|
|
395
|
+
return {
|
|
396
|
+
async createcoreHaloRunV1alpha1LinkGroup(linkGroup, options) {
|
|
397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createcoreHaloRunV1alpha1LinkGroup(linkGroup, options);
|
|
398
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
399
|
+
},
|
|
400
|
+
async deletecoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecoreHaloRunV1alpha1LinkGroup(name, options);
|
|
402
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
|
+
},
|
|
404
|
+
async getcoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getcoreHaloRunV1alpha1LinkGroup(name, options);
|
|
406
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
407
|
+
},
|
|
408
|
+
async listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options) {
|
|
409
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options);
|
|
410
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
411
|
+
},
|
|
412
|
+
async updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options) {
|
|
413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options);
|
|
414
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
const CoreHaloRunV1alpha1LinkGroupApiFactory = function(configuration, basePath, axios) {
|
|
419
|
+
const localVarFp = CoreHaloRunV1alpha1LinkGroupApiFp(configuration);
|
|
420
|
+
return {
|
|
421
|
+
createcoreHaloRunV1alpha1LinkGroup(linkGroup, options) {
|
|
422
|
+
return localVarFp.createcoreHaloRunV1alpha1LinkGroup(linkGroup, options).then((request) => request(axios, basePath));
|
|
423
|
+
},
|
|
424
|
+
deletecoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
425
|
+
return localVarFp.deletecoreHaloRunV1alpha1LinkGroup(name, options).then((request) => request(axios, basePath));
|
|
426
|
+
},
|
|
427
|
+
getcoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
428
|
+
return localVarFp.getcoreHaloRunV1alpha1LinkGroup(name, options).then((request) => request(axios, basePath));
|
|
429
|
+
},
|
|
430
|
+
listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options) {
|
|
431
|
+
return localVarFp.listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options).then((request) => request(axios, basePath));
|
|
432
|
+
},
|
|
433
|
+
updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options) {
|
|
434
|
+
return localVarFp.updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options).then((request) => request(axios, basePath));
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
class CoreHaloRunV1alpha1LinkGroupApi extends BaseAPI {
|
|
439
|
+
createcoreHaloRunV1alpha1LinkGroup(linkGroup, options) {
|
|
440
|
+
return CoreHaloRunV1alpha1LinkGroupApiFp(this.configuration).createcoreHaloRunV1alpha1LinkGroup(linkGroup, options).then((request) => request(this.axios, this.basePath));
|
|
441
|
+
}
|
|
442
|
+
deletecoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
443
|
+
return CoreHaloRunV1alpha1LinkGroupApiFp(this.configuration).deletecoreHaloRunV1alpha1LinkGroup(name, options).then((request) => request(this.axios, this.basePath));
|
|
444
|
+
}
|
|
445
|
+
getcoreHaloRunV1alpha1LinkGroup(name, options) {
|
|
446
|
+
return CoreHaloRunV1alpha1LinkGroupApiFp(this.configuration).getcoreHaloRunV1alpha1LinkGroup(name, options).then((request) => request(this.axios, this.basePath));
|
|
447
|
+
}
|
|
448
|
+
listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options) {
|
|
449
|
+
return CoreHaloRunV1alpha1LinkGroupApiFp(this.configuration).listcoreHaloRunV1alpha1LinkGroup(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
450
|
+
}
|
|
451
|
+
updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options) {
|
|
452
|
+
return CoreHaloRunV1alpha1LinkGroupApiFp(this.configuration).updatecoreHaloRunV1alpha1LinkGroup(name, linkGroup, options).then((request) => request(this.axios, this.basePath));
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
const CoreHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
456
|
+
return {
|
|
457
|
+
createcoreHaloRunV1alpha1Post: async (post, options = {}) => {
|
|
458
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/posts`;
|
|
459
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
|
+
let baseOptions;
|
|
461
|
+
if (configuration) {
|
|
462
|
+
baseOptions = configuration.baseOptions;
|
|
463
|
+
}
|
|
464
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
465
|
+
const localVarHeaderParameter = {};
|
|
466
|
+
const localVarQueryParameter = {};
|
|
467
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
468
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
469
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
471
|
+
localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration);
|
|
472
|
+
return {
|
|
473
|
+
url: toPathString(localVarUrlObj),
|
|
474
|
+
options: localVarRequestOptions
|
|
475
|
+
};
|
|
476
|
+
},
|
|
477
|
+
deletecoreHaloRunV1alpha1Post: async (name, options = {}) => {
|
|
478
|
+
assertParamExists("deletecoreHaloRunV1alpha1Post", "name", name);
|
|
479
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
480
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
481
|
+
let baseOptions;
|
|
482
|
+
if (configuration) {
|
|
483
|
+
baseOptions = configuration.baseOptions;
|
|
484
|
+
}
|
|
485
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
486
|
+
const localVarHeaderParameter = {};
|
|
487
|
+
const localVarQueryParameter = {};
|
|
488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
491
|
+
return {
|
|
492
|
+
url: toPathString(localVarUrlObj),
|
|
493
|
+
options: localVarRequestOptions
|
|
494
|
+
};
|
|
495
|
+
},
|
|
496
|
+
getcoreHaloRunV1alpha1Post: async (name, options = {}) => {
|
|
497
|
+
assertParamExists("getcoreHaloRunV1alpha1Post", "name", name);
|
|
498
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
500
|
+
let baseOptions;
|
|
501
|
+
if (configuration) {
|
|
502
|
+
baseOptions = configuration.baseOptions;
|
|
503
|
+
}
|
|
504
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
505
|
+
const localVarHeaderParameter = {};
|
|
506
|
+
const localVarQueryParameter = {};
|
|
507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
510
|
+
return {
|
|
511
|
+
url: toPathString(localVarUrlObj),
|
|
512
|
+
options: localVarRequestOptions
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
listcoreHaloRunV1alpha1Post: async (page, size, sort, options = {}) => {
|
|
516
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/posts`;
|
|
517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
518
|
+
let baseOptions;
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
}
|
|
522
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
523
|
+
const localVarHeaderParameter = {};
|
|
524
|
+
const localVarQueryParameter = {};
|
|
525
|
+
if (page !== void 0) {
|
|
526
|
+
localVarQueryParameter["page"] = page;
|
|
527
|
+
}
|
|
528
|
+
if (size !== void 0) {
|
|
529
|
+
localVarQueryParameter["size"] = size;
|
|
530
|
+
}
|
|
531
|
+
if (sort !== void 0) {
|
|
532
|
+
localVarQueryParameter["sort"] = sort;
|
|
533
|
+
}
|
|
534
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
537
|
+
return {
|
|
538
|
+
url: toPathString(localVarUrlObj),
|
|
539
|
+
options: localVarRequestOptions
|
|
540
|
+
};
|
|
541
|
+
},
|
|
542
|
+
updatecoreHaloRunV1alpha1Post: async (name, post, options = {}) => {
|
|
543
|
+
assertParamExists("updatecoreHaloRunV1alpha1Post", "name", name);
|
|
544
|
+
const localVarPath = `/apis/core.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
545
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
|
+
let baseOptions;
|
|
547
|
+
if (configuration) {
|
|
548
|
+
baseOptions = configuration.baseOptions;
|
|
549
|
+
}
|
|
550
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
551
|
+
const localVarHeaderParameter = {};
|
|
552
|
+
const localVarQueryParameter = {};
|
|
553
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
554
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
556
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
557
|
+
localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration);
|
|
558
|
+
return {
|
|
559
|
+
url: toPathString(localVarUrlObj),
|
|
560
|
+
options: localVarRequestOptions
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
const CoreHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
566
|
+
const localVarAxiosParamCreator = CoreHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
567
|
+
return {
|
|
568
|
+
async createcoreHaloRunV1alpha1Post(post, options) {
|
|
569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createcoreHaloRunV1alpha1Post(post, options);
|
|
570
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
571
|
+
},
|
|
572
|
+
async deletecoreHaloRunV1alpha1Post(name, options) {
|
|
573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecoreHaloRunV1alpha1Post(name, options);
|
|
574
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
575
|
+
},
|
|
576
|
+
async getcoreHaloRunV1alpha1Post(name, options) {
|
|
577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getcoreHaloRunV1alpha1Post(name, options);
|
|
578
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
579
|
+
},
|
|
580
|
+
async listcoreHaloRunV1alpha1Post(page, size, sort, options) {
|
|
581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listcoreHaloRunV1alpha1Post(page, size, sort, options);
|
|
582
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
583
|
+
},
|
|
584
|
+
async updatecoreHaloRunV1alpha1Post(name, post, options) {
|
|
585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecoreHaloRunV1alpha1Post(name, post, options);
|
|
586
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
const CoreHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
591
|
+
const localVarFp = CoreHaloRunV1alpha1PostApiFp(configuration);
|
|
592
|
+
return {
|
|
593
|
+
createcoreHaloRunV1alpha1Post(post, options) {
|
|
594
|
+
return localVarFp.createcoreHaloRunV1alpha1Post(post, options).then((request) => request(axios, basePath));
|
|
595
|
+
},
|
|
596
|
+
deletecoreHaloRunV1alpha1Post(name, options) {
|
|
597
|
+
return localVarFp.deletecoreHaloRunV1alpha1Post(name, options).then((request) => request(axios, basePath));
|
|
598
|
+
},
|
|
599
|
+
getcoreHaloRunV1alpha1Post(name, options) {
|
|
600
|
+
return localVarFp.getcoreHaloRunV1alpha1Post(name, options).then((request) => request(axios, basePath));
|
|
601
|
+
},
|
|
602
|
+
listcoreHaloRunV1alpha1Post(page, size, sort, options) {
|
|
603
|
+
return localVarFp.listcoreHaloRunV1alpha1Post(page, size, sort, options).then((request) => request(axios, basePath));
|
|
604
|
+
},
|
|
605
|
+
updatecoreHaloRunV1alpha1Post(name, post, options) {
|
|
606
|
+
return localVarFp.updatecoreHaloRunV1alpha1Post(name, post, options).then((request) => request(axios, basePath));
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
class CoreHaloRunV1alpha1PostApi extends BaseAPI {
|
|
611
|
+
createcoreHaloRunV1alpha1Post(post, options) {
|
|
612
|
+
return CoreHaloRunV1alpha1PostApiFp(this.configuration).createcoreHaloRunV1alpha1Post(post, options).then((request) => request(this.axios, this.basePath));
|
|
613
|
+
}
|
|
614
|
+
deletecoreHaloRunV1alpha1Post(name, options) {
|
|
615
|
+
return CoreHaloRunV1alpha1PostApiFp(this.configuration).deletecoreHaloRunV1alpha1Post(name, options).then((request) => request(this.axios, this.basePath));
|
|
616
|
+
}
|
|
617
|
+
getcoreHaloRunV1alpha1Post(name, options) {
|
|
618
|
+
return CoreHaloRunV1alpha1PostApiFp(this.configuration).getcoreHaloRunV1alpha1Post(name, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
}
|
|
620
|
+
listcoreHaloRunV1alpha1Post(page, size, sort, options) {
|
|
621
|
+
return CoreHaloRunV1alpha1PostApiFp(this.configuration).listcoreHaloRunV1alpha1Post(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
622
|
+
}
|
|
623
|
+
updatecoreHaloRunV1alpha1Post(name, post, options) {
|
|
624
|
+
return CoreHaloRunV1alpha1PostApiFp(this.configuration).updatecoreHaloRunV1alpha1Post(name, post, options).then((request) => request(this.axios, this.basePath));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
628
|
+
return {
|
|
629
|
+
createpluginHaloRunV1alpha1Plugin: async (plugin, options = {}) => {
|
|
630
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
|
|
631
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
632
|
+
let baseOptions;
|
|
633
|
+
if (configuration) {
|
|
634
|
+
baseOptions = configuration.baseOptions;
|
|
635
|
+
}
|
|
636
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
637
|
+
const localVarHeaderParameter = {};
|
|
638
|
+
const localVarQueryParameter = {};
|
|
639
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
642
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
643
|
+
localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration);
|
|
644
|
+
return {
|
|
645
|
+
url: toPathString(localVarUrlObj),
|
|
646
|
+
options: localVarRequestOptions
|
|
647
|
+
};
|
|
648
|
+
},
|
|
649
|
+
deletepluginHaloRunV1alpha1Plugin: async (name, options = {}) => {
|
|
650
|
+
assertParamExists("deletepluginHaloRunV1alpha1Plugin", "name", name);
|
|
651
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
653
|
+
let baseOptions;
|
|
654
|
+
if (configuration) {
|
|
655
|
+
baseOptions = configuration.baseOptions;
|
|
656
|
+
}
|
|
657
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
658
|
+
const localVarHeaderParameter = {};
|
|
659
|
+
const localVarQueryParameter = {};
|
|
660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
662
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
663
|
+
return {
|
|
664
|
+
url: toPathString(localVarUrlObj),
|
|
665
|
+
options: localVarRequestOptions
|
|
666
|
+
};
|
|
667
|
+
},
|
|
668
|
+
getpluginHaloRunV1alpha1Plugin: async (name, options = {}) => {
|
|
669
|
+
assertParamExists("getpluginHaloRunV1alpha1Plugin", "name", name);
|
|
670
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
672
|
+
let baseOptions;
|
|
673
|
+
if (configuration) {
|
|
674
|
+
baseOptions = configuration.baseOptions;
|
|
675
|
+
}
|
|
676
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
677
|
+
const localVarHeaderParameter = {};
|
|
678
|
+
const localVarQueryParameter = {};
|
|
679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
681
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
682
|
+
return {
|
|
683
|
+
url: toPathString(localVarUrlObj),
|
|
684
|
+
options: localVarRequestOptions
|
|
685
|
+
};
|
|
686
|
+
},
|
|
687
|
+
listpluginHaloRunV1alpha1Plugin: async (page, size, sort, options = {}) => {
|
|
688
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
|
|
689
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
690
|
+
let baseOptions;
|
|
691
|
+
if (configuration) {
|
|
692
|
+
baseOptions = configuration.baseOptions;
|
|
693
|
+
}
|
|
694
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
695
|
+
const localVarHeaderParameter = {};
|
|
696
|
+
const localVarQueryParameter = {};
|
|
697
|
+
if (page !== void 0) {
|
|
698
|
+
localVarQueryParameter["page"] = page;
|
|
699
|
+
}
|
|
700
|
+
if (size !== void 0) {
|
|
701
|
+
localVarQueryParameter["size"] = size;
|
|
702
|
+
}
|
|
703
|
+
if (sort !== void 0) {
|
|
704
|
+
localVarQueryParameter["sort"] = sort;
|
|
705
|
+
}
|
|
706
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
707
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
709
|
+
return {
|
|
710
|
+
url: toPathString(localVarUrlObj),
|
|
711
|
+
options: localVarRequestOptions
|
|
712
|
+
};
|
|
713
|
+
},
|
|
714
|
+
updatepluginHaloRunV1alpha1Plugin: async (name, plugin, options = {}) => {
|
|
715
|
+
assertParamExists("updatepluginHaloRunV1alpha1Plugin", "name", name);
|
|
716
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
717
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
718
|
+
let baseOptions;
|
|
719
|
+
if (configuration) {
|
|
720
|
+
baseOptions = configuration.baseOptions;
|
|
721
|
+
}
|
|
722
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
723
|
+
const localVarHeaderParameter = {};
|
|
724
|
+
const localVarQueryParameter = {};
|
|
725
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
726
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
728
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
729
|
+
localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration);
|
|
730
|
+
return {
|
|
731
|
+
url: toPathString(localVarUrlObj),
|
|
732
|
+
options: localVarRequestOptions
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
const PluginHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
738
|
+
const localVarAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
|
739
|
+
return {
|
|
740
|
+
async createpluginHaloRunV1alpha1Plugin(plugin, options) {
|
|
741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1Plugin(plugin, options);
|
|
742
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
743
|
+
},
|
|
744
|
+
async deletepluginHaloRunV1alpha1Plugin(name, options) {
|
|
745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1Plugin(name, options);
|
|
746
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
747
|
+
},
|
|
748
|
+
async getpluginHaloRunV1alpha1Plugin(name, options) {
|
|
749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1Plugin(name, options);
|
|
750
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
751
|
+
},
|
|
752
|
+
async listpluginHaloRunV1alpha1Plugin(page, size, sort, options) {
|
|
753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin(page, size, sort, options);
|
|
754
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
755
|
+
},
|
|
756
|
+
async updatepluginHaloRunV1alpha1Plugin(name, plugin, options) {
|
|
757
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1Plugin(name, plugin, options);
|
|
758
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
const PluginHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
|
|
763
|
+
const localVarFp = PluginHaloRunV1alpha1PluginApiFp(configuration);
|
|
764
|
+
return {
|
|
765
|
+
createpluginHaloRunV1alpha1Plugin(plugin, options) {
|
|
766
|
+
return localVarFp.createpluginHaloRunV1alpha1Plugin(plugin, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
deletepluginHaloRunV1alpha1Plugin(name, options) {
|
|
769
|
+
return localVarFp.deletepluginHaloRunV1alpha1Plugin(name, options).then((request) => request(axios, basePath));
|
|
770
|
+
},
|
|
771
|
+
getpluginHaloRunV1alpha1Plugin(name, options) {
|
|
772
|
+
return localVarFp.getpluginHaloRunV1alpha1Plugin(name, options).then((request) => request(axios, basePath));
|
|
773
|
+
},
|
|
774
|
+
listpluginHaloRunV1alpha1Plugin(page, size, sort, options) {
|
|
775
|
+
return localVarFp.listpluginHaloRunV1alpha1Plugin(page, size, sort, options).then((request) => request(axios, basePath));
|
|
776
|
+
},
|
|
777
|
+
updatepluginHaloRunV1alpha1Plugin(name, plugin, options) {
|
|
778
|
+
return localVarFp.updatepluginHaloRunV1alpha1Plugin(name, plugin, options).then((request) => request(axios, basePath));
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
783
|
+
createpluginHaloRunV1alpha1Plugin(plugin, options) {
|
|
784
|
+
return PluginHaloRunV1alpha1PluginApiFp(this.configuration).createpluginHaloRunV1alpha1Plugin(plugin, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
+
}
|
|
786
|
+
deletepluginHaloRunV1alpha1Plugin(name, options) {
|
|
787
|
+
return PluginHaloRunV1alpha1PluginApiFp(this.configuration).deletepluginHaloRunV1alpha1Plugin(name, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
789
|
+
getpluginHaloRunV1alpha1Plugin(name, options) {
|
|
790
|
+
return PluginHaloRunV1alpha1PluginApiFp(this.configuration).getpluginHaloRunV1alpha1Plugin(name, options).then((request) => request(this.axios, this.basePath));
|
|
791
|
+
}
|
|
792
|
+
listpluginHaloRunV1alpha1Plugin(page, size, sort, options) {
|
|
793
|
+
return PluginHaloRunV1alpha1PluginApiFp(this.configuration).listpluginHaloRunV1alpha1Plugin(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
794
|
+
}
|
|
795
|
+
updatepluginHaloRunV1alpha1Plugin(name, plugin, options) {
|
|
796
|
+
return PluginHaloRunV1alpha1PluginApiFp(this.configuration).updatepluginHaloRunV1alpha1Plugin(name, plugin, options).then((request) => request(this.axios, this.basePath));
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function(configuration) {
|
|
800
|
+
return {
|
|
801
|
+
createpluginHaloRunV1alpha1ReverseProxy: async (reverseProxy, options = {}) => {
|
|
802
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
|
|
803
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
804
|
+
let baseOptions;
|
|
805
|
+
if (configuration) {
|
|
806
|
+
baseOptions = configuration.baseOptions;
|
|
807
|
+
}
|
|
808
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
809
|
+
const localVarHeaderParameter = {};
|
|
810
|
+
const localVarQueryParameter = {};
|
|
811
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
814
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
815
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration);
|
|
816
|
+
return {
|
|
817
|
+
url: toPathString(localVarUrlObj),
|
|
818
|
+
options: localVarRequestOptions
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
deletepluginHaloRunV1alpha1ReverseProxy: async (name, options = {}) => {
|
|
822
|
+
assertParamExists("deletepluginHaloRunV1alpha1ReverseProxy", "name", name);
|
|
823
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
824
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
825
|
+
let baseOptions;
|
|
826
|
+
if (configuration) {
|
|
827
|
+
baseOptions = configuration.baseOptions;
|
|
828
|
+
}
|
|
829
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
830
|
+
const localVarHeaderParameter = {};
|
|
831
|
+
const localVarQueryParameter = {};
|
|
832
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
834
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
835
|
+
return {
|
|
836
|
+
url: toPathString(localVarUrlObj),
|
|
837
|
+
options: localVarRequestOptions
|
|
838
|
+
};
|
|
839
|
+
},
|
|
840
|
+
getpluginHaloRunV1alpha1ReverseProxy: async (name, options = {}) => {
|
|
841
|
+
assertParamExists("getpluginHaloRunV1alpha1ReverseProxy", "name", name);
|
|
842
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
844
|
+
let baseOptions;
|
|
845
|
+
if (configuration) {
|
|
846
|
+
baseOptions = configuration.baseOptions;
|
|
847
|
+
}
|
|
848
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
849
|
+
const localVarHeaderParameter = {};
|
|
850
|
+
const localVarQueryParameter = {};
|
|
851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
853
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
854
|
+
return {
|
|
855
|
+
url: toPathString(localVarUrlObj),
|
|
856
|
+
options: localVarRequestOptions
|
|
857
|
+
};
|
|
858
|
+
},
|
|
859
|
+
listpluginHaloRunV1alpha1ReverseProxy: async (page, size, sort, options = {}) => {
|
|
860
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
|
|
861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
862
|
+
let baseOptions;
|
|
863
|
+
if (configuration) {
|
|
864
|
+
baseOptions = configuration.baseOptions;
|
|
865
|
+
}
|
|
866
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
867
|
+
const localVarHeaderParameter = {};
|
|
868
|
+
const localVarQueryParameter = {};
|
|
869
|
+
if (page !== void 0) {
|
|
870
|
+
localVarQueryParameter["page"] = page;
|
|
871
|
+
}
|
|
872
|
+
if (size !== void 0) {
|
|
873
|
+
localVarQueryParameter["size"] = size;
|
|
874
|
+
}
|
|
875
|
+
if (sort !== void 0) {
|
|
876
|
+
localVarQueryParameter["sort"] = sort;
|
|
877
|
+
}
|
|
878
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
880
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
881
|
+
return {
|
|
882
|
+
url: toPathString(localVarUrlObj),
|
|
883
|
+
options: localVarRequestOptions
|
|
884
|
+
};
|
|
885
|
+
},
|
|
886
|
+
updatepluginHaloRunV1alpha1ReverseProxy: async (name, reverseProxy, options = {}) => {
|
|
887
|
+
assertParamExists("updatepluginHaloRunV1alpha1ReverseProxy", "name", name);
|
|
888
|
+
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
890
|
+
let baseOptions;
|
|
891
|
+
if (configuration) {
|
|
892
|
+
baseOptions = configuration.baseOptions;
|
|
893
|
+
}
|
|
894
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
895
|
+
const localVarHeaderParameter = {};
|
|
896
|
+
const localVarQueryParameter = {};
|
|
897
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
898
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
900
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
901
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration);
|
|
902
|
+
return {
|
|
903
|
+
url: toPathString(localVarUrlObj),
|
|
904
|
+
options: localVarRequestOptions
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
const PluginHaloRunV1alpha1ReverseProxyApiFp = function(configuration) {
|
|
910
|
+
const localVarAxiosParamCreator = PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator(configuration);
|
|
911
|
+
return {
|
|
912
|
+
async createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options) {
|
|
913
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options);
|
|
914
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
915
|
+
},
|
|
916
|
+
async deletepluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
917
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ReverseProxy(name, options);
|
|
918
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
919
|
+
},
|
|
920
|
+
async getpluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
921
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ReverseProxy(name, options);
|
|
922
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
923
|
+
},
|
|
924
|
+
async listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options) {
|
|
925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options);
|
|
926
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
927
|
+
},
|
|
928
|
+
async updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options) {
|
|
929
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options);
|
|
930
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
const PluginHaloRunV1alpha1ReverseProxyApiFactory = function(configuration, basePath, axios) {
|
|
935
|
+
const localVarFp = PluginHaloRunV1alpha1ReverseProxyApiFp(configuration);
|
|
936
|
+
return {
|
|
937
|
+
createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options) {
|
|
938
|
+
return localVarFp.createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options).then((request) => request(axios, basePath));
|
|
939
|
+
},
|
|
940
|
+
deletepluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
941
|
+
return localVarFp.deletepluginHaloRunV1alpha1ReverseProxy(name, options).then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
943
|
+
getpluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
944
|
+
return localVarFp.getpluginHaloRunV1alpha1ReverseProxy(name, options).then((request) => request(axios, basePath));
|
|
945
|
+
},
|
|
946
|
+
listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options) {
|
|
947
|
+
return localVarFp.listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options).then((request) => request(axios, basePath));
|
|
948
|
+
},
|
|
949
|
+
updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options) {
|
|
950
|
+
return localVarFp.updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options).then((request) => request(axios, basePath));
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|
955
|
+
createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options) {
|
|
956
|
+
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).createpluginHaloRunV1alpha1ReverseProxy(reverseProxy, options).then((request) => request(this.axios, this.basePath));
|
|
957
|
+
}
|
|
958
|
+
deletepluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
959
|
+
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).deletepluginHaloRunV1alpha1ReverseProxy(name, options).then((request) => request(this.axios, this.basePath));
|
|
960
|
+
}
|
|
961
|
+
getpluginHaloRunV1alpha1ReverseProxy(name, options) {
|
|
962
|
+
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).getpluginHaloRunV1alpha1ReverseProxy(name, options).then((request) => request(this.axios, this.basePath));
|
|
963
|
+
}
|
|
964
|
+
listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options) {
|
|
965
|
+
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).listpluginHaloRunV1alpha1ReverseProxy(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
966
|
+
}
|
|
967
|
+
updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options) {
|
|
968
|
+
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration).updatepluginHaloRunV1alpha1ReverseProxy(name, reverseProxy, options).then((request) => request(this.axios, this.basePath));
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
const V1alpha1ConfigMapApiAxiosParamCreator = function(configuration) {
|
|
972
|
+
return {
|
|
973
|
+
createv1alpha1ConfigMap: async (configMap, options = {}) => {
|
|
974
|
+
const localVarPath = `/api/v1alpha1/configmaps`;
|
|
975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
976
|
+
let baseOptions;
|
|
977
|
+
if (configuration) {
|
|
978
|
+
baseOptions = configuration.baseOptions;
|
|
979
|
+
}
|
|
980
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
981
|
+
const localVarHeaderParameter = {};
|
|
982
|
+
const localVarQueryParameter = {};
|
|
983
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
984
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
986
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
987
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
988
|
+
return {
|
|
989
|
+
url: toPathString(localVarUrlObj),
|
|
990
|
+
options: localVarRequestOptions
|
|
991
|
+
};
|
|
992
|
+
},
|
|
993
|
+
deletev1alpha1ConfigMap: async (name, options = {}) => {
|
|
994
|
+
assertParamExists("deletev1alpha1ConfigMap", "name", name);
|
|
995
|
+
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
997
|
+
let baseOptions;
|
|
998
|
+
if (configuration) {
|
|
999
|
+
baseOptions = configuration.baseOptions;
|
|
1000
|
+
}
|
|
1001
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1002
|
+
const localVarHeaderParameter = {};
|
|
1003
|
+
const localVarQueryParameter = {};
|
|
1004
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1006
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1007
|
+
return {
|
|
1008
|
+
url: toPathString(localVarUrlObj),
|
|
1009
|
+
options: localVarRequestOptions
|
|
1010
|
+
};
|
|
1011
|
+
},
|
|
1012
|
+
getv1alpha1ConfigMap: async (name, options = {}) => {
|
|
1013
|
+
assertParamExists("getv1alpha1ConfigMap", "name", name);
|
|
1014
|
+
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1015
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1016
|
+
let baseOptions;
|
|
1017
|
+
if (configuration) {
|
|
1018
|
+
baseOptions = configuration.baseOptions;
|
|
1019
|
+
}
|
|
1020
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1021
|
+
const localVarHeaderParameter = {};
|
|
1022
|
+
const localVarQueryParameter = {};
|
|
1023
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1025
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1026
|
+
return {
|
|
1027
|
+
url: toPathString(localVarUrlObj),
|
|
1028
|
+
options: localVarRequestOptions
|
|
1029
|
+
};
|
|
1030
|
+
},
|
|
1031
|
+
listv1alpha1ConfigMap: async (page, size, sort, options = {}) => {
|
|
1032
|
+
const localVarPath = `/api/v1alpha1/configmaps`;
|
|
1033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1034
|
+
let baseOptions;
|
|
1035
|
+
if (configuration) {
|
|
1036
|
+
baseOptions = configuration.baseOptions;
|
|
1037
|
+
}
|
|
1038
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1039
|
+
const localVarHeaderParameter = {};
|
|
1040
|
+
const localVarQueryParameter = {};
|
|
1041
|
+
if (page !== void 0) {
|
|
1042
|
+
localVarQueryParameter["page"] = page;
|
|
1043
|
+
}
|
|
1044
|
+
if (size !== void 0) {
|
|
1045
|
+
localVarQueryParameter["size"] = size;
|
|
1046
|
+
}
|
|
1047
|
+
if (sort !== void 0) {
|
|
1048
|
+
localVarQueryParameter["sort"] = sort;
|
|
1049
|
+
}
|
|
1050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1052
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1053
|
+
return {
|
|
1054
|
+
url: toPathString(localVarUrlObj),
|
|
1055
|
+
options: localVarRequestOptions
|
|
1056
|
+
};
|
|
1057
|
+
},
|
|
1058
|
+
updatev1alpha1ConfigMap: async (name, configMap, options = {}) => {
|
|
1059
|
+
assertParamExists("updatev1alpha1ConfigMap", "name", name);
|
|
1060
|
+
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1061
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1062
|
+
let baseOptions;
|
|
1063
|
+
if (configuration) {
|
|
1064
|
+
baseOptions = configuration.baseOptions;
|
|
1065
|
+
}
|
|
1066
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1067
|
+
const localVarHeaderParameter = {};
|
|
1068
|
+
const localVarQueryParameter = {};
|
|
1069
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1070
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1071
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1072
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1073
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
1074
|
+
return {
|
|
1075
|
+
url: toPathString(localVarUrlObj),
|
|
1076
|
+
options: localVarRequestOptions
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
const V1alpha1ConfigMapApiFp = function(configuration) {
|
|
1082
|
+
const localVarAxiosParamCreator = V1alpha1ConfigMapApiAxiosParamCreator(configuration);
|
|
1083
|
+
return {
|
|
1084
|
+
async createv1alpha1ConfigMap(configMap, options) {
|
|
1085
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1ConfigMap(configMap, options);
|
|
1086
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1087
|
+
},
|
|
1088
|
+
async deletev1alpha1ConfigMap(name, options) {
|
|
1089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1ConfigMap(name, options);
|
|
1090
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1091
|
+
},
|
|
1092
|
+
async getv1alpha1ConfigMap(name, options) {
|
|
1093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1ConfigMap(name, options);
|
|
1094
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1095
|
+
},
|
|
1096
|
+
async listv1alpha1ConfigMap(page, size, sort, options) {
|
|
1097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1ConfigMap(page, size, sort, options);
|
|
1098
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1099
|
+
},
|
|
1100
|
+
async updatev1alpha1ConfigMap(name, configMap, options) {
|
|
1101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1ConfigMap(name, configMap, options);
|
|
1102
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
const V1alpha1ConfigMapApiFactory = function(configuration, basePath, axios) {
|
|
1107
|
+
const localVarFp = V1alpha1ConfigMapApiFp(configuration);
|
|
1108
|
+
return {
|
|
1109
|
+
createv1alpha1ConfigMap(configMap, options) {
|
|
1110
|
+
return localVarFp.createv1alpha1ConfigMap(configMap, options).then((request) => request(axios, basePath));
|
|
1111
|
+
},
|
|
1112
|
+
deletev1alpha1ConfigMap(name, options) {
|
|
1113
|
+
return localVarFp.deletev1alpha1ConfigMap(name, options).then((request) => request(axios, basePath));
|
|
1114
|
+
},
|
|
1115
|
+
getv1alpha1ConfigMap(name, options) {
|
|
1116
|
+
return localVarFp.getv1alpha1ConfigMap(name, options).then((request) => request(axios, basePath));
|
|
1117
|
+
},
|
|
1118
|
+
listv1alpha1ConfigMap(page, size, sort, options) {
|
|
1119
|
+
return localVarFp.listv1alpha1ConfigMap(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1120
|
+
},
|
|
1121
|
+
updatev1alpha1ConfigMap(name, configMap, options) {
|
|
1122
|
+
return localVarFp.updatev1alpha1ConfigMap(name, configMap, options).then((request) => request(axios, basePath));
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
class V1alpha1ConfigMapApi extends BaseAPI {
|
|
1127
|
+
createv1alpha1ConfigMap(configMap, options) {
|
|
1128
|
+
return V1alpha1ConfigMapApiFp(this.configuration).createv1alpha1ConfigMap(configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
1130
|
+
deletev1alpha1ConfigMap(name, options) {
|
|
1131
|
+
return V1alpha1ConfigMapApiFp(this.configuration).deletev1alpha1ConfigMap(name, options).then((request) => request(this.axios, this.basePath));
|
|
1132
|
+
}
|
|
1133
|
+
getv1alpha1ConfigMap(name, options) {
|
|
1134
|
+
return V1alpha1ConfigMapApiFp(this.configuration).getv1alpha1ConfigMap(name, options).then((request) => request(this.axios, this.basePath));
|
|
1135
|
+
}
|
|
1136
|
+
listv1alpha1ConfigMap(page, size, sort, options) {
|
|
1137
|
+
return V1alpha1ConfigMapApiFp(this.configuration).listv1alpha1ConfigMap(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1138
|
+
}
|
|
1139
|
+
updatev1alpha1ConfigMap(name, configMap, options) {
|
|
1140
|
+
return V1alpha1ConfigMapApiFp(this.configuration).updatev1alpha1ConfigMap(name, configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function(configuration) {
|
|
1144
|
+
return {
|
|
1145
|
+
createv1alpha1PersonalAccessToken: async (personalAccessToken, options = {}) => {
|
|
1146
|
+
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
|
|
1147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1148
|
+
let baseOptions;
|
|
1149
|
+
if (configuration) {
|
|
1150
|
+
baseOptions = configuration.baseOptions;
|
|
1151
|
+
}
|
|
1152
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1153
|
+
const localVarHeaderParameter = {};
|
|
1154
|
+
const localVarQueryParameter = {};
|
|
1155
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1156
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1158
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1159
|
+
localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration);
|
|
1160
|
+
return {
|
|
1161
|
+
url: toPathString(localVarUrlObj),
|
|
1162
|
+
options: localVarRequestOptions
|
|
1163
|
+
};
|
|
1164
|
+
},
|
|
1165
|
+
deletev1alpha1PersonalAccessToken: async (name, options = {}) => {
|
|
1166
|
+
assertParamExists("deletev1alpha1PersonalAccessToken", "name", name);
|
|
1167
|
+
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1169
|
+
let baseOptions;
|
|
1170
|
+
if (configuration) {
|
|
1171
|
+
baseOptions = configuration.baseOptions;
|
|
1172
|
+
}
|
|
1173
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1174
|
+
const localVarHeaderParameter = {};
|
|
1175
|
+
const localVarQueryParameter = {};
|
|
1176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1178
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1179
|
+
return {
|
|
1180
|
+
url: toPathString(localVarUrlObj),
|
|
1181
|
+
options: localVarRequestOptions
|
|
1182
|
+
};
|
|
1183
|
+
},
|
|
1184
|
+
getv1alpha1PersonalAccessToken: async (name, options = {}) => {
|
|
1185
|
+
assertParamExists("getv1alpha1PersonalAccessToken", "name", name);
|
|
1186
|
+
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1188
|
+
let baseOptions;
|
|
1189
|
+
if (configuration) {
|
|
1190
|
+
baseOptions = configuration.baseOptions;
|
|
1191
|
+
}
|
|
1192
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1193
|
+
const localVarHeaderParameter = {};
|
|
1194
|
+
const localVarQueryParameter = {};
|
|
1195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1197
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1198
|
+
return {
|
|
1199
|
+
url: toPathString(localVarUrlObj),
|
|
1200
|
+
options: localVarRequestOptions
|
|
1201
|
+
};
|
|
1202
|
+
},
|
|
1203
|
+
listv1alpha1PersonalAccessToken: async (page, size, sort, options = {}) => {
|
|
1204
|
+
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
|
|
1205
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1206
|
+
let baseOptions;
|
|
1207
|
+
if (configuration) {
|
|
1208
|
+
baseOptions = configuration.baseOptions;
|
|
1209
|
+
}
|
|
1210
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1211
|
+
const localVarHeaderParameter = {};
|
|
1212
|
+
const localVarQueryParameter = {};
|
|
1213
|
+
if (page !== void 0) {
|
|
1214
|
+
localVarQueryParameter["page"] = page;
|
|
1215
|
+
}
|
|
1216
|
+
if (size !== void 0) {
|
|
1217
|
+
localVarQueryParameter["size"] = size;
|
|
1218
|
+
}
|
|
1219
|
+
if (sort !== void 0) {
|
|
1220
|
+
localVarQueryParameter["sort"] = sort;
|
|
1221
|
+
}
|
|
1222
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1223
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1224
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1225
|
+
return {
|
|
1226
|
+
url: toPathString(localVarUrlObj),
|
|
1227
|
+
options: localVarRequestOptions
|
|
1228
|
+
};
|
|
1229
|
+
},
|
|
1230
|
+
updatev1alpha1PersonalAccessToken: async (name, personalAccessToken, options = {}) => {
|
|
1231
|
+
assertParamExists("updatev1alpha1PersonalAccessToken", "name", name);
|
|
1232
|
+
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1233
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1234
|
+
let baseOptions;
|
|
1235
|
+
if (configuration) {
|
|
1236
|
+
baseOptions = configuration.baseOptions;
|
|
1237
|
+
}
|
|
1238
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1239
|
+
const localVarHeaderParameter = {};
|
|
1240
|
+
const localVarQueryParameter = {};
|
|
1241
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1242
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1244
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1245
|
+
localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration);
|
|
1246
|
+
return {
|
|
1247
|
+
url: toPathString(localVarUrlObj),
|
|
1248
|
+
options: localVarRequestOptions
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
const V1alpha1PersonalAccessTokenApiFp = function(configuration) {
|
|
1254
|
+
const localVarAxiosParamCreator = V1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration);
|
|
1255
|
+
return {
|
|
1256
|
+
async createv1alpha1PersonalAccessToken(personalAccessToken, options) {
|
|
1257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1PersonalAccessToken(personalAccessToken, options);
|
|
1258
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1259
|
+
},
|
|
1260
|
+
async deletev1alpha1PersonalAccessToken(name, options) {
|
|
1261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1PersonalAccessToken(name, options);
|
|
1262
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1263
|
+
},
|
|
1264
|
+
async getv1alpha1PersonalAccessToken(name, options) {
|
|
1265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1PersonalAccessToken(name, options);
|
|
1266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1267
|
+
},
|
|
1268
|
+
async listv1alpha1PersonalAccessToken(page, size, sort, options) {
|
|
1269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1PersonalAccessToken(page, size, sort, options);
|
|
1270
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1271
|
+
},
|
|
1272
|
+
async updatev1alpha1PersonalAccessToken(name, personalAccessToken, options) {
|
|
1273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1PersonalAccessToken(name, personalAccessToken, options);
|
|
1274
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
const V1alpha1PersonalAccessTokenApiFactory = function(configuration, basePath, axios) {
|
|
1279
|
+
const localVarFp = V1alpha1PersonalAccessTokenApiFp(configuration);
|
|
1280
|
+
return {
|
|
1281
|
+
createv1alpha1PersonalAccessToken(personalAccessToken, options) {
|
|
1282
|
+
return localVarFp.createv1alpha1PersonalAccessToken(personalAccessToken, options).then((request) => request(axios, basePath));
|
|
1283
|
+
},
|
|
1284
|
+
deletev1alpha1PersonalAccessToken(name, options) {
|
|
1285
|
+
return localVarFp.deletev1alpha1PersonalAccessToken(name, options).then((request) => request(axios, basePath));
|
|
1286
|
+
},
|
|
1287
|
+
getv1alpha1PersonalAccessToken(name, options) {
|
|
1288
|
+
return localVarFp.getv1alpha1PersonalAccessToken(name, options).then((request) => request(axios, basePath));
|
|
1289
|
+
},
|
|
1290
|
+
listv1alpha1PersonalAccessToken(page, size, sort, options) {
|
|
1291
|
+
return localVarFp.listv1alpha1PersonalAccessToken(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1292
|
+
},
|
|
1293
|
+
updatev1alpha1PersonalAccessToken(name, personalAccessToken, options) {
|
|
1294
|
+
return localVarFp.updatev1alpha1PersonalAccessToken(name, personalAccessToken, options).then((request) => request(axios, basePath));
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|
1299
|
+
createv1alpha1PersonalAccessToken(personalAccessToken, options) {
|
|
1300
|
+
return V1alpha1PersonalAccessTokenApiFp(this.configuration).createv1alpha1PersonalAccessToken(personalAccessToken, options).then((request) => request(this.axios, this.basePath));
|
|
1301
|
+
}
|
|
1302
|
+
deletev1alpha1PersonalAccessToken(name, options) {
|
|
1303
|
+
return V1alpha1PersonalAccessTokenApiFp(this.configuration).deletev1alpha1PersonalAccessToken(name, options).then((request) => request(this.axios, this.basePath));
|
|
1304
|
+
}
|
|
1305
|
+
getv1alpha1PersonalAccessToken(name, options) {
|
|
1306
|
+
return V1alpha1PersonalAccessTokenApiFp(this.configuration).getv1alpha1PersonalAccessToken(name, options).then((request) => request(this.axios, this.basePath));
|
|
1307
|
+
}
|
|
1308
|
+
listv1alpha1PersonalAccessToken(page, size, sort, options) {
|
|
1309
|
+
return V1alpha1PersonalAccessTokenApiFp(this.configuration).listv1alpha1PersonalAccessToken(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1310
|
+
}
|
|
1311
|
+
updatev1alpha1PersonalAccessToken(name, personalAccessToken, options) {
|
|
1312
|
+
return V1alpha1PersonalAccessTokenApiFp(this.configuration).updatev1alpha1PersonalAccessToken(name, personalAccessToken, options).then((request) => request(this.axios, this.basePath));
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
const V1alpha1RoleApiAxiosParamCreator = function(configuration) {
|
|
1316
|
+
return {
|
|
1317
|
+
createv1alpha1Role: async (role, options = {}) => {
|
|
1318
|
+
const localVarPath = `/api/v1alpha1/roles`;
|
|
1319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1320
|
+
let baseOptions;
|
|
1321
|
+
if (configuration) {
|
|
1322
|
+
baseOptions = configuration.baseOptions;
|
|
1323
|
+
}
|
|
1324
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1325
|
+
const localVarHeaderParameter = {};
|
|
1326
|
+
const localVarQueryParameter = {};
|
|
1327
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1331
|
+
localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration);
|
|
1332
|
+
return {
|
|
1333
|
+
url: toPathString(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions
|
|
1335
|
+
};
|
|
1336
|
+
},
|
|
1337
|
+
deletev1alpha1Role: async (name, options = {}) => {
|
|
1338
|
+
assertParamExists("deletev1alpha1Role", "name", name);
|
|
1339
|
+
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1341
|
+
let baseOptions;
|
|
1342
|
+
if (configuration) {
|
|
1343
|
+
baseOptions = configuration.baseOptions;
|
|
1344
|
+
}
|
|
1345
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1346
|
+
const localVarHeaderParameter = {};
|
|
1347
|
+
const localVarQueryParameter = {};
|
|
1348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1350
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1351
|
+
return {
|
|
1352
|
+
url: toPathString(localVarUrlObj),
|
|
1353
|
+
options: localVarRequestOptions
|
|
1354
|
+
};
|
|
1355
|
+
},
|
|
1356
|
+
getv1alpha1Role: async (name, options = {}) => {
|
|
1357
|
+
assertParamExists("getv1alpha1Role", "name", name);
|
|
1358
|
+
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1360
|
+
let baseOptions;
|
|
1361
|
+
if (configuration) {
|
|
1362
|
+
baseOptions = configuration.baseOptions;
|
|
1363
|
+
}
|
|
1364
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1365
|
+
const localVarHeaderParameter = {};
|
|
1366
|
+
const localVarQueryParameter = {};
|
|
1367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1369
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1370
|
+
return {
|
|
1371
|
+
url: toPathString(localVarUrlObj),
|
|
1372
|
+
options: localVarRequestOptions
|
|
1373
|
+
};
|
|
1374
|
+
},
|
|
1375
|
+
listv1alpha1Role: async (page, size, sort, options = {}) => {
|
|
1376
|
+
const localVarPath = `/api/v1alpha1/roles`;
|
|
1377
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1378
|
+
let baseOptions;
|
|
1379
|
+
if (configuration) {
|
|
1380
|
+
baseOptions = configuration.baseOptions;
|
|
1381
|
+
}
|
|
1382
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1383
|
+
const localVarHeaderParameter = {};
|
|
1384
|
+
const localVarQueryParameter = {};
|
|
1385
|
+
if (page !== void 0) {
|
|
1386
|
+
localVarQueryParameter["page"] = page;
|
|
1387
|
+
}
|
|
1388
|
+
if (size !== void 0) {
|
|
1389
|
+
localVarQueryParameter["size"] = size;
|
|
1390
|
+
}
|
|
1391
|
+
if (sort !== void 0) {
|
|
1392
|
+
localVarQueryParameter["sort"] = sort;
|
|
1393
|
+
}
|
|
1394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1396
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1397
|
+
return {
|
|
1398
|
+
url: toPathString(localVarUrlObj),
|
|
1399
|
+
options: localVarRequestOptions
|
|
1400
|
+
};
|
|
1401
|
+
},
|
|
1402
|
+
updatev1alpha1Role: async (name, role, options = {}) => {
|
|
1403
|
+
assertParamExists("updatev1alpha1Role", "name", name);
|
|
1404
|
+
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1405
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1406
|
+
let baseOptions;
|
|
1407
|
+
if (configuration) {
|
|
1408
|
+
baseOptions = configuration.baseOptions;
|
|
1409
|
+
}
|
|
1410
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1411
|
+
const localVarHeaderParameter = {};
|
|
1412
|
+
const localVarQueryParameter = {};
|
|
1413
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1414
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1416
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1417
|
+
localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration);
|
|
1418
|
+
return {
|
|
1419
|
+
url: toPathString(localVarUrlObj),
|
|
1420
|
+
options: localVarRequestOptions
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
const V1alpha1RoleApiFp = function(configuration) {
|
|
1426
|
+
const localVarAxiosParamCreator = V1alpha1RoleApiAxiosParamCreator(configuration);
|
|
1427
|
+
return {
|
|
1428
|
+
async createv1alpha1Role(role, options) {
|
|
1429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Role(role, options);
|
|
1430
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1431
|
+
},
|
|
1432
|
+
async deletev1alpha1Role(name, options) {
|
|
1433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Role(name, options);
|
|
1434
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1435
|
+
},
|
|
1436
|
+
async getv1alpha1Role(name, options) {
|
|
1437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Role(name, options);
|
|
1438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1439
|
+
},
|
|
1440
|
+
async listv1alpha1Role(page, size, sort, options) {
|
|
1441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Role(page, size, sort, options);
|
|
1442
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1443
|
+
},
|
|
1444
|
+
async updatev1alpha1Role(name, role, options) {
|
|
1445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Role(name, role, options);
|
|
1446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
const V1alpha1RoleApiFactory = function(configuration, basePath, axios) {
|
|
1451
|
+
const localVarFp = V1alpha1RoleApiFp(configuration);
|
|
1452
|
+
return {
|
|
1453
|
+
createv1alpha1Role(role, options) {
|
|
1454
|
+
return localVarFp.createv1alpha1Role(role, options).then((request) => request(axios, basePath));
|
|
1455
|
+
},
|
|
1456
|
+
deletev1alpha1Role(name, options) {
|
|
1457
|
+
return localVarFp.deletev1alpha1Role(name, options).then((request) => request(axios, basePath));
|
|
1458
|
+
},
|
|
1459
|
+
getv1alpha1Role(name, options) {
|
|
1460
|
+
return localVarFp.getv1alpha1Role(name, options).then((request) => request(axios, basePath));
|
|
1461
|
+
},
|
|
1462
|
+
listv1alpha1Role(page, size, sort, options) {
|
|
1463
|
+
return localVarFp.listv1alpha1Role(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1464
|
+
},
|
|
1465
|
+
updatev1alpha1Role(name, role, options) {
|
|
1466
|
+
return localVarFp.updatev1alpha1Role(name, role, options).then((request) => request(axios, basePath));
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
class V1alpha1RoleApi extends BaseAPI {
|
|
1471
|
+
createv1alpha1Role(role, options) {
|
|
1472
|
+
return V1alpha1RoleApiFp(this.configuration).createv1alpha1Role(role, options).then((request) => request(this.axios, this.basePath));
|
|
1473
|
+
}
|
|
1474
|
+
deletev1alpha1Role(name, options) {
|
|
1475
|
+
return V1alpha1RoleApiFp(this.configuration).deletev1alpha1Role(name, options).then((request) => request(this.axios, this.basePath));
|
|
1476
|
+
}
|
|
1477
|
+
getv1alpha1Role(name, options) {
|
|
1478
|
+
return V1alpha1RoleApiFp(this.configuration).getv1alpha1Role(name, options).then((request) => request(this.axios, this.basePath));
|
|
1479
|
+
}
|
|
1480
|
+
listv1alpha1Role(page, size, sort, options) {
|
|
1481
|
+
return V1alpha1RoleApiFp(this.configuration).listv1alpha1Role(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1482
|
+
}
|
|
1483
|
+
updatev1alpha1Role(name, role, options) {
|
|
1484
|
+
return V1alpha1RoleApiFp(this.configuration).updatev1alpha1Role(name, role, options).then((request) => request(this.axios, this.basePath));
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
const V1alpha1RoleBindingApiAxiosParamCreator = function(configuration) {
|
|
1488
|
+
return {
|
|
1489
|
+
createv1alpha1RoleBinding: async (roleBinding, options = {}) => {
|
|
1490
|
+
const localVarPath = `/api/v1alpha1/rolebindings`;
|
|
1491
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1492
|
+
let baseOptions;
|
|
1493
|
+
if (configuration) {
|
|
1494
|
+
baseOptions = configuration.baseOptions;
|
|
1495
|
+
}
|
|
1496
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1497
|
+
const localVarHeaderParameter = {};
|
|
1498
|
+
const localVarQueryParameter = {};
|
|
1499
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1500
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1501
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1502
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1503
|
+
localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration);
|
|
1504
|
+
return {
|
|
1505
|
+
url: toPathString(localVarUrlObj),
|
|
1506
|
+
options: localVarRequestOptions
|
|
1507
|
+
};
|
|
1508
|
+
},
|
|
1509
|
+
deletev1alpha1RoleBinding: async (name, options = {}) => {
|
|
1510
|
+
assertParamExists("deletev1alpha1RoleBinding", "name", name);
|
|
1511
|
+
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1512
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1513
|
+
let baseOptions;
|
|
1514
|
+
if (configuration) {
|
|
1515
|
+
baseOptions = configuration.baseOptions;
|
|
1516
|
+
}
|
|
1517
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1518
|
+
const localVarHeaderParameter = {};
|
|
1519
|
+
const localVarQueryParameter = {};
|
|
1520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1522
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1523
|
+
return {
|
|
1524
|
+
url: toPathString(localVarUrlObj),
|
|
1525
|
+
options: localVarRequestOptions
|
|
1526
|
+
};
|
|
1527
|
+
},
|
|
1528
|
+
getv1alpha1RoleBinding: async (name, options = {}) => {
|
|
1529
|
+
assertParamExists("getv1alpha1RoleBinding", "name", name);
|
|
1530
|
+
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1532
|
+
let baseOptions;
|
|
1533
|
+
if (configuration) {
|
|
1534
|
+
baseOptions = configuration.baseOptions;
|
|
1535
|
+
}
|
|
1536
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1537
|
+
const localVarHeaderParameter = {};
|
|
1538
|
+
const localVarQueryParameter = {};
|
|
1539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1541
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1542
|
+
return {
|
|
1543
|
+
url: toPathString(localVarUrlObj),
|
|
1544
|
+
options: localVarRequestOptions
|
|
1545
|
+
};
|
|
1546
|
+
},
|
|
1547
|
+
listv1alpha1RoleBinding: async (page, size, sort, options = {}) => {
|
|
1548
|
+
const localVarPath = `/api/v1alpha1/rolebindings`;
|
|
1549
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1550
|
+
let baseOptions;
|
|
1551
|
+
if (configuration) {
|
|
1552
|
+
baseOptions = configuration.baseOptions;
|
|
1553
|
+
}
|
|
1554
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1555
|
+
const localVarHeaderParameter = {};
|
|
1556
|
+
const localVarQueryParameter = {};
|
|
1557
|
+
if (page !== void 0) {
|
|
1558
|
+
localVarQueryParameter["page"] = page;
|
|
1559
|
+
}
|
|
1560
|
+
if (size !== void 0) {
|
|
1561
|
+
localVarQueryParameter["size"] = size;
|
|
1562
|
+
}
|
|
1563
|
+
if (sort !== void 0) {
|
|
1564
|
+
localVarQueryParameter["sort"] = sort;
|
|
1565
|
+
}
|
|
1566
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1567
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1568
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1569
|
+
return {
|
|
1570
|
+
url: toPathString(localVarUrlObj),
|
|
1571
|
+
options: localVarRequestOptions
|
|
1572
|
+
};
|
|
1573
|
+
},
|
|
1574
|
+
updatev1alpha1RoleBinding: async (name, roleBinding, options = {}) => {
|
|
1575
|
+
assertParamExists("updatev1alpha1RoleBinding", "name", name);
|
|
1576
|
+
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1577
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1578
|
+
let baseOptions;
|
|
1579
|
+
if (configuration) {
|
|
1580
|
+
baseOptions = configuration.baseOptions;
|
|
1581
|
+
}
|
|
1582
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1583
|
+
const localVarHeaderParameter = {};
|
|
1584
|
+
const localVarQueryParameter = {};
|
|
1585
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1588
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1589
|
+
localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration);
|
|
1590
|
+
return {
|
|
1591
|
+
url: toPathString(localVarUrlObj),
|
|
1592
|
+
options: localVarRequestOptions
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
const V1alpha1RoleBindingApiFp = function(configuration) {
|
|
1598
|
+
const localVarAxiosParamCreator = V1alpha1RoleBindingApiAxiosParamCreator(configuration);
|
|
1599
|
+
return {
|
|
1600
|
+
async createv1alpha1RoleBinding(roleBinding, options) {
|
|
1601
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1RoleBinding(roleBinding, options);
|
|
1602
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1603
|
+
},
|
|
1604
|
+
async deletev1alpha1RoleBinding(name, options) {
|
|
1605
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1RoleBinding(name, options);
|
|
1606
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1607
|
+
},
|
|
1608
|
+
async getv1alpha1RoleBinding(name, options) {
|
|
1609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1RoleBinding(name, options);
|
|
1610
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1611
|
+
},
|
|
1612
|
+
async listv1alpha1RoleBinding(page, size, sort, options) {
|
|
1613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1RoleBinding(page, size, sort, options);
|
|
1614
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1615
|
+
},
|
|
1616
|
+
async updatev1alpha1RoleBinding(name, roleBinding, options) {
|
|
1617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1RoleBinding(name, roleBinding, options);
|
|
1618
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
const V1alpha1RoleBindingApiFactory = function(configuration, basePath, axios) {
|
|
1623
|
+
const localVarFp = V1alpha1RoleBindingApiFp(configuration);
|
|
1624
|
+
return {
|
|
1625
|
+
createv1alpha1RoleBinding(roleBinding, options) {
|
|
1626
|
+
return localVarFp.createv1alpha1RoleBinding(roleBinding, options).then((request) => request(axios, basePath));
|
|
1627
|
+
},
|
|
1628
|
+
deletev1alpha1RoleBinding(name, options) {
|
|
1629
|
+
return localVarFp.deletev1alpha1RoleBinding(name, options).then((request) => request(axios, basePath));
|
|
1630
|
+
},
|
|
1631
|
+
getv1alpha1RoleBinding(name, options) {
|
|
1632
|
+
return localVarFp.getv1alpha1RoleBinding(name, options).then((request) => request(axios, basePath));
|
|
1633
|
+
},
|
|
1634
|
+
listv1alpha1RoleBinding(page, size, sort, options) {
|
|
1635
|
+
return localVarFp.listv1alpha1RoleBinding(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1636
|
+
},
|
|
1637
|
+
updatev1alpha1RoleBinding(name, roleBinding, options) {
|
|
1638
|
+
return localVarFp.updatev1alpha1RoleBinding(name, roleBinding, options).then((request) => request(axios, basePath));
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
class V1alpha1RoleBindingApi extends BaseAPI {
|
|
1643
|
+
createv1alpha1RoleBinding(roleBinding, options) {
|
|
1644
|
+
return V1alpha1RoleBindingApiFp(this.configuration).createv1alpha1RoleBinding(roleBinding, options).then((request) => request(this.axios, this.basePath));
|
|
1645
|
+
}
|
|
1646
|
+
deletev1alpha1RoleBinding(name, options) {
|
|
1647
|
+
return V1alpha1RoleBindingApiFp(this.configuration).deletev1alpha1RoleBinding(name, options).then((request) => request(this.axios, this.basePath));
|
|
1648
|
+
}
|
|
1649
|
+
getv1alpha1RoleBinding(name, options) {
|
|
1650
|
+
return V1alpha1RoleBindingApiFp(this.configuration).getv1alpha1RoleBinding(name, options).then((request) => request(this.axios, this.basePath));
|
|
1651
|
+
}
|
|
1652
|
+
listv1alpha1RoleBinding(page, size, sort, options) {
|
|
1653
|
+
return V1alpha1RoleBindingApiFp(this.configuration).listv1alpha1RoleBinding(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
1655
|
+
updatev1alpha1RoleBinding(name, roleBinding, options) {
|
|
1656
|
+
return V1alpha1RoleBindingApiFp(this.configuration).updatev1alpha1RoleBinding(name, roleBinding, options).then((request) => request(this.axios, this.basePath));
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
const V1alpha1SettingApiAxiosParamCreator = function(configuration) {
|
|
1660
|
+
return {
|
|
1661
|
+
createv1alpha1Setting: async (setting, options = {}) => {
|
|
1662
|
+
const localVarPath = `/api/v1alpha1/settings`;
|
|
1663
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1664
|
+
let baseOptions;
|
|
1665
|
+
if (configuration) {
|
|
1666
|
+
baseOptions = configuration.baseOptions;
|
|
1667
|
+
}
|
|
1668
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1669
|
+
const localVarHeaderParameter = {};
|
|
1670
|
+
const localVarQueryParameter = {};
|
|
1671
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1672
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1673
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1674
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1675
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration);
|
|
1676
|
+
return {
|
|
1677
|
+
url: toPathString(localVarUrlObj),
|
|
1678
|
+
options: localVarRequestOptions
|
|
1679
|
+
};
|
|
1680
|
+
},
|
|
1681
|
+
deletev1alpha1Setting: async (name, options = {}) => {
|
|
1682
|
+
assertParamExists("deletev1alpha1Setting", "name", name);
|
|
1683
|
+
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1685
|
+
let baseOptions;
|
|
1686
|
+
if (configuration) {
|
|
1687
|
+
baseOptions = configuration.baseOptions;
|
|
1688
|
+
}
|
|
1689
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1690
|
+
const localVarHeaderParameter = {};
|
|
1691
|
+
const localVarQueryParameter = {};
|
|
1692
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1693
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1695
|
+
return {
|
|
1696
|
+
url: toPathString(localVarUrlObj),
|
|
1697
|
+
options: localVarRequestOptions
|
|
1698
|
+
};
|
|
1699
|
+
},
|
|
1700
|
+
getv1alpha1Setting: async (name, options = {}) => {
|
|
1701
|
+
assertParamExists("getv1alpha1Setting", "name", name);
|
|
1702
|
+
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1704
|
+
let baseOptions;
|
|
1705
|
+
if (configuration) {
|
|
1706
|
+
baseOptions = configuration.baseOptions;
|
|
1707
|
+
}
|
|
1708
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1709
|
+
const localVarHeaderParameter = {};
|
|
1710
|
+
const localVarQueryParameter = {};
|
|
1711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1713
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1714
|
+
return {
|
|
1715
|
+
url: toPathString(localVarUrlObj),
|
|
1716
|
+
options: localVarRequestOptions
|
|
1717
|
+
};
|
|
1718
|
+
},
|
|
1719
|
+
listv1alpha1Setting: async (page, size, sort, options = {}) => {
|
|
1720
|
+
const localVarPath = `/api/v1alpha1/settings`;
|
|
1721
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1722
|
+
let baseOptions;
|
|
1723
|
+
if (configuration) {
|
|
1724
|
+
baseOptions = configuration.baseOptions;
|
|
1725
|
+
}
|
|
1726
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1727
|
+
const localVarHeaderParameter = {};
|
|
1728
|
+
const localVarQueryParameter = {};
|
|
1729
|
+
if (page !== void 0) {
|
|
1730
|
+
localVarQueryParameter["page"] = page;
|
|
1731
|
+
}
|
|
1732
|
+
if (size !== void 0) {
|
|
1733
|
+
localVarQueryParameter["size"] = size;
|
|
1734
|
+
}
|
|
1735
|
+
if (sort !== void 0) {
|
|
1736
|
+
localVarQueryParameter["sort"] = sort;
|
|
1737
|
+
}
|
|
1738
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1739
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1740
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1741
|
+
return {
|
|
1742
|
+
url: toPathString(localVarUrlObj),
|
|
1743
|
+
options: localVarRequestOptions
|
|
1744
|
+
};
|
|
1745
|
+
},
|
|
1746
|
+
updatev1alpha1Setting: async (name, setting, options = {}) => {
|
|
1747
|
+
assertParamExists("updatev1alpha1Setting", "name", name);
|
|
1748
|
+
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1749
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1750
|
+
let baseOptions;
|
|
1751
|
+
if (configuration) {
|
|
1752
|
+
baseOptions = configuration.baseOptions;
|
|
1753
|
+
}
|
|
1754
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1755
|
+
const localVarHeaderParameter = {};
|
|
1756
|
+
const localVarQueryParameter = {};
|
|
1757
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1760
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1761
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration);
|
|
1762
|
+
return {
|
|
1763
|
+
url: toPathString(localVarUrlObj),
|
|
1764
|
+
options: localVarRequestOptions
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
const V1alpha1SettingApiFp = function(configuration) {
|
|
1770
|
+
const localVarAxiosParamCreator = V1alpha1SettingApiAxiosParamCreator(configuration);
|
|
1771
|
+
return {
|
|
1772
|
+
async createv1alpha1Setting(setting, options) {
|
|
1773
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Setting(setting, options);
|
|
1774
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1775
|
+
},
|
|
1776
|
+
async deletev1alpha1Setting(name, options) {
|
|
1777
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Setting(name, options);
|
|
1778
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1779
|
+
},
|
|
1780
|
+
async getv1alpha1Setting(name, options) {
|
|
1781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Setting(name, options);
|
|
1782
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1783
|
+
},
|
|
1784
|
+
async listv1alpha1Setting(page, size, sort, options) {
|
|
1785
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Setting(page, size, sort, options);
|
|
1786
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1787
|
+
},
|
|
1788
|
+
async updatev1alpha1Setting(name, setting, options) {
|
|
1789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Setting(name, setting, options);
|
|
1790
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
const V1alpha1SettingApiFactory = function(configuration, basePath, axios) {
|
|
1795
|
+
const localVarFp = V1alpha1SettingApiFp(configuration);
|
|
1796
|
+
return {
|
|
1797
|
+
createv1alpha1Setting(setting, options) {
|
|
1798
|
+
return localVarFp.createv1alpha1Setting(setting, options).then((request) => request(axios, basePath));
|
|
1799
|
+
},
|
|
1800
|
+
deletev1alpha1Setting(name, options) {
|
|
1801
|
+
return localVarFp.deletev1alpha1Setting(name, options).then((request) => request(axios, basePath));
|
|
1802
|
+
},
|
|
1803
|
+
getv1alpha1Setting(name, options) {
|
|
1804
|
+
return localVarFp.getv1alpha1Setting(name, options).then((request) => request(axios, basePath));
|
|
1805
|
+
},
|
|
1806
|
+
listv1alpha1Setting(page, size, sort, options) {
|
|
1807
|
+
return localVarFp.listv1alpha1Setting(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1808
|
+
},
|
|
1809
|
+
updatev1alpha1Setting(name, setting, options) {
|
|
1810
|
+
return localVarFp.updatev1alpha1Setting(name, setting, options).then((request) => request(axios, basePath));
|
|
1811
|
+
}
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
class V1alpha1SettingApi extends BaseAPI {
|
|
1815
|
+
createv1alpha1Setting(setting, options) {
|
|
1816
|
+
return V1alpha1SettingApiFp(this.configuration).createv1alpha1Setting(setting, options).then((request) => request(this.axios, this.basePath));
|
|
1817
|
+
}
|
|
1818
|
+
deletev1alpha1Setting(name, options) {
|
|
1819
|
+
return V1alpha1SettingApiFp(this.configuration).deletev1alpha1Setting(name, options).then((request) => request(this.axios, this.basePath));
|
|
1820
|
+
}
|
|
1821
|
+
getv1alpha1Setting(name, options) {
|
|
1822
|
+
return V1alpha1SettingApiFp(this.configuration).getv1alpha1Setting(name, options).then((request) => request(this.axios, this.basePath));
|
|
1823
|
+
}
|
|
1824
|
+
listv1alpha1Setting(page, size, sort, options) {
|
|
1825
|
+
return V1alpha1SettingApiFp(this.configuration).listv1alpha1Setting(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1826
|
+
}
|
|
1827
|
+
updatev1alpha1Setting(name, setting, options) {
|
|
1828
|
+
return V1alpha1SettingApiFp(this.configuration).updatev1alpha1Setting(name, setting, options).then((request) => request(this.axios, this.basePath));
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
const V1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
1832
|
+
return {
|
|
1833
|
+
createv1alpha1User: async (user, options = {}) => {
|
|
1834
|
+
const localVarPath = `/api/v1alpha1/users`;
|
|
1835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1836
|
+
let baseOptions;
|
|
1837
|
+
if (configuration) {
|
|
1838
|
+
baseOptions = configuration.baseOptions;
|
|
1839
|
+
}
|
|
1840
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1841
|
+
const localVarHeaderParameter = {};
|
|
1842
|
+
const localVarQueryParameter = {};
|
|
1843
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1846
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1847
|
+
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration);
|
|
1848
|
+
return {
|
|
1849
|
+
url: toPathString(localVarUrlObj),
|
|
1850
|
+
options: localVarRequestOptions
|
|
1851
|
+
};
|
|
1852
|
+
},
|
|
1853
|
+
deletev1alpha1User: async (name, options = {}) => {
|
|
1854
|
+
assertParamExists("deletev1alpha1User", "name", name);
|
|
1855
|
+
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1856
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1857
|
+
let baseOptions;
|
|
1858
|
+
if (configuration) {
|
|
1859
|
+
baseOptions = configuration.baseOptions;
|
|
1860
|
+
}
|
|
1861
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1862
|
+
const localVarHeaderParameter = {};
|
|
1863
|
+
const localVarQueryParameter = {};
|
|
1864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1866
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1867
|
+
return {
|
|
1868
|
+
url: toPathString(localVarUrlObj),
|
|
1869
|
+
options: localVarRequestOptions
|
|
1870
|
+
};
|
|
1871
|
+
},
|
|
1872
|
+
getv1alpha1User: async (name, options = {}) => {
|
|
1873
|
+
assertParamExists("getv1alpha1User", "name", name);
|
|
1874
|
+
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1876
|
+
let baseOptions;
|
|
1877
|
+
if (configuration) {
|
|
1878
|
+
baseOptions = configuration.baseOptions;
|
|
1879
|
+
}
|
|
1880
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1881
|
+
const localVarHeaderParameter = {};
|
|
1882
|
+
const localVarQueryParameter = {};
|
|
1883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1885
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1886
|
+
return {
|
|
1887
|
+
url: toPathString(localVarUrlObj),
|
|
1888
|
+
options: localVarRequestOptions
|
|
1889
|
+
};
|
|
1890
|
+
},
|
|
1891
|
+
listv1alpha1User: async (page, size, sort, options = {}) => {
|
|
1892
|
+
const localVarPath = `/api/v1alpha1/users`;
|
|
1893
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1894
|
+
let baseOptions;
|
|
1895
|
+
if (configuration) {
|
|
1896
|
+
baseOptions = configuration.baseOptions;
|
|
1897
|
+
}
|
|
1898
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1899
|
+
const localVarHeaderParameter = {};
|
|
1900
|
+
const localVarQueryParameter = {};
|
|
1901
|
+
if (page !== void 0) {
|
|
1902
|
+
localVarQueryParameter["page"] = page;
|
|
1903
|
+
}
|
|
1904
|
+
if (size !== void 0) {
|
|
1905
|
+
localVarQueryParameter["size"] = size;
|
|
1906
|
+
}
|
|
1907
|
+
if (sort !== void 0) {
|
|
1908
|
+
localVarQueryParameter["sort"] = sort;
|
|
1909
|
+
}
|
|
1910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1912
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1913
|
+
return {
|
|
1914
|
+
url: toPathString(localVarUrlObj),
|
|
1915
|
+
options: localVarRequestOptions
|
|
1916
|
+
};
|
|
1917
|
+
},
|
|
1918
|
+
updatev1alpha1User: async (name, user, options = {}) => {
|
|
1919
|
+
assertParamExists("updatev1alpha1User", "name", name);
|
|
1920
|
+
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1921
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1922
|
+
let baseOptions;
|
|
1923
|
+
if (configuration) {
|
|
1924
|
+
baseOptions = configuration.baseOptions;
|
|
1925
|
+
}
|
|
1926
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1927
|
+
const localVarHeaderParameter = {};
|
|
1928
|
+
const localVarQueryParameter = {};
|
|
1929
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1930
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1931
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1932
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1933
|
+
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration);
|
|
1934
|
+
return {
|
|
1935
|
+
url: toPathString(localVarUrlObj),
|
|
1936
|
+
options: localVarRequestOptions
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
const V1alpha1UserApiFp = function(configuration) {
|
|
1942
|
+
const localVarAxiosParamCreator = V1alpha1UserApiAxiosParamCreator(configuration);
|
|
1943
|
+
return {
|
|
1944
|
+
async createv1alpha1User(user, options) {
|
|
1945
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1User(user, options);
|
|
1946
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1947
|
+
},
|
|
1948
|
+
async deletev1alpha1User(name, options) {
|
|
1949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1User(name, options);
|
|
1950
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1951
|
+
},
|
|
1952
|
+
async getv1alpha1User(name, options) {
|
|
1953
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1User(name, options);
|
|
1954
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1955
|
+
},
|
|
1956
|
+
async listv1alpha1User(page, size, sort, options) {
|
|
1957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1User(page, size, sort, options);
|
|
1958
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1959
|
+
},
|
|
1960
|
+
async updatev1alpha1User(name, user, options) {
|
|
1961
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1User(name, user, options);
|
|
1962
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
const V1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
1967
|
+
const localVarFp = V1alpha1UserApiFp(configuration);
|
|
1968
|
+
return {
|
|
1969
|
+
createv1alpha1User(user, options) {
|
|
1970
|
+
return localVarFp.createv1alpha1User(user, options).then((request) => request(axios, basePath));
|
|
1971
|
+
},
|
|
1972
|
+
deletev1alpha1User(name, options) {
|
|
1973
|
+
return localVarFp.deletev1alpha1User(name, options).then((request) => request(axios, basePath));
|
|
1974
|
+
},
|
|
1975
|
+
getv1alpha1User(name, options) {
|
|
1976
|
+
return localVarFp.getv1alpha1User(name, options).then((request) => request(axios, basePath));
|
|
1977
|
+
},
|
|
1978
|
+
listv1alpha1User(page, size, sort, options) {
|
|
1979
|
+
return localVarFp.listv1alpha1User(page, size, sort, options).then((request) => request(axios, basePath));
|
|
1980
|
+
},
|
|
1981
|
+
updatev1alpha1User(name, user, options) {
|
|
1982
|
+
return localVarFp.updatev1alpha1User(name, user, options).then((request) => request(axios, basePath));
|
|
1983
|
+
}
|
|
1984
|
+
};
|
|
1985
|
+
};
|
|
1986
|
+
class V1alpha1UserApi extends BaseAPI {
|
|
1987
|
+
createv1alpha1User(user, options) {
|
|
1988
|
+
return V1alpha1UserApiFp(this.configuration).createv1alpha1User(user, options).then((request) => request(this.axios, this.basePath));
|
|
1989
|
+
}
|
|
1990
|
+
deletev1alpha1User(name, options) {
|
|
1991
|
+
return V1alpha1UserApiFp(this.configuration).deletev1alpha1User(name, options).then((request) => request(this.axios, this.basePath));
|
|
1992
|
+
}
|
|
1993
|
+
getv1alpha1User(name, options) {
|
|
1994
|
+
return V1alpha1UserApiFp(this.configuration).getv1alpha1User(name, options).then((request) => request(this.axios, this.basePath));
|
|
1995
|
+
}
|
|
1996
|
+
listv1alpha1User(page, size, sort, options) {
|
|
1997
|
+
return V1alpha1UserApiFp(this.configuration).listv1alpha1User(page, size, sort, options).then((request) => request(this.axios, this.basePath));
|
|
1998
|
+
}
|
|
1999
|
+
updatev1alpha1User(name, user, options) {
|
|
2000
|
+
return V1alpha1UserApiFp(this.configuration).updatev1alpha1User(name, user, options).then((request) => request(this.axios, this.basePath));
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
class Configuration {
|
|
2005
|
+
constructor(param = {}) {
|
|
2006
|
+
this.apiKey = param.apiKey;
|
|
2007
|
+
this.username = param.username;
|
|
2008
|
+
this.password = param.password;
|
|
2009
|
+
this.accessToken = param.accessToken;
|
|
2010
|
+
this.basePath = param.basePath;
|
|
2011
|
+
this.baseOptions = param.baseOptions;
|
|
2012
|
+
this.formDataCtor = param.formDataCtor;
|
|
2013
|
+
}
|
|
2014
|
+
isJsonMime(mime) {
|
|
2015
|
+
const jsonMime = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
2016
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json");
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
export { ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, Configuration, CoreHaloRunV1alpha1LinkApi, CoreHaloRunV1alpha1LinkApiAxiosParamCreator, CoreHaloRunV1alpha1LinkApiFactory, CoreHaloRunV1alpha1LinkApiFp, CoreHaloRunV1alpha1LinkGroupApi, CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator, CoreHaloRunV1alpha1LinkGroupApiFactory, CoreHaloRunV1alpha1LinkGroupApiFp, CoreHaloRunV1alpha1PostApi, CoreHaloRunV1alpha1PostApiAxiosParamCreator, CoreHaloRunV1alpha1PostApiFactory, CoreHaloRunV1alpha1PostApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|