@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.cjs
CHANGED
|
@@ -75,6 +75,121 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
79
|
+
return {
|
|
80
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
|
+
let baseOptions;
|
|
84
|
+
if (configuration) {
|
|
85
|
+
baseOptions = configuration.baseOptions;
|
|
86
|
+
}
|
|
87
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
88
|
+
const localVarHeaderParameter = {};
|
|
89
|
+
const localVarQueryParameter = {};
|
|
90
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
91
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
92
|
+
if (policy !== void 0) {
|
|
93
|
+
localVarQueryParameter["policy"] = policy;
|
|
94
|
+
}
|
|
95
|
+
if (displayName !== void 0) {
|
|
96
|
+
localVarQueryParameter["displayName"] = displayName;
|
|
97
|
+
}
|
|
98
|
+
if (group !== void 0) {
|
|
99
|
+
localVarQueryParameter["group"] = group;
|
|
100
|
+
}
|
|
101
|
+
if (uploadedBy !== void 0) {
|
|
102
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
103
|
+
}
|
|
104
|
+
if (size !== void 0) {
|
|
105
|
+
localVarQueryParameter["size"] = size;
|
|
106
|
+
}
|
|
107
|
+
if (page !== void 0) {
|
|
108
|
+
localVarQueryParameter["page"] = page;
|
|
109
|
+
}
|
|
110
|
+
if (labelSelector) {
|
|
111
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
112
|
+
}
|
|
113
|
+
if (fieldSelector) {
|
|
114
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
115
|
+
}
|
|
116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
119
|
+
return {
|
|
120
|
+
url: toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
125
|
+
assertParamExists("uploadAttachment", "file", file);
|
|
126
|
+
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
127
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
128
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
129
|
+
let baseOptions;
|
|
130
|
+
if (configuration) {
|
|
131
|
+
baseOptions = configuration.baseOptions;
|
|
132
|
+
}
|
|
133
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
134
|
+
const localVarHeaderParameter = {};
|
|
135
|
+
const localVarQueryParameter = {};
|
|
136
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
137
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
138
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
139
|
+
if (file !== void 0) {
|
|
140
|
+
localVarFormParams.append("file", file);
|
|
141
|
+
}
|
|
142
|
+
if (policyName !== void 0) {
|
|
143
|
+
localVarFormParams.append("policyName", policyName);
|
|
144
|
+
}
|
|
145
|
+
if (groupName !== void 0) {
|
|
146
|
+
localVarFormParams.append("groupName", groupName);
|
|
147
|
+
}
|
|
148
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
151
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
152
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
153
|
+
return {
|
|
154
|
+
url: toPathString(localVarUrlObj),
|
|
155
|
+
options: localVarRequestOptions
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
161
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
162
|
+
return {
|
|
163
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
165
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
166
|
+
},
|
|
167
|
+
async uploadAttachment(file, policyName, groupName, options) {
|
|
168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
|
|
169
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
174
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
175
|
+
return {
|
|
176
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
177
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
178
|
+
},
|
|
179
|
+
uploadAttachment(file, policyName, groupName, options) {
|
|
180
|
+
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
185
|
+
searchAttachments(requestParameters = {}, options) {
|
|
186
|
+
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));
|
|
187
|
+
}
|
|
188
|
+
uploadAttachment(requestParameters, options) {
|
|
189
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
78
193
|
const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
79
194
|
return {
|
|
80
195
|
createComment: async (commentRequest, options = {}) => {
|
|
@@ -124,7 +239,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
124
239
|
options: localVarRequestOptions
|
|
125
240
|
};
|
|
126
241
|
},
|
|
127
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
242
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
128
243
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
129
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
130
245
|
let baseOptions;
|
|
@@ -139,6 +254,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
139
254
|
if (sort !== void 0) {
|
|
140
255
|
localVarQueryParameter["sort"] = sort;
|
|
141
256
|
}
|
|
257
|
+
if (keyword !== void 0) {
|
|
258
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
259
|
+
}
|
|
260
|
+
if (hidden !== void 0) {
|
|
261
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
262
|
+
}
|
|
263
|
+
if (top !== void 0) {
|
|
264
|
+
localVarQueryParameter["top"] = top;
|
|
265
|
+
}
|
|
142
266
|
if (sortOrder !== void 0) {
|
|
143
267
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
144
268
|
}
|
|
@@ -160,27 +284,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
160
284
|
if (subjectName !== void 0) {
|
|
161
285
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
162
286
|
}
|
|
163
|
-
if (keyword !== void 0) {
|
|
164
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
165
|
-
}
|
|
166
|
-
if (hidden !== void 0) {
|
|
167
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
168
|
-
}
|
|
169
|
-
if (top !== void 0) {
|
|
170
|
-
localVarQueryParameter["top"] = top;
|
|
171
|
-
}
|
|
172
287
|
if (size !== void 0) {
|
|
173
288
|
localVarQueryParameter["size"] = size;
|
|
174
289
|
}
|
|
290
|
+
if (page !== void 0) {
|
|
291
|
+
localVarQueryParameter["page"] = page;
|
|
292
|
+
}
|
|
175
293
|
if (labelSelector) {
|
|
176
294
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
177
295
|
}
|
|
178
296
|
if (fieldSelector) {
|
|
179
297
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
180
298
|
}
|
|
181
|
-
if (page !== void 0) {
|
|
182
|
-
localVarQueryParameter["page"] = page;
|
|
183
|
-
}
|
|
184
299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
301
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -202,8 +317,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
202
317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
203
318
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
204
319
|
},
|
|
205
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
206
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
320
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
207
322
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
208
323
|
}
|
|
209
324
|
};
|
|
@@ -217,8 +332,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
217
332
|
createReply(name, replyRequest, options) {
|
|
218
333
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
219
334
|
},
|
|
220
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
221
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
335
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
336
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
222
337
|
}
|
|
223
338
|
};
|
|
224
339
|
};
|
|
@@ -230,7 +345,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
230
345
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
231
346
|
}
|
|
232
347
|
listComments(requestParameters = {}, options) {
|
|
233
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
348
|
+
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));
|
|
234
349
|
}
|
|
235
350
|
}
|
|
236
351
|
|
|
@@ -412,7 +527,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
412
527
|
options: localVarRequestOptions
|
|
413
528
|
};
|
|
414
529
|
},
|
|
415
|
-
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
530
|
+
listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
416
531
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
417
532
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
418
533
|
let baseOptions;
|
|
@@ -436,15 +551,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
436
551
|
if (size !== void 0) {
|
|
437
552
|
localVarQueryParameter["size"] = size;
|
|
438
553
|
}
|
|
554
|
+
if (page !== void 0) {
|
|
555
|
+
localVarQueryParameter["page"] = page;
|
|
556
|
+
}
|
|
439
557
|
if (labelSelector) {
|
|
440
558
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
441
559
|
}
|
|
442
560
|
if (fieldSelector) {
|
|
443
561
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
444
562
|
}
|
|
445
|
-
if (page !== void 0) {
|
|
446
|
-
localVarQueryParameter["page"] = page;
|
|
447
|
-
}
|
|
448
563
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
564
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
565
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -462,8 +577,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
462
577
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
463
578
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
464
579
|
},
|
|
465
|
-
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
466
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
580
|
+
async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
|
|
467
582
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
468
583
|
}
|
|
469
584
|
};
|
|
@@ -474,8 +589,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
474
589
|
installPlugin(file, options) {
|
|
475
590
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
476
591
|
},
|
|
477
|
-
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
478
|
-
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
592
|
+
listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
593
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
479
594
|
}
|
|
480
595
|
};
|
|
481
596
|
};
|
|
@@ -484,7 +599,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
484
599
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
485
600
|
}
|
|
486
601
|
listPlugins(requestParameters = {}, options) {
|
|
487
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.
|
|
602
|
+
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));
|
|
488
603
|
}
|
|
489
604
|
}
|
|
490
605
|
|
|
@@ -513,7 +628,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
513
628
|
options: localVarRequestOptions
|
|
514
629
|
};
|
|
515
630
|
},
|
|
516
|
-
listPosts: async (sort,
|
|
631
|
+
listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
517
632
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
518
633
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
519
634
|
let baseOptions;
|
|
@@ -528,6 +643,15 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
528
643
|
if (sort !== void 0) {
|
|
529
644
|
localVarQueryParameter["sort"] = sort;
|
|
530
645
|
}
|
|
646
|
+
if (keyword !== void 0) {
|
|
647
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
648
|
+
}
|
|
649
|
+
if (visible !== void 0) {
|
|
650
|
+
localVarQueryParameter["visible"] = visible;
|
|
651
|
+
}
|
|
652
|
+
if (tag) {
|
|
653
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
654
|
+
}
|
|
531
655
|
if (sortOrder !== void 0) {
|
|
532
656
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
533
657
|
}
|
|
@@ -540,27 +664,18 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
540
664
|
if (contributor) {
|
|
541
665
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
542
666
|
}
|
|
543
|
-
if (keyword !== void 0) {
|
|
544
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
545
|
-
}
|
|
546
|
-
if (visible !== void 0) {
|
|
547
|
-
localVarQueryParameter["visible"] = visible;
|
|
548
|
-
}
|
|
549
|
-
if (tag) {
|
|
550
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
551
|
-
}
|
|
552
667
|
if (size !== void 0) {
|
|
553
668
|
localVarQueryParameter["size"] = size;
|
|
554
669
|
}
|
|
670
|
+
if (page !== void 0) {
|
|
671
|
+
localVarQueryParameter["page"] = page;
|
|
672
|
+
}
|
|
555
673
|
if (labelSelector) {
|
|
556
674
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
557
675
|
}
|
|
558
676
|
if (fieldSelector) {
|
|
559
677
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
560
678
|
}
|
|
561
|
-
if (page !== void 0) {
|
|
562
|
-
localVarQueryParameter["page"] = page;
|
|
563
|
-
}
|
|
564
679
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
565
680
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
566
681
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -623,8 +738,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
623
738
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
624
739
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
625
740
|
},
|
|
626
|
-
async listPosts(sort,
|
|
627
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
741
|
+
async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
|
|
628
743
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
629
744
|
},
|
|
630
745
|
async publishPost(name, options) {
|
|
@@ -643,8 +758,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
643
758
|
draftPost(postRequest, options) {
|
|
644
759
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
645
760
|
},
|
|
646
|
-
listPosts(sort,
|
|
647
|
-
return localVarFp.listPosts(sort,
|
|
761
|
+
listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
762
|
+
return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
648
763
|
},
|
|
649
764
|
publishPost(name, options) {
|
|
650
765
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -659,7 +774,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
659
774
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
660
775
|
}
|
|
661
776
|
listPosts(requestParameters = {}, options) {
|
|
662
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
777
|
+
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));
|
|
663
778
|
}
|
|
664
779
|
publishPost(requestParameters, options) {
|
|
665
780
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -671,7 +786,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
671
786
|
|
|
672
787
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
673
788
|
return {
|
|
674
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
789
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
675
790
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
676
791
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
677
792
|
let baseOptions;
|
|
@@ -689,15 +804,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
689
804
|
if (size !== void 0) {
|
|
690
805
|
localVarQueryParameter["size"] = size;
|
|
691
806
|
}
|
|
807
|
+
if (page !== void 0) {
|
|
808
|
+
localVarQueryParameter["page"] = page;
|
|
809
|
+
}
|
|
692
810
|
if (labelSelector) {
|
|
693
811
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
694
812
|
}
|
|
695
813
|
if (fieldSelector) {
|
|
696
814
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
697
815
|
}
|
|
698
|
-
if (page !== void 0) {
|
|
699
|
-
localVarQueryParameter["page"] = page;
|
|
700
|
-
}
|
|
701
816
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
702
817
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
703
818
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -711,8 +826,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
711
826
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
712
827
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
713
828
|
return {
|
|
714
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
715
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
829
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
716
831
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
717
832
|
}
|
|
718
833
|
};
|
|
@@ -720,14 +835,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
720
835
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
721
836
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
722
837
|
return {
|
|
723
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
724
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
838
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
839
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
725
840
|
}
|
|
726
841
|
};
|
|
727
842
|
};
|
|
728
843
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
729
844
|
listReplies(requestParameters = {}, options) {
|
|
730
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
845
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
731
846
|
}
|
|
732
847
|
}
|
|
733
848
|
|
|
@@ -756,7 +871,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
756
871
|
options: localVarRequestOptions
|
|
757
872
|
};
|
|
758
873
|
},
|
|
759
|
-
listSinglePages: async (sort, sortOrder, publishPhase, contributor,
|
|
874
|
+
listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
760
875
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
761
876
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
762
877
|
let baseOptions;
|
|
@@ -771,6 +886,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
771
886
|
if (sort !== void 0) {
|
|
772
887
|
localVarQueryParameter["sort"] = sort;
|
|
773
888
|
}
|
|
889
|
+
if (keyword !== void 0) {
|
|
890
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
891
|
+
}
|
|
892
|
+
if (visible !== void 0) {
|
|
893
|
+
localVarQueryParameter["visible"] = visible;
|
|
894
|
+
}
|
|
774
895
|
if (sortOrder !== void 0) {
|
|
775
896
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
776
897
|
}
|
|
@@ -780,24 +901,18 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
780
901
|
if (contributor) {
|
|
781
902
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
782
903
|
}
|
|
783
|
-
if (keyword !== void 0) {
|
|
784
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
785
|
-
}
|
|
786
|
-
if (visible !== void 0) {
|
|
787
|
-
localVarQueryParameter["visible"] = visible;
|
|
788
|
-
}
|
|
789
904
|
if (size !== void 0) {
|
|
790
905
|
localVarQueryParameter["size"] = size;
|
|
791
906
|
}
|
|
907
|
+
if (page !== void 0) {
|
|
908
|
+
localVarQueryParameter["page"] = page;
|
|
909
|
+
}
|
|
792
910
|
if (labelSelector) {
|
|
793
911
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
794
912
|
}
|
|
795
913
|
if (fieldSelector) {
|
|
796
914
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
797
915
|
}
|
|
798
|
-
if (page !== void 0) {
|
|
799
|
-
localVarQueryParameter["page"] = page;
|
|
800
|
-
}
|
|
801
916
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
802
917
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
918
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -860,8 +975,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
860
975
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
861
976
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
862
977
|
},
|
|
863
|
-
async listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
864
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
978
|
+
async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
|
|
865
980
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
866
981
|
},
|
|
867
982
|
async publishSinglePage(name, options) {
|
|
@@ -880,8 +995,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
880
995
|
draftSinglePage(singlePageRequest, options) {
|
|
881
996
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
882
997
|
},
|
|
883
|
-
listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
884
|
-
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
998
|
+
listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
999
|
+
return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
885
1000
|
},
|
|
886
1001
|
publishSinglePage(name, options) {
|
|
887
1002
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -896,7 +1011,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
896
1011
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
897
1012
|
}
|
|
898
1013
|
listSinglePages(requestParameters = {}, options) {
|
|
899
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1014
|
+
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));
|
|
900
1015
|
}
|
|
901
1016
|
publishSinglePage(requestParameters, options) {
|
|
902
1017
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -906,6 +1021,53 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
906
1021
|
}
|
|
907
1022
|
}
|
|
908
1023
|
|
|
1024
|
+
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
1025
|
+
return {
|
|
1026
|
+
getStats: async (options = {}) => {
|
|
1027
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`;
|
|
1028
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1029
|
+
let baseOptions;
|
|
1030
|
+
if (configuration) {
|
|
1031
|
+
baseOptions = configuration.baseOptions;
|
|
1032
|
+
}
|
|
1033
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1034
|
+
const localVarHeaderParameter = {};
|
|
1035
|
+
const localVarQueryParameter = {};
|
|
1036
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1037
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1038
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1039
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1040
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1041
|
+
return {
|
|
1042
|
+
url: toPathString(localVarUrlObj),
|
|
1043
|
+
options: localVarRequestOptions
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFp = function(configuration) {
|
|
1049
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
|
|
1050
|
+
return {
|
|
1051
|
+
async getStats(options) {
|
|
1052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
|
|
1053
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFactory = function(configuration, basePath, axios) {
|
|
1058
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration);
|
|
1059
|
+
return {
|
|
1060
|
+
getStats(options) {
|
|
1061
|
+
return localVarFp.getStats(options).then((request) => request(axios, basePath));
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
1066
|
+
getStats(options) {
|
|
1067
|
+
return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
909
1071
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
910
1072
|
return {
|
|
911
1073
|
installTheme: async (file, options = {}) => {
|
|
@@ -935,6 +1097,42 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
935
1097
|
options: localVarRequestOptions
|
|
936
1098
|
};
|
|
937
1099
|
},
|
|
1100
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1101
|
+
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1102
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1104
|
+
let baseOptions;
|
|
1105
|
+
if (configuration) {
|
|
1106
|
+
baseOptions = configuration.baseOptions;
|
|
1107
|
+
}
|
|
1108
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1109
|
+
const localVarHeaderParameter = {};
|
|
1110
|
+
const localVarQueryParameter = {};
|
|
1111
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1113
|
+
if (uninstalled !== void 0) {
|
|
1114
|
+
localVarQueryParameter["uninstalled"] = uninstalled;
|
|
1115
|
+
}
|
|
1116
|
+
if (size !== void 0) {
|
|
1117
|
+
localVarQueryParameter["size"] = size;
|
|
1118
|
+
}
|
|
1119
|
+
if (page !== void 0) {
|
|
1120
|
+
localVarQueryParameter["page"] = page;
|
|
1121
|
+
}
|
|
1122
|
+
if (labelSelector) {
|
|
1123
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1124
|
+
}
|
|
1125
|
+
if (fieldSelector) {
|
|
1126
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1127
|
+
}
|
|
1128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1130
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1131
|
+
return {
|
|
1132
|
+
url: toPathString(localVarUrlObj),
|
|
1133
|
+
options: localVarRequestOptions
|
|
1134
|
+
};
|
|
1135
|
+
},
|
|
938
1136
|
reloadThemeSetting: async (name, options = {}) => {
|
|
939
1137
|
assertParamExists("reloadThemeSetting", "name", name);
|
|
940
1138
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload-setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
@@ -965,6 +1163,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
965
1163
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
966
1164
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
967
1165
|
},
|
|
1166
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1168
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1169
|
+
},
|
|
968
1170
|
async reloadThemeSetting(name, options) {
|
|
969
1171
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reloadThemeSetting(name, options);
|
|
970
1172
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -977,6 +1179,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
977
1179
|
installTheme(file, options) {
|
|
978
1180
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
979
1181
|
},
|
|
1182
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1183
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
980
1185
|
reloadThemeSetting(name, options) {
|
|
981
1186
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
982
1187
|
}
|
|
@@ -986,6 +1191,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
986
1191
|
installTheme(requestParameters, options) {
|
|
987
1192
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
988
1193
|
}
|
|
1194
|
+
listThemes(requestParameters, options) {
|
|
1195
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1196
|
+
}
|
|
989
1197
|
reloadThemeSetting(requestParameters, options) {
|
|
990
1198
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
991
1199
|
}
|
|
@@ -1296,47 +1504,163 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
1296
1504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options);
|
|
1297
1505
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1298
1506
|
},
|
|
1299
|
-
async listComments1(name, version, kind, group, size, page, options) {
|
|
1300
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
|
|
1507
|
+
async listComments1(name, version, kind, group, size, page, options) {
|
|
1508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
|
|
1509
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
1514
|
+
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
|
|
1515
|
+
return {
|
|
1516
|
+
createComment1(commentRequest, options) {
|
|
1517
|
+
return localVarFp.createComment1(commentRequest, options).then((request) => request(axios, basePath));
|
|
1518
|
+
},
|
|
1519
|
+
createReply1(name, replyRequest, options) {
|
|
1520
|
+
return localVarFp.createReply1(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
1521
|
+
},
|
|
1522
|
+
getComment(name, options) {
|
|
1523
|
+
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1524
|
+
},
|
|
1525
|
+
listCommentReplies(name, size, page, options) {
|
|
1526
|
+
return localVarFp.listCommentReplies(name, size, page, options).then((request) => request(axios, basePath));
|
|
1527
|
+
},
|
|
1528
|
+
listComments1(name, version, kind, group, size, page, options) {
|
|
1529
|
+
return localVarFp.listComments1(name, version, kind, group, size, page, options).then((request) => request(axios, basePath));
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
1534
|
+
createComment1(requestParameters, options) {
|
|
1535
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment1(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1536
|
+
}
|
|
1537
|
+
createReply1(requestParameters, options) {
|
|
1538
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1539
|
+
}
|
|
1540
|
+
getComment(requestParameters, options) {
|
|
1541
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1542
|
+
}
|
|
1543
|
+
listCommentReplies(requestParameters, options) {
|
|
1544
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1545
|
+
}
|
|
1546
|
+
listComments1(requestParameters, options) {
|
|
1547
|
+
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));
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function(configuration) {
|
|
1552
|
+
return {
|
|
1553
|
+
count: async (counterRequest, options = {}) => {
|
|
1554
|
+
assertParamExists("count", "counterRequest", counterRequest);
|
|
1555
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`;
|
|
1556
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1557
|
+
let baseOptions;
|
|
1558
|
+
if (configuration) {
|
|
1559
|
+
baseOptions = configuration.baseOptions;
|
|
1560
|
+
}
|
|
1561
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1562
|
+
const localVarHeaderParameter = {};
|
|
1563
|
+
const localVarQueryParameter = {};
|
|
1564
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1565
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1566
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1567
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1568
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1569
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1570
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration);
|
|
1571
|
+
return {
|
|
1572
|
+
url: toPathString(localVarUrlObj),
|
|
1573
|
+
options: localVarRequestOptions
|
|
1574
|
+
};
|
|
1575
|
+
},
|
|
1576
|
+
downvote: async (voteRequest, options = {}) => {
|
|
1577
|
+
assertParamExists("downvote", "voteRequest", voteRequest);
|
|
1578
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`;
|
|
1579
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1580
|
+
let baseOptions;
|
|
1581
|
+
if (configuration) {
|
|
1582
|
+
baseOptions = configuration.baseOptions;
|
|
1583
|
+
}
|
|
1584
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1585
|
+
const localVarHeaderParameter = {};
|
|
1586
|
+
const localVarQueryParameter = {};
|
|
1587
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1588
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1589
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1590
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1592
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1593
|
+
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
|
|
1594
|
+
return {
|
|
1595
|
+
url: toPathString(localVarUrlObj),
|
|
1596
|
+
options: localVarRequestOptions
|
|
1597
|
+
};
|
|
1598
|
+
},
|
|
1599
|
+
upvote: async (voteRequest, options = {}) => {
|
|
1600
|
+
assertParamExists("upvote", "voteRequest", voteRequest);
|
|
1601
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`;
|
|
1602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1603
|
+
let baseOptions;
|
|
1604
|
+
if (configuration) {
|
|
1605
|
+
baseOptions = configuration.baseOptions;
|
|
1606
|
+
}
|
|
1607
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1608
|
+
const localVarHeaderParameter = {};
|
|
1609
|
+
const localVarQueryParameter = {};
|
|
1610
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1611
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1612
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1615
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration);
|
|
1617
|
+
return {
|
|
1618
|
+
url: toPathString(localVarUrlObj),
|
|
1619
|
+
options: localVarRequestOptions
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
const ApiHaloRunV1alpha1TrackerApiFp = function(configuration) {
|
|
1625
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration);
|
|
1626
|
+
return {
|
|
1627
|
+
async count(counterRequest, options) {
|
|
1628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options);
|
|
1629
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1630
|
+
},
|
|
1631
|
+
async downvote(voteRequest, options) {
|
|
1632
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(voteRequest, options);
|
|
1633
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1634
|
+
},
|
|
1635
|
+
async upvote(voteRequest, options) {
|
|
1636
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(voteRequest, options);
|
|
1301
1637
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1302
1638
|
}
|
|
1303
1639
|
};
|
|
1304
1640
|
};
|
|
1305
|
-
const
|
|
1306
|
-
const localVarFp =
|
|
1641
|
+
const ApiHaloRunV1alpha1TrackerApiFactory = function(configuration, basePath, axios) {
|
|
1642
|
+
const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration);
|
|
1307
1643
|
return {
|
|
1308
|
-
|
|
1309
|
-
return localVarFp.
|
|
1310
|
-
},
|
|
1311
|
-
createReply1(name, replyRequest, options) {
|
|
1312
|
-
return localVarFp.createReply1(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
1313
|
-
},
|
|
1314
|
-
getComment(name, options) {
|
|
1315
|
-
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1644
|
+
count(counterRequest, options) {
|
|
1645
|
+
return localVarFp.count(counterRequest, options).then((request) => request(axios, basePath));
|
|
1316
1646
|
},
|
|
1317
|
-
|
|
1318
|
-
return localVarFp.
|
|
1647
|
+
downvote(voteRequest, options) {
|
|
1648
|
+
return localVarFp.downvote(voteRequest, options).then((request) => request(axios, basePath));
|
|
1319
1649
|
},
|
|
1320
|
-
|
|
1321
|
-
return localVarFp.
|
|
1650
|
+
upvote(voteRequest, options) {
|
|
1651
|
+
return localVarFp.upvote(voteRequest, options).then((request) => request(axios, basePath));
|
|
1322
1652
|
}
|
|
1323
1653
|
};
|
|
1324
1654
|
};
|
|
1325
|
-
class
|
|
1326
|
-
|
|
1327
|
-
return
|
|
1328
|
-
}
|
|
1329
|
-
createReply1(requestParameters, options) {
|
|
1330
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1331
|
-
}
|
|
1332
|
-
getComment(requestParameters, options) {
|
|
1333
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1655
|
+
class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|
1656
|
+
count(requestParameters, options) {
|
|
1657
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1334
1658
|
}
|
|
1335
|
-
|
|
1336
|
-
return
|
|
1659
|
+
downvote(requestParameters, options) {
|
|
1660
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).downvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1337
1661
|
}
|
|
1338
|
-
|
|
1339
|
-
return
|
|
1662
|
+
upvote(requestParameters, options) {
|
|
1663
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).upvote(requestParameters.voteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1340
1664
|
}
|
|
1341
1665
|
}
|
|
1342
1666
|
|
|
@@ -2642,196 +2966,10 @@ class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|
|
2642
2966
|
}
|
|
2643
2967
|
}
|
|
2644
2968
|
|
|
2645
|
-
const
|
|
2646
|
-
return {
|
|
2647
|
-
createcoreHaloRunV1alpha1Link: async (link, options = {}) => {
|
|
2648
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
2649
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2650
|
-
let baseOptions;
|
|
2651
|
-
if (configuration) {
|
|
2652
|
-
baseOptions = configuration.baseOptions;
|
|
2653
|
-
}
|
|
2654
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2655
|
-
const localVarHeaderParameter = {};
|
|
2656
|
-
const localVarQueryParameter = {};
|
|
2657
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2658
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2659
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2660
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2661
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2662
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2663
|
-
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
2664
|
-
return {
|
|
2665
|
-
url: toPathString(localVarUrlObj),
|
|
2666
|
-
options: localVarRequestOptions
|
|
2667
|
-
};
|
|
2668
|
-
},
|
|
2669
|
-
deletecoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
2670
|
-
assertParamExists("deletecoreHaloRunV1alpha1Link", "name", name);
|
|
2671
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2672
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2673
|
-
let baseOptions;
|
|
2674
|
-
if (configuration) {
|
|
2675
|
-
baseOptions = configuration.baseOptions;
|
|
2676
|
-
}
|
|
2677
|
-
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
2678
|
-
const localVarHeaderParameter = {};
|
|
2679
|
-
const localVarQueryParameter = {};
|
|
2680
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2681
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2682
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2683
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2684
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2685
|
-
return {
|
|
2686
|
-
url: toPathString(localVarUrlObj),
|
|
2687
|
-
options: localVarRequestOptions
|
|
2688
|
-
};
|
|
2689
|
-
},
|
|
2690
|
-
getcoreHaloRunV1alpha1Link: async (name, options = {}) => {
|
|
2691
|
-
assertParamExists("getcoreHaloRunV1alpha1Link", "name", name);
|
|
2692
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2693
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2694
|
-
let baseOptions;
|
|
2695
|
-
if (configuration) {
|
|
2696
|
-
baseOptions = configuration.baseOptions;
|
|
2697
|
-
}
|
|
2698
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2699
|
-
const localVarHeaderParameter = {};
|
|
2700
|
-
const localVarQueryParameter = {};
|
|
2701
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2702
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2703
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2704
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2705
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2706
|
-
return {
|
|
2707
|
-
url: toPathString(localVarUrlObj),
|
|
2708
|
-
options: localVarRequestOptions
|
|
2709
|
-
};
|
|
2710
|
-
},
|
|
2711
|
-
listcoreHaloRunV1alpha1Link: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
2712
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links`;
|
|
2713
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2714
|
-
let baseOptions;
|
|
2715
|
-
if (configuration) {
|
|
2716
|
-
baseOptions = configuration.baseOptions;
|
|
2717
|
-
}
|
|
2718
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2719
|
-
const localVarHeaderParameter = {};
|
|
2720
|
-
const localVarQueryParameter = {};
|
|
2721
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2722
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2723
|
-
if (page !== void 0) {
|
|
2724
|
-
localVarQueryParameter["page"] = page;
|
|
2725
|
-
}
|
|
2726
|
-
if (size !== void 0) {
|
|
2727
|
-
localVarQueryParameter["size"] = size;
|
|
2728
|
-
}
|
|
2729
|
-
if (labelSelector) {
|
|
2730
|
-
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2731
|
-
}
|
|
2732
|
-
if (fieldSelector) {
|
|
2733
|
-
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2734
|
-
}
|
|
2735
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2736
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2737
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2738
|
-
return {
|
|
2739
|
-
url: toPathString(localVarUrlObj),
|
|
2740
|
-
options: localVarRequestOptions
|
|
2741
|
-
};
|
|
2742
|
-
},
|
|
2743
|
-
updatecoreHaloRunV1alpha1Link: async (name, link, options = {}) => {
|
|
2744
|
-
assertParamExists("updatecoreHaloRunV1alpha1Link", "name", name);
|
|
2745
|
-
const localVarPath = `/apis/core.halo.run/v1alpha1/links/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2746
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2747
|
-
let baseOptions;
|
|
2748
|
-
if (configuration) {
|
|
2749
|
-
baseOptions = configuration.baseOptions;
|
|
2750
|
-
}
|
|
2751
|
-
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
2752
|
-
const localVarHeaderParameter = {};
|
|
2753
|
-
const localVarQueryParameter = {};
|
|
2754
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2755
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2756
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2757
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2758
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2759
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2760
|
-
localVarRequestOptions.data = serializeDataIfNeeded(link, localVarRequestOptions, configuration);
|
|
2761
|
-
return {
|
|
2762
|
-
url: toPathString(localVarUrlObj),
|
|
2763
|
-
options: localVarRequestOptions
|
|
2764
|
-
};
|
|
2765
|
-
}
|
|
2766
|
-
};
|
|
2767
|
-
};
|
|
2768
|
-
const CoreHaloRunV1alpha1LinkApiFp = function(configuration) {
|
|
2769
|
-
const localVarAxiosParamCreator = CoreHaloRunV1alpha1LinkApiAxiosParamCreator(configuration);
|
|
2770
|
-
return {
|
|
2771
|
-
async createcoreHaloRunV1alpha1Link(link, options) {
|
|
2772
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createcoreHaloRunV1alpha1Link(link, options);
|
|
2773
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2774
|
-
},
|
|
2775
|
-
async deletecoreHaloRunV1alpha1Link(name, options) {
|
|
2776
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecoreHaloRunV1alpha1Link(name, options);
|
|
2777
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2778
|
-
},
|
|
2779
|
-
async getcoreHaloRunV1alpha1Link(name, options) {
|
|
2780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getcoreHaloRunV1alpha1Link(name, options);
|
|
2781
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2782
|
-
},
|
|
2783
|
-
async listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options) {
|
|
2784
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options);
|
|
2785
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2786
|
-
},
|
|
2787
|
-
async updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
2788
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecoreHaloRunV1alpha1Link(name, link, options);
|
|
2789
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2790
|
-
}
|
|
2791
|
-
};
|
|
2792
|
-
};
|
|
2793
|
-
const CoreHaloRunV1alpha1LinkApiFactory = function(configuration, basePath, axios) {
|
|
2794
|
-
const localVarFp = CoreHaloRunV1alpha1LinkApiFp(configuration);
|
|
2795
|
-
return {
|
|
2796
|
-
createcoreHaloRunV1alpha1Link(link, options) {
|
|
2797
|
-
return localVarFp.createcoreHaloRunV1alpha1Link(link, options).then((request) => request(axios, basePath));
|
|
2798
|
-
},
|
|
2799
|
-
deletecoreHaloRunV1alpha1Link(name, options) {
|
|
2800
|
-
return localVarFp.deletecoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
2801
|
-
},
|
|
2802
|
-
getcoreHaloRunV1alpha1Link(name, options) {
|
|
2803
|
-
return localVarFp.getcoreHaloRunV1alpha1Link(name, options).then((request) => request(axios, basePath));
|
|
2804
|
-
},
|
|
2805
|
-
listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options) {
|
|
2806
|
-
return localVarFp.listcoreHaloRunV1alpha1Link(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2807
|
-
},
|
|
2808
|
-
updatecoreHaloRunV1alpha1Link(name, link, options) {
|
|
2809
|
-
return localVarFp.updatecoreHaloRunV1alpha1Link(name, link, options).then((request) => request(axios, basePath));
|
|
2810
|
-
}
|
|
2811
|
-
};
|
|
2812
|
-
};
|
|
2813
|
-
class CoreHaloRunV1alpha1LinkApi extends BaseAPI {
|
|
2814
|
-
createcoreHaloRunV1alpha1Link(requestParameters = {}, options) {
|
|
2815
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).createcoreHaloRunV1alpha1Link(requestParameters.link, options).then((request) => request(this.axios, this.basePath));
|
|
2816
|
-
}
|
|
2817
|
-
deletecoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2818
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).deletecoreHaloRunV1alpha1Link(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
2819
|
-
}
|
|
2820
|
-
getcoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2821
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).getcoreHaloRunV1alpha1Link(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
2822
|
-
}
|
|
2823
|
-
listcoreHaloRunV1alpha1Link(requestParameters = {}, options) {
|
|
2824
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).listcoreHaloRunV1alpha1Link(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2825
|
-
}
|
|
2826
|
-
updatecoreHaloRunV1alpha1Link(requestParameters, options) {
|
|
2827
|
-
return CoreHaloRunV1alpha1LinkApiFp(this.configuration).updatecoreHaloRunV1alpha1Link(requestParameters.name, requestParameters.link, options).then((request) => request(this.axios, this.basePath));
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration) {
|
|
2969
|
+
const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function(configuration) {
|
|
2832
2970
|
return {
|
|
2833
|
-
|
|
2834
|
-
const localVarPath = `/apis/
|
|
2971
|
+
createmetricsHaloRunV1alpha1Counter: async (counter, options = {}) => {
|
|
2972
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
2835
2973
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2836
2974
|
let baseOptions;
|
|
2837
2975
|
if (configuration) {
|
|
@@ -2846,15 +2984,15 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2846
2984
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2847
2985
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2848
2986
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2849
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2987
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
2850
2988
|
return {
|
|
2851
2989
|
url: toPathString(localVarUrlObj),
|
|
2852
2990
|
options: localVarRequestOptions
|
|
2853
2991
|
};
|
|
2854
2992
|
},
|
|
2855
|
-
|
|
2856
|
-
assertParamExists("
|
|
2857
|
-
const localVarPath = `/apis/
|
|
2993
|
+
deletemetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
2994
|
+
assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name);
|
|
2995
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2858
2996
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2859
2997
|
let baseOptions;
|
|
2860
2998
|
if (configuration) {
|
|
@@ -2873,9 +3011,9 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2873
3011
|
options: localVarRequestOptions
|
|
2874
3012
|
};
|
|
2875
3013
|
},
|
|
2876
|
-
|
|
2877
|
-
assertParamExists("
|
|
2878
|
-
const localVarPath = `/apis/
|
|
3014
|
+
getmetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
3015
|
+
assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name);
|
|
3016
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2879
3017
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2880
3018
|
let baseOptions;
|
|
2881
3019
|
if (configuration) {
|
|
@@ -2894,8 +3032,8 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2894
3032
|
options: localVarRequestOptions
|
|
2895
3033
|
};
|
|
2896
3034
|
},
|
|
2897
|
-
|
|
2898
|
-
const localVarPath = `/apis/
|
|
3035
|
+
listmetricsHaloRunV1alpha1Counter: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
3036
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
2899
3037
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2900
3038
|
let baseOptions;
|
|
2901
3039
|
if (configuration) {
|
|
@@ -2926,9 +3064,9 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2926
3064
|
options: localVarRequestOptions
|
|
2927
3065
|
};
|
|
2928
3066
|
},
|
|
2929
|
-
|
|
2930
|
-
assertParamExists("
|
|
2931
|
-
const localVarPath = `/apis/
|
|
3067
|
+
updatemetricsHaloRunV1alpha1Counter: async (name, counter, options = {}) => {
|
|
3068
|
+
assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name);
|
|
3069
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
2932
3070
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2933
3071
|
let baseOptions;
|
|
2934
3072
|
if (configuration) {
|
|
@@ -2943,7 +3081,7 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2943
3081
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2944
3082
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2945
3083
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2946
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3084
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
2947
3085
|
return {
|
|
2948
3086
|
url: toPathString(localVarUrlObj),
|
|
2949
3087
|
options: localVarRequestOptions
|
|
@@ -2951,66 +3089,66 @@ const CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = function(configuration)
|
|
|
2951
3089
|
}
|
|
2952
3090
|
};
|
|
2953
3091
|
};
|
|
2954
|
-
const
|
|
2955
|
-
const localVarAxiosParamCreator =
|
|
3092
|
+
const MetricsHaloRunV1alpha1CounterApiFp = function(configuration) {
|
|
3093
|
+
const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration);
|
|
2956
3094
|
return {
|
|
2957
|
-
async
|
|
2958
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3095
|
+
async createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options);
|
|
2959
3097
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2960
3098
|
},
|
|
2961
|
-
async
|
|
2962
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3099
|
+
async deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options);
|
|
2963
3101
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2964
3102
|
},
|
|
2965
|
-
async
|
|
2966
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3103
|
+
async getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3104
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options);
|
|
2967
3105
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2968
3106
|
},
|
|
2969
|
-
async
|
|
2970
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3107
|
+
async listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3108
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options);
|
|
2971
3109
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2972
3110
|
},
|
|
2973
|
-
async
|
|
2974
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3111
|
+
async updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(name, counter, options);
|
|
2975
3113
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2976
3114
|
}
|
|
2977
3115
|
};
|
|
2978
3116
|
};
|
|
2979
|
-
const
|
|
2980
|
-
const localVarFp =
|
|
3117
|
+
const MetricsHaloRunV1alpha1CounterApiFactory = function(configuration, basePath, axios) {
|
|
3118
|
+
const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration);
|
|
2981
3119
|
return {
|
|
2982
|
-
|
|
2983
|
-
return localVarFp.
|
|
3120
|
+
createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3121
|
+
return localVarFp.createmetricsHaloRunV1alpha1Counter(counter, options).then((request) => request(axios, basePath));
|
|
2984
3122
|
},
|
|
2985
|
-
|
|
2986
|
-
return localVarFp.
|
|
3123
|
+
deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3124
|
+
return localVarFp.deletemetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
2987
3125
|
},
|
|
2988
|
-
|
|
2989
|
-
return localVarFp.
|
|
3126
|
+
getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3127
|
+
return localVarFp.getmetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
2990
3128
|
},
|
|
2991
|
-
|
|
2992
|
-
return localVarFp.
|
|
3129
|
+
listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3130
|
+
return localVarFp.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2993
3131
|
},
|
|
2994
|
-
|
|
2995
|
-
return localVarFp.
|
|
3132
|
+
updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3133
|
+
return localVarFp.updatemetricsHaloRunV1alpha1Counter(name, counter, options).then((request) => request(axios, basePath));
|
|
2996
3134
|
}
|
|
2997
3135
|
};
|
|
2998
3136
|
};
|
|
2999
|
-
class
|
|
3000
|
-
|
|
3001
|
-
return
|
|
3137
|
+
class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|
3138
|
+
createmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3139
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
3002
3140
|
}
|
|
3003
|
-
|
|
3004
|
-
return
|
|
3141
|
+
deletemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3142
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3005
3143
|
}
|
|
3006
|
-
|
|
3007
|
-
return
|
|
3144
|
+
getmetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3145
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3008
3146
|
}
|
|
3009
|
-
|
|
3010
|
-
return
|
|
3147
|
+
listmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3148
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3011
3149
|
}
|
|
3012
|
-
|
|
3013
|
-
return
|
|
3150
|
+
updatemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3151
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
3014
3152
|
}
|
|
3015
3153
|
}
|
|
3016
3154
|
|
|
@@ -3484,50 +3622,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3484
3622
|
options: localVarRequestOptions
|
|
3485
3623
|
};
|
|
3486
3624
|
},
|
|
3487
|
-
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
3488
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
3489
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3490
|
-
let baseOptions;
|
|
3491
|
-
if (configuration) {
|
|
3492
|
-
baseOptions = configuration.baseOptions;
|
|
3493
|
-
}
|
|
3494
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3495
|
-
const localVarHeaderParameter = {};
|
|
3496
|
-
const localVarQueryParameter = {};
|
|
3497
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3498
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3499
|
-
if (policy !== void 0) {
|
|
3500
|
-
localVarQueryParameter["policy"] = policy;
|
|
3501
|
-
}
|
|
3502
|
-
if (displayName !== void 0) {
|
|
3503
|
-
localVarQueryParameter["displayName"] = displayName;
|
|
3504
|
-
}
|
|
3505
|
-
if (group !== void 0) {
|
|
3506
|
-
localVarQueryParameter["group"] = group;
|
|
3507
|
-
}
|
|
3508
|
-
if (uploadedBy !== void 0) {
|
|
3509
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
3510
|
-
}
|
|
3511
|
-
if (size !== void 0) {
|
|
3512
|
-
localVarQueryParameter["size"] = size;
|
|
3513
|
-
}
|
|
3514
|
-
if (labelSelector) {
|
|
3515
|
-
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3516
|
-
}
|
|
3517
|
-
if (fieldSelector) {
|
|
3518
|
-
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3519
|
-
}
|
|
3520
|
-
if (page !== void 0) {
|
|
3521
|
-
localVarQueryParameter["page"] = page;
|
|
3522
|
-
}
|
|
3523
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3524
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3525
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3526
|
-
return {
|
|
3527
|
-
url: toPathString(localVarUrlObj),
|
|
3528
|
-
options: localVarRequestOptions
|
|
3529
|
-
};
|
|
3530
|
-
},
|
|
3531
3625
|
updatestorageHaloRunV1alpha1Attachment: async (name, attachment, options = {}) => {
|
|
3532
3626
|
assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name);
|
|
3533
3627
|
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
@@ -3550,40 +3644,6 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3550
3644
|
url: toPathString(localVarUrlObj),
|
|
3551
3645
|
options: localVarRequestOptions
|
|
3552
3646
|
};
|
|
3553
|
-
},
|
|
3554
|
-
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
3555
|
-
assertParamExists("uploadAttachment", "file", file);
|
|
3556
|
-
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
3557
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
3558
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3559
|
-
let baseOptions;
|
|
3560
|
-
if (configuration) {
|
|
3561
|
-
baseOptions = configuration.baseOptions;
|
|
3562
|
-
}
|
|
3563
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3564
|
-
const localVarHeaderParameter = {};
|
|
3565
|
-
const localVarQueryParameter = {};
|
|
3566
|
-
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
3567
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3568
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3569
|
-
if (file !== void 0) {
|
|
3570
|
-
localVarFormParams.append("file", file);
|
|
3571
|
-
}
|
|
3572
|
-
if (policyName !== void 0) {
|
|
3573
|
-
localVarFormParams.append("policyName", policyName);
|
|
3574
|
-
}
|
|
3575
|
-
if (groupName !== void 0) {
|
|
3576
|
-
localVarFormParams.append("groupName", groupName);
|
|
3577
|
-
}
|
|
3578
|
-
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
3579
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3580
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3581
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3582
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
3583
|
-
return {
|
|
3584
|
-
url: toPathString(localVarUrlObj),
|
|
3585
|
-
options: localVarRequestOptions
|
|
3586
|
-
};
|
|
3587
3647
|
}
|
|
3588
3648
|
};
|
|
3589
3649
|
};
|
|
@@ -3606,17 +3666,9 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
3606
3666
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
3607
3667
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3608
3668
|
},
|
|
3609
|
-
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3610
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
3611
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3612
|
-
},
|
|
3613
3669
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3614
3670
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(name, attachment, options);
|
|
3615
3671
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3616
|
-
},
|
|
3617
|
-
async uploadAttachment(file, policyName, groupName, options) {
|
|
3618
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
|
|
3619
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3620
3672
|
}
|
|
3621
3673
|
};
|
|
3622
3674
|
};
|
|
@@ -3635,14 +3687,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
3635
3687
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
3636
3688
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3637
3689
|
},
|
|
3638
|
-
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3639
|
-
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
3640
|
-
},
|
|
3641
3690
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3642
3691
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
3643
|
-
},
|
|
3644
|
-
uploadAttachment(file, policyName, groupName, options) {
|
|
3645
|
-
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
3646
3692
|
}
|
|
3647
3693
|
};
|
|
3648
3694
|
};
|
|
@@ -3659,15 +3705,9 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
3659
3705
|
liststorageHaloRunV1alpha1Attachment(requestParameters = {}, options) {
|
|
3660
3706
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3661
3707
|
}
|
|
3662
|
-
searchAttachments(requestParameters = {}, options) {
|
|
3663
|
-
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));
|
|
3664
|
-
}
|
|
3665
3708
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
3666
3709
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
3667
3710
|
}
|
|
3668
|
-
uploadAttachment(requestParameters, options) {
|
|
3669
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
3670
|
-
}
|
|
3671
3711
|
}
|
|
3672
3712
|
|
|
3673
3713
|
const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function(configuration) {
|
|
@@ -5945,6 +5985,10 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5945
5985
|
Private: "PRIVATE"
|
|
5946
5986
|
};
|
|
5947
5987
|
|
|
5988
|
+
exports.ApiConsoleHaloRunV1alpha1AttachmentApi = ApiConsoleHaloRunV1alpha1AttachmentApi;
|
|
5989
|
+
exports.ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator;
|
|
5990
|
+
exports.ApiConsoleHaloRunV1alpha1AttachmentApiFactory = ApiConsoleHaloRunV1alpha1AttachmentApiFactory;
|
|
5991
|
+
exports.ApiConsoleHaloRunV1alpha1AttachmentApiFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp;
|
|
5948
5992
|
exports.ApiConsoleHaloRunV1alpha1CommentApi = ApiConsoleHaloRunV1alpha1CommentApi;
|
|
5949
5993
|
exports.ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5950
5994
|
exports.ApiConsoleHaloRunV1alpha1CommentApiFactory = ApiConsoleHaloRunV1alpha1CommentApiFactory;
|
|
@@ -5969,6 +6013,10 @@ exports.ApiConsoleHaloRunV1alpha1SinglePageApi = ApiConsoleHaloRunV1alpha1Single
|
|
|
5969
6013
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5970
6014
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFactory = ApiConsoleHaloRunV1alpha1SinglePageApiFactory;
|
|
5971
6015
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp;
|
|
6016
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApi = ApiConsoleHaloRunV1alpha1StatsApi;
|
|
6017
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator;
|
|
6018
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiFactory = ApiConsoleHaloRunV1alpha1StatsApiFactory;
|
|
6019
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiFp = ApiConsoleHaloRunV1alpha1StatsApiFp;
|
|
5972
6020
|
exports.ApiConsoleHaloRunV1alpha1ThemeApi = ApiConsoleHaloRunV1alpha1ThemeApi;
|
|
5973
6021
|
exports.ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator;
|
|
5974
6022
|
exports.ApiConsoleHaloRunV1alpha1ThemeApiFactory = ApiConsoleHaloRunV1alpha1ThemeApiFactory;
|
|
@@ -5981,6 +6029,10 @@ exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
|
|
|
5981
6029
|
exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5982
6030
|
exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
|
|
5983
6031
|
exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
|
|
6032
|
+
exports.ApiHaloRunV1alpha1TrackerApi = ApiHaloRunV1alpha1TrackerApi;
|
|
6033
|
+
exports.ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator;
|
|
6034
|
+
exports.ApiHaloRunV1alpha1TrackerApiFactory = ApiHaloRunV1alpha1TrackerApiFactory;
|
|
6035
|
+
exports.ApiHaloRunV1alpha1TrackerApiFp = ApiHaloRunV1alpha1TrackerApiFp;
|
|
5984
6036
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5985
6037
|
exports.Configuration = Configuration;
|
|
5986
6038
|
exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
|
|
@@ -6011,14 +6063,10 @@ exports.ContentHaloRunV1alpha1TagApi = ContentHaloRunV1alpha1TagApi;
|
|
|
6011
6063
|
exports.ContentHaloRunV1alpha1TagApiAxiosParamCreator = ContentHaloRunV1alpha1TagApiAxiosParamCreator;
|
|
6012
6064
|
exports.ContentHaloRunV1alpha1TagApiFactory = ContentHaloRunV1alpha1TagApiFactory;
|
|
6013
6065
|
exports.ContentHaloRunV1alpha1TagApiFp = ContentHaloRunV1alpha1TagApiFp;
|
|
6014
|
-
exports.
|
|
6015
|
-
exports.
|
|
6016
|
-
exports.
|
|
6017
|
-
exports.
|
|
6018
|
-
exports.CoreHaloRunV1alpha1LinkGroupApi = CoreHaloRunV1alpha1LinkGroupApi;
|
|
6019
|
-
exports.CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator;
|
|
6020
|
-
exports.CoreHaloRunV1alpha1LinkGroupApiFactory = CoreHaloRunV1alpha1LinkGroupApiFactory;
|
|
6021
|
-
exports.CoreHaloRunV1alpha1LinkGroupApiFp = CoreHaloRunV1alpha1LinkGroupApiFp;
|
|
6066
|
+
exports.MetricsHaloRunV1alpha1CounterApi = MetricsHaloRunV1alpha1CounterApi;
|
|
6067
|
+
exports.MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator;
|
|
6068
|
+
exports.MetricsHaloRunV1alpha1CounterApiFactory = MetricsHaloRunV1alpha1CounterApiFactory;
|
|
6069
|
+
exports.MetricsHaloRunV1alpha1CounterApiFp = MetricsHaloRunV1alpha1CounterApiFp;
|
|
6022
6070
|
exports.PluginHaloRunV1alpha1PluginApi = PluginHaloRunV1alpha1PluginApi;
|
|
6023
6071
|
exports.PluginHaloRunV1alpha1PluginApiAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator;
|
|
6024
6072
|
exports.PluginHaloRunV1alpha1PluginApiFactory = PluginHaloRunV1alpha1PluginApiFactory;
|