@halo-dev/api-client 0.0.15 → 0.0.16

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.mjs CHANGED
@@ -2124,848 +2124,6 @@ class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
2124
2124
  }
2125
2125
  }
2126
2126
 
2127
- const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
2128
- return {
2129
- createstorageHaloRunV1alpha1Attachment: async (attachment, options = {}) => {
2130
- const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
2131
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2132
- let baseOptions;
2133
- if (configuration) {
2134
- baseOptions = configuration.baseOptions;
2135
- }
2136
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2137
- const localVarHeaderParameter = {};
2138
- const localVarQueryParameter = {};
2139
- setBasicAuthToObject(localVarRequestOptions, configuration);
2140
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2141
- localVarHeaderParameter["Content-Type"] = "application/json";
2142
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2143
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2144
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2145
- localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration);
2146
- return {
2147
- url: toPathString(localVarUrlObj),
2148
- options: localVarRequestOptions
2149
- };
2150
- },
2151
- deletestorageHaloRunV1alpha1Attachment: async (name, options = {}) => {
2152
- assertParamExists("deletestorageHaloRunV1alpha1Attachment", "name", name);
2153
- const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2154
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2155
- let baseOptions;
2156
- if (configuration) {
2157
- baseOptions = configuration.baseOptions;
2158
- }
2159
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
2160
- const localVarHeaderParameter = {};
2161
- const localVarQueryParameter = {};
2162
- setBasicAuthToObject(localVarRequestOptions, configuration);
2163
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2164
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2165
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2166
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2167
- return {
2168
- url: toPathString(localVarUrlObj),
2169
- options: localVarRequestOptions
2170
- };
2171
- },
2172
- getstorageHaloRunV1alpha1Attachment: async (name, options = {}) => {
2173
- assertParamExists("getstorageHaloRunV1alpha1Attachment", "name", name);
2174
- const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2175
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2176
- let baseOptions;
2177
- if (configuration) {
2178
- baseOptions = configuration.baseOptions;
2179
- }
2180
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2181
- const localVarHeaderParameter = {};
2182
- const localVarQueryParameter = {};
2183
- setBasicAuthToObject(localVarRequestOptions, configuration);
2184
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2185
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2186
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2187
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2188
- return {
2189
- url: toPathString(localVarUrlObj),
2190
- options: localVarRequestOptions
2191
- };
2192
- },
2193
- liststorageHaloRunV1alpha1Attachment: async (page, size, labelSelector, fieldSelector, options = {}) => {
2194
- const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
2195
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2196
- let baseOptions;
2197
- if (configuration) {
2198
- baseOptions = configuration.baseOptions;
2199
- }
2200
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2201
- const localVarHeaderParameter = {};
2202
- const localVarQueryParameter = {};
2203
- setBasicAuthToObject(localVarRequestOptions, configuration);
2204
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2205
- if (page !== void 0) {
2206
- localVarQueryParameter["page"] = page;
2207
- }
2208
- if (size !== void 0) {
2209
- localVarQueryParameter["size"] = size;
2210
- }
2211
- if (labelSelector) {
2212
- localVarQueryParameter["labelSelector"] = labelSelector;
2213
- }
2214
- if (fieldSelector) {
2215
- localVarQueryParameter["fieldSelector"] = fieldSelector;
2216
- }
2217
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2218
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2219
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2220
- return {
2221
- url: toPathString(localVarUrlObj),
2222
- options: localVarRequestOptions
2223
- };
2224
- },
2225
- searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
2226
- const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
2227
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2228
- let baseOptions;
2229
- if (configuration) {
2230
- baseOptions = configuration.baseOptions;
2231
- }
2232
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2233
- const localVarHeaderParameter = {};
2234
- const localVarQueryParameter = {};
2235
- setBasicAuthToObject(localVarRequestOptions, configuration);
2236
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2237
- if (policy !== void 0) {
2238
- localVarQueryParameter["policy"] = policy;
2239
- }
2240
- if (displayName !== void 0) {
2241
- localVarQueryParameter["displayName"] = displayName;
2242
- }
2243
- if (group !== void 0) {
2244
- localVarQueryParameter["group"] = group;
2245
- }
2246
- if (uploadedBy !== void 0) {
2247
- localVarQueryParameter["uploadedBy"] = uploadedBy;
2248
- }
2249
- if (size !== void 0) {
2250
- localVarQueryParameter["size"] = size;
2251
- }
2252
- if (page !== void 0) {
2253
- localVarQueryParameter["page"] = page;
2254
- }
2255
- if (labelSelector) {
2256
- localVarQueryParameter["labelSelector"] = labelSelector;
2257
- }
2258
- if (fieldSelector) {
2259
- localVarQueryParameter["fieldSelector"] = fieldSelector;
2260
- }
2261
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2262
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2263
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2264
- return {
2265
- url: toPathString(localVarUrlObj),
2266
- options: localVarRequestOptions
2267
- };
2268
- },
2269
- updatestorageHaloRunV1alpha1Attachment: async (name, attachment, options = {}) => {
2270
- assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name);
2271
- const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2272
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2273
- let baseOptions;
2274
- if (configuration) {
2275
- baseOptions = configuration.baseOptions;
2276
- }
2277
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
2278
- const localVarHeaderParameter = {};
2279
- const localVarQueryParameter = {};
2280
- setBasicAuthToObject(localVarRequestOptions, configuration);
2281
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2282
- localVarHeaderParameter["Content-Type"] = "application/json";
2283
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2284
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2285
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2286
- localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration);
2287
- return {
2288
- url: toPathString(localVarUrlObj),
2289
- options: localVarRequestOptions
2290
- };
2291
- },
2292
- uploadAttachment: async (file, policyName, groupName, options = {}) => {
2293
- assertParamExists("uploadAttachment", "file", file);
2294
- assertParamExists("uploadAttachment", "policyName", policyName);
2295
- const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
2296
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2297
- let baseOptions;
2298
- if (configuration) {
2299
- baseOptions = configuration.baseOptions;
2300
- }
2301
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2302
- const localVarHeaderParameter = {};
2303
- const localVarQueryParameter = {};
2304
- const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
2305
- setBasicAuthToObject(localVarRequestOptions, configuration);
2306
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2307
- if (file !== void 0) {
2308
- localVarFormParams.append("file", file);
2309
- }
2310
- if (policyName !== void 0) {
2311
- localVarFormParams.append("policyName", policyName);
2312
- }
2313
- if (groupName !== void 0) {
2314
- localVarFormParams.append("groupName", groupName);
2315
- }
2316
- localVarHeaderParameter["Content-Type"] = "multipart/form-data";
2317
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2318
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2319
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2320
- localVarRequestOptions.data = localVarFormParams;
2321
- return {
2322
- url: toPathString(localVarUrlObj),
2323
- options: localVarRequestOptions
2324
- };
2325
- }
2326
- };
2327
- };
2328
- const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
2329
- const localVarAxiosParamCreator = StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
2330
- return {
2331
- async createstorageHaloRunV1alpha1Attachment(attachment, options) {
2332
- const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Attachment(attachment, options);
2333
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2334
- },
2335
- async deletestorageHaloRunV1alpha1Attachment(name, options) {
2336
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Attachment(name, options);
2337
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2338
- },
2339
- async getstorageHaloRunV1alpha1Attachment(name, options) {
2340
- const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Attachment(name, options);
2341
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2342
- },
2343
- async liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
2344
- const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
2345
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2346
- },
2347
- async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2348
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
2349
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2350
- },
2351
- async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
2352
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(name, attachment, options);
2353
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2354
- },
2355
- async uploadAttachment(file, policyName, groupName, options) {
2356
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options);
2357
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2358
- }
2359
- };
2360
- };
2361
- const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
2362
- const localVarFp = StorageHaloRunV1alpha1AttachmentApiFp(configuration);
2363
- return {
2364
- createstorageHaloRunV1alpha1Attachment(attachment, options) {
2365
- return localVarFp.createstorageHaloRunV1alpha1Attachment(attachment, options).then((request) => request(axios, basePath));
2366
- },
2367
- deletestorageHaloRunV1alpha1Attachment(name, options) {
2368
- return localVarFp.deletestorageHaloRunV1alpha1Attachment(name, options).then((request) => request(axios, basePath));
2369
- },
2370
- getstorageHaloRunV1alpha1Attachment(name, options) {
2371
- return localVarFp.getstorageHaloRunV1alpha1Attachment(name, options).then((request) => request(axios, basePath));
2372
- },
2373
- liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
2374
- return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2375
- },
2376
- searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2377
- return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2378
- },
2379
- updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
2380
- return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
2381
- },
2382
- uploadAttachment(file, policyName, groupName, options) {
2383
- return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
2384
- }
2385
- };
2386
- };
2387
- class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
2388
- createstorageHaloRunV1alpha1Attachment(requestParameters = {}, options) {
2389
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).createstorageHaloRunV1alpha1Attachment(requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
2390
- }
2391
- deletestorageHaloRunV1alpha1Attachment(requestParameters, options) {
2392
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2393
- }
2394
- getstorageHaloRunV1alpha1Attachment(requestParameters, options) {
2395
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).getstorageHaloRunV1alpha1Attachment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2396
- }
2397
- liststorageHaloRunV1alpha1Attachment(requestParameters = {}, options) {
2398
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2399
- }
2400
- searchAttachments(requestParameters = {}, options) {
2401
- return StorageHaloRunV1alpha1AttachmentApiFp(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));
2402
- }
2403
- updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
2404
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
2405
- }
2406
- uploadAttachment(requestParameters, options) {
2407
- return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
2408
- }
2409
- }
2410
-
2411
- const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function(configuration) {
2412
- return {
2413
- createstorageHaloRunV1alpha1Group: async (group, options = {}) => {
2414
- const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
2415
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2416
- let baseOptions;
2417
- if (configuration) {
2418
- baseOptions = configuration.baseOptions;
2419
- }
2420
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2421
- const localVarHeaderParameter = {};
2422
- const localVarQueryParameter = {};
2423
- setBasicAuthToObject(localVarRequestOptions, configuration);
2424
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2425
- localVarHeaderParameter["Content-Type"] = "application/json";
2426
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2427
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2428
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2429
- localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration);
2430
- return {
2431
- url: toPathString(localVarUrlObj),
2432
- options: localVarRequestOptions
2433
- };
2434
- },
2435
- deletestorageHaloRunV1alpha1Group: async (name, options = {}) => {
2436
- assertParamExists("deletestorageHaloRunV1alpha1Group", "name", name);
2437
- const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2438
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2439
- let baseOptions;
2440
- if (configuration) {
2441
- baseOptions = configuration.baseOptions;
2442
- }
2443
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
2444
- const localVarHeaderParameter = {};
2445
- const localVarQueryParameter = {};
2446
- setBasicAuthToObject(localVarRequestOptions, configuration);
2447
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2448
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2449
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2450
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2451
- return {
2452
- url: toPathString(localVarUrlObj),
2453
- options: localVarRequestOptions
2454
- };
2455
- },
2456
- getstorageHaloRunV1alpha1Group: async (name, options = {}) => {
2457
- assertParamExists("getstorageHaloRunV1alpha1Group", "name", name);
2458
- const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2459
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2460
- let baseOptions;
2461
- if (configuration) {
2462
- baseOptions = configuration.baseOptions;
2463
- }
2464
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2465
- const localVarHeaderParameter = {};
2466
- const localVarQueryParameter = {};
2467
- setBasicAuthToObject(localVarRequestOptions, configuration);
2468
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2469
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2470
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2472
- return {
2473
- url: toPathString(localVarUrlObj),
2474
- options: localVarRequestOptions
2475
- };
2476
- },
2477
- liststorageHaloRunV1alpha1Group: async (page, size, labelSelector, fieldSelector, options = {}) => {
2478
- const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
2479
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2480
- let baseOptions;
2481
- if (configuration) {
2482
- baseOptions = configuration.baseOptions;
2483
- }
2484
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2485
- const localVarHeaderParameter = {};
2486
- const localVarQueryParameter = {};
2487
- setBasicAuthToObject(localVarRequestOptions, configuration);
2488
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2489
- if (page !== void 0) {
2490
- localVarQueryParameter["page"] = page;
2491
- }
2492
- if (size !== void 0) {
2493
- localVarQueryParameter["size"] = size;
2494
- }
2495
- if (labelSelector) {
2496
- localVarQueryParameter["labelSelector"] = labelSelector;
2497
- }
2498
- if (fieldSelector) {
2499
- localVarQueryParameter["fieldSelector"] = fieldSelector;
2500
- }
2501
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2502
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2503
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2504
- return {
2505
- url: toPathString(localVarUrlObj),
2506
- options: localVarRequestOptions
2507
- };
2508
- },
2509
- updatestorageHaloRunV1alpha1Group: async (name, group, options = {}) => {
2510
- assertParamExists("updatestorageHaloRunV1alpha1Group", "name", name);
2511
- const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2512
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2513
- let baseOptions;
2514
- if (configuration) {
2515
- baseOptions = configuration.baseOptions;
2516
- }
2517
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
2518
- const localVarHeaderParameter = {};
2519
- const localVarQueryParameter = {};
2520
- setBasicAuthToObject(localVarRequestOptions, configuration);
2521
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2522
- localVarHeaderParameter["Content-Type"] = "application/json";
2523
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2524
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2525
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2526
- localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration);
2527
- return {
2528
- url: toPathString(localVarUrlObj),
2529
- options: localVarRequestOptions
2530
- };
2531
- }
2532
- };
2533
- };
2534
- const StorageHaloRunV1alpha1GroupApiFp = function(configuration) {
2535
- const localVarAxiosParamCreator = StorageHaloRunV1alpha1GroupApiAxiosParamCreator(configuration);
2536
- return {
2537
- async createstorageHaloRunV1alpha1Group(group, options) {
2538
- const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Group(group, options);
2539
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2540
- },
2541
- async deletestorageHaloRunV1alpha1Group(name, options) {
2542
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Group(name, options);
2543
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2544
- },
2545
- async getstorageHaloRunV1alpha1Group(name, options) {
2546
- const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Group(name, options);
2547
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2548
- },
2549
- async liststorageHaloRunV1alpha1Group(page, size, labelSelector, fieldSelector, options) {
2550
- const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group(page, size, labelSelector, fieldSelector, options);
2551
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2552
- },
2553
- async updatestorageHaloRunV1alpha1Group(name, group, options) {
2554
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Group(name, group, options);
2555
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2556
- }
2557
- };
2558
- };
2559
- const StorageHaloRunV1alpha1GroupApiFactory = function(configuration, basePath, axios) {
2560
- const localVarFp = StorageHaloRunV1alpha1GroupApiFp(configuration);
2561
- return {
2562
- createstorageHaloRunV1alpha1Group(group, options) {
2563
- return localVarFp.createstorageHaloRunV1alpha1Group(group, options).then((request) => request(axios, basePath));
2564
- },
2565
- deletestorageHaloRunV1alpha1Group(name, options) {
2566
- return localVarFp.deletestorageHaloRunV1alpha1Group(name, options).then((request) => request(axios, basePath));
2567
- },
2568
- getstorageHaloRunV1alpha1Group(name, options) {
2569
- return localVarFp.getstorageHaloRunV1alpha1Group(name, options).then((request) => request(axios, basePath));
2570
- },
2571
- liststorageHaloRunV1alpha1Group(page, size, labelSelector, fieldSelector, options) {
2572
- return localVarFp.liststorageHaloRunV1alpha1Group(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2573
- },
2574
- updatestorageHaloRunV1alpha1Group(name, group, options) {
2575
- return localVarFp.updatestorageHaloRunV1alpha1Group(name, group, options).then((request) => request(axios, basePath));
2576
- }
2577
- };
2578
- };
2579
- class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
2580
- createstorageHaloRunV1alpha1Group(requestParameters = {}, options) {
2581
- return StorageHaloRunV1alpha1GroupApiFp(this.configuration).createstorageHaloRunV1alpha1Group(requestParameters.group, options).then((request) => request(this.axios, this.basePath));
2582
- }
2583
- deletestorageHaloRunV1alpha1Group(requestParameters, options) {
2584
- return StorageHaloRunV1alpha1GroupApiFp(this.configuration).deletestorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2585
- }
2586
- getstorageHaloRunV1alpha1Group(requestParameters, options) {
2587
- return StorageHaloRunV1alpha1GroupApiFp(this.configuration).getstorageHaloRunV1alpha1Group(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2588
- }
2589
- liststorageHaloRunV1alpha1Group(requestParameters = {}, options) {
2590
- return StorageHaloRunV1alpha1GroupApiFp(this.configuration).liststorageHaloRunV1alpha1Group(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2591
- }
2592
- updatestorageHaloRunV1alpha1Group(requestParameters, options) {
2593
- return StorageHaloRunV1alpha1GroupApiFp(this.configuration).updatestorageHaloRunV1alpha1Group(requestParameters.name, requestParameters.group, options).then((request) => request(this.axios, this.basePath));
2594
- }
2595
- }
2596
-
2597
- const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function(configuration) {
2598
- return {
2599
- createstorageHaloRunV1alpha1Policy: async (policy, options = {}) => {
2600
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
2601
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2602
- let baseOptions;
2603
- if (configuration) {
2604
- baseOptions = configuration.baseOptions;
2605
- }
2606
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2607
- const localVarHeaderParameter = {};
2608
- const localVarQueryParameter = {};
2609
- setBasicAuthToObject(localVarRequestOptions, configuration);
2610
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2611
- localVarHeaderParameter["Content-Type"] = "application/json";
2612
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2613
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2614
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2615
- localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration);
2616
- return {
2617
- url: toPathString(localVarUrlObj),
2618
- options: localVarRequestOptions
2619
- };
2620
- },
2621
- deletestorageHaloRunV1alpha1Policy: async (name, options = {}) => {
2622
- assertParamExists("deletestorageHaloRunV1alpha1Policy", "name", name);
2623
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2624
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2625
- let baseOptions;
2626
- if (configuration) {
2627
- baseOptions = configuration.baseOptions;
2628
- }
2629
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
2630
- const localVarHeaderParameter = {};
2631
- const localVarQueryParameter = {};
2632
- setBasicAuthToObject(localVarRequestOptions, configuration);
2633
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2634
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2635
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2636
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2637
- return {
2638
- url: toPathString(localVarUrlObj),
2639
- options: localVarRequestOptions
2640
- };
2641
- },
2642
- getstorageHaloRunV1alpha1Policy: async (name, options = {}) => {
2643
- assertParamExists("getstorageHaloRunV1alpha1Policy", "name", name);
2644
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2645
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2646
- let baseOptions;
2647
- if (configuration) {
2648
- baseOptions = configuration.baseOptions;
2649
- }
2650
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2651
- const localVarHeaderParameter = {};
2652
- const localVarQueryParameter = {};
2653
- setBasicAuthToObject(localVarRequestOptions, configuration);
2654
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2655
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2656
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2657
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2658
- return {
2659
- url: toPathString(localVarUrlObj),
2660
- options: localVarRequestOptions
2661
- };
2662
- },
2663
- liststorageHaloRunV1alpha1Policy: async (page, size, labelSelector, fieldSelector, options = {}) => {
2664
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
2665
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2666
- let baseOptions;
2667
- if (configuration) {
2668
- baseOptions = configuration.baseOptions;
2669
- }
2670
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2671
- const localVarHeaderParameter = {};
2672
- const localVarQueryParameter = {};
2673
- setBasicAuthToObject(localVarRequestOptions, configuration);
2674
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2675
- if (page !== void 0) {
2676
- localVarQueryParameter["page"] = page;
2677
- }
2678
- if (size !== void 0) {
2679
- localVarQueryParameter["size"] = size;
2680
- }
2681
- if (labelSelector) {
2682
- localVarQueryParameter["labelSelector"] = labelSelector;
2683
- }
2684
- if (fieldSelector) {
2685
- localVarQueryParameter["fieldSelector"] = fieldSelector;
2686
- }
2687
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2688
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2689
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2690
- return {
2691
- url: toPathString(localVarUrlObj),
2692
- options: localVarRequestOptions
2693
- };
2694
- },
2695
- updatestorageHaloRunV1alpha1Policy: async (name, policy, options = {}) => {
2696
- assertParamExists("updatestorageHaloRunV1alpha1Policy", "name", name);
2697
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2698
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2699
- let baseOptions;
2700
- if (configuration) {
2701
- baseOptions = configuration.baseOptions;
2702
- }
2703
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
2704
- const localVarHeaderParameter = {};
2705
- const localVarQueryParameter = {};
2706
- setBasicAuthToObject(localVarRequestOptions, configuration);
2707
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2708
- localVarHeaderParameter["Content-Type"] = "application/json";
2709
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2710
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2711
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2712
- localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration);
2713
- return {
2714
- url: toPathString(localVarUrlObj),
2715
- options: localVarRequestOptions
2716
- };
2717
- }
2718
- };
2719
- };
2720
- const StorageHaloRunV1alpha1PolicyApiFp = function(configuration) {
2721
- const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyApiAxiosParamCreator(configuration);
2722
- return {
2723
- async createstorageHaloRunV1alpha1Policy(policy, options) {
2724
- const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Policy(policy, options);
2725
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2726
- },
2727
- async deletestorageHaloRunV1alpha1Policy(name, options) {
2728
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Policy(name, options);
2729
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2730
- },
2731
- async getstorageHaloRunV1alpha1Policy(name, options) {
2732
- const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Policy(name, options);
2733
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2734
- },
2735
- async liststorageHaloRunV1alpha1Policy(page, size, labelSelector, fieldSelector, options) {
2736
- const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy(page, size, labelSelector, fieldSelector, options);
2737
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2738
- },
2739
- async updatestorageHaloRunV1alpha1Policy(name, policy, options) {
2740
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Policy(name, policy, options);
2741
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2742
- }
2743
- };
2744
- };
2745
- const StorageHaloRunV1alpha1PolicyApiFactory = function(configuration, basePath, axios) {
2746
- const localVarFp = StorageHaloRunV1alpha1PolicyApiFp(configuration);
2747
- return {
2748
- createstorageHaloRunV1alpha1Policy(policy, options) {
2749
- return localVarFp.createstorageHaloRunV1alpha1Policy(policy, options).then((request) => request(axios, basePath));
2750
- },
2751
- deletestorageHaloRunV1alpha1Policy(name, options) {
2752
- return localVarFp.deletestorageHaloRunV1alpha1Policy(name, options).then((request) => request(axios, basePath));
2753
- },
2754
- getstorageHaloRunV1alpha1Policy(name, options) {
2755
- return localVarFp.getstorageHaloRunV1alpha1Policy(name, options).then((request) => request(axios, basePath));
2756
- },
2757
- liststorageHaloRunV1alpha1Policy(page, size, labelSelector, fieldSelector, options) {
2758
- return localVarFp.liststorageHaloRunV1alpha1Policy(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2759
- },
2760
- updatestorageHaloRunV1alpha1Policy(name, policy, options) {
2761
- return localVarFp.updatestorageHaloRunV1alpha1Policy(name, policy, options).then((request) => request(axios, basePath));
2762
- }
2763
- };
2764
- };
2765
- class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
2766
- createstorageHaloRunV1alpha1Policy(requestParameters = {}, options) {
2767
- return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).createstorageHaloRunV1alpha1Policy(requestParameters.policy, options).then((request) => request(this.axios, this.basePath));
2768
- }
2769
- deletestorageHaloRunV1alpha1Policy(requestParameters, options) {
2770
- return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).deletestorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2771
- }
2772
- getstorageHaloRunV1alpha1Policy(requestParameters, options) {
2773
- return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).getstorageHaloRunV1alpha1Policy(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2774
- }
2775
- liststorageHaloRunV1alpha1Policy(requestParameters = {}, options) {
2776
- return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).liststorageHaloRunV1alpha1Policy(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2777
- }
2778
- updatestorageHaloRunV1alpha1Policy(requestParameters, options) {
2779
- return StorageHaloRunV1alpha1PolicyApiFp(this.configuration).updatestorageHaloRunV1alpha1Policy(requestParameters.name, requestParameters.policy, options).then((request) => request(this.axios, this.basePath));
2780
- }
2781
- }
2782
-
2783
- const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator = function(configuration) {
2784
- return {
2785
- createstorageHaloRunV1alpha1PolicyTemplate: async (policyTemplate, options = {}) => {
2786
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
2787
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2788
- let baseOptions;
2789
- if (configuration) {
2790
- baseOptions = configuration.baseOptions;
2791
- }
2792
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2793
- const localVarHeaderParameter = {};
2794
- const localVarQueryParameter = {};
2795
- setBasicAuthToObject(localVarRequestOptions, configuration);
2796
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2797
- localVarHeaderParameter["Content-Type"] = "application/json";
2798
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2799
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2800
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2801
- localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration);
2802
- return {
2803
- url: toPathString(localVarUrlObj),
2804
- options: localVarRequestOptions
2805
- };
2806
- },
2807
- deletestorageHaloRunV1alpha1PolicyTemplate: async (name, options = {}) => {
2808
- assertParamExists("deletestorageHaloRunV1alpha1PolicyTemplate", "name", name);
2809
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2810
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2811
- let baseOptions;
2812
- if (configuration) {
2813
- baseOptions = configuration.baseOptions;
2814
- }
2815
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
2816
- const localVarHeaderParameter = {};
2817
- const localVarQueryParameter = {};
2818
- setBasicAuthToObject(localVarRequestOptions, configuration);
2819
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2820
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2821
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2822
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2823
- return {
2824
- url: toPathString(localVarUrlObj),
2825
- options: localVarRequestOptions
2826
- };
2827
- },
2828
- getstorageHaloRunV1alpha1PolicyTemplate: async (name, options = {}) => {
2829
- assertParamExists("getstorageHaloRunV1alpha1PolicyTemplate", "name", name);
2830
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2831
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2832
- let baseOptions;
2833
- if (configuration) {
2834
- baseOptions = configuration.baseOptions;
2835
- }
2836
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2837
- const localVarHeaderParameter = {};
2838
- const localVarQueryParameter = {};
2839
- setBasicAuthToObject(localVarRequestOptions, configuration);
2840
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2841
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2842
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2843
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2844
- return {
2845
- url: toPathString(localVarUrlObj),
2846
- options: localVarRequestOptions
2847
- };
2848
- },
2849
- liststorageHaloRunV1alpha1PolicyTemplate: async (page, size, labelSelector, fieldSelector, options = {}) => {
2850
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
2851
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2852
- let baseOptions;
2853
- if (configuration) {
2854
- baseOptions = configuration.baseOptions;
2855
- }
2856
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2857
- const localVarHeaderParameter = {};
2858
- const localVarQueryParameter = {};
2859
- setBasicAuthToObject(localVarRequestOptions, configuration);
2860
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2861
- if (page !== void 0) {
2862
- localVarQueryParameter["page"] = page;
2863
- }
2864
- if (size !== void 0) {
2865
- localVarQueryParameter["size"] = size;
2866
- }
2867
- if (labelSelector) {
2868
- localVarQueryParameter["labelSelector"] = labelSelector;
2869
- }
2870
- if (fieldSelector) {
2871
- localVarQueryParameter["fieldSelector"] = fieldSelector;
2872
- }
2873
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2874
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2875
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2876
- return {
2877
- url: toPathString(localVarUrlObj),
2878
- options: localVarRequestOptions
2879
- };
2880
- },
2881
- updatestorageHaloRunV1alpha1PolicyTemplate: async (name, policyTemplate, options = {}) => {
2882
- assertParamExists("updatestorageHaloRunV1alpha1PolicyTemplate", "name", name);
2883
- const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
2884
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2885
- let baseOptions;
2886
- if (configuration) {
2887
- baseOptions = configuration.baseOptions;
2888
- }
2889
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
2890
- const localVarHeaderParameter = {};
2891
- const localVarQueryParameter = {};
2892
- setBasicAuthToObject(localVarRequestOptions, configuration);
2893
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
2894
- localVarHeaderParameter["Content-Type"] = "application/json";
2895
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2896
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2897
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2898
- localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration);
2899
- return {
2900
- url: toPathString(localVarUrlObj),
2901
- options: localVarRequestOptions
2902
- };
2903
- }
2904
- };
2905
- };
2906
- const StorageHaloRunV1alpha1PolicyTemplateApiFp = function(configuration) {
2907
- const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator(configuration);
2908
- return {
2909
- async createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate, options) {
2910
- const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate, options);
2911
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2912
- },
2913
- async deletestorageHaloRunV1alpha1PolicyTemplate(name, options) {
2914
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1PolicyTemplate(name, options);
2915
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2916
- },
2917
- async getstorageHaloRunV1alpha1PolicyTemplate(name, options) {
2918
- const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1PolicyTemplate(name, options);
2919
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2920
- },
2921
- async liststorageHaloRunV1alpha1PolicyTemplate(page, size, labelSelector, fieldSelector, options) {
2922
- const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate(page, size, labelSelector, fieldSelector, options);
2923
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2924
- },
2925
- async updatestorageHaloRunV1alpha1PolicyTemplate(name, policyTemplate, options) {
2926
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1PolicyTemplate(name, policyTemplate, options);
2927
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2928
- }
2929
- };
2930
- };
2931
- const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function(configuration, basePath, axios) {
2932
- const localVarFp = StorageHaloRunV1alpha1PolicyTemplateApiFp(configuration);
2933
- return {
2934
- createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate, options) {
2935
- return localVarFp.createstorageHaloRunV1alpha1PolicyTemplate(policyTemplate, options).then((request) => request(axios, basePath));
2936
- },
2937
- deletestorageHaloRunV1alpha1PolicyTemplate(name, options) {
2938
- return localVarFp.deletestorageHaloRunV1alpha1PolicyTemplate(name, options).then((request) => request(axios, basePath));
2939
- },
2940
- getstorageHaloRunV1alpha1PolicyTemplate(name, options) {
2941
- return localVarFp.getstorageHaloRunV1alpha1PolicyTemplate(name, options).then((request) => request(axios, basePath));
2942
- },
2943
- liststorageHaloRunV1alpha1PolicyTemplate(page, size, labelSelector, fieldSelector, options) {
2944
- return localVarFp.liststorageHaloRunV1alpha1PolicyTemplate(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2945
- },
2946
- updatestorageHaloRunV1alpha1PolicyTemplate(name, policyTemplate, options) {
2947
- return localVarFp.updatestorageHaloRunV1alpha1PolicyTemplate(name, policyTemplate, options).then((request) => request(axios, basePath));
2948
- }
2949
- };
2950
- };
2951
- class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
2952
- createstorageHaloRunV1alpha1PolicyTemplate(requestParameters = {}, options) {
2953
- return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).createstorageHaloRunV1alpha1PolicyTemplate(requestParameters.policyTemplate, options).then((request) => request(this.axios, this.basePath));
2954
- }
2955
- deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters, options) {
2956
- return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2957
- }
2958
- getstorageHaloRunV1alpha1PolicyTemplate(requestParameters, options) {
2959
- return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
2960
- }
2961
- liststorageHaloRunV1alpha1PolicyTemplate(requestParameters = {}, options) {
2962
- return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).liststorageHaloRunV1alpha1PolicyTemplate(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2963
- }
2964
- updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters, options) {
2965
- return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration).updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, requestParameters.policyTemplate, options).then((request) => request(this.axios, this.basePath));
2966
- }
2967
- }
2968
-
2969
2127
  const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
2970
2128
  return {
2971
2129
  createthemeHaloRunV1alpha1Theme: async (theme, options = {}) => {
@@ -4677,4 +3835,4 @@ const PostSpecVisibleEnum = {
4677
3835
  Private: "PRIVATE"
4678
3836
  };
4679
3837
 
4680
- export { ApiHaloRunV1alpha1ContentApi, ApiHaloRunV1alpha1ContentApiAxiosParamCreator, ApiHaloRunV1alpha1ContentApiFactory, ApiHaloRunV1alpha1ContentApiFp, ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, 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 };
3838
+ export { ApiHaloRunV1alpha1ContentApi, ApiHaloRunV1alpha1ContentApiAxiosParamCreator, ApiHaloRunV1alpha1ContentApiFactory, ApiHaloRunV1alpha1ContentApiFp, ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, 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 };