@halo-dev/api-client 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +489 -441
- package/dist/index.d.ts +1213 -1049
- package/dist/index.mjs +474 -434
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -67,6 +67,121 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
|
+
return {
|
|
72
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
73
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
|
+
let baseOptions;
|
|
76
|
+
if (configuration) {
|
|
77
|
+
baseOptions = configuration.baseOptions;
|
|
78
|
+
}
|
|
79
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
80
|
+
const localVarHeaderParameter = {};
|
|
81
|
+
const localVarQueryParameter = {};
|
|
82
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
83
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
84
|
+
if (policy !== void 0) {
|
|
85
|
+
localVarQueryParameter["policy"] = policy;
|
|
86
|
+
}
|
|
87
|
+
if (displayName !== void 0) {
|
|
88
|
+
localVarQueryParameter["displayName"] = displayName;
|
|
89
|
+
}
|
|
90
|
+
if (group !== void 0) {
|
|
91
|
+
localVarQueryParameter["group"] = group;
|
|
92
|
+
}
|
|
93
|
+
if (uploadedBy !== void 0) {
|
|
94
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
95
|
+
}
|
|
96
|
+
if (size !== void 0) {
|
|
97
|
+
localVarQueryParameter["size"] = size;
|
|
98
|
+
}
|
|
99
|
+
if (page !== void 0) {
|
|
100
|
+
localVarQueryParameter["page"] = page;
|
|
101
|
+
}
|
|
102
|
+
if (labelSelector) {
|
|
103
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
104
|
+
}
|
|
105
|
+
if (fieldSelector) {
|
|
106
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
107
|
+
}
|
|
108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
111
|
+
return {
|
|
112
|
+
url: toPathString(localVarUrlObj),
|
|
113
|
+
options: localVarRequestOptions
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
117
|
+
assertParamExists("uploadAttachment", "file", file);
|
|
118
|
+
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
119
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
129
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
130
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
131
|
+
if (file !== void 0) {
|
|
132
|
+
localVarFormParams.append("file", file);
|
|
133
|
+
}
|
|
134
|
+
if (policyName !== void 0) {
|
|
135
|
+
localVarFormParams.append("policyName", policyName);
|
|
136
|
+
}
|
|
137
|
+
if (groupName !== void 0) {
|
|
138
|
+
localVarFormParams.append("groupName", groupName);
|
|
139
|
+
}
|
|
140
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
144
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
145
|
+
return {
|
|
146
|
+
url: toPathString(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
153
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
154
|
+
return {
|
|
155
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
157
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
158
|
+
},
|
|
159
|
+
async uploadAttachment(file, policyName, groupName, options) {
|
|
160
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
|
|
161
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
166
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
167
|
+
return {
|
|
168
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
169
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
170
|
+
},
|
|
171
|
+
uploadAttachment(file, policyName, groupName, options) {
|
|
172
|
+
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
177
|
+
searchAttachments(requestParameters = {}, options) {
|
|
178
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
uploadAttachment(requestParameters, options) {
|
|
181
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
70
185
|
const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
71
186
|
return {
|
|
72
187
|
createComment: async (commentRequest, options = {}) => {
|
|
@@ -116,7 +231,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
116
231
|
options: localVarRequestOptions
|
|
117
232
|
};
|
|
118
233
|
},
|
|
119
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
234
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
120
235
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
121
236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
237
|
let baseOptions;
|
|
@@ -131,6 +246,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
131
246
|
if (sort !== void 0) {
|
|
132
247
|
localVarQueryParameter["sort"] = sort;
|
|
133
248
|
}
|
|
249
|
+
if (keyword !== void 0) {
|
|
250
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
251
|
+
}
|
|
252
|
+
if (hidden !== void 0) {
|
|
253
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
254
|
+
}
|
|
255
|
+
if (top !== void 0) {
|
|
256
|
+
localVarQueryParameter["top"] = top;
|
|
257
|
+
}
|
|
134
258
|
if (sortOrder !== void 0) {
|
|
135
259
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
136
260
|
}
|
|
@@ -152,27 +276,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
152
276
|
if (subjectName !== void 0) {
|
|
153
277
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
154
278
|
}
|
|
155
|
-
if (keyword !== void 0) {
|
|
156
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
157
|
-
}
|
|
158
|
-
if (hidden !== void 0) {
|
|
159
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
160
|
-
}
|
|
161
|
-
if (top !== void 0) {
|
|
162
|
-
localVarQueryParameter["top"] = top;
|
|
163
|
-
}
|
|
164
279
|
if (size !== void 0) {
|
|
165
280
|
localVarQueryParameter["size"] = size;
|
|
166
281
|
}
|
|
282
|
+
if (page !== void 0) {
|
|
283
|
+
localVarQueryParameter["page"] = page;
|
|
284
|
+
}
|
|
167
285
|
if (labelSelector) {
|
|
168
286
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
169
287
|
}
|
|
170
288
|
if (fieldSelector) {
|
|
171
289
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
172
290
|
}
|
|
173
|
-
if (page !== void 0) {
|
|
174
|
-
localVarQueryParameter["page"] = page;
|
|
175
|
-
}
|
|
176
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
293
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -194,8 +309,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
194
309
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
195
310
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
196
311
|
},
|
|
197
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
198
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
312
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
199
314
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
315
|
}
|
|
201
316
|
};
|
|
@@ -209,8 +324,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
209
324
|
createReply(name, replyRequest, options) {
|
|
210
325
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
211
326
|
},
|
|
212
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
213
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
327
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
328
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
214
329
|
}
|
|
215
330
|
};
|
|
216
331
|
};
|
|
@@ -222,7 +337,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
222
337
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
223
338
|
}
|
|
224
339
|
listComments(requestParameters = {}, options) {
|
|
225
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
340
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
226
341
|
}
|
|
227
342
|
}
|
|
228
343
|
|
|
@@ -404,7 +519,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
404
519
|
options: localVarRequestOptions
|
|
405
520
|
};
|
|
406
521
|
},
|
|
407
|
-
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
522
|
+
listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
408
523
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
409
524
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
410
525
|
let baseOptions;
|
|
@@ -428,15 +543,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
428
543
|
if (size !== void 0) {
|
|
429
544
|
localVarQueryParameter["size"] = size;
|
|
430
545
|
}
|
|
546
|
+
if (page !== void 0) {
|
|
547
|
+
localVarQueryParameter["page"] = page;
|
|
548
|
+
}
|
|
431
549
|
if (labelSelector) {
|
|
432
550
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
433
551
|
}
|
|
434
552
|
if (fieldSelector) {
|
|
435
553
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
436
554
|
}
|
|
437
|
-
if (page !== void 0) {
|
|
438
|
-
localVarQueryParameter["page"] = page;
|
|
439
|
-
}
|
|
440
555
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
441
556
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
442
557
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -454,8 +569,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
454
569
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
455
570
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
456
571
|
},
|
|
457
|
-
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
458
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
572
|
+
async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
|
|
459
574
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
460
575
|
}
|
|
461
576
|
};
|
|
@@ -466,8 +581,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
466
581
|
installPlugin(file, options) {
|
|
467
582
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
468
583
|
},
|
|
469
|
-
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
470
|
-
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
584
|
+
listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
585
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
471
586
|
}
|
|
472
587
|
};
|
|
473
588
|
};
|
|
@@ -476,7 +591,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
476
591
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
477
592
|
}
|
|
478
593
|
listPlugins(requestParameters = {}, options) {
|
|
479
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.
|
|
594
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
480
595
|
}
|
|
481
596
|
}
|
|
482
597
|
|
|
@@ -505,7 +620,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
505
620
|
options: localVarRequestOptions
|
|
506
621
|
};
|
|
507
622
|
},
|
|
508
|
-
listPosts: async (sort,
|
|
623
|
+
listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
509
624
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
510
625
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
511
626
|
let baseOptions;
|
|
@@ -520,6 +635,15 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
520
635
|
if (sort !== void 0) {
|
|
521
636
|
localVarQueryParameter["sort"] = sort;
|
|
522
637
|
}
|
|
638
|
+
if (keyword !== void 0) {
|
|
639
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
640
|
+
}
|
|
641
|
+
if (visible !== void 0) {
|
|
642
|
+
localVarQueryParameter["visible"] = visible;
|
|
643
|
+
}
|
|
644
|
+
if (tag) {
|
|
645
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
646
|
+
}
|
|
523
647
|
if (sortOrder !== void 0) {
|
|
524
648
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
525
649
|
}
|
|
@@ -532,27 +656,18 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
532
656
|
if (contributor) {
|
|
533
657
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
534
658
|
}
|
|
535
|
-
if (keyword !== void 0) {
|
|
536
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
537
|
-
}
|
|
538
|
-
if (visible !== void 0) {
|
|
539
|
-
localVarQueryParameter["visible"] = visible;
|
|
540
|
-
}
|
|
541
|
-
if (tag) {
|
|
542
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
543
|
-
}
|
|
544
659
|
if (size !== void 0) {
|
|
545
660
|
localVarQueryParameter["size"] = size;
|
|
546
661
|
}
|
|
662
|
+
if (page !== void 0) {
|
|
663
|
+
localVarQueryParameter["page"] = page;
|
|
664
|
+
}
|
|
547
665
|
if (labelSelector) {
|
|
548
666
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
549
667
|
}
|
|
550
668
|
if (fieldSelector) {
|
|
551
669
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
552
670
|
}
|
|
553
|
-
if (page !== void 0) {
|
|
554
|
-
localVarQueryParameter["page"] = page;
|
|
555
|
-
}
|
|
556
671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
673
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -615,8 +730,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
615
730
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
616
731
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
617
732
|
},
|
|
618
|
-
async listPosts(sort,
|
|
619
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
733
|
+
async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
734
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
|
|
620
735
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
621
736
|
},
|
|
622
737
|
async publishPost(name, options) {
|
|
@@ -635,8 +750,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
635
750
|
draftPost(postRequest, options) {
|
|
636
751
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
637
752
|
},
|
|
638
|
-
listPosts(sort,
|
|
639
|
-
return localVarFp.listPosts(sort,
|
|
753
|
+
listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
754
|
+
return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
640
755
|
},
|
|
641
756
|
publishPost(name, options) {
|
|
642
757
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -651,7 +766,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
651
766
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
652
767
|
}
|
|
653
768
|
listPosts(requestParameters = {}, options) {
|
|
654
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
769
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
655
770
|
}
|
|
656
771
|
publishPost(requestParameters, options) {
|
|
657
772
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -663,7 +778,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
663
778
|
|
|
664
779
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
665
780
|
return {
|
|
666
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
781
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
667
782
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
668
783
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
669
784
|
let baseOptions;
|
|
@@ -681,15 +796,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
681
796
|
if (size !== void 0) {
|
|
682
797
|
localVarQueryParameter["size"] = size;
|
|
683
798
|
}
|
|
799
|
+
if (page !== void 0) {
|
|
800
|
+
localVarQueryParameter["page"] = page;
|
|
801
|
+
}
|
|
684
802
|
if (labelSelector) {
|
|
685
803
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
686
804
|
}
|
|
687
805
|
if (fieldSelector) {
|
|
688
806
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
689
807
|
}
|
|
690
|
-
if (page !== void 0) {
|
|
691
|
-
localVarQueryParameter["page"] = page;
|
|
692
|
-
}
|
|
693
808
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
694
809
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
695
810
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -703,8 +818,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
703
818
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
704
819
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
705
820
|
return {
|
|
706
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
707
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
821
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
708
823
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
709
824
|
}
|
|
710
825
|
};
|
|
@@ -712,14 +827,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
712
827
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
713
828
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
714
829
|
return {
|
|
715
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
716
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
830
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
831
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
717
832
|
}
|
|
718
833
|
};
|
|
719
834
|
};
|
|
720
835
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
721
836
|
listReplies(requestParameters = {}, options) {
|
|
722
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
837
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
723
838
|
}
|
|
724
839
|
}
|
|
725
840
|
|
|
@@ -748,7 +863,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
748
863
|
options: localVarRequestOptions
|
|
749
864
|
};
|
|
750
865
|
},
|
|
751
|
-
listSinglePages: async (sort, sortOrder, publishPhase, contributor,
|
|
866
|
+
listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
752
867
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
753
868
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
754
869
|
let baseOptions;
|
|
@@ -763,6 +878,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
763
878
|
if (sort !== void 0) {
|
|
764
879
|
localVarQueryParameter["sort"] = sort;
|
|
765
880
|
}
|
|
881
|
+
if (keyword !== void 0) {
|
|
882
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
883
|
+
}
|
|
884
|
+
if (visible !== void 0) {
|
|
885
|
+
localVarQueryParameter["visible"] = visible;
|
|
886
|
+
}
|
|
766
887
|
if (sortOrder !== void 0) {
|
|
767
888
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
768
889
|
}
|
|
@@ -772,24 +893,18 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
772
893
|
if (contributor) {
|
|
773
894
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
774
895
|
}
|
|
775
|
-
if (keyword !== void 0) {
|
|
776
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
777
|
-
}
|
|
778
|
-
if (visible !== void 0) {
|
|
779
|
-
localVarQueryParameter["visible"] = visible;
|
|
780
|
-
}
|
|
781
896
|
if (size !== void 0) {
|
|
782
897
|
localVarQueryParameter["size"] = size;
|
|
783
898
|
}
|
|
899
|
+
if (page !== void 0) {
|
|
900
|
+
localVarQueryParameter["page"] = page;
|
|
901
|
+
}
|
|
784
902
|
if (labelSelector) {
|
|
785
903
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
786
904
|
}
|
|
787
905
|
if (fieldSelector) {
|
|
788
906
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
789
907
|
}
|
|
790
|
-
if (page !== void 0) {
|
|
791
|
-
localVarQueryParameter["page"] = page;
|
|
792
|
-
}
|
|
793
908
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
794
909
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
795
910
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -852,8 +967,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
852
967
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
853
968
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
854
969
|
},
|
|
855
|
-
async listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
856
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
970
|
+
async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
971
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
|
|
857
972
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
858
973
|
},
|
|
859
974
|
async publishSinglePage(name, options) {
|
|
@@ -872,8 +987,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
872
987
|
draftSinglePage(singlePageRequest, options) {
|
|
873
988
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
874
989
|
},
|
|
875
|
-
listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
876
|
-
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
990
|
+
listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
991
|
+
return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
877
992
|
},
|
|
878
993
|
publishSinglePage(name, options) {
|
|
879
994
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -888,7 +1003,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
888
1003
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
889
1004
|
}
|
|
890
1005
|
listSinglePages(requestParameters = {}, options) {
|
|
891
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1006
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
892
1007
|
}
|
|
893
1008
|
publishSinglePage(requestParameters, options) {
|
|
894
1009
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -898,6 +1013,53 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
898
1013
|
}
|
|
899
1014
|
}
|
|
900
1015
|
|
|
1016
|
+
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
1017
|
+
return {
|
|
1018
|
+
getStats: async (options = {}) => {
|
|
1019
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`;
|
|
1020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1021
|
+
let baseOptions;
|
|
1022
|
+
if (configuration) {
|
|
1023
|
+
baseOptions = configuration.baseOptions;
|
|
1024
|
+
}
|
|
1025
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1026
|
+
const localVarHeaderParameter = {};
|
|
1027
|
+
const localVarQueryParameter = {};
|
|
1028
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1029
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1030
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1031
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1032
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1033
|
+
return {
|
|
1034
|
+
url: toPathString(localVarUrlObj),
|
|
1035
|
+
options: localVarRequestOptions
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFp = function(configuration) {
|
|
1041
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
|
|
1042
|
+
return {
|
|
1043
|
+
async getStats(options) {
|
|
1044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
|
|
1045
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFactory = function(configuration, basePath, axios) {
|
|
1050
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration);
|
|
1051
|
+
return {
|
|
1052
|
+
getStats(options) {
|
|
1053
|
+
return localVarFp.getStats(options).then((request) => request(axios, basePath));
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
1058
|
+
getStats(options) {
|
|
1059
|
+
return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
901
1063
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
902
1064
|
return {
|
|
903
1065
|
installTheme: async (file, options = {}) => {
|
|
@@ -927,6 +1089,42 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
927
1089
|
options: localVarRequestOptions
|
|
928
1090
|
};
|
|
929
1091
|
},
|
|
1092
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1093
|
+
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1094
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1095
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1096
|
+
let baseOptions;
|
|
1097
|
+
if (configuration) {
|
|
1098
|
+
baseOptions = configuration.baseOptions;
|
|
1099
|
+
}
|
|
1100
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1101
|
+
const localVarHeaderParameter = {};
|
|
1102
|
+
const localVarQueryParameter = {};
|
|
1103
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1105
|
+
if (uninstalled !== void 0) {
|
|
1106
|
+
localVarQueryParameter["uninstalled"] = uninstalled;
|
|
1107
|
+
}
|
|
1108
|
+
if (size !== void 0) {
|
|
1109
|
+
localVarQueryParameter["size"] = size;
|
|
1110
|
+
}
|
|
1111
|
+
if (page !== void 0) {
|
|
1112
|
+
localVarQueryParameter["page"] = page;
|
|
1113
|
+
}
|
|
1114
|
+
if (labelSelector) {
|
|
1115
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1116
|
+
}
|
|
1117
|
+
if (fieldSelector) {
|
|
1118
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1119
|
+
}
|
|
1120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1122
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1123
|
+
return {
|
|
1124
|
+
url: toPathString(localVarUrlObj),
|
|
1125
|
+
options: localVarRequestOptions
|
|
1126
|
+
};
|
|
1127
|
+
},
|
|
930
1128
|
reloadThemeSetting: async (name, options = {}) => {
|
|
931
1129
|
assertParamExists("reloadThemeSetting", "name", name);
|
|
932
1130
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload-setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
@@ -957,6 +1155,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
957
1155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
958
1156
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
959
1157
|
},
|
|
1158
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1160
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1161
|
+
},
|
|
960
1162
|
async reloadThemeSetting(name, options) {
|
|
961
1163
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reloadThemeSetting(name, options);
|
|
962
1164
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -969,6 +1171,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
969
1171
|
installTheme(file, options) {
|
|
970
1172
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
971
1173
|
},
|
|
1174
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1175
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1176
|
+
},
|
|
972
1177
|
reloadThemeSetting(name, options) {
|
|
973
1178
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
974
1179
|
}
|
|
@@ -978,6 +1183,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
978
1183
|
installTheme(requestParameters, options) {
|
|
979
1184
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
980
1185
|
}
|
|
1186
|
+
listThemes(requestParameters, options) {
|
|
1187
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1188
|
+
}
|
|
981
1189
|
reloadThemeSetting(requestParameters, options) {
|
|
982
1190
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
983
1191
|
}
|
|
@@ -1288,47 +1496,163 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
1288
1496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options);
|
|
1289
1497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1290
1498
|
},
|
|
1291
|
-
async listComments1(name, version, kind, group, size, page, options) {
|
|
1292
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
|
|
1499
|
+
async listComments1(name, version, kind, group, size, page, options) {
|
|
1500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
|
|
1501
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
1506
|
+
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
|
|
1507
|
+
return {
|
|
1508
|
+
createComment1(commentRequest, options) {
|
|
1509
|
+
return localVarFp.createComment1(commentRequest, options).then((request) => request(axios, basePath));
|
|
1510
|
+
},
|
|
1511
|
+
createReply1(name, replyRequest, options) {
|
|
1512
|
+
return localVarFp.createReply1(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
1513
|
+
},
|
|
1514
|
+
getComment(name, options) {
|
|
1515
|
+
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1516
|
+
},
|
|
1517
|
+
listCommentReplies(name, size, page, options) {
|
|
1518
|
+
return localVarFp.listCommentReplies(name, size, page, options).then((request) => request(axios, basePath));
|
|
1519
|
+
},
|
|
1520
|
+
listComments1(name, version, kind, group, size, page, options) {
|
|
1521
|
+
return localVarFp.listComments1(name, version, kind, group, size, page, options).then((request) => request(axios, basePath));
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
1526
|
+
createComment1(requestParameters, options) {
|
|
1527
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment1(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1528
|
+
}
|
|
1529
|
+
createReply1(requestParameters, options) {
|
|
1530
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1531
|
+
}
|
|
1532
|
+
getComment(requestParameters, options) {
|
|
1533
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1534
|
+
}
|
|
1535
|
+
listCommentReplies(requestParameters, options) {
|
|
1536
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1537
|
+
}
|
|
1538
|
+
listComments1(requestParameters, options) {
|
|
1539
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.name, requestParameters.version, requestParameters.kind, requestParameters.group, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function(configuration) {
|
|
1544
|
+
return {
|
|
1545
|
+
count: async (counterRequest, options = {}) => {
|
|
1546
|
+
assertParamExists("count", "counterRequest", counterRequest);
|
|
1547
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`;
|
|
1548
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1549
|
+
let baseOptions;
|
|
1550
|
+
if (configuration) {
|
|
1551
|
+
baseOptions = configuration.baseOptions;
|
|
1552
|
+
}
|
|
1553
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1554
|
+
const localVarHeaderParameter = {};
|
|
1555
|
+
const localVarQueryParameter = {};
|
|
1556
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1557
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1558
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1561
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1562
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration);
|
|
1563
|
+
return {
|
|
1564
|
+
url: toPathString(localVarUrlObj),
|
|
1565
|
+
options: localVarRequestOptions
|
|
1566
|
+
};
|
|
1567
|
+
},
|
|
1568
|
+
downvote: async (voteRequest, options = {}) => {
|
|
1569
|
+
assertParamExists("downvote", "voteRequest", voteRequest);
|
|
1570
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`;
|
|
1571
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1572
|
+
let baseOptions;
|
|
1573
|
+
if (configuration) {
|
|
1574
|
+
baseOptions = configuration.baseOptions;
|
|
1575
|
+
}
|
|
1576
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1577
|
+
const localVarHeaderParameter = {};
|
|
1578
|
+
const localVarQueryParameter = {};
|
|
1579
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1580
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1581
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1584
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1585
|
+
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
|
|
1586
|
+
return {
|
|
1587
|
+
url: toPathString(localVarUrlObj),
|
|
1588
|
+
options: localVarRequestOptions
|
|
1589
|
+
};
|
|
1590
|
+
},
|
|
1591
|
+
upvote: async (voteRequest, options = {}) => {
|
|
1592
|
+
assertParamExists("upvote", "voteRequest", voteRequest);
|
|
1593
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`;
|
|
1594
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1595
|
+
let baseOptions;
|
|
1596
|
+
if (configuration) {
|
|
1597
|
+
baseOptions = configuration.baseOptions;
|
|
1598
|
+
}
|
|
1599
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1600
|
+
const localVarHeaderParameter = {};
|
|
1601
|
+
const localVarQueryParameter = {};
|
|
1602
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1603
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1604
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1605
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1606
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1607
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1608
|
+
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
|
|
1609
|
+
return {
|
|
1610
|
+
url: toPathString(localVarUrlObj),
|
|
1611
|
+
options: localVarRequestOptions
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
const ApiHaloRunV1alpha1TrackerApiFp = function(configuration) {
|
|
1617
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration);
|
|
1618
|
+
return {
|
|
1619
|
+
async count(counterRequest, options) {
|
|
1620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options);
|
|
1621
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1622
|
+
},
|
|
1623
|
+
async downvote(voteRequest, options) {
|
|
1624
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(voteRequest, options);
|
|
1625
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1626
|
+
},
|
|
1627
|
+
async upvote(voteRequest, options) {
|
|
1628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(voteRequest, options);
|
|
1293
1629
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1294
1630
|
}
|
|
1295
1631
|
};
|
|
1296
1632
|
};
|
|
1297
|
-
const
|
|
1298
|
-
const localVarFp =
|
|
1633
|
+
const ApiHaloRunV1alpha1TrackerApiFactory = function(configuration, basePath, axios) {
|
|
1634
|
+
const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration);
|
|
1299
1635
|
return {
|
|
1300
|
-
|
|
1301
|
-
return localVarFp.
|
|
1302
|
-
},
|
|
1303
|
-
createReply1(name, replyRequest, options) {
|
|
1304
|
-
return localVarFp.createReply1(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
1305
|
-
},
|
|
1306
|
-
getComment(name, options) {
|
|
1307
|
-
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1636
|
+
count(counterRequest, options) {
|
|
1637
|
+
return localVarFp.count(counterRequest, options).then((request) => request(axios, basePath));
|
|
1308
1638
|
},
|
|
1309
|
-
|
|
1310
|
-
return localVarFp.
|
|
1639
|
+
downvote(voteRequest, options) {
|
|
1640
|
+
return localVarFp.downvote(voteRequest, options).then((request) => request(axios, basePath));
|
|
1311
1641
|
},
|
|
1312
|
-
|
|
1313
|
-
return localVarFp.
|
|
1642
|
+
upvote(voteRequest, options) {
|
|
1643
|
+
return localVarFp.upvote(voteRequest, options).then((request) => request(axios, basePath));
|
|
1314
1644
|
}
|
|
1315
1645
|
};
|
|
1316
1646
|
};
|
|
1317
|
-
class
|
|
1318
|
-
|
|
1319
|
-
return
|
|
1320
|
-
}
|
|
1321
|
-
createReply1(requestParameters, options) {
|
|
1322
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1323
|
-
}
|
|
1324
|
-
getComment(requestParameters, options) {
|
|
1325
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1647
|
+
class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|
1648
|
+
count(requestParameters, options) {
|
|
1649
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1326
1650
|
}
|
|
1327
|
-
|
|
1328
|
-
return
|
|
1651
|
+
downvote(requestParameters, options) {
|
|
1652
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).downvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1329
1653
|
}
|
|
1330
|
-
|
|
1331
|
-
return
|
|
1654
|
+
upvote(requestParameters, options) {
|
|
1655
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).upvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1332
1656
|
}
|
|
1333
1657
|
}
|
|
1334
1658
|
|
|
@@ -2634,196 +2958,10 @@ class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|
|
2634
2958
|
}
|
|
2635
2959
|
}
|
|
2636
2960
|
|
|
2637
|
-
const
|
|
2638
|
-
return {
|
|
2639
|
-
createcoreHaloRunV1alpha1Link: async (link, options = {}) => {
|
|
2640
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
2641
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2642
|
-
let baseOptions;
|
|
2643
|
-
if (configuration) {
|
|
2644
|
-
baseOptions = configuration.baseOptions;
|
|
2645
|
-
}
|
|
2646
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2647
|
-
const localVarHeaderParameter = {};
|
|
2648
|
-
const localVarQueryParameter = {};
|
|
2649
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2650
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2651
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2652
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2653
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2654
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2655
|
-
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
2656
|
-
return {
|
|
2657
|
-
url: toPathString(localVarUrlObj),
|
|
2658
|
-
options: localVarRequestOptions
|
|
2659
|
-
};
|
|
2660
|
-
},
|
|
2661
|
-
deletecoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
2662
|
-
assertParamExists("deletecoreHaloRunV1alpha1Link", "name", name);
|
|
2663
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2664
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2665
|
-
let baseOptions;
|
|
2666
|
-
if (configuration) {
|
|
2667
|
-
baseOptions = configuration.baseOptions;
|
|
2668
|
-
}
|
|
2669
|
-
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
2670
|
-
const localVarHeaderParameter = {};
|
|
2671
|
-
const localVarQueryParameter = {};
|
|
2672
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2673
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2674
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2675
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2676
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2677
|
-
return {
|
|
2678
|
-
url: toPathString(localVarUrlObj),
|
|
2679
|
-
options: localVarRequestOptions
|
|
2680
|
-
};
|
|
2681
|
-
},
|
|
2682
|
-
getcoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
2683
|
-
assertParamExists("getcoreHaloRunV1alpha1Link", "name", name);
|
|
2684
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2685
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2686
|
-
let baseOptions;
|
|
2687
|
-
if (configuration) {
|
|
2688
|
-
baseOptions = configuration.baseOptions;
|
|
2689
|
-
}
|
|
2690
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2691
|
-
const localVarHeaderParameter = {};
|
|
2692
|
-
const localVarQueryParameter = {};
|
|
2693
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2694
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2695
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2696
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2697
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2698
|
-
return {
|
|
2699
|
-
url: toPathString(localVarUrlObj),
|
|
2700
|
-
options: localVarRequestOptions
|
|
2701
|
-
};
|
|
2702
|
-
},
|
|
2703
|
-
listcoreHaloRunV1alpha1Link: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
2704
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
2705
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2706
|
-
let baseOptions;
|
|
2707
|
-
if (configuration) {
|
|
2708
|
-
baseOptions = configuration.baseOptions;
|
|
2709
|
-
}
|
|
2710
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2711
|
-
const localVarHeaderParameter = {};
|
|
2712
|
-
const localVarQueryParameter = {};
|
|
2713
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2714
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2715
|
-
if (page !== void 0) {
|
|
2716
|
-
localVarQueryParameter["page"] = page;
|
|
2717
|
-
}
|
|
2718
|
-
if (size !== void 0) {
|
|
2719
|
-
localVarQueryParameter["size"] = size;
|
|
2720
|
-
}
|
|
2721
|
-
if (labelSelector) {
|
|
2722
|
-
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2723
|
-
}
|
|
2724
|
-
if (fieldSelector) {
|
|
2725
|
-
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2726
|
-
}
|
|
2727
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2728
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2729
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2730
|
-
return {
|
|
2731
|
-
url: toPathString(localVarUrlObj),
|
|
2732
|
-
options: localVarRequestOptions
|
|
2733
|
-
};
|
|
2734
|
-
},
|
|
2735
|
-
updatecoreHaloRunV1alpha1Link: async (name, link, options = {}) => {
|
|
2736
|
-
assertParamExists("updatecoreHaloRunV1alpha1Link", "name", name);
|
|
2737
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2738
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2739
|
-
let baseOptions;
|
|
2740
|
-
if (configuration) {
|
|
2741
|
-
baseOptions = configuration.baseOptions;
|
|
2742
|
-
}
|
|
2743
|
-
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
2744
|
-
const localVarHeaderParameter = {};
|
|
2745
|
-
const localVarQueryParameter = {};
|
|
2746
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2747
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2748
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2749
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2750
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2751
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2752
|
-
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
2753
|
-
return {
|
|
2754
|
-
url: toPathString(localVarUrlObj),
|
|
2755
|
-
options: localVarRequestOptions
|
|
2756
|
-
};
|
|
2757
|
-
}
|
|
2758
|
-
};
|
|
2759
|
-
};
|
|
2760
|
-
const CoreHaloRunV1alpha1LinkApiFp = function(configuration) {
|
|
2761
|
-
const localVarAxiosParamCreator = CoreHaloRunV1alpha1LinkApiAxiosParamCreator(configuration);
|
|
2762
|
-
return {
|
|
2763
|
-
async createcoreHaloRunV1alpha1Link(link, options) {
|
|
2764
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createcoreHaloRunV1alpha1Link(link, options);
|
|
2765
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2766
|
-
},
|
|
2767
|
-
async deletecoreHaloRunV1alpha1Link(name, options) {
|
|
2768
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecoreHaloRunV1alpha1Link(name, options);
|
|
2769
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2770
|
-
},
|
|
2771
|
-
async getcoreHaloRunV1alpha1Link(name, options) {
|
|
2772
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getcoreHaloRunV1alpha1Link(name, options);
|
|
2773
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2774
|
-
},
|
|
2775
|
-
async listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options) {
|
|
2776
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options);
|
|
2777
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2778
|
-
},
|
|
2779
|
-
async updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
2780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecoreHaloRunV1alpha1Link(name, link, options);
|
|
2781
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2782
|
-
}
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
const CoreHaloRunV1alpha1LinkApiFactory = function(configuration, basePath, axios) {
|
|
2786
|
-
const localVarFp = CoreHaloRunV1alpha1LinkApiFp(configuration);
|
|
2787
|
-
return {
|
|
2788
|
-
createcoreHaloRunV1alpha1Link(link, options) {
|
|
2789
|
-
return localVarFp.createcoreHaloRunV1alpha1Link(link, options).then((request) => request(axios, basePath));
|
|
2790
|
-
},
|
|
2791
|
-
deletecoreHaloRunV1alpha1Link(name, options) {
|
|
2792
|
-
return localVarFp.deletecoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
2793
|
-
},
|
|
2794
|
-
getcoreHaloRunV1alpha1Link(name, options) {
|
|
2795
|
-
return localVarFp.getcoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
2796
|
-
},
|
|
2797
|
-
listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options) {
|
|
2798
|
-
return localVarFp.listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2799
|
-
},
|
|
2800
|
-
updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
2801
|
-
return localVarFp.updatecoreHaloRunV1alpha1Link(name, link, options).then((request) => request(axios, basePath));
|
|
2802
|
-
}
|
|
2803
|
-
};
|
|
2804
|
-
};
|
|
2805
|
-
class CoreHaloRunV1alpha1LinkApi extends BaseAPI {
|
|
2806
|
-
createcoreHaloRunV1alpha1Link(requestParameters = {}, options) {
|
|
2807
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).createcoreHaloRunV1alpha1Link(requestParameters.link, options).then((request) => request(this.axios, this.basePath));
|
|
2808
|
-
}
|
|
2809
|
-
deletecoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2810
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).deletecoreHaloRunV1alpha1Link(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
2811
|
-
}
|
|
2812
|
-
getcoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2813
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).getcoreHaloRunV1alpha1Link(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
2814
|
-
}
|
|
2815
|
-
listcoreHaloRunV1alpha1Link(requestParameters = {}, options) {
|
|
2816
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).listcoreHaloRunV1alpha1Link(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2817
|
-
}
|
|
2818
|
-
updatecoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2819
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).updatecoreHaloRunV1alpha1Link(requestParameters.name, requestParameters.link, options).then((request) => request(this.axios, this.basePath));
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration) {
|
|
2961
|
+
const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function(configuration) {
|
|
2824
2962
|
return {
|
|
2825
|
-
|
|
2826
|
-
const localVarPath = `/apis/
|
|
2963
|
+
createmetricsHaloRunV1alpha1Counter: async (counter, options = {}) => {
|
|
2964
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
2827
2965
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2828
2966
|
let baseOptions;
|
|
2829
2967
|
if (configuration) {
|
|
@@ -2838,15 +2976,15 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2838
2976
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2839
2977
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2840
2978
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2841
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2979
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
2842
2980
|
return {
|
|
2843
2981
|
url: toPathString(localVarUrlObj),
|
|
2844
2982
|
options: localVarRequestOptions
|
|
2845
2983
|
};
|
|
2846
2984
|
},
|
|
2847
|
-
|
|
2848
|
-
assertParamExists("
|
|
2849
|
-
const localVarPath = `/apis/
|
|
2985
|
+
deletemetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
2986
|
+
assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name);
|
|
2987
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2850
2988
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2851
2989
|
let baseOptions;
|
|
2852
2990
|
if (configuration) {
|
|
@@ -2865,9 +3003,9 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2865
3003
|
options: localVarRequestOptions
|
|
2866
3004
|
};
|
|
2867
3005
|
},
|
|
2868
|
-
|
|
2869
|
-
assertParamExists("
|
|
2870
|
-
const localVarPath = `/apis/
|
|
3006
|
+
getmetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
3007
|
+
assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name);
|
|
3008
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2871
3009
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2872
3010
|
let baseOptions;
|
|
2873
3011
|
if (configuration) {
|
|
@@ -2886,8 +3024,8 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2886
3024
|
options: localVarRequestOptions
|
|
2887
3025
|
};
|
|
2888
3026
|
},
|
|
2889
|
-
|
|
2890
|
-
const localVarPath = `/apis/
|
|
3027
|
+
listmetricsHaloRunV1alpha1Counter: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
3028
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
2891
3029
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2892
3030
|
let baseOptions;
|
|
2893
3031
|
if (configuration) {
|
|
@@ -2918,9 +3056,9 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2918
3056
|
options: localVarRequestOptions
|
|
2919
3057
|
};
|
|
2920
3058
|
},
|
|
2921
|
-
|
|
2922
|
-
assertParamExists("
|
|
2923
|
-
const localVarPath = `/apis/
|
|
3059
|
+
updatemetricsHaloRunV1alpha1Counter: async (name, counter, options = {}) => {
|
|
3060
|
+
assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name);
|
|
3061
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2924
3062
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2925
3063
|
let baseOptions;
|
|
2926
3064
|
if (configuration) {
|
|
@@ -2935,7 +3073,7 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2935
3073
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2936
3074
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2937
3075
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2938
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3076
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
2939
3077
|
return {
|
|
2940
3078
|
url: toPathString(localVarUrlObj),
|
|
2941
3079
|
options: localVarRequestOptions
|
|
@@ -2943,66 +3081,66 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2943
3081
|
}
|
|
2944
3082
|
};
|
|
2945
3083
|
};
|
|
2946
|
-
const
|
|
2947
|
-
const localVarAxiosParamCreator =
|
|
3084
|
+
const MetricsHaloRunV1alpha1CounterApiFp = function(configuration) {
|
|
3085
|
+
const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration);
|
|
2948
3086
|
return {
|
|
2949
|
-
async
|
|
2950
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3087
|
+
async createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3088
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options);
|
|
2951
3089
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2952
3090
|
},
|
|
2953
|
-
async
|
|
2954
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3091
|
+
async deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3092
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options);
|
|
2955
3093
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2956
3094
|
},
|
|
2957
|
-
async
|
|
2958
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3095
|
+
async getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options);
|
|
2959
3097
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2960
3098
|
},
|
|
2961
|
-
async
|
|
2962
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3099
|
+
async listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options);
|
|
2963
3101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2964
3102
|
},
|
|
2965
|
-
async
|
|
2966
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3103
|
+
async updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(name, counter, options);
|
|
2967
3105
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2968
3106
|
}
|
|
2969
3107
|
};
|
|
2970
3108
|
};
|
|
2971
|
-
const
|
|
2972
|
-
const localVarFp =
|
|
3109
|
+
const MetricsHaloRunV1alpha1CounterApiFactory = function(configuration, basePath, axios) {
|
|
3110
|
+
const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration);
|
|
2973
3111
|
return {
|
|
2974
|
-
|
|
2975
|
-
return localVarFp.
|
|
3112
|
+
createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3113
|
+
return localVarFp.createmetricsHaloRunV1alpha1Counter(counter, options).then((request) => request(axios, basePath));
|
|
2976
3114
|
},
|
|
2977
|
-
|
|
2978
|
-
return localVarFp.
|
|
3115
|
+
deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3116
|
+
return localVarFp.deletemetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
2979
3117
|
},
|
|
2980
|
-
|
|
2981
|
-
return localVarFp.
|
|
3118
|
+
getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3119
|
+
return localVarFp.getmetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
2982
3120
|
},
|
|
2983
|
-
|
|
2984
|
-
return localVarFp.
|
|
3121
|
+
listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3122
|
+
return localVarFp.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2985
3123
|
},
|
|
2986
|
-
|
|
2987
|
-
return localVarFp.
|
|
3124
|
+
updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3125
|
+
return localVarFp.updatemetricsHaloRunV1alpha1Counter(name, counter, options).then((request) => request(axios, basePath));
|
|
2988
3126
|
}
|
|
2989
3127
|
};
|
|
2990
3128
|
};
|
|
2991
|
-
class
|
|
2992
|
-
|
|
2993
|
-
return
|
|
3129
|
+
class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|
3130
|
+
createmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3131
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
2994
3132
|
}
|
|
2995
|
-
|
|
2996
|
-
return
|
|
3133
|
+
deletemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3134
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
2997
3135
|
}
|
|
2998
|
-
|
|
2999
|
-
return
|
|
3136
|
+
getmetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3137
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3000
3138
|
}
|
|
3001
|
-
|
|
3002
|
-
return
|
|
3139
|
+
listmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3140
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3003
3141
|
}
|
|
3004
|
-
|
|
3005
|
-
return
|
|
3142
|
+
updatemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3143
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
3006
3144
|
}
|
|
3007
3145
|
}
|
|
3008
3146
|
|
|
@@ -3476,50 +3614,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3476
3614
|
options: localVarRequestOptions
|
|
3477
3615
|
};
|
|
3478
3616
|
},
|
|
3479
|
-
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
3480
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
3481
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3482
|
-
let baseOptions;
|
|
3483
|
-
if (configuration) {
|
|
3484
|
-
baseOptions = configuration.baseOptions;
|
|
3485
|
-
}
|
|
3486
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3487
|
-
const localVarHeaderParameter = {};
|
|
3488
|
-
const localVarQueryParameter = {};
|
|
3489
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3490
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3491
|
-
if (policy !== void 0) {
|
|
3492
|
-
localVarQueryParameter["policy"] = policy;
|
|
3493
|
-
}
|
|
3494
|
-
if (displayName !== void 0) {
|
|
3495
|
-
localVarQueryParameter["displayName"] = displayName;
|
|
3496
|
-
}
|
|
3497
|
-
if (group !== void 0) {
|
|
3498
|
-
localVarQueryParameter["group"] = group;
|
|
3499
|
-
}
|
|
3500
|
-
if (uploadedBy !== void 0) {
|
|
3501
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
3502
|
-
}
|
|
3503
|
-
if (size !== void 0) {
|
|
3504
|
-
localVarQueryParameter["size"] = size;
|
|
3505
|
-
}
|
|
3506
|
-
if (labelSelector) {
|
|
3507
|
-
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3508
|
-
}
|
|
3509
|
-
if (fieldSelector) {
|
|
3510
|
-
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3511
|
-
}
|
|
3512
|
-
if (page !== void 0) {
|
|
3513
|
-
localVarQueryParameter["page"] = page;
|
|
3514
|
-
}
|
|
3515
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3516
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3517
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3518
|
-
return {
|
|
3519
|
-
url: toPathString(localVarUrlObj),
|
|
3520
|
-
options: localVarRequestOptions
|
|
3521
|
-
};
|
|
3522
|
-
},
|
|
3523
3617
|
updatestorageHaloRunV1alpha1Attachment: async (name, attachment, options = {}) => {
|
|
3524
3618
|
assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name);
|
|
3525
3619
|
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
@@ -3542,40 +3636,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3542
3636
|
url: toPathString(localVarUrlObj),
|
|
3543
3637
|
options: localVarRequestOptions
|
|
3544
3638
|
};
|
|
3545
|
-
},
|
|
3546
|
-
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
3547
|
-
assertParamExists("uploadAttachment", "file", file);
|
|
3548
|
-
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
3549
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
3550
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3551
|
-
let baseOptions;
|
|
3552
|
-
if (configuration) {
|
|
3553
|
-
baseOptions = configuration.baseOptions;
|
|
3554
|
-
}
|
|
3555
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3556
|
-
const localVarHeaderParameter = {};
|
|
3557
|
-
const localVarQueryParameter = {};
|
|
3558
|
-
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
3559
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3560
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3561
|
-
if (file !== void 0) {
|
|
3562
|
-
localVarFormParams.append("file", file);
|
|
3563
|
-
}
|
|
3564
|
-
if (policyName !== void 0) {
|
|
3565
|
-
localVarFormParams.append("policyName", policyName);
|
|
3566
|
-
}
|
|
3567
|
-
if (groupName !== void 0) {
|
|
3568
|
-
localVarFormParams.append("groupName", groupName);
|
|
3569
|
-
}
|
|
3570
|
-
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
3571
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3572
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3573
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3574
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
3575
|
-
return {
|
|
3576
|
-
url: toPathString(localVarUrlObj),
|
|
3577
|
-
options: localVarRequestOptions
|
|
3578
|
-
};
|
|
3579
3639
|
}
|
|
3580
3640
|
};
|
|
3581
3641
|
};
|
|
@@ -3598,17 +3658,9 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
3598
3658
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
3599
3659
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3600
3660
|
},
|
|
3601
|
-
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3602
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
3603
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3604
|
-
},
|
|
3605
3661
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3606
3662
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(name, attachment, options);
|
|
3607
3663
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3608
|
-
},
|
|
3609
|
-
async uploadAttachment(file, policyName, groupName, options) {
|
|
3610
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
|
|
3611
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3612
3664
|
}
|
|
3613
3665
|
};
|
|
3614
3666
|
};
|
|
@@ -3627,14 +3679,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
3627
3679
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
3628
3680
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3629
3681
|
},
|
|
3630
|
-
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3631
|
-
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
3632
|
-
},
|
|
3633
3682
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3634
3683
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
3635
|
-
},
|
|
3636
|
-
uploadAttachment(file, policyName, groupName, options) {
|
|
3637
|
-
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
3638
3684
|
}
|
|
3639
3685
|
};
|
|
3640
3686
|
};
|
|
@@ -3651,15 +3697,9 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
3651
3697
|
liststorageHaloRunV1alpha1Attachment(requestParameters = {}, options) {
|
|
3652
3698
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3653
3699
|
}
|
|
3654
|
-
searchAttachments(requestParameters = {}, options) {
|
|
3655
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
3656
|
-
}
|
|
3657
3700
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
3658
3701
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
3659
3702
|
}
|
|
3660
|
-
uploadAttachment(requestParameters, options) {
|
|
3661
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
3662
|
-
}
|
|
3663
3703
|
}
|
|
3664
3704
|
|
|
3665
3705
|
const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function(configuration) {
|
|
@@ -5937,4 +5977,4 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5937
5977
|
Private: "PRIVATE"
|
|
5938
5978
|
};
|
|
5939
5979
|
|
|
5940
|
-
export { ApiConsoleHaloRunV1alpha1CommentApi, ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1CommentApiFactory, ApiConsoleHaloRunV1alpha1CommentApiFp, ApiConsoleHaloRunV1alpha1ContentApi, ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ContentApiFactory, ApiConsoleHaloRunV1alpha1ContentApiFp, ApiConsoleHaloRunV1alpha1PluginApi, ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PluginApiFactory, ApiConsoleHaloRunV1alpha1PluginApiFp, ApiConsoleHaloRunV1alpha1PostApi, ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PostApiFactory, ApiConsoleHaloRunV1alpha1PostApiFp, ApiConsoleHaloRunV1alpha1ReplyApi, ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ReplyApiFactory, ApiConsoleHaloRunV1alpha1ReplyApiFp, ApiConsoleHaloRunV1alpha1SinglePageApi, ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1SinglePageApiFactory, ApiConsoleHaloRunV1alpha1SinglePageApiFp, ApiConsoleHaloRunV1alpha1ThemeApi, ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ThemeApiFactory, ApiConsoleHaloRunV1alpha1ThemeApiFp, ApiConsoleHaloRunV1alpha1UserApi, ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1UserApiFactory, ApiConsoleHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp,
|
|
5980
|
+
export { ApiConsoleHaloRunV1alpha1AttachmentApi, ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1AttachmentApiFactory, ApiConsoleHaloRunV1alpha1AttachmentApiFp, ApiConsoleHaloRunV1alpha1CommentApi, ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1CommentApiFactory, ApiConsoleHaloRunV1alpha1CommentApiFp, ApiConsoleHaloRunV1alpha1ContentApi, ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ContentApiFactory, ApiConsoleHaloRunV1alpha1ContentApiFp, ApiConsoleHaloRunV1alpha1PluginApi, ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PluginApiFactory, ApiConsoleHaloRunV1alpha1PluginApiFp, ApiConsoleHaloRunV1alpha1PostApi, ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PostApiFactory, ApiConsoleHaloRunV1alpha1PostApiFp, ApiConsoleHaloRunV1alpha1ReplyApi, ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ReplyApiFactory, ApiConsoleHaloRunV1alpha1ReplyApiFp, ApiConsoleHaloRunV1alpha1SinglePageApi, ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1SinglePageApiFactory, ApiConsoleHaloRunV1alpha1SinglePageApiFp, ApiConsoleHaloRunV1alpha1StatsApi, ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1StatsApiFactory, ApiConsoleHaloRunV1alpha1StatsApiFp, ApiConsoleHaloRunV1alpha1ThemeApi, ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ThemeApiFactory, ApiConsoleHaloRunV1alpha1ThemeApiFp, ApiConsoleHaloRunV1alpha1UserApi, ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1UserApiFactory, ApiConsoleHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ApiHaloRunV1alpha1TrackerApi, ApiHaloRunV1alpha1TrackerApiAxiosParamCreator, ApiHaloRunV1alpha1TrackerApiFactory, ApiHaloRunV1alpha1TrackerApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, MetricsHaloRunV1alpha1CounterApi, MetricsHaloRunV1alpha1CounterApiAxiosParamCreator, MetricsHaloRunV1alpha1CounterApiFactory, MetricsHaloRunV1alpha1CounterApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, SinglePageSpecVisibleEnum, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|