chore: solving the issue of generating API client causing unnecessary diffs (#3465)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 为 springdoc 添加 `writer-with-order-by-keys` 参数以固定 OpenAPI 中接口的参数顺序,防止重新生成 `api-client` 时因为参数顺序不同而造成不必要的 diff。 #### Special notes for your reviewer: 测试方式: 1. 反复执行 `make -C console api-client-gen` 2. 观察是否有产生 diff #### Does this PR introduce a user-facing change? ```release-note None ```
This commit is contained in:
parent
16a83b9e0e
commit
bc186a4225
|
@ -19,5 +19,8 @@ test: build-packages ## Test console
|
|||
dev: build-packages ## Run console with development environment
|
||||
pnpm dev
|
||||
|
||||
api-client-gen: install ## Generate API client
|
||||
pnpm api-client:gen
|
||||
|
||||
help: ## print this help
|
||||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"build": "vue-tsc --noEmit && vite build",
|
||||
"build:packages": "pnpm --filter \"./packages/**\" build",
|
||||
"preview": "vite preview --port 5050",
|
||||
"api-client:gen": "pnpm --filter \"./packages/api-client\" gen",
|
||||
"test:unit": "vitest --environment jsdom --run && pnpm run test:unit:packages",
|
||||
"test:unit:watch": "vitest --environment jsdom --watch",
|
||||
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
||||
|
|
|
@ -1,14 +1,3 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/no-explicit-any': ['off'],
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
},
|
||||
}
|
||||
extends: ["../../.eslintrc.cjs"],
|
||||
};
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
module.exports = {
|
||||
printWidth: 120,
|
||||
semi: false,
|
||||
trailingComma: 'all',
|
||||
singleQuote: true,
|
||||
}
|
||||
plugins: ["../../prettier.config.js"],
|
||||
};
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { defineBuildConfig } from 'unbuild'
|
||||
import { defineBuildConfig } from "unbuild";
|
||||
|
||||
export default defineBuildConfig({
|
||||
entries: ['src/index'],
|
||||
entries: ["src/index"],
|
||||
declaration: true,
|
||||
clean: true,
|
||||
rollup: {
|
||||
emitCJS: true,
|
||||
},
|
||||
externals: ['axios'],
|
||||
})
|
||||
externals: ["axios"],
|
||||
});
|
||||
|
|
|
@ -44,14 +44,8 @@
|
|||
"devDependencies": {
|
||||
"@openapitools/openapi-generator-cli": "^2.5.2",
|
||||
"@types/node": "^18.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
||||
"@typescript-eslint/parser": "^5.52.0",
|
||||
"axios": "^0.27.2",
|
||||
"bumpp": "^8.2.1",
|
||||
"eslint": "^8.34.0",
|
||||
"eslint-config-prettier": "^8.6.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"prettier": "^2.8.4",
|
||||
"typescript": "^4.9.5",
|
||||
"unbuild": "^0.7.6",
|
||||
"vitest": "^0.18.1"
|
||||
|
|
|
@ -62,6 +62,8 @@ models/comment-list.ts
|
|||
models/comment-owner.ts
|
||||
models/comment-request.ts
|
||||
models/comment-spec.ts
|
||||
models/comment-stats-vo.ts
|
||||
models/comment-stats.ts
|
||||
models/comment-status.ts
|
||||
models/comment-vo-list.ts
|
||||
models/comment-vo.ts
|
||||
|
|
|
@ -12,41 +12,41 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export * from './api/api-console-halo-run-v1alpha1-attachment-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-comment-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-indices-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-plugin-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-post-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-reply-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-single-page-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-stats-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-theme-api'
|
||||
export * from './api/api-console-halo-run-v1alpha1-user-api'
|
||||
export * from './api/api-halo-run-v1alpha1-comment-api'
|
||||
export * from './api/api-halo-run-v1alpha1-post-api'
|
||||
export * from './api/api-halo-run-v1alpha1-tracker-api'
|
||||
export * from './api/content-halo-run-v1alpha1-category-api'
|
||||
export * from './api/content-halo-run-v1alpha1-comment-api'
|
||||
export * from './api/content-halo-run-v1alpha1-post-api'
|
||||
export * from './api/content-halo-run-v1alpha1-reply-api'
|
||||
export * from './api/content-halo-run-v1alpha1-single-page-api'
|
||||
export * from './api/content-halo-run-v1alpha1-snapshot-api'
|
||||
export * from './api/content-halo-run-v1alpha1-tag-api'
|
||||
export * from './api/metrics-halo-run-v1alpha1-counter-api'
|
||||
export * from './api/plugin-halo-run-v1alpha1-plugin-api'
|
||||
export * from './api/plugin-halo-run-v1alpha1-reverse-proxy-api'
|
||||
export * from './api/plugin-halo-run-v1alpha1-search-engine-api'
|
||||
export * from './api/storage-halo-run-v1alpha1-attachment-api'
|
||||
export * from './api/storage-halo-run-v1alpha1-group-api'
|
||||
export * from './api/storage-halo-run-v1alpha1-policy-api'
|
||||
export * from './api/storage-halo-run-v1alpha1-policy-template-api'
|
||||
export * from './api/theme-halo-run-v1alpha1-theme-api'
|
||||
export * from './api/v1alpha1-annotation-setting-api'
|
||||
export * from './api/v1alpha1-config-map-api'
|
||||
export * from './api/v1alpha1-menu-api'
|
||||
export * from './api/v1alpha1-menu-item-api'
|
||||
export * from './api/v1alpha1-personal-access-token-api'
|
||||
export * from './api/v1alpha1-role-api'
|
||||
export * from './api/v1alpha1-role-binding-api'
|
||||
export * from './api/v1alpha1-setting-api'
|
||||
export * from './api/v1alpha1-user-api'
|
||||
export * from "./api/api-console-halo-run-v1alpha1-attachment-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-comment-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-indices-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-plugin-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-post-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-reply-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-single-page-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-stats-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-theme-api";
|
||||
export * from "./api/api-console-halo-run-v1alpha1-user-api";
|
||||
export * from "./api/api-halo-run-v1alpha1-comment-api";
|
||||
export * from "./api/api-halo-run-v1alpha1-post-api";
|
||||
export * from "./api/api-halo-run-v1alpha1-tracker-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-category-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-comment-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-post-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-reply-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-single-page-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-snapshot-api";
|
||||
export * from "./api/content-halo-run-v1alpha1-tag-api";
|
||||
export * from "./api/metrics-halo-run-v1alpha1-counter-api";
|
||||
export * from "./api/plugin-halo-run-v1alpha1-plugin-api";
|
||||
export * from "./api/plugin-halo-run-v1alpha1-reverse-proxy-api";
|
||||
export * from "./api/plugin-halo-run-v1alpha1-search-engine-api";
|
||||
export * from "./api/storage-halo-run-v1alpha1-attachment-api";
|
||||
export * from "./api/storage-halo-run-v1alpha1-group-api";
|
||||
export * from "./api/storage-halo-run-v1alpha1-policy-api";
|
||||
export * from "./api/storage-halo-run-v1alpha1-policy-template-api";
|
||||
export * from "./api/theme-halo-run-v1alpha1-theme-api";
|
||||
export * from "./api/v1alpha1-annotation-setting-api";
|
||||
export * from "./api/v1alpha1-config-map-api";
|
||||
export * from "./api/v1alpha1-menu-api";
|
||||
export * from "./api/v1alpha1-menu-item-api";
|
||||
export * from "./api/v1alpha1-personal-access-token-api";
|
||||
export * from "./api/v1alpha1-role-api";
|
||||
export * from "./api/v1alpha1-role-binding-api";
|
||||
export * from "./api/v1alpha1-setting-api";
|
||||
export * from "./api/v1alpha1-user-api";
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,188 +28,218 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Attachment } from '../models'
|
||||
import { Attachment } from "../models";
|
||||
// @ts-ignore
|
||||
import { AttachmentList } from '../models'
|
||||
import { AttachmentList } from "../models";
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1AttachmentApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {string} [policy] Name of policy
|
||||
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
||||
* @param {string} [displayName] Display name of attachment
|
||||
* @param {string} [group] Name of group
|
||||
* @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
|
||||
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
searchAttachments: async (
|
||||
policy?: string,
|
||||
sort?: Array<string>,
|
||||
displayName?: string,
|
||||
group?: string,
|
||||
ungrouped?: boolean,
|
||||
uploadedBy?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator =
|
||||
function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @param {string} [policy] Name of policy
|
||||
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
||||
* @param {string} [displayName] Display name of attachment
|
||||
* @param {string} [group] Name of group
|
||||
* @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
|
||||
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
searchAttachments: async (
|
||||
policy?: string,
|
||||
sort?: Array<string>,
|
||||
displayName?: string,
|
||||
group?: string,
|
||||
ungrouped?: boolean,
|
||||
uploadedBy?: string,
|
||||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
page?: number,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (policy !== undefined) {
|
||||
localVarQueryParameter['policy'] = policy
|
||||
}
|
||||
if (policy !== undefined) {
|
||||
localVarQueryParameter["policy"] = policy;
|
||||
}
|
||||
|
||||
if (sort) {
|
||||
localVarQueryParameter['sort'] = Array.from(sort)
|
||||
}
|
||||
if (sort) {
|
||||
localVarQueryParameter["sort"] = Array.from(sort);
|
||||
}
|
||||
|
||||
if (displayName !== undefined) {
|
||||
localVarQueryParameter['displayName'] = displayName
|
||||
}
|
||||
if (displayName !== undefined) {
|
||||
localVarQueryParameter["displayName"] = displayName;
|
||||
}
|
||||
|
||||
if (group !== undefined) {
|
||||
localVarQueryParameter['group'] = group
|
||||
}
|
||||
if (group !== undefined) {
|
||||
localVarQueryParameter["group"] = group;
|
||||
}
|
||||
|
||||
if (ungrouped !== undefined) {
|
||||
localVarQueryParameter['ungrouped'] = ungrouped
|
||||
}
|
||||
if (ungrouped !== undefined) {
|
||||
localVarQueryParameter["ungrouped"] = ungrouped;
|
||||
}
|
||||
|
||||
if (uploadedBy !== undefined) {
|
||||
localVarQueryParameter['uploadedBy'] = uploadedBy
|
||||
}
|
||||
if (uploadedBy !== undefined) {
|
||||
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
}
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
}
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
}
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
}
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {File} file
|
||||
* @param {string} policyName Storage policy name
|
||||
* @param {string} [groupName] The name of the group to which the attachment belongs
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadAttachment: async (
|
||||
file: File,
|
||||
policyName: string,
|
||||
groupName?: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'file' is not null or undefined
|
||||
assertParamExists('uploadAttachment', 'file', file)
|
||||
// verify required parameter 'policyName' is not null or undefined
|
||||
assertParamExists('uploadAttachment', 'policyName', policyName)
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @param {File} file
|
||||
* @param {string} policyName Storage policy name
|
||||
* @param {string} [groupName] The name of the group to which the attachment belongs
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
uploadAttachment: async (
|
||||
file: File,
|
||||
policyName: string,
|
||||
groupName?: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'file' is not null or undefined
|
||||
assertParamExists("uploadAttachment", "file", file);
|
||||
// verify required parameter 'policyName' is not null or undefined
|
||||
assertParamExists("uploadAttachment", "policyName", policyName);
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
const localVarFormParams = new ((configuration &&
|
||||
configuration.formDataCtor) ||
|
||||
FormData)();
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (file !== undefined) {
|
||||
localVarFormParams.append('file', file as any)
|
||||
}
|
||||
if (file !== undefined) {
|
||||
localVarFormParams.append("file", file as any);
|
||||
}
|
||||
|
||||
if (policyName !== undefined) {
|
||||
localVarFormParams.append('policyName', policyName as any)
|
||||
}
|
||||
if (groupName !== undefined) {
|
||||
localVarFormParams.append("groupName", groupName as any);
|
||||
}
|
||||
|
||||
if (groupName !== undefined) {
|
||||
localVarFormParams.append('groupName', groupName as any)
|
||||
}
|
||||
if (policyName !== undefined) {
|
||||
localVarFormParams.append("policyName", policyName as any);
|
||||
}
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data'
|
||||
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = localVarFormParams
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = localVarFormParams;
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1AttachmentApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration)
|
||||
export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
*
|
||||
|
@ -220,9 +250,9 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (configuration?
|
|||
* @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
|
||||
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
|
@ -234,25 +264,33 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (configuration?
|
|||
ungrouped?: boolean,
|
||||
uploadedBy?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(
|
||||
policy,
|
||||
sort,
|
||||
displayName,
|
||||
group,
|
||||
ungrouped,
|
||||
uploadedBy,
|
||||
size,
|
||||
page,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
page?: number,
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.searchAttachments(
|
||||
policy,
|
||||
sort,
|
||||
displayName,
|
||||
group,
|
||||
ungrouped,
|
||||
uploadedBy,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
page,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
*
|
||||
|
@ -266,13 +304,26 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (configuration?
|
|||
file: File,
|
||||
policyName: string,
|
||||
groupName?: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, groupName, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.uploadAttachment(
|
||||
file,
|
||||
policyName,
|
||||
groupName,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1AttachmentApi - factory interface
|
||||
|
@ -281,9 +332,9 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (configuration?
|
|||
export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration)
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
*
|
||||
|
@ -293,7 +344,7 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
searchAttachments(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AttachmentList> {
|
||||
return localVarFp
|
||||
.searchAttachments(
|
||||
|
@ -304,12 +355,12 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
requestParameters.ungrouped,
|
||||
requestParameters.uploadedBy,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
|
@ -319,14 +370,19 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
uploadAttachment(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Attachment> {
|
||||
return localVarFp
|
||||
.uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.uploadAttachment(
|
||||
requestParameters.file,
|
||||
requestParameters.policyName,
|
||||
requestParameters.groupName,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for searchAttachments operation in ApiConsoleHaloRunV1alpha1AttachmentApi.
|
||||
|
@ -339,70 +395,70 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest
|
|||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly policy?: string
|
||||
readonly policy?: string;
|
||||
|
||||
/**
|
||||
* Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly sort?: Array<string>
|
||||
readonly sort?: Array<string>;
|
||||
|
||||
/**
|
||||
* Display name of attachment
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly displayName?: string
|
||||
readonly displayName?: string;
|
||||
|
||||
/**
|
||||
* Name of group
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly group?: string
|
||||
readonly group?: string;
|
||||
|
||||
/**
|
||||
* Filter attachments without group. This parameter will ignore group parameter.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly ungrouped?: boolean
|
||||
readonly ungrouped?: boolean;
|
||||
|
||||
/**
|
||||
* Name of user who uploaded the attachment
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly uploadedBy?: string
|
||||
readonly uploadedBy?: string;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly size?: number
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
||||
*/
|
||||
readonly page?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -416,21 +472,21 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest {
|
|||
* @type {File}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment
|
||||
*/
|
||||
readonly file: File
|
||||
readonly file: File;
|
||||
|
||||
/**
|
||||
* Storage policy name
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment
|
||||
*/
|
||||
readonly policyName: string
|
||||
readonly policyName: string;
|
||||
|
||||
/**
|
||||
* The name of the group to which the attachment belongs
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachment
|
||||
*/
|
||||
readonly groupName?: string
|
||||
readonly groupName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -449,7 +505,7 @@ export class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public searchAttachments(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.searchAttachments(
|
||||
|
@ -460,12 +516,12 @@ export class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
requestParameters.ungrouped,
|
||||
requestParameters.uploadedBy,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -477,10 +533,15 @@ export class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public uploadAttachment(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1AttachmentApiUploadAttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.uploadAttachment(
|
||||
requestParameters.file,
|
||||
requestParameters.policyName,
|
||||
requestParameters.groupName,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,24 +28,32 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Comment } from '../models'
|
||||
import { Comment } from "../models";
|
||||
// @ts-ignore
|
||||
import { CommentRequest } from '../models'
|
||||
import { CommentRequest } from "../models";
|
||||
// @ts-ignore
|
||||
import { ListedCommentList } from '../models'
|
||||
import { ListedCommentList } from "../models";
|
||||
// @ts-ignore
|
||||
import { Reply } from '../models'
|
||||
import { Reply } from "../models";
|
||||
// @ts-ignore
|
||||
import { ReplyRequest } from '../models'
|
||||
import { ReplyRequest } from "../models";
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1CommentApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -53,40 +61,56 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (co
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createComment: async (commentRequest: CommentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
createComment: async (
|
||||
commentRequest: CommentRequest,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'commentRequest' is not null or undefined
|
||||
assertParamExists('createComment', 'commentRequest', commentRequest)
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`
|
||||
assertParamExists("createComment", "commentRequest", commentRequest);
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
commentRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -98,183 +122,209 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (co
|
|||
createReply: async (
|
||||
name: string,
|
||||
replyRequest: ReplyRequest,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('createReply', 'name', name)
|
||||
assertParamExists("createReply", "name", name);
|
||||
// verify required parameter 'replyRequest' is not null or undefined
|
||||
assertParamExists('createReply', 'replyRequest', replyRequest)
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("createReply", "replyRequest", replyRequest);
|
||||
const localVarPath =
|
||||
`/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
replyRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
|
||||
* @param {string} [keyword] Comments filtered by keyword.
|
||||
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
||||
* @param {boolean} [top] Comment top display.
|
||||
* @param {boolean} [approved] Comments approved.
|
||||
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
||||
* @param {boolean} [allowNotification] Send notifications when there are new replies.
|
||||
* @param {string} [ownerKind] Commenter kind.
|
||||
* @param {string} [ownerName] Commenter name.
|
||||
* @param {string} [subjectKind] Comment subject kind.
|
||||
* @param {string} [subjectName] Comment subject name.
|
||||
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
||||
* @param {string} [keyword] Comments filtered by keyword.
|
||||
* @param {boolean} [top] Comment top display.
|
||||
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
listComments: async (
|
||||
sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME',
|
||||
keyword?: string,
|
||||
hidden?: boolean,
|
||||
top?: boolean,
|
||||
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
|
||||
approved?: boolean,
|
||||
sortOrder?: boolean,
|
||||
allowNotification?: boolean,
|
||||
ownerKind?: string,
|
||||
ownerName?: string,
|
||||
subjectKind?: string,
|
||||
subjectName?: string,
|
||||
sortOrder?: boolean,
|
||||
keyword?: string,
|
||||
top?: boolean,
|
||||
hidden?: boolean,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
page?: number,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (sort !== undefined) {
|
||||
localVarQueryParameter['sort'] = sort
|
||||
}
|
||||
|
||||
if (keyword !== undefined) {
|
||||
localVarQueryParameter['keyword'] = keyword
|
||||
}
|
||||
|
||||
if (hidden !== undefined) {
|
||||
localVarQueryParameter['hidden'] = hidden
|
||||
}
|
||||
|
||||
if (top !== undefined) {
|
||||
localVarQueryParameter['top'] = top
|
||||
localVarQueryParameter["sort"] = sort;
|
||||
}
|
||||
|
||||
if (approved !== undefined) {
|
||||
localVarQueryParameter['approved'] = approved
|
||||
}
|
||||
|
||||
if (sortOrder !== undefined) {
|
||||
localVarQueryParameter['sortOrder'] = sortOrder
|
||||
localVarQueryParameter["approved"] = approved;
|
||||
}
|
||||
|
||||
if (allowNotification !== undefined) {
|
||||
localVarQueryParameter['allowNotification'] = allowNotification
|
||||
localVarQueryParameter["allowNotification"] = allowNotification;
|
||||
}
|
||||
|
||||
if (ownerKind !== undefined) {
|
||||
localVarQueryParameter['ownerKind'] = ownerKind
|
||||
localVarQueryParameter["ownerKind"] = ownerKind;
|
||||
}
|
||||
|
||||
if (ownerName !== undefined) {
|
||||
localVarQueryParameter['ownerName'] = ownerName
|
||||
localVarQueryParameter["ownerName"] = ownerName;
|
||||
}
|
||||
|
||||
if (subjectKind !== undefined) {
|
||||
localVarQueryParameter['subjectKind'] = subjectKind
|
||||
localVarQueryParameter["subjectKind"] = subjectKind;
|
||||
}
|
||||
|
||||
if (subjectName !== undefined) {
|
||||
localVarQueryParameter['subjectName'] = subjectName
|
||||
localVarQueryParameter["subjectName"] = subjectName;
|
||||
}
|
||||
|
||||
if (sortOrder !== undefined) {
|
||||
localVarQueryParameter["sortOrder"] = sortOrder;
|
||||
}
|
||||
|
||||
if (keyword !== undefined) {
|
||||
localVarQueryParameter["keyword"] = keyword;
|
||||
}
|
||||
|
||||
if (top !== undefined) {
|
||||
localVarQueryParameter["top"] = top;
|
||||
}
|
||||
|
||||
if (hidden !== undefined) {
|
||||
localVarQueryParameter["hidden"] = hidden;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1CommentApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration)
|
||||
export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -284,10 +334,20 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (configuration?: C
|
|||
*/
|
||||
async createComment(
|
||||
commentRequest: CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(
|
||||
commentRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -299,71 +359,92 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (configuration?: C
|
|||
async createReply(
|
||||
name: string,
|
||||
replyRequest: ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(
|
||||
name,
|
||||
replyRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
|
||||
* @param {string} [keyword] Comments filtered by keyword.
|
||||
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
||||
* @param {boolean} [top] Comment top display.
|
||||
* @param {boolean} [approved] Comments approved.
|
||||
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
||||
* @param {boolean} [allowNotification] Send notifications when there are new replies.
|
||||
* @param {string} [ownerKind] Commenter kind.
|
||||
* @param {string} [ownerName] Commenter name.
|
||||
* @param {string} [subjectKind] Comment subject kind.
|
||||
* @param {string} [subjectName] Comment subject name.
|
||||
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
||||
* @param {string} [keyword] Comments filtered by keyword.
|
||||
* @param {boolean} [top] Comment top display.
|
||||
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async listComments(
|
||||
sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME',
|
||||
keyword?: string,
|
||||
hidden?: boolean,
|
||||
top?: boolean,
|
||||
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
|
||||
approved?: boolean,
|
||||
sortOrder?: boolean,
|
||||
allowNotification?: boolean,
|
||||
ownerKind?: string,
|
||||
ownerName?: string,
|
||||
subjectKind?: string,
|
||||
subjectName?: string,
|
||||
sortOrder?: boolean,
|
||||
keyword?: string,
|
||||
top?: boolean,
|
||||
hidden?: boolean,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedCommentList>> {
|
||||
page?: number,
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<ListedCommentList>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
||||
sort,
|
||||
keyword,
|
||||
hidden,
|
||||
top,
|
||||
approved,
|
||||
sortOrder,
|
||||
allowNotification,
|
||||
ownerKind,
|
||||
ownerName,
|
||||
subjectKind,
|
||||
subjectName,
|
||||
sortOrder,
|
||||
keyword,
|
||||
top,
|
||||
hidden,
|
||||
size,
|
||||
page,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
page,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1CommentApi - factory interface
|
||||
|
@ -372,9 +453,9 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (configuration?: C
|
|||
export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration)
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -384,11 +465,11 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
createComment(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Comment> {
|
||||
return localVarFp
|
||||
.createComment(requestParameters.commentRequest, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -398,11 +479,15 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
createReply(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Reply> {
|
||||
return localVarFp
|
||||
.createReply(requestParameters.name, requestParameters.replyRequest, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createReply(
|
||||
requestParameters.name,
|
||||
requestParameters.replyRequest,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
|
@ -412,31 +497,31 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
listComments(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ListedCommentList> {
|
||||
return localVarFp
|
||||
.listComments(
|
||||
requestParameters.sort,
|
||||
requestParameters.keyword,
|
||||
requestParameters.hidden,
|
||||
requestParameters.top,
|
||||
requestParameters.approved,
|
||||
requestParameters.sortOrder,
|
||||
requestParameters.allowNotification,
|
||||
requestParameters.ownerKind,
|
||||
requestParameters.ownerName,
|
||||
requestParameters.subjectKind,
|
||||
requestParameters.subjectName,
|
||||
requestParameters.sortOrder,
|
||||
requestParameters.keyword,
|
||||
requestParameters.top,
|
||||
requestParameters.hidden,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createComment operation in ApiConsoleHaloRunV1alpha1CommentApi.
|
||||
|
@ -449,7 +534,7 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest {
|
|||
* @type {CommentRequest}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateComment
|
||||
*/
|
||||
readonly commentRequest: CommentRequest
|
||||
readonly commentRequest: CommentRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -463,14 +548,14 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest {
|
|||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {ReplyRequest}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiCreateReply
|
||||
*/
|
||||
readonly replyRequest: ReplyRequest
|
||||
readonly replyRequest: ReplyRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -484,105 +569,105 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
|
|||
* @type {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly sort?: 'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'
|
||||
|
||||
/**
|
||||
* Comments filtered by keyword.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly keyword?: string
|
||||
|
||||
/**
|
||||
* The comment is hidden from the theme side.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly hidden?: boolean
|
||||
|
||||
/**
|
||||
* Comment top display.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly top?: boolean
|
||||
readonly sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME";
|
||||
|
||||
/**
|
||||
* Comments approved.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly approved?: boolean
|
||||
|
||||
/**
|
||||
* ascending order If it is true; otherwise, it is in descending order.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly sortOrder?: boolean
|
||||
readonly approved?: boolean;
|
||||
|
||||
/**
|
||||
* Send notifications when there are new replies.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly allowNotification?: boolean
|
||||
readonly allowNotification?: boolean;
|
||||
|
||||
/**
|
||||
* Commenter kind.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly ownerKind?: string
|
||||
readonly ownerKind?: string;
|
||||
|
||||
/**
|
||||
* Commenter name.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly ownerName?: string
|
||||
readonly ownerName?: string;
|
||||
|
||||
/**
|
||||
* Comment subject kind.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly subjectKind?: string
|
||||
readonly subjectKind?: string;
|
||||
|
||||
/**
|
||||
* Comment subject name.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly subjectName?: string
|
||||
readonly subjectName?: string;
|
||||
|
||||
/**
|
||||
* ascending order If it is true; otherwise, it is in descending order.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly sortOrder?: boolean;
|
||||
|
||||
/**
|
||||
* Comments filtered by keyword.
|
||||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly keyword?: string;
|
||||
|
||||
/**
|
||||
* Comment top display.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly top?: boolean;
|
||||
|
||||
/**
|
||||
* The comment is hidden from the theme side.
|
||||
* @type {boolean}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly hidden?: boolean;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly size?: number
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
||||
*/
|
||||
readonly page?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -601,11 +686,11 @@ export class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public createComment(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateCommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.createComment(requestParameters.commentRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -617,11 +702,15 @@ export class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public createReply(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.createReply(requestParameters.name, requestParameters.replyRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createReply(
|
||||
requestParameters.name,
|
||||
requestParameters.replyRequest,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -633,27 +722,27 @@ export class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public listComments(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.listComments(
|
||||
requestParameters.sort,
|
||||
requestParameters.keyword,
|
||||
requestParameters.hidden,
|
||||
requestParameters.top,
|
||||
requestParameters.approved,
|
||||
requestParameters.sortOrder,
|
||||
requestParameters.allowNotification,
|
||||
requestParameters.ownerKind,
|
||||
requestParameters.ownerName,
|
||||
requestParameters.subjectKind,
|
||||
requestParameters.subjectName,
|
||||
requestParameters.sortOrder,
|
||||
requestParameters.keyword,
|
||||
requestParameters.top,
|
||||
requestParameters.hidden,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,59 +28,81 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1IndicesApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Build or rebuild post indices for full text search
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
buildPostIndices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/indices/post`
|
||||
buildPostIndices: async (
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/indices/post`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1IndicesApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator(configuration)
|
||||
export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Build or rebuild post indices for full text search
|
||||
|
@ -88,13 +110,21 @@ export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function (configuration?: C
|
|||
* @throws {RequiredError}
|
||||
*/
|
||||
async buildPostIndices(
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.buildPostIndices(options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.buildPostIndices(options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1IndicesApi - factory interface
|
||||
|
@ -103,9 +133,9 @@ export const ApiConsoleHaloRunV1alpha1IndicesApiFp = function (configuration?: C
|
|||
export const ApiConsoleHaloRunV1alpha1IndicesApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1IndicesApiFp(configuration)
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1IndicesApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Build or rebuild post indices for full text search
|
||||
|
@ -113,10 +143,12 @@ export const ApiConsoleHaloRunV1alpha1IndicesApiFactory = function (
|
|||
* @throws {RequiredError}
|
||||
*/
|
||||
buildPostIndices(options?: AxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.buildPostIndices(options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.buildPostIndices(options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1IndicesApi - object-oriented interface
|
||||
|
@ -134,6 +166,6 @@ export class ApiConsoleHaloRunV1alpha1IndicesApi extends BaseAPI {
|
|||
public buildPostIndices(options?: AxiosRequestConfig) {
|
||||
return ApiConsoleHaloRunV1alpha1IndicesApiFp(this.configuration)
|
||||
.buildPostIndices(options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,124 +28,154 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { ListedReplyList } from '../models'
|
||||
import { ListedReplyList } from "../models";
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1ReplyApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* List replies.
|
||||
* @param {string} [commentName] Replies filtered by commentName.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
listReplies: async (
|
||||
commentName?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
page?: number,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (commentName !== undefined) {
|
||||
localVarQueryParameter['commentName'] = commentName
|
||||
localVarQueryParameter["commentName"] = commentName;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1ReplyApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration)
|
||||
export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* List replies.
|
||||
* @param {string} [commentName] Replies filtered by commentName.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async listReplies(
|
||||
commentName?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedReplyList>> {
|
||||
page?: number,
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<ListedReplyList>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(
|
||||
commentName,
|
||||
size,
|
||||
page,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
page,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1ReplyApi - factory interface
|
||||
|
@ -154,9 +184,9 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function (configuration?: Con
|
|||
export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration)
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* List replies.
|
||||
|
@ -166,21 +196,21 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
listReplies(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ListedReplyList> {
|
||||
return localVarFp
|
||||
.listReplies(
|
||||
requestParameters.commentName,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for listReplies operation in ApiConsoleHaloRunV1alpha1ReplyApi.
|
||||
|
@ -193,35 +223,35 @@ export interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest {
|
|||
* @type {string}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly commentName?: string
|
||||
readonly commentName?: string;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly size?: number
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
||||
*/
|
||||
readonly page?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -240,17 +270,17 @@ export class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public listReplies(
|
||||
requestParameters: ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.listReplies(
|
||||
requestParameters.commentName,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,61 +28,83 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { DashboardStats } from '../models'
|
||||
import { DashboardStats } from "../models";
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1StatsApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Get stats.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`
|
||||
getStats: async (
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1StatsApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiConsoleHaloRunV1alpha1StatsApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration)
|
||||
export const ApiConsoleHaloRunV1alpha1StatsApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Get stats.
|
||||
|
@ -90,13 +112,22 @@ export const ApiConsoleHaloRunV1alpha1StatsApiFp = function (configuration?: Con
|
|||
* @throws {RequiredError}
|
||||
*/
|
||||
async getStats(
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardStats>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardStats>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1StatsApi - factory interface
|
||||
|
@ -105,9 +136,9 @@ export const ApiConsoleHaloRunV1alpha1StatsApiFp = function (configuration?: Con
|
|||
export const ApiConsoleHaloRunV1alpha1StatsApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration)
|
||||
const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Get stats.
|
||||
|
@ -115,10 +146,12 @@ export const ApiConsoleHaloRunV1alpha1StatsApiFactory = function (
|
|||
* @throws {RequiredError}
|
||||
*/
|
||||
getStats(options?: AxiosRequestConfig): AxiosPromise<DashboardStats> {
|
||||
return localVarFp.getStats(options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getStats(options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiConsoleHaloRunV1alpha1StatsApi - object-oriented interface
|
||||
|
@ -136,6 +169,6 @@ export class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|||
public getStats(options?: AxiosRequestConfig) {
|
||||
return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration)
|
||||
.getStats(options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,26 +28,34 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Comment } from '../models'
|
||||
import { Comment } from "../models";
|
||||
// @ts-ignore
|
||||
import { CommentRequest } from '../models'
|
||||
import { CommentRequest } from "../models";
|
||||
// @ts-ignore
|
||||
import { CommentVoList } from '../models'
|
||||
import { CommentVoList } from "../models";
|
||||
// @ts-ignore
|
||||
import { Reply } from '../models'
|
||||
import { Reply } from "../models";
|
||||
// @ts-ignore
|
||||
import { ReplyRequest } from '../models'
|
||||
import { ReplyRequest } from "../models";
|
||||
// @ts-ignore
|
||||
import { ReplyVoList } from '../models'
|
||||
import { ReplyVoList } from "../models";
|
||||
/**
|
||||
* ApiHaloRunV1alpha1CommentApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -55,40 +63,56 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createComment1: async (commentRequest: CommentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
createComment1: async (
|
||||
commentRequest: CommentRequest,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'commentRequest' is not null or undefined
|
||||
assertParamExists('createComment1', 'commentRequest', commentRequest)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`
|
||||
assertParamExists("createComment1", "commentRequest", commentRequest);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
commentRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -100,46 +124,60 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configura
|
|||
createReply1: async (
|
||||
name: string,
|
||||
replyRequest: ReplyRequest,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('createReply1', 'name', name)
|
||||
assertParamExists("createReply1", "name", name);
|
||||
// verify required parameter 'replyRequest' is not null or undefined
|
||||
assertParamExists('createReply1', 'replyRequest', replyRequest)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("createReply1", "replyRequest", replyRequest);
|
||||
const localVarPath =
|
||||
`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
replyRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get a comment.
|
||||
|
@ -147,40 +185,53 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getComment: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getComment: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getComment', 'name', name)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getComment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/api.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List comment replies.
|
||||
|
@ -194,49 +245,59 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configura
|
|||
name: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('listCommentReplies', 'name', name)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("listCommentReplies", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
|
@ -256,76 +317,88 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (configura
|
|||
group?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('listComments1', 'name', name)
|
||||
assertParamExists("listComments1", "name", name);
|
||||
// verify required parameter 'version' is not null or undefined
|
||||
assertParamExists('listComments1', 'version', version)
|
||||
assertParamExists("listComments1", "version", version);
|
||||
// verify required parameter 'kind' is not null or undefined
|
||||
assertParamExists('listComments1', 'kind', kind)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`
|
||||
assertParamExists("listComments1", "kind", kind);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name
|
||||
localVarQueryParameter["name"] = name;
|
||||
}
|
||||
|
||||
if (version !== undefined) {
|
||||
localVarQueryParameter['version'] = version
|
||||
localVarQueryParameter["version"] = version;
|
||||
}
|
||||
|
||||
if (group !== undefined) {
|
||||
localVarQueryParameter['group'] = group
|
||||
localVarQueryParameter["group"] = group;
|
||||
}
|
||||
|
||||
if (kind !== undefined) {
|
||||
localVarQueryParameter['kind'] = kind
|
||||
localVarQueryParameter["kind"] = kind;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1CommentApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration)
|
||||
export const ApiHaloRunV1alpha1CommentApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -335,10 +408,20 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async createComment1(
|
||||
commentRequest: CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment1(commentRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment1(
|
||||
commentRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -350,10 +433,21 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
async createReply1(
|
||||
name: string,
|
||||
replyRequest: ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply1(name, replyRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply1(
|
||||
name,
|
||||
replyRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get a comment.
|
||||
|
@ -363,10 +457,20 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async getComment(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentVoList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentVoList>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List comment replies.
|
||||
|
@ -380,10 +484,23 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
name: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyVoList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyVoList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listCommentReplies(
|
||||
name,
|
||||
size,
|
||||
page,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
|
@ -403,8 +520,10 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
group?: string,
|
||||
size?: number,
|
||||
page?: number,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentVoList>> {
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentVoList>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(
|
||||
name,
|
||||
version,
|
||||
|
@ -412,12 +531,17 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
group,
|
||||
size,
|
||||
page,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1CommentApi - factory interface
|
||||
|
@ -426,9 +550,9 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (configuration?: Configur
|
|||
export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration)
|
||||
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create a comment.
|
||||
|
@ -438,11 +562,11 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
createComment1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Comment> {
|
||||
return localVarFp
|
||||
.createComment1(requestParameters.commentRequest, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Create a reply.
|
||||
|
@ -452,11 +576,15 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
createReply1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Reply> {
|
||||
return localVarFp
|
||||
.createReply1(requestParameters.name, requestParameters.replyRequest, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createReply1(
|
||||
requestParameters.name,
|
||||
requestParameters.replyRequest,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get a comment.
|
||||
|
@ -466,9 +594,11 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
getComment(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<CommentVoList> {
|
||||
return localVarFp.getComment(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getComment(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List comment replies.
|
||||
|
@ -478,11 +608,16 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
listCommentReplies(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReplyVoList> {
|
||||
return localVarFp
|
||||
.listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.listCommentReplies(
|
||||
requestParameters.name,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List comments.
|
||||
|
@ -492,7 +627,7 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
listComments1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<CommentVoList> {
|
||||
return localVarFp
|
||||
.listComments1(
|
||||
|
@ -502,12 +637,12 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
|
|||
requestParameters.group,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createComment1 operation in ApiHaloRunV1alpha1CommentApi.
|
||||
|
@ -520,7 +655,7 @@ export interface ApiHaloRunV1alpha1CommentApiCreateComment1Request {
|
|||
* @type {CommentRequest}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiCreateComment1
|
||||
*/
|
||||
readonly commentRequest: CommentRequest
|
||||
readonly commentRequest: CommentRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -534,14 +669,14 @@ export interface ApiHaloRunV1alpha1CommentApiCreateReply1Request {
|
|||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiCreateReply1
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {ReplyRequest}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiCreateReply1
|
||||
*/
|
||||
readonly replyRequest: ReplyRequest
|
||||
readonly replyRequest: ReplyRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -555,7 +690,7 @@ export interface ApiHaloRunV1alpha1CommentApiGetCommentRequest {
|
|||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiGetComment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -569,21 +704,21 @@ export interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest {
|
|||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -597,42 +732,42 @@ export interface ApiHaloRunV1alpha1CommentApiListComments1Request {
|
|||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* The comment subject version.
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly version: string
|
||||
readonly version: string;
|
||||
|
||||
/**
|
||||
* The comment subject kind.
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly kind: string
|
||||
readonly kind: string;
|
||||
|
||||
/**
|
||||
* The comment subject group.
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly group?: string
|
||||
readonly group?: string;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* The page number. Zero indicates no page.
|
||||
* @type {number}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -651,11 +786,11 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public createComment1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiCreateComment1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.createComment1(requestParameters.commentRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -667,11 +802,15 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public createReply1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiCreateReply1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.createReply1(requestParameters.name, requestParameters.replyRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createReply1(
|
||||
requestParameters.name,
|
||||
requestParameters.replyRequest,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -681,10 +820,13 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof ApiHaloRunV1alpha1CommentApi
|
||||
*/
|
||||
public getComment(requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest, options?: AxiosRequestConfig) {
|
||||
public getComment(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiGetCommentRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.getComment(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -696,11 +838,16 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public listCommentReplies(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.listCommentReplies(
|
||||
requestParameters.name,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -712,7 +859,7 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public listComments1(
|
||||
requestParameters: ApiHaloRunV1alpha1CommentApiListComments1Request,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.listComments1(
|
||||
|
@ -722,8 +869,8 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
requestParameters.group,
|
||||
requestParameters.size,
|
||||
requestParameters.page,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,117 +28,144 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { PostHits } from '../models'
|
||||
import { PostHits } from "../models";
|
||||
/**
|
||||
* ApiHaloRunV1alpha1PostApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Search posts with fuzzy query
|
||||
* @param {string} keyword
|
||||
* @param {number} [limit]
|
||||
* @param {string} [highlightPreTag]
|
||||
* @param {string} [highlightPostTag]
|
||||
* @param {number} [limit]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
searchPost: async (
|
||||
keyword: string,
|
||||
limit?: number,
|
||||
highlightPreTag?: string,
|
||||
highlightPostTag?: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
limit?: number,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'keyword' is not null or undefined
|
||||
assertParamExists('searchPost', 'keyword', keyword)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`
|
||||
assertParamExists("searchPost", "keyword", keyword);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
|
||||
if (keyword !== undefined) {
|
||||
localVarQueryParameter['keyword'] = keyword
|
||||
}
|
||||
|
||||
if (limit !== undefined) {
|
||||
localVarQueryParameter['limit'] = limit
|
||||
}
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (highlightPreTag !== undefined) {
|
||||
localVarQueryParameter['highlightPreTag'] = highlightPreTag
|
||||
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
||||
}
|
||||
|
||||
if (highlightPostTag !== undefined) {
|
||||
localVarQueryParameter['highlightPostTag'] = highlightPostTag
|
||||
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
if (keyword !== undefined) {
|
||||
localVarQueryParameter["keyword"] = keyword;
|
||||
}
|
||||
|
||||
if (limit !== undefined) {
|
||||
localVarQueryParameter["limit"] = limit;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1PostApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1PostApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration)
|
||||
export const ApiHaloRunV1alpha1PostApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Search posts with fuzzy query
|
||||
* @param {string} keyword
|
||||
* @param {number} [limit]
|
||||
* @param {string} [highlightPreTag]
|
||||
* @param {string} [highlightPostTag]
|
||||
* @param {number} [limit]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async searchPost(
|
||||
keyword: string,
|
||||
limit?: number,
|
||||
highlightPreTag?: string,
|
||||
highlightPostTag?: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostHits>> {
|
||||
limit?: number,
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostHits>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(
|
||||
keyword,
|
||||
limit,
|
||||
highlightPreTag,
|
||||
highlightPostTag,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
limit,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1PostApi - factory interface
|
||||
|
@ -147,9 +174,9 @@ export const ApiHaloRunV1alpha1PostApiFp = function (configuration?: Configurati
|
|||
export const ApiHaloRunV1alpha1PostApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration)
|
||||
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Search posts with fuzzy query
|
||||
|
@ -159,20 +186,20 @@ export const ApiHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
searchPost(
|
||||
requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PostHits> {
|
||||
return localVarFp
|
||||
.searchPost(
|
||||
requestParameters.keyword,
|
||||
requestParameters.limit,
|
||||
requestParameters.highlightPreTag,
|
||||
requestParameters.highlightPostTag,
|
||||
options,
|
||||
requestParameters.limit,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for searchPost operation in ApiHaloRunV1alpha1PostApi.
|
||||
|
@ -185,28 +212,28 @@ export interface ApiHaloRunV1alpha1PostApiSearchPostRequest {
|
|||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly keyword: string
|
||||
readonly keyword: string;
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly highlightPreTag?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly highlightPostTag?: string;
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly limit?: number
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly highlightPreTag?: string
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
|
||||
*/
|
||||
readonly highlightPostTag?: string
|
||||
readonly limit?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -223,15 +250,18 @@ export class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof ApiHaloRunV1alpha1PostApi
|
||||
*/
|
||||
public searchPost(requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest, options?: AxiosRequestConfig) {
|
||||
public searchPost(
|
||||
requestParameters: ApiHaloRunV1alpha1PostApiSearchPostRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.searchPost(
|
||||
requestParameters.keyword,
|
||||
requestParameters.limit,
|
||||
requestParameters.highlightPreTag,
|
||||
requestParameters.highlightPostTag,
|
||||
options,
|
||||
requestParameters.limit,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { CounterRequest } from '../models'
|
||||
import { CounterRequest } from "../models";
|
||||
// @ts-ignore
|
||||
import { VoteRequest } from '../models'
|
||||
import { VoteRequest } from "../models";
|
||||
/**
|
||||
* ApiHaloRunV1alpha1TrackerApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Count an extension resource visits.
|
||||
|
@ -47,40 +55,56 @@ export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
count: async (counterRequest: CounterRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
count: async (
|
||||
counterRequest: CounterRequest,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'counterRequest' is not null or undefined
|
||||
assertParamExists('count', 'counterRequest', counterRequest)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`
|
||||
assertParamExists("count", "counterRequest", counterRequest);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
counterRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Downvote an extension resource.
|
||||
|
@ -88,40 +112,56 @@ export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
downvote: async (voteRequest: VoteRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
downvote: async (
|
||||
voteRequest: VoteRequest,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'voteRequest' is not null or undefined
|
||||
assertParamExists('downvote', 'voteRequest', voteRequest)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`
|
||||
assertParamExists("downvote", "voteRequest", voteRequest);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/downvote`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
voteRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Upvote an extension resource.
|
||||
|
@ -129,50 +169,69 @@ export const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
upvote: async (voteRequest: VoteRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
upvote: async (
|
||||
voteRequest: VoteRequest,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'voteRequest' is not null or undefined
|
||||
assertParamExists('upvote', 'voteRequest', voteRequest)
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`
|
||||
assertParamExists("upvote", "voteRequest", voteRequest);
|
||||
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/upvote`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(voteRequest, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
voteRequest,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1TrackerApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ApiHaloRunV1alpha1TrackerApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration)
|
||||
export const ApiHaloRunV1alpha1TrackerApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Count an extension resource visits.
|
||||
|
@ -182,10 +241,20 @@ export const ApiHaloRunV1alpha1TrackerApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async count(
|
||||
counterRequest: CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.count(
|
||||
counterRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Downvote an extension resource.
|
||||
|
@ -195,10 +264,20 @@ export const ApiHaloRunV1alpha1TrackerApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async downvote(
|
||||
voteRequest: VoteRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(voteRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.downvote(
|
||||
voteRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Upvote an extension resource.
|
||||
|
@ -208,13 +287,23 @@ export const ApiHaloRunV1alpha1TrackerApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async upvote(
|
||||
voteRequest: VoteRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(voteRequest, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.upvote(
|
||||
voteRequest,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ApiHaloRunV1alpha1TrackerApi - factory interface
|
||||
|
@ -223,9 +312,9 @@ export const ApiHaloRunV1alpha1TrackerApiFp = function (configuration?: Configur
|
|||
export const ApiHaloRunV1alpha1TrackerApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration)
|
||||
const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Count an extension resource visits.
|
||||
|
@ -235,9 +324,11 @@ export const ApiHaloRunV1alpha1TrackerApiFactory = function (
|
|||
*/
|
||||
count(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.count(requestParameters.counterRequest, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.count(requestParameters.counterRequest, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Downvote an extension resource.
|
||||
|
@ -247,9 +338,11 @@ export const ApiHaloRunV1alpha1TrackerApiFactory = function (
|
|||
*/
|
||||
downvote(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.downvote(requestParameters.voteRequest, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.downvote(requestParameters.voteRequest, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Upvote an extension resource.
|
||||
|
@ -259,12 +352,14 @@ export const ApiHaloRunV1alpha1TrackerApiFactory = function (
|
|||
*/
|
||||
upvote(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.upvote(requestParameters.voteRequest, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.upvote(requestParameters.voteRequest, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for count operation in ApiHaloRunV1alpha1TrackerApi.
|
||||
|
@ -277,7 +372,7 @@ export interface ApiHaloRunV1alpha1TrackerApiCountRequest {
|
|||
* @type {CounterRequest}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApiCount
|
||||
*/
|
||||
readonly counterRequest: CounterRequest
|
||||
readonly counterRequest: CounterRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -291,7 +386,7 @@ export interface ApiHaloRunV1alpha1TrackerApiDownvoteRequest {
|
|||
* @type {VoteRequest}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApiDownvote
|
||||
*/
|
||||
readonly voteRequest: VoteRequest
|
||||
readonly voteRequest: VoteRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -305,7 +400,7 @@ export interface ApiHaloRunV1alpha1TrackerApiUpvoteRequest {
|
|||
* @type {VoteRequest}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApiUpvote
|
||||
*/
|
||||
readonly voteRequest: VoteRequest
|
||||
readonly voteRequest: VoteRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -322,10 +417,13 @@ export class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApi
|
||||
*/
|
||||
public count(requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest, options?: AxiosRequestConfig) {
|
||||
public count(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiCountRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration)
|
||||
.count(requestParameters.counterRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -335,10 +433,13 @@ export class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApi
|
||||
*/
|
||||
public downvote(requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest, options?: AxiosRequestConfig) {
|
||||
public downvote(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiDownvoteRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration)
|
||||
.downvote(requestParameters.voteRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -348,9 +449,12 @@ export class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof ApiHaloRunV1alpha1TrackerApi
|
||||
*/
|
||||
public upvote(requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest, options?: AxiosRequestConfig) {
|
||||
public upvote(
|
||||
requestParameters: ApiHaloRunV1alpha1TrackerApiUpvoteRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration)
|
||||
.upvote(requestParameters.voteRequest, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Category } from '../models'
|
||||
import { Category } from "../models";
|
||||
// @ts-ignore
|
||||
import { CategoryList } from '../models'
|
||||
import { CategoryList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CategoryApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Category
|
||||
|
@ -49,39 +57,52 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (conf
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Category: async (
|
||||
category?: Category,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(category, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
category,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Category
|
||||
|
@ -91,41 +112,51 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (conf
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Category: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Category', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Category", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Category
|
||||
|
@ -133,40 +164,53 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (conf
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Category: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Category: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Category', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Category", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Category
|
||||
|
@ -182,52 +226,61 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (conf
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Category
|
||||
|
@ -239,54 +292,71 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (conf
|
|||
updatecontentHaloRunV1alpha1Category: async (
|
||||
name: string,
|
||||
category?: Category,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Category', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Category", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(category, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
category,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CategoryApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1CategoryApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Category
|
||||
|
@ -296,10 +366,21 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Category(
|
||||
category?: Category,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Category(category, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Category(
|
||||
category,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Category
|
||||
|
@ -309,10 +390,21 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Category(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Category(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Category(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Category
|
||||
|
@ -322,10 +414,21 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Category(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Category(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Category(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Category
|
||||
|
@ -341,16 +444,24 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Category(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Category(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Category
|
||||
|
@ -362,17 +473,25 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
async updatecontentHaloRunV1alpha1Category(
|
||||
name: string,
|
||||
category?: Category,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Category(
|
||||
name,
|
||||
category,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Category>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Category(
|
||||
name,
|
||||
category,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CategoryApi - factory interface
|
||||
|
@ -381,9 +500,9 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (configuration?: Con
|
|||
export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1CategoryApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1CategoryApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Category
|
||||
|
@ -393,11 +512,14 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Category> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Category(requestParameters.category, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createcontentHaloRunV1alpha1Category(
|
||||
requestParameters.category,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Category
|
||||
|
@ -407,11 +529,11 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Category(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Category
|
||||
|
@ -421,11 +543,11 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Category> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Category(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Category
|
||||
|
@ -435,7 +557,7 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<CategoryList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Category(
|
||||
|
@ -443,9 +565,9 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Category
|
||||
|
@ -455,14 +577,18 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Category> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Category(requestParameters.name, requestParameters.category, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Category(
|
||||
requestParameters.name,
|
||||
requestParameters.category,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Category operation in ContentHaloRunV1alpha1CategoryApi.
|
||||
|
@ -475,7 +601,7 @@ export interface ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1Ca
|
|||
* @type {Category}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly category?: Category
|
||||
readonly category?: Category;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +615,7 @@ export interface ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1Ca
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +629,7 @@ export interface ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Categ
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +643,28 @@ export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Cate
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +678,14 @@ export interface ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Ca
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated category
|
||||
* @type {Category}
|
||||
* @memberof ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1Category
|
||||
*/
|
||||
readonly category?: Category
|
||||
readonly category?: Category;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +704,11 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiCreatecontentHaloRunV1alpha1CategoryRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Category(requestParameters.category, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +720,11 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiDeletecontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Category(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +736,11 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Category(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +752,7 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Category(
|
||||
|
@ -634,9 +760,9 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +774,14 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Category(
|
||||
requestParameters: ContentHaloRunV1alpha1CategoryApiUpdatecontentHaloRunV1alpha1CategoryRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Category(requestParameters.name, requestParameters.category, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Category(
|
||||
requestParameters.name,
|
||||
requestParameters.category,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Comment } from '../models'
|
||||
import { Comment } from "../models";
|
||||
// @ts-ignore
|
||||
import { CommentList } from '../models'
|
||||
import { CommentList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CommentApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Comment
|
||||
|
@ -49,39 +57,52 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (confi
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Comment: async (
|
||||
comment?: Comment,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(comment, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
comment,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Comment
|
||||
|
@ -91,41 +112,51 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (confi
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Comment: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Comment', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Comment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Comment
|
||||
|
@ -133,40 +164,53 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (confi
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Comment: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Comment: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Comment', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Comment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Comment
|
||||
|
@ -182,52 +226,61 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (confi
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Comment
|
||||
|
@ -239,54 +292,71 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (confi
|
|||
updatecontentHaloRunV1alpha1Comment: async (
|
||||
name: string,
|
||||
comment?: Comment,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Comment', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Comment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(comment, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
comment,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CommentApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1CommentApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1CommentApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Comment
|
||||
|
@ -296,10 +366,21 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Comment(
|
||||
comment?: Comment,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Comment(comment, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Comment(
|
||||
comment,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Comment
|
||||
|
@ -309,10 +390,21 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Comment(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Comment(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Comment(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Comment
|
||||
|
@ -322,10 +414,21 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Comment(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Comment(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Comment(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Comment
|
||||
|
@ -341,16 +444,24 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Comment(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Comment(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Comment
|
||||
|
@ -362,17 +473,25 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
async updatecontentHaloRunV1alpha1Comment(
|
||||
name: string,
|
||||
comment?: Comment,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Comment(
|
||||
name,
|
||||
comment,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Comment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Comment(
|
||||
name,
|
||||
comment,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1CommentApi - factory interface
|
||||
|
@ -381,9 +500,9 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (configuration?: Conf
|
|||
export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1CommentApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1CommentApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Comment
|
||||
|
@ -393,11 +512,11 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Comment> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Comment(requestParameters.comment, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Comment
|
||||
|
@ -407,11 +526,11 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Comment(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Comment
|
||||
|
@ -421,11 +540,11 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Comment> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Comment(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Comment
|
||||
|
@ -435,7 +554,7 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<CommentList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Comment(
|
||||
|
@ -443,9 +562,9 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Comment
|
||||
|
@ -455,14 +574,18 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Comment> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Comment(requestParameters.name, requestParameters.comment, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Comment(
|
||||
requestParameters.name,
|
||||
requestParameters.comment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Comment operation in ContentHaloRunV1alpha1CommentApi.
|
||||
|
@ -475,7 +598,7 @@ export interface ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1Com
|
|||
* @type {Comment}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly comment?: Comment
|
||||
readonly comment?: Comment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +612,7 @@ export interface ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1Com
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +626,7 @@ export interface ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Commen
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +640,28 @@ export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comme
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +675,14 @@ export interface ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Com
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated comment
|
||||
* @type {Comment}
|
||||
* @memberof ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1Comment
|
||||
*/
|
||||
readonly comment?: Comment
|
||||
readonly comment?: Comment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +701,11 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiCreatecontentHaloRunV1alpha1CommentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Comment(requestParameters.comment, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +717,11 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiDeletecontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Comment(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +733,11 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Comment(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +749,7 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Comment(
|
||||
|
@ -634,9 +757,9 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +771,14 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Comment(
|
||||
requestParameters: ContentHaloRunV1alpha1CommentApiUpdatecontentHaloRunV1alpha1CommentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Comment(requestParameters.name, requestParameters.comment, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Comment(
|
||||
requestParameters.name,
|
||||
requestParameters.comment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Post } from '../models'
|
||||
import { Post } from "../models";
|
||||
// @ts-ignore
|
||||
import { PostList } from '../models'
|
||||
import { PostList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1PostApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Post
|
||||
|
@ -47,38 +55,54 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configur
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createcontentHaloRunV1alpha1Post: async (post?: Post, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`
|
||||
createcontentHaloRunV1alpha1Post: async (
|
||||
post?: Post,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
post,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Post
|
||||
|
@ -86,40 +110,53 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configur
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletecontentHaloRunV1alpha1Post: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletecontentHaloRunV1alpha1Post: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Post', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Post", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Post
|
||||
|
@ -127,40 +164,53 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configur
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Post: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Post: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Post', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Post", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Post
|
||||
|
@ -176,52 +226,61 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configur
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Post
|
||||
|
@ -233,54 +292,71 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (configur
|
|||
updatecontentHaloRunV1alpha1Post: async (
|
||||
name: string,
|
||||
post?: Post,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Post', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Post", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(post, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
post,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1PostApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1PostApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Post
|
||||
|
@ -290,10 +366,21 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Post(
|
||||
post?: Post,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Post(post, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Post(
|
||||
post,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Post
|
||||
|
@ -303,10 +390,21 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Post(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Post(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Post(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Post
|
||||
|
@ -316,10 +414,21 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Post(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Post(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Post(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Post
|
||||
|
@ -335,16 +444,24 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Post(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Post(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Post
|
||||
|
@ -356,13 +473,25 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
async updatecontentHaloRunV1alpha1Post(
|
||||
name: string,
|
||||
post?: Post,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Post(name, post, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Post(
|
||||
name,
|
||||
post,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1PostApi - factory interface
|
||||
|
@ -371,9 +500,9 @@ export const ContentHaloRunV1alpha1PostApiFp = function (configuration?: Configu
|
|||
export const ContentHaloRunV1alpha1PostApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1PostApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1PostApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Post
|
||||
|
@ -383,11 +512,11 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Post> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Post(requestParameters.post, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Post
|
||||
|
@ -397,11 +526,11 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Post(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Post
|
||||
|
@ -411,11 +540,11 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Post> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Post(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Post
|
||||
|
@ -425,7 +554,7 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PostList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Post(
|
||||
|
@ -433,9 +562,9 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Post
|
||||
|
@ -445,14 +574,18 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Post> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Post(requestParameters.name, requestParameters.post, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Post(
|
||||
requestParameters.name,
|
||||
requestParameters.post,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Post operation in ContentHaloRunV1alpha1PostApi.
|
||||
|
@ -465,7 +598,7 @@ export interface ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRe
|
|||
* @type {Post}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly post?: Post
|
||||
readonly post?: Post;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,7 +612,7 @@ export interface ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRe
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -493,7 +626,7 @@ export interface ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostReque
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -507,28 +640,28 @@ export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequ
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -542,14 +675,14 @@ export interface ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRe
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated post
|
||||
* @type {Post}
|
||||
* @memberof ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1Post
|
||||
*/
|
||||
readonly post?: Post
|
||||
readonly post?: Post;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -568,11 +701,11 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiCreatecontentHaloRunV1alpha1PostRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Post(requestParameters.post, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +717,11 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiDeletecontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Post(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +733,11 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Post(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,7 +749,7 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Post(
|
||||
|
@ -624,9 +757,9 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -638,10 +771,14 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Post(
|
||||
requestParameters: ContentHaloRunV1alpha1PostApiUpdatecontentHaloRunV1alpha1PostRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Post(requestParameters.name, requestParameters.post, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Post(
|
||||
requestParameters.name,
|
||||
requestParameters.post,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Reply } from '../models'
|
||||
import { Reply } from "../models";
|
||||
// @ts-ignore
|
||||
import { ReplyList } from '../models'
|
||||
import { ReplyList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1ReplyApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Reply
|
||||
|
@ -49,39 +57,52 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configu
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Reply: async (
|
||||
reply?: Reply,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(reply, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
reply,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Reply
|
||||
|
@ -89,40 +110,53 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletecontentHaloRunV1alpha1Reply: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletecontentHaloRunV1alpha1Reply: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Reply', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Reply", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Reply
|
||||
|
@ -130,40 +164,53 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Reply: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Reply: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Reply', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Reply", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Reply
|
||||
|
@ -179,52 +226,61 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configu
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Reply
|
||||
|
@ -236,54 +292,71 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (configu
|
|||
updatecontentHaloRunV1alpha1Reply: async (
|
||||
name: string,
|
||||
reply?: Reply,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Reply', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Reply", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(reply, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
reply,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1ReplyApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1ReplyApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Reply
|
||||
|
@ -293,10 +366,21 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Reply(
|
||||
reply?: Reply,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Reply(reply, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Reply(
|
||||
reply,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Reply
|
||||
|
@ -306,10 +390,21 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Reply(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Reply(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Reply(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Reply
|
||||
|
@ -319,10 +414,21 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Reply(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Reply(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Reply(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Reply
|
||||
|
@ -338,16 +444,24 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Reply(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Reply(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Reply
|
||||
|
@ -359,13 +473,25 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
async updatecontentHaloRunV1alpha1Reply(
|
||||
name: string,
|
||||
reply?: Reply,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Reply(name, reply, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Reply(
|
||||
name,
|
||||
reply,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1ReplyApi - factory interface
|
||||
|
@ -374,9 +500,9 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (configuration?: Config
|
|||
export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1ReplyApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1ReplyApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Reply
|
||||
|
@ -386,11 +512,11 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Reply> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Reply(requestParameters.reply, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Reply
|
||||
|
@ -400,11 +526,11 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Reply(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Reply
|
||||
|
@ -414,11 +540,11 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Reply> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Reply(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Reply
|
||||
|
@ -428,7 +554,7 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReplyList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Reply(
|
||||
|
@ -436,9 +562,9 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Reply
|
||||
|
@ -448,14 +574,18 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Reply> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Reply(requestParameters.name, requestParameters.reply, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Reply(
|
||||
requestParameters.name,
|
||||
requestParameters.reply,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Reply operation in ContentHaloRunV1alpha1ReplyApi.
|
||||
|
@ -468,7 +598,7 @@ export interface ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1Reply
|
|||
* @type {Reply}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly reply?: Reply
|
||||
readonly reply?: Reply;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -482,7 +612,7 @@ export interface ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1Reply
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -496,7 +626,7 @@ export interface ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyReq
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -510,28 +640,28 @@ export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRe
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -545,14 +675,14 @@ export interface ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated reply
|
||||
* @type {Reply}
|
||||
* @memberof ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1Reply
|
||||
*/
|
||||
readonly reply?: Reply
|
||||
readonly reply?: Reply;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -571,11 +701,11 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiCreatecontentHaloRunV1alpha1ReplyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Reply(requestParameters.reply, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -587,11 +717,11 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiDeletecontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Reply(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -603,11 +733,11 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Reply(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -619,7 +749,7 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Reply(
|
||||
|
@ -627,9 +757,9 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -641,10 +771,14 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Reply(
|
||||
requestParameters: ContentHaloRunV1alpha1ReplyApiUpdatecontentHaloRunV1alpha1ReplyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Reply(requestParameters.name, requestParameters.reply, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Reply(
|
||||
requestParameters.name,
|
||||
requestParameters.reply,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { SinglePage } from '../models'
|
||||
import { SinglePage } from "../models";
|
||||
// @ts-ignore
|
||||
import { SinglePageList } from '../models'
|
||||
import { SinglePageList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SinglePageApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -49,39 +57,52 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (co
|
|||
*/
|
||||
createcontentHaloRunV1alpha1SinglePage: async (
|
||||
singlePage?: SinglePage,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
singlePage,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -91,41 +112,51 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (co
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1SinglePage: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1SinglePage', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1SinglePage", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -135,41 +166,51 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (co
|
|||
*/
|
||||
getcontentHaloRunV1alpha1SinglePage: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1SinglePage', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1SinglePage", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -185,52 +226,61 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (co
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -242,54 +292,71 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (co
|
|||
updatecontentHaloRunV1alpha1SinglePage: async (
|
||||
name: string,
|
||||
singlePage?: SinglePage,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1SinglePage', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1SinglePage", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
singlePage,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SinglePageApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1SinglePageApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -299,13 +366,21 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1SinglePage(
|
||||
singlePage?: SinglePage,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage(
|
||||
singlePage,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage(
|
||||
singlePage,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -315,10 +390,21 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1SinglePage(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -328,10 +414,21 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1SinglePage(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -347,16 +444,24 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePageList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePageList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -368,17 +473,25 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
async updatecontentHaloRunV1alpha1SinglePage(
|
||||
name: string,
|
||||
singlePage?: SinglePage,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage(
|
||||
name,
|
||||
singlePage,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePage>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage(
|
||||
name,
|
||||
singlePage,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SinglePageApi - factory interface
|
||||
|
@ -387,9 +500,9 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (configuration?: C
|
|||
export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -399,11 +512,14 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SinglePage> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters.singlePage,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -413,11 +529,11 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -427,11 +543,11 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SinglePage> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -441,7 +557,7 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SinglePageList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1SinglePage(
|
||||
|
@ -449,9 +565,9 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/SinglePage
|
||||
|
@ -461,14 +577,18 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SinglePage> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters.name,
|
||||
requestParameters.singlePage,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1SinglePage operation in ContentHaloRunV1alpha1SinglePageApi.
|
||||
|
@ -481,7 +601,7 @@ export interface ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1
|
|||
* @type {SinglePage}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly singlePage?: SinglePage
|
||||
readonly singlePage?: SinglePage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -495,7 +615,7 @@ export interface ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -509,7 +629,7 @@ export interface ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1Sin
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,28 +643,28 @@ export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1Si
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -558,14 +678,14 @@ export interface ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated singlepage
|
||||
* @type {SinglePage}
|
||||
* @memberof ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePage
|
||||
*/
|
||||
readonly singlePage?: SinglePage
|
||||
readonly singlePage?: SinglePage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +704,14 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiCreatecontentHaloRunV1alpha1SinglePageRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters.singlePage,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +723,11 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiDeletecontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,11 +739,11 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,7 +755,7 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1SinglePage(
|
||||
|
@ -640,9 +763,9 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -654,10 +777,14 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters: ContentHaloRunV1alpha1SinglePageApiUpdatecontentHaloRunV1alpha1SinglePageRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1SinglePage(
|
||||
requestParameters.name,
|
||||
requestParameters.singlePage,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Snapshot } from '../models'
|
||||
import { Snapshot } from "../models";
|
||||
// @ts-ignore
|
||||
import { SnapshotList } from '../models'
|
||||
import { SnapshotList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SnapshotApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -49,39 +57,52 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (conf
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Snapshot: async (
|
||||
snapshot?: Snapshot,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(snapshot, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
snapshot,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -91,41 +112,51 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (conf
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Snapshot: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Snapshot', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Snapshot", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -133,40 +164,53 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (conf
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Snapshot: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Snapshot: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Snapshot', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Snapshot", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -182,52 +226,61 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (conf
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -239,54 +292,71 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (conf
|
|||
updatecontentHaloRunV1alpha1Snapshot: async (
|
||||
name: string,
|
||||
snapshot?: Snapshot,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Snapshot', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Snapshot", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(snapshot, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
snapshot,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SnapshotApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1SnapshotApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -296,10 +366,21 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Snapshot(
|
||||
snapshot?: Snapshot,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Snapshot(snapshot, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Snapshot(
|
||||
snapshot,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -309,10 +390,21 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Snapshot(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Snapshot(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Snapshot(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -322,10 +414,21 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Snapshot(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Snapshot(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Snapshot(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -341,16 +444,24 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnapshotList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Snapshot(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnapshotList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Snapshot(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -362,17 +473,25 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
async updatecontentHaloRunV1alpha1Snapshot(
|
||||
name: string,
|
||||
snapshot?: Snapshot,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Snapshot(
|
||||
name,
|
||||
snapshot,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Snapshot>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Snapshot(
|
||||
name,
|
||||
snapshot,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1SnapshotApi - factory interface
|
||||
|
@ -381,9 +500,9 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (configuration?: Con
|
|||
export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1SnapshotApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1SnapshotApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -393,11 +512,14 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Snapshot> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Snapshot(requestParameters.snapshot, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters.snapshot,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -407,11 +529,11 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -421,11 +543,11 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Snapshot> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -435,7 +557,7 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SnapshotList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Snapshot(
|
||||
|
@ -443,9 +565,9 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Snapshot
|
||||
|
@ -455,14 +577,18 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Snapshot> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Snapshot(requestParameters.name, requestParameters.snapshot, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters.name,
|
||||
requestParameters.snapshot,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Snapshot operation in ContentHaloRunV1alpha1SnapshotApi.
|
||||
|
@ -475,7 +601,7 @@ export interface ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1Sn
|
|||
* @type {Snapshot}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly snapshot?: Snapshot
|
||||
readonly snapshot?: Snapshot;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +615,7 @@ export interface ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1Sn
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +629,7 @@ export interface ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snaps
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +643,28 @@ export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snap
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +678,14 @@ export interface ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Sn
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated snapshot
|
||||
* @type {Snapshot}
|
||||
* @memberof ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1Snapshot
|
||||
*/
|
||||
readonly snapshot?: Snapshot
|
||||
readonly snapshot?: Snapshot;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +704,11 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiCreatecontentHaloRunV1alpha1SnapshotRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Snapshot(requestParameters.snapshot, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +720,11 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiDeletecontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Snapshot(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +736,11 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Snapshot(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +752,7 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Snapshot(
|
||||
|
@ -634,9 +760,9 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +774,14 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters: ContentHaloRunV1alpha1SnapshotApiUpdatecontentHaloRunV1alpha1SnapshotRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Snapshot(requestParameters.name, requestParameters.snapshot, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Snapshot(
|
||||
requestParameters.name,
|
||||
requestParameters.snapshot,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Tag } from '../models'
|
||||
import { Tag } from "../models";
|
||||
// @ts-ignore
|
||||
import { TagList } from '../models'
|
||||
import { TagList } from "../models";
|
||||
/**
|
||||
* ContentHaloRunV1alpha1TagApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Tag
|
||||
|
@ -47,38 +55,54 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createcontentHaloRunV1alpha1Tag: async (tag?: Tag, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`
|
||||
createcontentHaloRunV1alpha1Tag: async (
|
||||
tag?: Tag,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(tag, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
tag,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Tag
|
||||
|
@ -86,40 +110,53 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletecontentHaloRunV1alpha1Tag: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletecontentHaloRunV1alpha1Tag: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletecontentHaloRunV1alpha1Tag', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletecontentHaloRunV1alpha1Tag", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Tag
|
||||
|
@ -127,40 +164,53 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getcontentHaloRunV1alpha1Tag: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getcontentHaloRunV1alpha1Tag: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getcontentHaloRunV1alpha1Tag', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getcontentHaloRunV1alpha1Tag", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Tag
|
||||
|
@ -176,52 +226,61 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configura
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Tag
|
||||
|
@ -233,54 +292,71 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (configura
|
|||
updatecontentHaloRunV1alpha1Tag: async (
|
||||
name: string,
|
||||
tag?: Tag,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatecontentHaloRunV1alpha1Tag', 'name', name)
|
||||
const localVarPath = `/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatecontentHaloRunV1alpha1Tag", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(tag, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
tag,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1TagApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration)
|
||||
export const ContentHaloRunV1alpha1TagApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Tag
|
||||
|
@ -290,10 +366,21 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async createcontentHaloRunV1alpha1Tag(
|
||||
tag?: Tag,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Tag(tag, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createcontentHaloRunV1alpha1Tag(
|
||||
tag,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Tag
|
||||
|
@ -303,10 +390,21 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async deletecontentHaloRunV1alpha1Tag(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Tag(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1Tag(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Tag
|
||||
|
@ -316,10 +414,21 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async getcontentHaloRunV1alpha1Tag(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Tag(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getcontentHaloRunV1alpha1Tag(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Tag
|
||||
|
@ -335,16 +444,24 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Tag(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Tag(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Tag
|
||||
|
@ -356,13 +473,25 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
async updatecontentHaloRunV1alpha1Tag(
|
||||
name: string,
|
||||
tag?: Tag,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Tag(name, tag, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1Tag(
|
||||
name,
|
||||
tag,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ContentHaloRunV1alpha1TagApi - factory interface
|
||||
|
@ -371,9 +500,9 @@ export const ContentHaloRunV1alpha1TagApiFp = function (configuration?: Configur
|
|||
export const ContentHaloRunV1alpha1TagApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ContentHaloRunV1alpha1TagApiFp(configuration)
|
||||
const localVarFp = ContentHaloRunV1alpha1TagApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create content.halo.run/v1alpha1/Tag
|
||||
|
@ -383,11 +512,11 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
*/
|
||||
createcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Tag> {
|
||||
return localVarFp
|
||||
.createcontentHaloRunV1alpha1Tag(requestParameters.tag, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete content.halo.run/v1alpha1/Tag
|
||||
|
@ -397,11 +526,11 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
*/
|
||||
deletecontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletecontentHaloRunV1alpha1Tag(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get content.halo.run/v1alpha1/Tag
|
||||
|
@ -411,11 +540,11 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
*/
|
||||
getcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Tag> {
|
||||
return localVarFp
|
||||
.getcontentHaloRunV1alpha1Tag(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List content.halo.run/v1alpha1/Tag
|
||||
|
@ -425,7 +554,7 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
*/
|
||||
listcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<TagList> {
|
||||
return localVarFp
|
||||
.listcontentHaloRunV1alpha1Tag(
|
||||
|
@ -433,9 +562,9 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update content.halo.run/v1alpha1/Tag
|
||||
|
@ -445,14 +574,18 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
|
|||
*/
|
||||
updatecontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Tag> {
|
||||
return localVarFp
|
||||
.updatecontentHaloRunV1alpha1Tag(requestParameters.name, requestParameters.tag, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatecontentHaloRunV1alpha1Tag(
|
||||
requestParameters.name,
|
||||
requestParameters.tag,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createcontentHaloRunV1alpha1Tag operation in ContentHaloRunV1alpha1TagApi.
|
||||
|
@ -465,7 +598,7 @@ export interface ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequ
|
|||
* @type {Tag}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly tag?: Tag
|
||||
readonly tag?: Tag;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,7 +612,7 @@ export interface ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequ
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -493,7 +626,7 @@ export interface ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -507,28 +640,28 @@ export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagReques
|
|||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -542,14 +675,14 @@ export interface ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequ
|
|||
* @type {string}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated tag
|
||||
* @type {Tag}
|
||||
* @memberof ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1Tag
|
||||
*/
|
||||
readonly tag?: Tag
|
||||
readonly tag?: Tag;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -568,11 +701,11 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
*/
|
||||
public createcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiCreatecontentHaloRunV1alpha1TagRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
|
||||
.createcontentHaloRunV1alpha1Tag(requestParameters.tag, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +717,11 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
*/
|
||||
public deletecontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiDeletecontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
|
||||
.deletecontentHaloRunV1alpha1Tag(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +733,11 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
*/
|
||||
public getcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
|
||||
.getcontentHaloRunV1alpha1Tag(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,7 +749,7 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
*/
|
||||
public listcontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
|
||||
.listcontentHaloRunV1alpha1Tag(
|
||||
|
@ -624,9 +757,9 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -638,10 +771,14 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
|
|||
*/
|
||||
public updatecontentHaloRunV1alpha1Tag(
|
||||
requestParameters: ContentHaloRunV1alpha1TagApiUpdatecontentHaloRunV1alpha1TagRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
|
||||
.updatecontentHaloRunV1alpha1Tag(requestParameters.name, requestParameters.tag, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatecontentHaloRunV1alpha1Tag(
|
||||
requestParameters.name,
|
||||
requestParameters.tag,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Counter } from '../models'
|
||||
import { Counter } from "../models";
|
||||
// @ts-ignore
|
||||
import { CounterList } from '../models'
|
||||
import { CounterList } from "../models";
|
||||
/**
|
||||
* MetricsHaloRunV1alpha1CounterApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -49,39 +57,52 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (confi
|
|||
*/
|
||||
createmetricsHaloRunV1alpha1Counter: async (
|
||||
counter?: Counter,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
counter,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -91,41 +112,51 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (confi
|
|||
*/
|
||||
deletemetricsHaloRunV1alpha1Counter: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletemetricsHaloRunV1alpha1Counter', 'name', name)
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -133,40 +164,53 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (confi
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getmetricsHaloRunV1alpha1Counter: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getmetricsHaloRunV1alpha1Counter: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getmetricsHaloRunV1alpha1Counter', 'name', name)
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -182,52 +226,61 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (confi
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -239,54 +292,71 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (confi
|
|||
updatemetricsHaloRunV1alpha1Counter: async (
|
||||
name: string,
|
||||
counter?: Counter,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatemetricsHaloRunV1alpha1Counter', 'name', name)
|
||||
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
counter,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* MetricsHaloRunV1alpha1CounterApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration)
|
||||
export const MetricsHaloRunV1alpha1CounterApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -296,10 +366,21 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async createmetricsHaloRunV1alpha1Counter(
|
||||
counter?: Counter,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(
|
||||
counter,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -309,10 +390,21 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async deletemetricsHaloRunV1alpha1Counter(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -322,10 +414,21 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
*/
|
||||
async getmetricsHaloRunV1alpha1Counter(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -341,16 +444,24 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CounterList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CounterList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -362,17 +473,25 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
async updatemetricsHaloRunV1alpha1Counter(
|
||||
name: string,
|
||||
counter?: Counter,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(
|
||||
name,
|
||||
counter,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Counter>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(
|
||||
name,
|
||||
counter,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* MetricsHaloRunV1alpha1CounterApi - factory interface
|
||||
|
@ -381,9 +500,9 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (configuration?: Conf
|
|||
export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration)
|
||||
const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -393,11 +512,11 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
*/
|
||||
createmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Counter> {
|
||||
return localVarFp
|
||||
.createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -407,11 +526,11 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
*/
|
||||
deletemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -421,11 +540,11 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
*/
|
||||
getmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Counter> {
|
||||
return localVarFp
|
||||
.getmetricsHaloRunV1alpha1Counter(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -435,7 +554,7 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
*/
|
||||
listmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<CounterList> {
|
||||
return localVarFp
|
||||
.listmetricsHaloRunV1alpha1Counter(
|
||||
|
@ -443,9 +562,9 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update metrics.halo.run/v1alpha1/Counter
|
||||
|
@ -455,14 +574,18 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
|
|||
*/
|
||||
updatemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Counter> {
|
||||
return localVarFp
|
||||
.updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters.name,
|
||||
requestParameters.counter,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createmetricsHaloRunV1alpha1Counter operation in MetricsHaloRunV1alpha1CounterApi.
|
||||
|
@ -475,7 +598,7 @@ export interface MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1Cou
|
|||
* @type {Counter}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly counter?: Counter
|
||||
readonly counter?: Counter;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +612,7 @@ export interface MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1Cou
|
|||
* @type {string}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +626,7 @@ export interface MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counte
|
|||
* @type {string}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +640,28 @@ export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Count
|
|||
* @type {number}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +675,14 @@ export interface MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Cou
|
|||
* @type {string}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated counter
|
||||
* @type {Counter}
|
||||
* @memberof MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1Counter
|
||||
*/
|
||||
readonly counter?: Counter
|
||||
readonly counter?: Counter;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +701,11 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
*/
|
||||
public createmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiCreatemetricsHaloRunV1alpha1CounterRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
|
||||
.createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +717,11 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
*/
|
||||
public deletemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiDeletemetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
|
||||
.deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +733,11 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
*/
|
||||
public getmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
|
||||
.getmetricsHaloRunV1alpha1Counter(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +749,7 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
*/
|
||||
public listmetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
|
||||
.listmetricsHaloRunV1alpha1Counter(
|
||||
|
@ -634,9 +757,9 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +771,14 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|||
*/
|
||||
public updatemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters: MetricsHaloRunV1alpha1CounterApiUpdatemetricsHaloRunV1alpha1CounterRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
|
||||
.updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatemetricsHaloRunV1alpha1Counter(
|
||||
requestParameters.name,
|
||||
requestParameters.counter,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Plugin } from '../models'
|
||||
import { Plugin } from "../models";
|
||||
// @ts-ignore
|
||||
import { PluginList } from '../models'
|
||||
import { PluginList } from "../models";
|
||||
/**
|
||||
* PluginHaloRunV1alpha1PluginApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -49,39 +57,52 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configu
|
|||
*/
|
||||
createpluginHaloRunV1alpha1Plugin: async (
|
||||
plugin?: Plugin,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
plugin,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -89,40 +110,53 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletepluginHaloRunV1alpha1Plugin: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletepluginHaloRunV1alpha1Plugin: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletepluginHaloRunV1alpha1Plugin', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletepluginHaloRunV1alpha1Plugin", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -130,40 +164,53 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getpluginHaloRunV1alpha1Plugin: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getpluginHaloRunV1alpha1Plugin: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getpluginHaloRunV1alpha1Plugin', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getpluginHaloRunV1alpha1Plugin", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -179,52 +226,61 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configu
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -236,54 +292,71 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (configu
|
|||
updatepluginHaloRunV1alpha1Plugin: async (
|
||||
name: string,
|
||||
plugin?: Plugin,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatepluginHaloRunV1alpha1Plugin', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatepluginHaloRunV1alpha1Plugin", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(plugin, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
plugin,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1PluginApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration)
|
||||
export const PluginHaloRunV1alpha1PluginApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
PluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -293,10 +366,21 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
*/
|
||||
async createpluginHaloRunV1alpha1Plugin(
|
||||
plugin?: Plugin,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1Plugin(plugin, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createpluginHaloRunV1alpha1Plugin(
|
||||
plugin,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -306,10 +390,21 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
*/
|
||||
async deletepluginHaloRunV1alpha1Plugin(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1Plugin(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1Plugin(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -319,10 +414,21 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
*/
|
||||
async getpluginHaloRunV1alpha1Plugin(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1Plugin(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getpluginHaloRunV1alpha1Plugin(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -338,16 +444,24 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -359,13 +473,25 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
async updatepluginHaloRunV1alpha1Plugin(
|
||||
name: string,
|
||||
plugin?: Plugin,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1Plugin(name, plugin, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1Plugin(
|
||||
name,
|
||||
plugin,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1PluginApi - factory interface
|
||||
|
@ -374,9 +500,9 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (configuration?: Config
|
|||
export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = PluginHaloRunV1alpha1PluginApiFp(configuration)
|
||||
const localVarFp = PluginHaloRunV1alpha1PluginApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -386,11 +512,11 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
*/
|
||||
createpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Plugin> {
|
||||
return localVarFp
|
||||
.createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -400,11 +526,11 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
*/
|
||||
deletepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -414,11 +540,11 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
*/
|
||||
getpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Plugin> {
|
||||
return localVarFp
|
||||
.getpluginHaloRunV1alpha1Plugin(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -428,7 +554,7 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
*/
|
||||
listpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PluginList> {
|
||||
return localVarFp
|
||||
.listpluginHaloRunV1alpha1Plugin(
|
||||
|
@ -436,9 +562,9 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/Plugin
|
||||
|
@ -448,14 +574,18 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
|
|||
*/
|
||||
updatepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Plugin> {
|
||||
return localVarFp
|
||||
.updatepluginHaloRunV1alpha1Plugin(requestParameters.name, requestParameters.plugin, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters.name,
|
||||
requestParameters.plugin,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createpluginHaloRunV1alpha1Plugin operation in PluginHaloRunV1alpha1PluginApi.
|
||||
|
@ -468,7 +598,7 @@ export interface PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1Plugin
|
|||
* @type {Plugin}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly plugin?: Plugin
|
||||
readonly plugin?: Plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -482,7 +612,7 @@ export interface PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1Plugin
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -496,7 +626,7 @@ export interface PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginReq
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -510,28 +640,28 @@ export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRe
|
|||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -545,14 +675,14 @@ export interface PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated plugin
|
||||
* @type {Plugin}
|
||||
* @memberof PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1Plugin
|
||||
*/
|
||||
readonly plugin?: Plugin
|
||||
readonly plugin?: Plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -571,11 +701,11 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
*/
|
||||
public createpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiCreatepluginHaloRunV1alpha1PluginRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
|
||||
.createpluginHaloRunV1alpha1Plugin(requestParameters.plugin, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -587,11 +717,11 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
*/
|
||||
public deletepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiDeletepluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
|
||||
.deletepluginHaloRunV1alpha1Plugin(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -603,11 +733,11 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
*/
|
||||
public getpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
|
||||
.getpluginHaloRunV1alpha1Plugin(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -619,7 +749,7 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
*/
|
||||
public listpluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
|
||||
.listpluginHaloRunV1alpha1Plugin(
|
||||
|
@ -627,9 +757,9 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -641,10 +771,14 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
|
|||
*/
|
||||
public updatepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters: PluginHaloRunV1alpha1PluginApiUpdatepluginHaloRunV1alpha1PluginRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
|
||||
.updatepluginHaloRunV1alpha1Plugin(requestParameters.name, requestParameters.plugin, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatepluginHaloRunV1alpha1Plugin(
|
||||
requestParameters.name,
|
||||
requestParameters.plugin,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { ReverseProxy } from '../models'
|
||||
import { ReverseProxy } from "../models";
|
||||
// @ts-ignore
|
||||
import { ReverseProxyList } from '../models'
|
||||
import { ReverseProxyList } from "../models";
|
||||
/**
|
||||
* PluginHaloRunV1alpha1ReverseProxyApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -49,39 +57,52 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (c
|
|||
*/
|
||||
createpluginHaloRunV1alpha1ReverseProxy: async (
|
||||
reverseProxy?: ReverseProxy,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
reverseProxy,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -91,41 +112,55 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (c
|
|||
*/
|
||||
deletepluginHaloRunV1alpha1ReverseProxy: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletepluginHaloRunV1alpha1ReverseProxy', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists(
|
||||
"deletepluginHaloRunV1alpha1ReverseProxy",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -135,41 +170,51 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (c
|
|||
*/
|
||||
getpluginHaloRunV1alpha1ReverseProxy: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getpluginHaloRunV1alpha1ReverseProxy', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getpluginHaloRunV1alpha1ReverseProxy", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -185,52 +230,61 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (c
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -242,54 +296,75 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (c
|
|||
updatepluginHaloRunV1alpha1ReverseProxy: async (
|
||||
name: string,
|
||||
reverseProxy?: ReverseProxy,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatepluginHaloRunV1alpha1ReverseProxy', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists(
|
||||
"updatepluginHaloRunV1alpha1ReverseProxy",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(reverseProxy, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
reverseProxy,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1ReverseProxyApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator(configuration)
|
||||
export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -299,13 +374,21 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
*/
|
||||
async createpluginHaloRunV1alpha1ReverseProxy(
|
||||
reverseProxy?: ReverseProxy,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ReverseProxy(
|
||||
reverseProxy,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createpluginHaloRunV1alpha1ReverseProxy(
|
||||
reverseProxy,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -315,10 +398,21 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
*/
|
||||
async deletepluginHaloRunV1alpha1ReverseProxy(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ReverseProxy(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1ReverseProxy(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -328,10 +422,21 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
*/
|
||||
async getpluginHaloRunV1alpha1ReverseProxy(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ReverseProxy(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getpluginHaloRunV1alpha1ReverseProxy(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -347,16 +452,27 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxyList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<ReverseProxyList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -368,17 +484,25 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
async updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
name: string,
|
||||
reverseProxy?: ReverseProxy,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
name,
|
||||
reverseProxy,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReverseProxy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
name,
|
||||
reverseProxy,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1ReverseProxyApi - factory interface
|
||||
|
@ -387,9 +511,9 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (configuration?:
|
|||
export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = PluginHaloRunV1alpha1ReverseProxyApiFp(configuration)
|
||||
const localVarFp = PluginHaloRunV1alpha1ReverseProxyApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -399,11 +523,14 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
*/
|
||||
createpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReverseProxy> {
|
||||
return localVarFp
|
||||
.createpluginHaloRunV1alpha1ReverseProxy(requestParameters.reverseProxy, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters.reverseProxy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -413,11 +540,14 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
*/
|
||||
deletepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.deletepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters.name,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -427,11 +557,11 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
*/
|
||||
getpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReverseProxy> {
|
||||
return localVarFp
|
||||
.getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -441,7 +571,7 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
*/
|
||||
listpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReverseProxyList> {
|
||||
return localVarFp
|
||||
.listpluginHaloRunV1alpha1ReverseProxy(
|
||||
|
@ -449,9 +579,9 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/ReverseProxy
|
||||
|
@ -461,14 +591,18 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
|
|||
*/
|
||||
updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ReverseProxy> {
|
||||
return localVarFp
|
||||
.updatepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, requestParameters.reverseProxy, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters.name,
|
||||
requestParameters.reverseProxy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createpluginHaloRunV1alpha1ReverseProxy operation in PluginHaloRunV1alpha1ReverseProxyApi.
|
||||
|
@ -481,7 +615,7 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1
|
|||
* @type {ReverseProxy}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly reverseProxy?: ReverseProxy
|
||||
readonly reverseProxy?: ReverseProxy;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -495,7 +629,7 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -509,7 +643,7 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1Rev
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,28 +657,28 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1Re
|
|||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -558,14 +692,14 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated reverseproxy
|
||||
* @type {ReverseProxy}
|
||||
* @memberof PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxy
|
||||
*/
|
||||
readonly reverseProxy?: ReverseProxy
|
||||
readonly reverseProxy?: ReverseProxy;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +718,14 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
*/
|
||||
public createpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiCreatepluginHaloRunV1alpha1ReverseProxyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
|
||||
.createpluginHaloRunV1alpha1ReverseProxy(requestParameters.reverseProxy, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters.reverseProxy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +737,11 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
*/
|
||||
public deletepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiDeletepluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
|
||||
.deletepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,11 +753,11 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
*/
|
||||
public getpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
|
||||
.getpluginHaloRunV1alpha1ReverseProxy(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,7 +769,7 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
*/
|
||||
public listpluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
|
||||
.listpluginHaloRunV1alpha1ReverseProxy(
|
||||
|
@ -640,9 +777,9 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -654,10 +791,14 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
|
|||
*/
|
||||
public updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters: PluginHaloRunV1alpha1ReverseProxyApiUpdatepluginHaloRunV1alpha1ReverseProxyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
|
||||
.updatepluginHaloRunV1alpha1ReverseProxy(requestParameters.name, requestParameters.reverseProxy, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatepluginHaloRunV1alpha1ReverseProxy(
|
||||
requestParameters.name,
|
||||
requestParameters.reverseProxy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { SearchEngine } from '../models'
|
||||
import { SearchEngine } from "../models";
|
||||
// @ts-ignore
|
||||
import { SearchEngineList } from '../models'
|
||||
import { SearchEngineList } from "../models";
|
||||
/**
|
||||
* PluginHaloRunV1alpha1SearchEngineApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -49,39 +57,52 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (c
|
|||
*/
|
||||
createpluginHaloRunV1alpha1SearchEngine: async (
|
||||
searchEngine?: SearchEngine,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(searchEngine, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
searchEngine,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -91,41 +112,55 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (c
|
|||
*/
|
||||
deletepluginHaloRunV1alpha1SearchEngine: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletepluginHaloRunV1alpha1SearchEngine', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists(
|
||||
"deletepluginHaloRunV1alpha1SearchEngine",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -135,41 +170,51 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (c
|
|||
*/
|
||||
getpluginHaloRunV1alpha1SearchEngine: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getpluginHaloRunV1alpha1SearchEngine', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getpluginHaloRunV1alpha1SearchEngine", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -185,52 +230,61 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (c
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -242,54 +296,75 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (c
|
|||
updatepluginHaloRunV1alpha1SearchEngine: async (
|
||||
name: string,
|
||||
searchEngine?: SearchEngine,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatepluginHaloRunV1alpha1SearchEngine', 'name', name)
|
||||
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists(
|
||||
"updatepluginHaloRunV1alpha1SearchEngine",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/plugin.halo.run/v1alpha1/searchengines/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(searchEngine, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
searchEngine,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1SearchEngineApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator(configuration)
|
||||
export const PluginHaloRunV1alpha1SearchEngineApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -299,13 +374,21 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
*/
|
||||
async createpluginHaloRunV1alpha1SearchEngine(
|
||||
searchEngine?: SearchEngine,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createpluginHaloRunV1alpha1SearchEngine(
|
||||
searchEngine,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createpluginHaloRunV1alpha1SearchEngine(
|
||||
searchEngine,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -315,10 +398,21 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
*/
|
||||
async deletepluginHaloRunV1alpha1SearchEngine(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1SearchEngine(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletepluginHaloRunV1alpha1SearchEngine(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -328,10 +422,21 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
*/
|
||||
async getpluginHaloRunV1alpha1SearchEngine(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getpluginHaloRunV1alpha1SearchEngine(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getpluginHaloRunV1alpha1SearchEngine(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -347,16 +452,27 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngineList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listpluginHaloRunV1alpha1SearchEngine(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<SearchEngineList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1SearchEngine(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -368,17 +484,25 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
async updatepluginHaloRunV1alpha1SearchEngine(
|
||||
name: string,
|
||||
searchEngine?: SearchEngine,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1SearchEngine(
|
||||
name,
|
||||
searchEngine,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchEngine>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatepluginHaloRunV1alpha1SearchEngine(
|
||||
name,
|
||||
searchEngine,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* PluginHaloRunV1alpha1SearchEngineApi - factory interface
|
||||
|
@ -387,9 +511,9 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (configuration?:
|
|||
export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = PluginHaloRunV1alpha1SearchEngineApiFp(configuration)
|
||||
const localVarFp = PluginHaloRunV1alpha1SearchEngineApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -399,11 +523,14 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
*/
|
||||
createpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SearchEngine> {
|
||||
return localVarFp
|
||||
.createpluginHaloRunV1alpha1SearchEngine(requestParameters.searchEngine, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters.searchEngine,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -413,11 +540,14 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
*/
|
||||
deletepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletepluginHaloRunV1alpha1SearchEngine(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.deletepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters.name,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -427,11 +557,11 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
*/
|
||||
getpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SearchEngine> {
|
||||
return localVarFp
|
||||
.getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -441,7 +571,7 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
*/
|
||||
listpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SearchEngineList> {
|
||||
return localVarFp
|
||||
.listpluginHaloRunV1alpha1SearchEngine(
|
||||
|
@ -449,9 +579,9 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update plugin.halo.run/v1alpha1/SearchEngine
|
||||
|
@ -461,14 +591,18 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
|
|||
*/
|
||||
updatepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SearchEngine> {
|
||||
return localVarFp
|
||||
.updatepluginHaloRunV1alpha1SearchEngine(requestParameters.name, requestParameters.searchEngine, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters.name,
|
||||
requestParameters.searchEngine,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createpluginHaloRunV1alpha1SearchEngine operation in PluginHaloRunV1alpha1SearchEngineApi.
|
||||
|
@ -481,7 +615,7 @@ export interface PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1
|
|||
* @type {SearchEngine}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly searchEngine?: SearchEngine
|
||||
readonly searchEngine?: SearchEngine;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -495,7 +629,7 @@ export interface PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -509,7 +643,7 @@ export interface PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1Sea
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,28 +657,28 @@ export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1Se
|
|||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -558,14 +692,14 @@ export interface PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated searchengine
|
||||
* @type {SearchEngine}
|
||||
* @memberof PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngine
|
||||
*/
|
||||
readonly searchEngine?: SearchEngine
|
||||
readonly searchEngine?: SearchEngine;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +718,14 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
*/
|
||||
public createpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiCreatepluginHaloRunV1alpha1SearchEngineRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
|
||||
.createpluginHaloRunV1alpha1SearchEngine(requestParameters.searchEngine, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters.searchEngine,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +737,11 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
*/
|
||||
public deletepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiDeletepluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
|
||||
.deletepluginHaloRunV1alpha1SearchEngine(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,11 +753,11 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
*/
|
||||
public getpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
|
||||
.getpluginHaloRunV1alpha1SearchEngine(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,7 +769,7 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
*/
|
||||
public listpluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
|
||||
.listpluginHaloRunV1alpha1SearchEngine(
|
||||
|
@ -640,9 +777,9 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -654,10 +791,14 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
|
|||
*/
|
||||
public updatepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters: PluginHaloRunV1alpha1SearchEngineApiUpdatepluginHaloRunV1alpha1SearchEngineRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
|
||||
.updatepluginHaloRunV1alpha1SearchEngine(requestParameters.name, requestParameters.searchEngine, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatepluginHaloRunV1alpha1SearchEngine(
|
||||
requestParameters.name,
|
||||
requestParameters.searchEngine,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Attachment } from '../models'
|
||||
import { Attachment } from "../models";
|
||||
// @ts-ignore
|
||||
import { AttachmentList } from '../models'
|
||||
import { AttachmentList } from "../models";
|
||||
/**
|
||||
* StorageHaloRunV1alpha1AttachmentApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -49,39 +57,52 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (co
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Attachment: async (
|
||||
attachment?: Attachment,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
attachment,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -91,41 +112,51 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (co
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1Attachment: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletestorageHaloRunV1alpha1Attachment', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletestorageHaloRunV1alpha1Attachment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -135,41 +166,51 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (co
|
|||
*/
|
||||
getstorageHaloRunV1alpha1Attachment: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getstorageHaloRunV1alpha1Attachment', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getstorageHaloRunV1alpha1Attachment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -185,52 +226,61 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (co
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -242,54 +292,71 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (co
|
|||
updatestorageHaloRunV1alpha1Attachment: async (
|
||||
name: string,
|
||||
attachment?: Attachment,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatestorageHaloRunV1alpha1Attachment', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatestorageHaloRunV1alpha1Attachment", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(attachment, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
attachment,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1AttachmentApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration)
|
||||
export const StorageHaloRunV1alpha1AttachmentApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -299,13 +366,21 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
*/
|
||||
async createstorageHaloRunV1alpha1Attachment(
|
||||
attachment?: Attachment,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Attachment(
|
||||
attachment,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Attachment(
|
||||
attachment,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -315,10 +390,21 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
*/
|
||||
async deletestorageHaloRunV1alpha1Attachment(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Attachment(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Attachment(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -328,10 +414,21 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
*/
|
||||
async getstorageHaloRunV1alpha1Attachment(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Attachment(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Attachment(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -347,16 +444,24 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -368,17 +473,25 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
async updatestorageHaloRunV1alpha1Attachment(
|
||||
name: string,
|
||||
attachment?: Attachment,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(
|
||||
name,
|
||||
attachment,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attachment>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Attachment(
|
||||
name,
|
||||
attachment,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1AttachmentApi - factory interface
|
||||
|
@ -387,9 +500,9 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (configuration?: C
|
|||
export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = StorageHaloRunV1alpha1AttachmentApiFp(configuration)
|
||||
const localVarFp = StorageHaloRunV1alpha1AttachmentApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -399,11 +512,14 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Attachment> {
|
||||
return localVarFp
|
||||
.createstorageHaloRunV1alpha1Attachment(requestParameters.attachment, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters.attachment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -413,11 +529,11 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -427,11 +543,11 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
getstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Attachment> {
|
||||
return localVarFp
|
||||
.getstorageHaloRunV1alpha1Attachment(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -441,7 +557,7 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
liststorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AttachmentList> {
|
||||
return localVarFp
|
||||
.liststorageHaloRunV1alpha1Attachment(
|
||||
|
@ -449,9 +565,9 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Attachment
|
||||
|
@ -461,14 +577,18 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
|
|||
*/
|
||||
updatestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Attachment> {
|
||||
return localVarFp
|
||||
.updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters.name,
|
||||
requestParameters.attachment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createstorageHaloRunV1alpha1Attachment operation in StorageHaloRunV1alpha1AttachmentApi.
|
||||
|
@ -481,7 +601,7 @@ export interface StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1
|
|||
* @type {Attachment}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly attachment?: Attachment
|
||||
readonly attachment?: Attachment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -495,7 +615,7 @@ export interface StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -509,7 +629,7 @@ export interface StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Att
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,28 +643,28 @@ export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1At
|
|||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -558,14 +678,14 @@ export interface StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated attachment
|
||||
* @type {Attachment}
|
||||
* @memberof StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1Attachment
|
||||
*/
|
||||
readonly attachment?: Attachment
|
||||
readonly attachment?: Attachment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +704,14 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public createstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiCreatestorageHaloRunV1alpha1AttachmentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.createstorageHaloRunV1alpha1Attachment(requestParameters.attachment, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters.attachment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +723,11 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public deletestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiDeletestorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.deletestorageHaloRunV1alpha1Attachment(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,11 +739,11 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public getstorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.getstorageHaloRunV1alpha1Attachment(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,7 +755,7 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public liststorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.liststorageHaloRunV1alpha1Attachment(
|
||||
|
@ -640,9 +763,9 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -654,10 +777,14 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|||
*/
|
||||
public updatestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters: StorageHaloRunV1alpha1AttachmentApiUpdatestorageHaloRunV1alpha1AttachmentRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
|
||||
.updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatestorageHaloRunV1alpha1Attachment(
|
||||
requestParameters.name,
|
||||
requestParameters.attachment,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Group } from '../models'
|
||||
import { Group } from "../models";
|
||||
// @ts-ignore
|
||||
import { GroupList } from '../models'
|
||||
import { GroupList } from "../models";
|
||||
/**
|
||||
* StorageHaloRunV1alpha1GroupApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Group
|
||||
|
@ -49,39 +57,52 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configu
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Group: async (
|
||||
group?: Group,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
group,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Group
|
||||
|
@ -89,40 +110,53 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletestorageHaloRunV1alpha1Group: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletestorageHaloRunV1alpha1Group: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletestorageHaloRunV1alpha1Group', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletestorageHaloRunV1alpha1Group", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Group
|
||||
|
@ -130,40 +164,53 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getstorageHaloRunV1alpha1Group: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getstorageHaloRunV1alpha1Group: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getstorageHaloRunV1alpha1Group', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getstorageHaloRunV1alpha1Group", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Group
|
||||
|
@ -179,52 +226,61 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configu
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Group
|
||||
|
@ -236,54 +292,71 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (configu
|
|||
updatestorageHaloRunV1alpha1Group: async (
|
||||
name: string,
|
||||
group?: Group,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatestorageHaloRunV1alpha1Group', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatestorageHaloRunV1alpha1Group", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(group, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
group,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1GroupApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = StorageHaloRunV1alpha1GroupApiAxiosParamCreator(configuration)
|
||||
export const StorageHaloRunV1alpha1GroupApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
StorageHaloRunV1alpha1GroupApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Group
|
||||
|
@ -293,10 +366,21 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
*/
|
||||
async createstorageHaloRunV1alpha1Group(
|
||||
group?: Group,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Group(group, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Group(
|
||||
group,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Group
|
||||
|
@ -306,10 +390,21 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
*/
|
||||
async deletestorageHaloRunV1alpha1Group(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Group(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Group(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Group
|
||||
|
@ -319,10 +414,21 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
*/
|
||||
async getstorageHaloRunV1alpha1Group(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Group(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Group(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Group
|
||||
|
@ -338,16 +444,24 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Group
|
||||
|
@ -359,13 +473,25 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
async updatestorageHaloRunV1alpha1Group(
|
||||
name: string,
|
||||
group?: Group,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Group(name, group, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Group(
|
||||
name,
|
||||
group,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1GroupApi - factory interface
|
||||
|
@ -374,9 +500,9 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (configuration?: Config
|
|||
export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = StorageHaloRunV1alpha1GroupApiFp(configuration)
|
||||
const localVarFp = StorageHaloRunV1alpha1GroupApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Group
|
||||
|
@ -386,11 +512,11 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Group> {
|
||||
return localVarFp
|
||||
.createstorageHaloRunV1alpha1Group(requestParameters.group, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Group
|
||||
|
@ -400,11 +526,11 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletestorageHaloRunV1alpha1Group(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Group
|
||||
|
@ -414,11 +540,11 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
*/
|
||||
getstorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Group> {
|
||||
return localVarFp
|
||||
.getstorageHaloRunV1alpha1Group(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Group
|
||||
|
@ -428,7 +554,7 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
*/
|
||||
liststorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<GroupList> {
|
||||
return localVarFp
|
||||
.liststorageHaloRunV1alpha1Group(
|
||||
|
@ -436,9 +562,9 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Group
|
||||
|
@ -448,14 +574,18 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
|
|||
*/
|
||||
updatestorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Group> {
|
||||
return localVarFp
|
||||
.updatestorageHaloRunV1alpha1Group(requestParameters.name, requestParameters.group, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatestorageHaloRunV1alpha1Group(
|
||||
requestParameters.name,
|
||||
requestParameters.group,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createstorageHaloRunV1alpha1Group operation in StorageHaloRunV1alpha1GroupApi.
|
||||
|
@ -468,7 +598,7 @@ export interface StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1Group
|
|||
* @type {Group}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly group?: Group
|
||||
readonly group?: Group;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -482,7 +612,7 @@ export interface StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1Group
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -496,7 +626,7 @@ export interface StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupReq
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -510,28 +640,28 @@ export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRe
|
|||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -545,14 +675,14 @@ export interface StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated group
|
||||
* @type {Group}
|
||||
* @memberof StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1Group
|
||||
*/
|
||||
readonly group?: Group
|
||||
readonly group?: Group;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -571,11 +701,11 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
*/
|
||||
public createstorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiCreatestorageHaloRunV1alpha1GroupRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
|
||||
.createstorageHaloRunV1alpha1Group(requestParameters.group, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -587,11 +717,11 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
*/
|
||||
public deletestorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiDeletestorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
|
||||
.deletestorageHaloRunV1alpha1Group(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -603,11 +733,11 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
*/
|
||||
public getstorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
|
||||
.getstorageHaloRunV1alpha1Group(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -619,7 +749,7 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
*/
|
||||
public liststorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
|
||||
.liststorageHaloRunV1alpha1Group(
|
||||
|
@ -627,9 +757,9 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -641,10 +771,14 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
|
|||
*/
|
||||
public updatestorageHaloRunV1alpha1Group(
|
||||
requestParameters: StorageHaloRunV1alpha1GroupApiUpdatestorageHaloRunV1alpha1GroupRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
|
||||
.updatestorageHaloRunV1alpha1Group(requestParameters.name, requestParameters.group, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatestorageHaloRunV1alpha1Group(
|
||||
requestParameters.name,
|
||||
requestParameters.group,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Policy } from '../models'
|
||||
import { Policy } from "../models";
|
||||
// @ts-ignore
|
||||
import { PolicyList } from '../models'
|
||||
import { PolicyList } from "../models";
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Policy
|
||||
|
@ -49,39 +57,52 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (config
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Policy: async (
|
||||
policy?: Policy,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
policy,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Policy
|
||||
|
@ -91,41 +112,51 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (config
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1Policy: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletestorageHaloRunV1alpha1Policy', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletestorageHaloRunV1alpha1Policy", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Policy
|
||||
|
@ -133,40 +164,53 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getstorageHaloRunV1alpha1Policy: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getstorageHaloRunV1alpha1Policy: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getstorageHaloRunV1alpha1Policy', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getstorageHaloRunV1alpha1Policy", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Policy
|
||||
|
@ -182,52 +226,61 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Policy
|
||||
|
@ -239,54 +292,71 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (config
|
|||
updatestorageHaloRunV1alpha1Policy: async (
|
||||
name: string,
|
||||
policy?: Policy,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatestorageHaloRunV1alpha1Policy', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatestorageHaloRunV1alpha1Policy", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(policy, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
policy,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyApiAxiosParamCreator(configuration)
|
||||
export const StorageHaloRunV1alpha1PolicyApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
StorageHaloRunV1alpha1PolicyApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Policy
|
||||
|
@ -296,10 +366,21 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
*/
|
||||
async createstorageHaloRunV1alpha1Policy(
|
||||
policy?: Policy,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Policy(policy, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createstorageHaloRunV1alpha1Policy(
|
||||
policy,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Policy
|
||||
|
@ -309,10 +390,21 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
*/
|
||||
async deletestorageHaloRunV1alpha1Policy(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Policy(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1Policy(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Policy
|
||||
|
@ -322,10 +414,21 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
*/
|
||||
async getstorageHaloRunV1alpha1Policy(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Policy(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getstorageHaloRunV1alpha1Policy(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Policy
|
||||
|
@ -341,16 +444,24 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Policy
|
||||
|
@ -362,17 +473,25 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
async updatestorageHaloRunV1alpha1Policy(
|
||||
name: string,
|
||||
policy?: Policy,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Policy(
|
||||
name,
|
||||
policy,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Policy>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1Policy(
|
||||
name,
|
||||
policy,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyApi - factory interface
|
||||
|
@ -381,9 +500,9 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (configuration?: Confi
|
|||
export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = StorageHaloRunV1alpha1PolicyApiFp(configuration)
|
||||
const localVarFp = StorageHaloRunV1alpha1PolicyApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/Policy
|
||||
|
@ -393,11 +512,11 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
*/
|
||||
createstorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Policy> {
|
||||
return localVarFp
|
||||
.createstorageHaloRunV1alpha1Policy(requestParameters.policy, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/Policy
|
||||
|
@ -407,11 +526,11 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletestorageHaloRunV1alpha1Policy(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/Policy
|
||||
|
@ -421,11 +540,11 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
*/
|
||||
getstorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Policy> {
|
||||
return localVarFp
|
||||
.getstorageHaloRunV1alpha1Policy(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/Policy
|
||||
|
@ -435,7 +554,7 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
*/
|
||||
liststorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PolicyList> {
|
||||
return localVarFp
|
||||
.liststorageHaloRunV1alpha1Policy(
|
||||
|
@ -443,9 +562,9 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/Policy
|
||||
|
@ -455,14 +574,18 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
|
|||
*/
|
||||
updatestorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Policy> {
|
||||
return localVarFp
|
||||
.updatestorageHaloRunV1alpha1Policy(requestParameters.name, requestParameters.policy, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatestorageHaloRunV1alpha1Policy(
|
||||
requestParameters.name,
|
||||
requestParameters.policy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createstorageHaloRunV1alpha1Policy operation in StorageHaloRunV1alpha1PolicyApi.
|
||||
|
@ -475,7 +598,7 @@ export interface StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1Poli
|
|||
* @type {Policy}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly policy?: Policy
|
||||
readonly policy?: Policy;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +612,7 @@ export interface StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1Poli
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +626,7 @@ export interface StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyR
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +640,28 @@ export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
|
|||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +675,14 @@ export interface StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Poli
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated policy
|
||||
* @type {Policy}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1Policy
|
||||
*/
|
||||
readonly policy?: Policy
|
||||
readonly policy?: Policy;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +701,11 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
*/
|
||||
public createstorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiCreatestorageHaloRunV1alpha1PolicyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
|
||||
.createstorageHaloRunV1alpha1Policy(requestParameters.policy, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +717,11 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
*/
|
||||
public deletestorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiDeletestorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
|
||||
.deletestorageHaloRunV1alpha1Policy(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +733,11 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
*/
|
||||
public getstorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
|
||||
.getstorageHaloRunV1alpha1Policy(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +749,7 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
*/
|
||||
public liststorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
|
||||
.liststorageHaloRunV1alpha1Policy(
|
||||
|
@ -634,9 +757,9 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +771,14 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
|
|||
*/
|
||||
public updatestorageHaloRunV1alpha1Policy(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyApiUpdatestorageHaloRunV1alpha1PolicyRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
|
||||
.updatestorageHaloRunV1alpha1Policy(requestParameters.name, requestParameters.policy, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatestorageHaloRunV1alpha1Policy(
|
||||
requestParameters.name,
|
||||
requestParameters.policy,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,268 +28,346 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { PolicyTemplate } from '../models'
|
||||
import { PolicyTemplate } from "../models";
|
||||
// @ts-ignore
|
||||
import { PolicyTemplateList } from '../models'
|
||||
import { PolicyTemplateList } from "../models";
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyTemplateApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {PolicyTemplate} [policyTemplate] Fresh policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createstorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
|
||||
function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {PolicyTemplate} [policyTemplate] Fresh policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createstorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
policyTemplate,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletestorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletestorageHaloRunV1alpha1PolicyTemplate', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletestorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists(
|
||||
"deletestorageHaloRunV1alpha1PolicyTemplate",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getstorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getstorageHaloRunV1alpha1PolicyTemplate', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getstorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists(
|
||||
"getstorageHaloRunV1alpha1PolicyTemplate",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
liststorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
page?: number,
|
||||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {number} [page] The page number. Zero indicates no page.
|
||||
* @param {number} [size] Size of one page. Zero indicates no limit.
|
||||
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
||||
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
liststorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
page?: number,
|
||||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
}
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
}
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
}
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
}
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {PolicyTemplate} [policyTemplate] Updated policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updatestorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options: AxiosRequestConfig = {},
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatestorageHaloRunV1alpha1PolicyTemplate', 'name', name)
|
||||
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/PolicyTemplate
|
||||
* @param {string} name Name of policytemplate
|
||||
* @param {PolicyTemplate} [policyTemplate] Updated policytemplate
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updatestorageHaloRunV1alpha1PolicyTemplate: async (
|
||||
name: string,
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists(
|
||||
"updatestorageHaloRunV1alpha1PolicyTemplate",
|
||||
"name",
|
||||
name
|
||||
);
|
||||
const localVarPath =
|
||||
`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(policyTemplate, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
policyTemplate,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyTemplateApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator(configuration)
|
||||
export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -299,13 +377,21 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
*/
|
||||
async createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
policyTemplate,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
policyTemplate,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -315,13 +401,21 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
*/
|
||||
async deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -331,10 +425,21 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
*/
|
||||
async getstorageHaloRunV1alpha1PolicyTemplate(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getstorageHaloRunV1alpha1PolicyTemplate(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getstorageHaloRunV1alpha1PolicyTemplate(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -350,16 +455,27 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplateList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<PolicyTemplateList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -371,17 +487,25 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
async updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name: string,
|
||||
policyTemplate?: PolicyTemplate,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name,
|
||||
policyTemplate,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyTemplate>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
name,
|
||||
policyTemplate,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* StorageHaloRunV1alpha1PolicyTemplateApi - factory interface
|
||||
|
@ -390,9 +514,9 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (configuration
|
|||
export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = StorageHaloRunV1alpha1PolicyTemplateApiFp(configuration)
|
||||
const localVarFp = StorageHaloRunV1alpha1PolicyTemplateApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -402,11 +526,14 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
*/
|
||||
createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PolicyTemplate> {
|
||||
return localVarFp
|
||||
.createstorageHaloRunV1alpha1PolicyTemplate(requestParameters.policyTemplate, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.policyTemplate,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -416,11 +543,14 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
*/
|
||||
deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.name,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -430,11 +560,14 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
*/
|
||||
getstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PolicyTemplate> {
|
||||
return localVarFp
|
||||
.getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.getstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.name,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -444,7 +577,7 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
*/
|
||||
liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PolicyTemplateList> {
|
||||
return localVarFp
|
||||
.liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
|
@ -452,9 +585,9 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update storage.halo.run/v1alpha1/PolicyTemplate
|
||||
|
@ -464,14 +597,18 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
|
|||
*/
|
||||
updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PolicyTemplate> {
|
||||
return localVarFp
|
||||
.updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, requestParameters.policyTemplate, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.name,
|
||||
requestParameters.policyTemplate,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createstorageHaloRunV1alpha1PolicyTemplate operation in StorageHaloRunV1alpha1PolicyTemplateApi.
|
||||
|
@ -484,7 +621,7 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1al
|
|||
* @type {PolicyTemplate}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly policyTemplate?: PolicyTemplate
|
||||
readonly policyTemplate?: PolicyTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -498,7 +635,7 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1al
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -512,7 +649,7 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -526,28 +663,28 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alph
|
|||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -561,14 +698,14 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1al
|
|||
* @type {string}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated policytemplate
|
||||
* @type {PolicyTemplate}
|
||||
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplate
|
||||
*/
|
||||
readonly policyTemplate?: PolicyTemplate
|
||||
readonly policyTemplate?: PolicyTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -587,11 +724,14 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
*/
|
||||
public createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiCreatestorageHaloRunV1alpha1PolicyTemplateRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
|
||||
.createstorageHaloRunV1alpha1PolicyTemplate(requestParameters.policyTemplate, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.policyTemplate,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -603,11 +743,14 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
*/
|
||||
public deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiDeletestorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
|
||||
.deletestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.deletestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.name,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -619,11 +762,11 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
*/
|
||||
public getstorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
|
||||
.getstorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -635,7 +778,7 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
*/
|
||||
public liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
|
||||
.liststorageHaloRunV1alpha1PolicyTemplate(
|
||||
|
@ -643,9 +786,9 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -657,10 +800,14 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
|
|||
*/
|
||||
public updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters: StorageHaloRunV1alpha1PolicyTemplateApiUpdatestorageHaloRunV1alpha1PolicyTemplateRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
|
||||
.updatestorageHaloRunV1alpha1PolicyTemplate(requestParameters.name, requestParameters.policyTemplate, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatestorageHaloRunV1alpha1PolicyTemplate(
|
||||
requestParameters.name,
|
||||
requestParameters.policyTemplate,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Theme } from '../models'
|
||||
import { Theme } from "../models";
|
||||
// @ts-ignore
|
||||
import { ThemeList } from '../models'
|
||||
import { ThemeList } from "../models";
|
||||
/**
|
||||
* ThemeHaloRunV1alpha1ThemeApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create theme.halo.run/v1alpha1/Theme
|
||||
|
@ -47,38 +55,54 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createthemeHaloRunV1alpha1Theme: async (theme?: Theme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`
|
||||
createthemeHaloRunV1alpha1Theme: async (
|
||||
theme?: Theme,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(theme, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
theme,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete theme.halo.run/v1alpha1/Theme
|
||||
|
@ -86,40 +110,53 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletethemeHaloRunV1alpha1Theme: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletethemeHaloRunV1alpha1Theme: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletethemeHaloRunV1alpha1Theme', 'name', name)
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("deletethemeHaloRunV1alpha1Theme", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get theme.halo.run/v1alpha1/Theme
|
||||
|
@ -127,40 +164,53 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getthemeHaloRunV1alpha1Theme: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getthemeHaloRunV1alpha1Theme: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getthemeHaloRunV1alpha1Theme', 'name', name)
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("getthemeHaloRunV1alpha1Theme", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List theme.halo.run/v1alpha1/Theme
|
||||
|
@ -176,52 +226,61 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configura
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update theme.halo.run/v1alpha1/Theme
|
||||
|
@ -233,54 +292,71 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (configura
|
|||
updatethemeHaloRunV1alpha1Theme: async (
|
||||
name: string,
|
||||
theme?: Theme,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatethemeHaloRunV1alpha1Theme', 'name', name)
|
||||
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
assertParamExists("updatethemeHaloRunV1alpha1Theme", "name", name);
|
||||
const localVarPath =
|
||||
`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(theme, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
theme,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ThemeHaloRunV1alpha1ThemeApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration)
|
||||
export const ThemeHaloRunV1alpha1ThemeApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create theme.halo.run/v1alpha1/Theme
|
||||
|
@ -290,10 +366,21 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async createthemeHaloRunV1alpha1Theme(
|
||||
theme?: Theme,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createthemeHaloRunV1alpha1Theme(theme, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createthemeHaloRunV1alpha1Theme(
|
||||
theme,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete theme.halo.run/v1alpha1/Theme
|
||||
|
@ -303,10 +390,21 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async deletethemeHaloRunV1alpha1Theme(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletethemeHaloRunV1alpha1Theme(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletethemeHaloRunV1alpha1Theme(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get theme.halo.run/v1alpha1/Theme
|
||||
|
@ -316,10 +414,21 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async getthemeHaloRunV1alpha1Theme(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getthemeHaloRunV1alpha1Theme(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getthemeHaloRunV1alpha1Theme(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List theme.halo.run/v1alpha1/Theme
|
||||
|
@ -335,16 +444,24 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ThemeList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listthemeHaloRunV1alpha1Theme(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ThemeList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listthemeHaloRunV1alpha1Theme(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update theme.halo.run/v1alpha1/Theme
|
||||
|
@ -356,13 +473,25 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
async updatethemeHaloRunV1alpha1Theme(
|
||||
name: string,
|
||||
theme?: Theme,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatethemeHaloRunV1alpha1Theme(name, theme, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Theme>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatethemeHaloRunV1alpha1Theme(
|
||||
name,
|
||||
theme,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ThemeHaloRunV1alpha1ThemeApi - factory interface
|
||||
|
@ -371,9 +500,9 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (configuration?: Configur
|
|||
export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = ThemeHaloRunV1alpha1ThemeApiFp(configuration)
|
||||
const localVarFp = ThemeHaloRunV1alpha1ThemeApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create theme.halo.run/v1alpha1/Theme
|
||||
|
@ -383,11 +512,11 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
*/
|
||||
createthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Theme> {
|
||||
return localVarFp
|
||||
.createthemeHaloRunV1alpha1Theme(requestParameters.theme, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete theme.halo.run/v1alpha1/Theme
|
||||
|
@ -397,11 +526,11 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
*/
|
||||
deletethemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletethemeHaloRunV1alpha1Theme(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get theme.halo.run/v1alpha1/Theme
|
||||
|
@ -411,11 +540,11 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
*/
|
||||
getthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Theme> {
|
||||
return localVarFp
|
||||
.getthemeHaloRunV1alpha1Theme(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List theme.halo.run/v1alpha1/Theme
|
||||
|
@ -425,7 +554,7 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
*/
|
||||
listthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ThemeList> {
|
||||
return localVarFp
|
||||
.listthemeHaloRunV1alpha1Theme(
|
||||
|
@ -433,9 +562,9 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update theme.halo.run/v1alpha1/Theme
|
||||
|
@ -445,14 +574,18 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
|
|||
*/
|
||||
updatethemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Theme> {
|
||||
return localVarFp
|
||||
.updatethemeHaloRunV1alpha1Theme(requestParameters.name, requestParameters.theme, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatethemeHaloRunV1alpha1Theme(
|
||||
requestParameters.name,
|
||||
requestParameters.theme,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createthemeHaloRunV1alpha1Theme operation in ThemeHaloRunV1alpha1ThemeApi.
|
||||
|
@ -465,7 +598,7 @@ export interface ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequ
|
|||
* @type {Theme}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly theme?: Theme
|
||||
readonly theme?: Theme;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,7 +612,7 @@ export interface ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequ
|
|||
* @type {string}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -493,7 +626,7 @@ export interface ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest
|
|||
* @type {string}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -507,28 +640,28 @@ export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeReques
|
|||
* @type {number}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -542,14 +675,14 @@ export interface ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequ
|
|||
* @type {string}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated theme
|
||||
* @type {Theme}
|
||||
* @memberof ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1Theme
|
||||
*/
|
||||
readonly theme?: Theme
|
||||
readonly theme?: Theme;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -568,11 +701,11 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
*/
|
||||
public createthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiCreatethemeHaloRunV1alpha1ThemeRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
|
||||
.createthemeHaloRunV1alpha1Theme(requestParameters.theme, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -584,11 +717,11 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
*/
|
||||
public deletethemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiDeletethemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
|
||||
.deletethemeHaloRunV1alpha1Theme(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -600,11 +733,11 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
*/
|
||||
public getthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
|
||||
.getthemeHaloRunV1alpha1Theme(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,7 +749,7 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
*/
|
||||
public listthemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
|
||||
.listthemeHaloRunV1alpha1Theme(
|
||||
|
@ -624,9 +757,9 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -638,10 +771,14 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|||
*/
|
||||
public updatethemeHaloRunV1alpha1Theme(
|
||||
requestParameters: ThemeHaloRunV1alpha1ThemeApiUpdatethemeHaloRunV1alpha1ThemeRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
|
||||
.updatethemeHaloRunV1alpha1Theme(requestParameters.name, requestParameters.theme, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatethemeHaloRunV1alpha1Theme(
|
||||
requestParameters.name,
|
||||
requestParameters.theme,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { AnnotationSetting } from '../models'
|
||||
import { AnnotationSetting } from "../models";
|
||||
// @ts-ignore
|
||||
import { AnnotationSettingList } from '../models'
|
||||
import { AnnotationSettingList } from "../models";
|
||||
/**
|
||||
* V1alpha1AnnotationSettingApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/AnnotationSetting
|
||||
|
@ -49,39 +57,52 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configura
|
|||
*/
|
||||
createv1alpha1AnnotationSetting: async (
|
||||
annotationSetting?: AnnotationSetting,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings`
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(annotationSetting, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
annotationSetting,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/AnnotationSetting
|
||||
|
@ -89,40 +110,52 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1AnnotationSetting: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1AnnotationSetting: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1AnnotationSetting', 'name', name)
|
||||
assertParamExists("deletev1alpha1AnnotationSetting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/AnnotationSetting
|
||||
|
@ -130,40 +163,52 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configura
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1AnnotationSetting: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1AnnotationSetting: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1AnnotationSetting', 'name', name)
|
||||
assertParamExists("getv1alpha1AnnotationSetting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/AnnotationSetting
|
||||
|
@ -179,52 +224,61 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configura
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings`
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/AnnotationSetting
|
||||
|
@ -236,54 +290,70 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (configura
|
|||
updatev1alpha1AnnotationSetting: async (
|
||||
name: string,
|
||||
annotationSetting?: AnnotationSetting,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1AnnotationSetting', 'name', name)
|
||||
assertParamExists("updatev1alpha1AnnotationSetting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/annotationsettings/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(annotationSetting, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
annotationSetting,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1AnnotationSettingApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1AnnotationSettingApiAxiosParamCreator(configuration)
|
||||
export const V1alpha1AnnotationSettingApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1AnnotationSettingApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/AnnotationSetting
|
||||
|
@ -293,13 +363,24 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async createv1alpha1AnnotationSetting(
|
||||
annotationSetting?: AnnotationSetting,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationSetting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1AnnotationSetting(
|
||||
annotationSetting,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<AnnotationSetting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1AnnotationSetting(
|
||||
annotationSetting,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/AnnotationSetting
|
||||
|
@ -309,10 +390,21 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async deletev1alpha1AnnotationSetting(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1AnnotationSetting(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1AnnotationSetting(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/AnnotationSetting
|
||||
|
@ -322,10 +414,24 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
*/
|
||||
async getv1alpha1AnnotationSetting(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationSetting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1AnnotationSetting(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<AnnotationSetting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1AnnotationSetting(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/AnnotationSetting
|
||||
|
@ -341,16 +447,27 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationSettingList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1AnnotationSetting(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<AnnotationSettingList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1AnnotationSetting(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/AnnotationSetting
|
||||
|
@ -362,17 +479,28 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
async updatev1alpha1AnnotationSetting(
|
||||
name: string,
|
||||
annotationSetting?: AnnotationSetting,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationSetting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1AnnotationSetting(
|
||||
name,
|
||||
annotationSetting,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<AnnotationSetting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1AnnotationSetting(
|
||||
name,
|
||||
annotationSetting,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1AnnotationSettingApi - factory interface
|
||||
|
@ -381,9 +509,9 @@ export const V1alpha1AnnotationSettingApiFp = function (configuration?: Configur
|
|||
export const V1alpha1AnnotationSettingApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1AnnotationSettingApiFp(configuration)
|
||||
const localVarFp = V1alpha1AnnotationSettingApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/AnnotationSetting
|
||||
|
@ -393,11 +521,14 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
*/
|
||||
createv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AnnotationSetting> {
|
||||
return localVarFp
|
||||
.createv1alpha1AnnotationSetting(requestParameters.annotationSetting, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createv1alpha1AnnotationSetting(
|
||||
requestParameters.annotationSetting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/AnnotationSetting
|
||||
|
@ -407,11 +538,11 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1AnnotationSetting(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/AnnotationSetting
|
||||
|
@ -421,11 +552,11 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
*/
|
||||
getv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AnnotationSetting> {
|
||||
return localVarFp
|
||||
.getv1alpha1AnnotationSetting(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/AnnotationSetting
|
||||
|
@ -435,7 +566,7 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
*/
|
||||
listv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AnnotationSettingList> {
|
||||
return localVarFp
|
||||
.listv1alpha1AnnotationSetting(
|
||||
|
@ -443,9 +574,9 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/AnnotationSetting
|
||||
|
@ -455,14 +586,18 @@ export const V1alpha1AnnotationSettingApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<AnnotationSetting> {
|
||||
return localVarFp
|
||||
.updatev1alpha1AnnotationSetting(requestParameters.name, requestParameters.annotationSetting, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1AnnotationSetting(
|
||||
requestParameters.name,
|
||||
requestParameters.annotationSetting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1AnnotationSetting operation in V1alpha1AnnotationSettingApi.
|
||||
|
@ -475,7 +610,7 @@ export interface V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequ
|
|||
* @type {AnnotationSetting}
|
||||
* @memberof V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly annotationSetting?: AnnotationSetting
|
||||
readonly annotationSetting?: AnnotationSetting;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +624,7 @@ export interface V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequ
|
|||
* @type {string}
|
||||
* @memberof V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +638,7 @@ export interface V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest
|
|||
* @type {string}
|
||||
* @memberof V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +652,28 @@ export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingReques
|
|||
* @type {number}
|
||||
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +687,14 @@ export interface V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequ
|
|||
* @type {string}
|
||||
* @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated annotationsetting
|
||||
* @type {AnnotationSetting}
|
||||
* @memberof V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSetting
|
||||
*/
|
||||
readonly annotationSetting?: AnnotationSetting
|
||||
readonly annotationSetting?: AnnotationSetting;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +713,14 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiCreatev1alpha1AnnotationSettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1AnnotationSettingApiFp(this.configuration)
|
||||
.createv1alpha1AnnotationSetting(requestParameters.annotationSetting, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createv1alpha1AnnotationSetting(
|
||||
requestParameters.annotationSetting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +732,11 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiDeletev1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1AnnotationSettingApiFp(this.configuration)
|
||||
.deletev1alpha1AnnotationSetting(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +748,11 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1AnnotationSettingApiFp(this.configuration)
|
||||
.getv1alpha1AnnotationSetting(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +764,7 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1AnnotationSettingApiFp(this.configuration)
|
||||
.listv1alpha1AnnotationSetting(
|
||||
|
@ -634,9 +772,9 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +786,14 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1AnnotationSetting(
|
||||
requestParameters: V1alpha1AnnotationSettingApiUpdatev1alpha1AnnotationSettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1AnnotationSettingApiFp(this.configuration)
|
||||
.updatev1alpha1AnnotationSetting(requestParameters.name, requestParameters.annotationSetting, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1AnnotationSetting(
|
||||
requestParameters.name,
|
||||
requestParameters.annotationSetting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { ConfigMap } from '../models'
|
||||
import { ConfigMap } from "../models";
|
||||
// @ts-ignore
|
||||
import { ConfigMapList } from '../models'
|
||||
import { ConfigMapList } from "../models";
|
||||
/**
|
||||
* V1alpha1ConfigMapApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1ConfigMapApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/ConfigMap
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: C
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1ConfigMap: async (configMap?: ConfigMap, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/configmaps`
|
||||
createv1alpha1ConfigMap: async (
|
||||
configMap?: ConfigMap,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/configmaps`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
configMap,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/ConfigMap
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: C
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1ConfigMap: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1ConfigMap: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1ConfigMap', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1ConfigMap", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/ConfigMap
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: C
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1ConfigMap: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1ConfigMap: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1ConfigMap', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1ConfigMap", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/ConfigMap
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: C
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/configmaps`
|
||||
const localVarPath = `/api/v1alpha1/configmaps`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/ConfigMap
|
||||
|
@ -227,51 +290,68 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (configuration?: C
|
|||
updatev1alpha1ConfigMap: async (
|
||||
name: string,
|
||||
configMap?: ConfigMap,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1ConfigMap', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1ConfigMap", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/configmaps/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
configMap,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1ConfigMapApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1ConfigMapApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1ConfigMapApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/ConfigMap
|
||||
|
@ -281,10 +361,21 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1ConfigMap(
|
||||
configMap?: ConfigMap,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1ConfigMap(configMap, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1ConfigMap(
|
||||
configMap,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/ConfigMap
|
||||
|
@ -294,10 +385,18 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1ConfigMap(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1ConfigMap(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1ConfigMap(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/ConfigMap
|
||||
|
@ -307,10 +406,18 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1ConfigMap(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1ConfigMap(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1ConfigMap(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/ConfigMap
|
||||
|
@ -326,16 +433,24 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMapList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1ConfigMap(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMapList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1ConfigMap(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/ConfigMap
|
||||
|
@ -347,13 +462,25 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1ConfigMap(
|
||||
name: string,
|
||||
configMap?: ConfigMap,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1ConfigMap(name, configMap, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMap>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1ConfigMap(
|
||||
name,
|
||||
configMap,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1ConfigMapApi - factory interface
|
||||
|
@ -362,9 +489,9 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1ConfigMapApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1ConfigMapApiFp(configuration)
|
||||
const localVarFp = V1alpha1ConfigMapApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/ConfigMap
|
||||
|
@ -374,11 +501,11 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
*/
|
||||
createv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ConfigMap> {
|
||||
return localVarFp
|
||||
.createv1alpha1ConfigMap(requestParameters.configMap, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/ConfigMap
|
||||
|
@ -388,11 +515,11 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1ConfigMap(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/ConfigMap
|
||||
|
@ -402,11 +529,11 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
*/
|
||||
getv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ConfigMap> {
|
||||
return localVarFp
|
||||
.getv1alpha1ConfigMap(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/ConfigMap
|
||||
|
@ -416,7 +543,7 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
*/
|
||||
listv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ConfigMapList> {
|
||||
return localVarFp
|
||||
.listv1alpha1ConfigMap(
|
||||
|
@ -424,9 +551,9 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/ConfigMap
|
||||
|
@ -436,14 +563,18 @@ export const V1alpha1ConfigMapApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<ConfigMap> {
|
||||
return localVarFp
|
||||
.updatev1alpha1ConfigMap(requestParameters.name, requestParameters.configMap, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1ConfigMap(
|
||||
requestParameters.name,
|
||||
requestParameters.configMap,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1ConfigMap operation in V1alpha1ConfigMapApi.
|
||||
|
@ -456,7 +587,7 @@ export interface V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest {
|
|||
* @type {ConfigMap}
|
||||
* @memberof V1alpha1ConfigMapApiCreatev1alpha1ConfigMap
|
||||
*/
|
||||
readonly configMap?: ConfigMap
|
||||
readonly configMap?: ConfigMap;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -470,7 +601,7 @@ export interface V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1ConfigMapApiDeletev1alpha1ConfigMap
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -484,7 +615,7 @@ export interface V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1ConfigMapApiGetv1alpha1ConfigMap
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -498,28 +629,28 @@ export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -533,14 +664,14 @@ export interface V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated configmap
|
||||
* @type {ConfigMap}
|
||||
* @memberof V1alpha1ConfigMapApiUpdatev1alpha1ConfigMap
|
||||
*/
|
||||
readonly configMap?: ConfigMap
|
||||
readonly configMap?: ConfigMap;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -559,11 +690,11 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiCreatev1alpha1ConfigMapRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1ConfigMapApiFp(this.configuration)
|
||||
.createv1alpha1ConfigMap(requestParameters.configMap, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -575,11 +706,11 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiDeletev1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1ConfigMapApiFp(this.configuration)
|
||||
.deletev1alpha1ConfigMap(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -591,11 +722,11 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1ConfigMapApiFp(this.configuration)
|
||||
.getv1alpha1ConfigMap(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -607,7 +738,7 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1ConfigMapApiFp(this.configuration)
|
||||
.listv1alpha1ConfigMap(
|
||||
|
@ -615,9 +746,9 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -629,10 +760,14 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1ConfigMap(
|
||||
requestParameters: V1alpha1ConfigMapApiUpdatev1alpha1ConfigMapRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1ConfigMapApiFp(this.configuration)
|
||||
.updatev1alpha1ConfigMap(requestParameters.name, requestParameters.configMap, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1ConfigMap(
|
||||
requestParameters.name,
|
||||
requestParameters.configMap,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Menu } from '../models'
|
||||
import { Menu } from "../models";
|
||||
// @ts-ignore
|
||||
import { MenuList } from '../models'
|
||||
import { MenuList } from "../models";
|
||||
/**
|
||||
* V1alpha1MenuApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1MenuApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Menu
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1Menu: async (menu?: Menu, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menus`
|
||||
createv1alpha1Menu: async (
|
||||
menu?: Menu,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menus`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
menu,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Menu
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1Menu: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1Menu: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1Menu', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1Menu", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Menu
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1Menu: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1Menu: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1Menu', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1Menu", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Menu
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menus`
|
||||
const localVarPath = `/api/v1alpha1/menus`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Menu
|
||||
|
@ -224,50 +287,71 @@ export const V1alpha1MenuApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updatev1alpha1Menu: async (name: string, menu?: Menu, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
updatev1alpha1Menu: async (
|
||||
name: string,
|
||||
menu?: Menu,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1Menu', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1Menu", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
menu,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1MenuApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1MenuApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1MenuApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Menu
|
||||
|
@ -277,10 +361,18 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1Menu(
|
||||
menu?: Menu,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Menu(menu, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1Menu(menu, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Menu
|
||||
|
@ -290,10 +382,18 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1Menu(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Menu(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1Menu(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Menu
|
||||
|
@ -303,10 +403,20 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1Menu(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Menu(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Menu(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Menu
|
||||
|
@ -322,16 +432,24 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Menu(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1Menu(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Menu
|
||||
|
@ -343,13 +461,21 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1Menu(
|
||||
name: string,
|
||||
menu?: Menu,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Menu(name, menu, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Menu>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1Menu(name, menu, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1MenuApi - factory interface
|
||||
|
@ -358,9 +484,9 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1MenuApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1MenuApiFp(configuration)
|
||||
const localVarFp = V1alpha1MenuApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Menu
|
||||
|
@ -370,9 +496,11 @@ export const V1alpha1MenuApiFactory = function (
|
|||
*/
|
||||
createv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Menu> {
|
||||
return localVarFp.createv1alpha1Menu(requestParameters.menu, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.createv1alpha1Menu(requestParameters.menu, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Menu
|
||||
|
@ -382,9 +510,11 @@ export const V1alpha1MenuApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.deletev1alpha1Menu(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.deletev1alpha1Menu(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Menu
|
||||
|
@ -394,9 +524,11 @@ export const V1alpha1MenuApiFactory = function (
|
|||
*/
|
||||
getv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Menu> {
|
||||
return localVarFp.getv1alpha1Menu(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getv1alpha1Menu(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Menu
|
||||
|
@ -406,7 +538,7 @@ export const V1alpha1MenuApiFactory = function (
|
|||
*/
|
||||
listv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<MenuList> {
|
||||
return localVarFp
|
||||
.listv1alpha1Menu(
|
||||
|
@ -414,9 +546,9 @@ export const V1alpha1MenuApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Menu
|
||||
|
@ -426,14 +558,18 @@ export const V1alpha1MenuApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Menu> {
|
||||
return localVarFp
|
||||
.updatev1alpha1Menu(requestParameters.name, requestParameters.menu, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1Menu(
|
||||
requestParameters.name,
|
||||
requestParameters.menu,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1Menu operation in V1alpha1MenuApi.
|
||||
|
@ -446,7 +582,7 @@ export interface V1alpha1MenuApiCreatev1alpha1MenuRequest {
|
|||
* @type {Menu}
|
||||
* @memberof V1alpha1MenuApiCreatev1alpha1Menu
|
||||
*/
|
||||
readonly menu?: Menu
|
||||
readonly menu?: Menu;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -460,7 +596,7 @@ export interface V1alpha1MenuApiDeletev1alpha1MenuRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuApiDeletev1alpha1Menu
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -474,7 +610,7 @@ export interface V1alpha1MenuApiGetv1alpha1MenuRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuApiGetv1alpha1Menu
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -488,28 +624,28 @@ export interface V1alpha1MenuApiListv1alpha1MenuRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1MenuApiListv1alpha1Menu
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1MenuApiListv1alpha1Menu
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1MenuApiListv1alpha1Menu
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1MenuApiListv1alpha1Menu
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,14 +659,14 @@ export interface V1alpha1MenuApiUpdatev1alpha1MenuRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuApiUpdatev1alpha1Menu
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated menu
|
||||
* @type {Menu}
|
||||
* @memberof V1alpha1MenuApiUpdatev1alpha1Menu
|
||||
*/
|
||||
readonly menu?: Menu
|
||||
readonly menu?: Menu;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -549,11 +685,11 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiCreatev1alpha1MenuRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuApiFp(this.configuration)
|
||||
.createv1alpha1Menu(requestParameters.menu, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -563,10 +699,13 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1MenuApi
|
||||
*/
|
||||
public deletev1alpha1Menu(requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest, options?: AxiosRequestConfig) {
|
||||
public deletev1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiDeletev1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuApiFp(this.configuration)
|
||||
.deletev1alpha1Menu(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -576,10 +715,13 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1MenuApi
|
||||
*/
|
||||
public getv1alpha1Menu(requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest, options?: AxiosRequestConfig) {
|
||||
public getv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiGetv1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuApiFp(this.configuration)
|
||||
.getv1alpha1Menu(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -591,7 +733,7 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiListv1alpha1MenuRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuApiFp(this.configuration)
|
||||
.listv1alpha1Menu(
|
||||
|
@ -599,9 +741,9 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -611,9 +753,16 @@ export class V1alpha1MenuApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1MenuApi
|
||||
*/
|
||||
public updatev1alpha1Menu(requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest, options?: AxiosRequestConfig) {
|
||||
public updatev1alpha1Menu(
|
||||
requestParameters: V1alpha1MenuApiUpdatev1alpha1MenuRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuApiFp(this.configuration)
|
||||
.updatev1alpha1Menu(requestParameters.name, requestParameters.menu, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1Menu(
|
||||
requestParameters.name,
|
||||
requestParameters.menu,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { MenuItem } from '../models'
|
||||
import { MenuItem } from "../models";
|
||||
// @ts-ignore
|
||||
import { MenuItemList } from '../models'
|
||||
import { MenuItemList } from "../models";
|
||||
/**
|
||||
* V1alpha1MenuItemApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1MenuItemApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/MenuItem
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Co
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1MenuItem: async (menuItem?: MenuItem, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menuitems`
|
||||
createv1alpha1MenuItem: async (
|
||||
menuItem?: MenuItem,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menuitems`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
menuItem,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/MenuItem
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Co
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1MenuItem: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1MenuItem: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1MenuItem', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1MenuItem", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/MenuItem
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Co
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1MenuItem: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1MenuItem: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1MenuItem', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1MenuItem", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/MenuItem
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Co
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/menuitems`
|
||||
const localVarPath = `/api/v1alpha1/menuitems`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/MenuItem
|
||||
|
@ -227,51 +290,68 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (configuration?: Co
|
|||
updatev1alpha1MenuItem: async (
|
||||
name: string,
|
||||
menuItem?: MenuItem,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1MenuItem', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1MenuItem", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
menuItem,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1MenuItemApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1MenuItemApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1MenuItemApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/MenuItem
|
||||
|
@ -281,10 +361,21 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1MenuItem(
|
||||
menuItem?: MenuItem,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1MenuItem(menuItem, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1MenuItem(
|
||||
menuItem,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/MenuItem
|
||||
|
@ -294,10 +385,18 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1MenuItem(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1MenuItem(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1MenuItem(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/MenuItem
|
||||
|
@ -307,10 +406,18 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1MenuItem(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1MenuItem(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1MenuItem(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/MenuItem
|
||||
|
@ -326,16 +433,24 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItemList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1MenuItem(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItemList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1MenuItem(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/MenuItem
|
||||
|
@ -347,13 +462,25 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1MenuItem(
|
||||
name: string,
|
||||
menuItem?: MenuItem,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1MenuItem(name, menuItem, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItem>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1MenuItem(
|
||||
name,
|
||||
menuItem,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1MenuItemApi - factory interface
|
||||
|
@ -362,9 +489,9 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1MenuItemApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1MenuItemApiFp(configuration)
|
||||
const localVarFp = V1alpha1MenuItemApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/MenuItem
|
||||
|
@ -374,11 +501,11 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
*/
|
||||
createv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<MenuItem> {
|
||||
return localVarFp
|
||||
.createv1alpha1MenuItem(requestParameters.menuItem, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/MenuItem
|
||||
|
@ -388,11 +515,11 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1MenuItem(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/MenuItem
|
||||
|
@ -402,9 +529,11 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
*/
|
||||
getv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<MenuItem> {
|
||||
return localVarFp.getv1alpha1MenuItem(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getv1alpha1MenuItem(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/MenuItem
|
||||
|
@ -414,7 +543,7 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
*/
|
||||
listv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<MenuItemList> {
|
||||
return localVarFp
|
||||
.listv1alpha1MenuItem(
|
||||
|
@ -422,9 +551,9 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/MenuItem
|
||||
|
@ -434,14 +563,18 @@ export const V1alpha1MenuItemApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<MenuItem> {
|
||||
return localVarFp
|
||||
.updatev1alpha1MenuItem(requestParameters.name, requestParameters.menuItem, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1MenuItem(
|
||||
requestParameters.name,
|
||||
requestParameters.menuItem,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1MenuItem operation in V1alpha1MenuItemApi.
|
||||
|
@ -454,7 +587,7 @@ export interface V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest {
|
|||
* @type {MenuItem}
|
||||
* @memberof V1alpha1MenuItemApiCreatev1alpha1MenuItem
|
||||
*/
|
||||
readonly menuItem?: MenuItem
|
||||
readonly menuItem?: MenuItem;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -468,7 +601,7 @@ export interface V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuItemApiDeletev1alpha1MenuItem
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -482,7 +615,7 @@ export interface V1alpha1MenuItemApiGetv1alpha1MenuItemRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuItemApiGetv1alpha1MenuItem
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -496,28 +629,28 @@ export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -531,14 +664,14 @@ export interface V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated menuitem
|
||||
* @type {MenuItem}
|
||||
* @memberof V1alpha1MenuItemApiUpdatev1alpha1MenuItem
|
||||
*/
|
||||
readonly menuItem?: MenuItem
|
||||
readonly menuItem?: MenuItem;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -557,11 +690,11 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiCreatev1alpha1MenuItemRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuItemApiFp(this.configuration)
|
||||
.createv1alpha1MenuItem(requestParameters.menuItem, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -573,11 +706,11 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiDeletev1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuItemApiFp(this.configuration)
|
||||
.deletev1alpha1MenuItem(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -589,11 +722,11 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiGetv1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuItemApiFp(this.configuration)
|
||||
.getv1alpha1MenuItem(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -605,7 +738,7 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiListv1alpha1MenuItemRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuItemApiFp(this.configuration)
|
||||
.listv1alpha1MenuItem(
|
||||
|
@ -613,9 +746,9 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -627,10 +760,14 @@ export class V1alpha1MenuItemApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1MenuItem(
|
||||
requestParameters: V1alpha1MenuItemApiUpdatev1alpha1MenuItemRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1MenuItemApiFp(this.configuration)
|
||||
.updatev1alpha1MenuItem(requestParameters.name, requestParameters.menuItem, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1MenuItem(
|
||||
requestParameters.name,
|
||||
requestParameters.menuItem,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { PersonalAccessToken } from '../models'
|
||||
import { PersonalAccessToken } from "../models";
|
||||
// @ts-ignore
|
||||
import { PersonalAccessTokenList } from '../models'
|
||||
import { PersonalAccessTokenList } from "../models";
|
||||
/**
|
||||
* V1alpha1PersonalAccessTokenApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/PersonalAccessToken
|
||||
|
@ -49,39 +57,52 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configu
|
|||
*/
|
||||
createv1alpha1PersonalAccessToken: async (
|
||||
personalAccessToken?: PersonalAccessToken,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens`
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
personalAccessToken,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/PersonalAccessToken
|
||||
|
@ -89,40 +110,52 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1PersonalAccessToken: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1PersonalAccessToken: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1PersonalAccessToken', 'name', name)
|
||||
assertParamExists("deletev1alpha1PersonalAccessToken", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/PersonalAccessToken
|
||||
|
@ -130,40 +163,52 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configu
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1PersonalAccessToken: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1PersonalAccessToken: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1PersonalAccessToken', 'name', name)
|
||||
assertParamExists("getv1alpha1PersonalAccessToken", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/PersonalAccessToken
|
||||
|
@ -179,52 +224,61 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configu
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens`
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/PersonalAccessToken
|
||||
|
@ -236,54 +290,70 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (configu
|
|||
updatev1alpha1PersonalAccessToken: async (
|
||||
name: string,
|
||||
personalAccessToken?: PersonalAccessToken,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1PersonalAccessToken', 'name', name)
|
||||
assertParamExists("updatev1alpha1PersonalAccessToken", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/personalaccesstokens/{name}`.replace(
|
||||
`{${'name'}}`,
|
||||
encodeURIComponent(String(name)),
|
||||
)
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(personalAccessToken, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
personalAccessToken,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1PersonalAccessTokenApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration)
|
||||
export const V1alpha1PersonalAccessTokenApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1PersonalAccessTokenApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/PersonalAccessToken
|
||||
|
@ -293,13 +363,24 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
*/
|
||||
async createv1alpha1PersonalAccessToken(
|
||||
personalAccessToken?: PersonalAccessToken,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalAccessToken>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1PersonalAccessToken(
|
||||
personalAccessToken,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<PersonalAccessToken>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1PersonalAccessToken(
|
||||
personalAccessToken,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/PersonalAccessToken
|
||||
|
@ -309,10 +390,21 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
*/
|
||||
async deletev1alpha1PersonalAccessToken(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1PersonalAccessToken(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1PersonalAccessToken(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/PersonalAccessToken
|
||||
|
@ -322,10 +414,24 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
*/
|
||||
async getv1alpha1PersonalAccessToken(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalAccessToken>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1PersonalAccessToken(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<PersonalAccessToken>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1PersonalAccessToken(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/PersonalAccessToken
|
||||
|
@ -341,16 +447,27 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalAccessTokenList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1PersonalAccessToken(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<PersonalAccessTokenList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1PersonalAccessToken(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/PersonalAccessToken
|
||||
|
@ -362,17 +479,28 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
async updatev1alpha1PersonalAccessToken(
|
||||
name: string,
|
||||
personalAccessToken?: PersonalAccessToken,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonalAccessToken>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1PersonalAccessToken(
|
||||
name,
|
||||
personalAccessToken,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<PersonalAccessToken>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1PersonalAccessToken(
|
||||
name,
|
||||
personalAccessToken,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1PersonalAccessTokenApi - factory interface
|
||||
|
@ -381,9 +509,9 @@ export const V1alpha1PersonalAccessTokenApiFp = function (configuration?: Config
|
|||
export const V1alpha1PersonalAccessTokenApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1PersonalAccessTokenApiFp(configuration)
|
||||
const localVarFp = V1alpha1PersonalAccessTokenApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/PersonalAccessToken
|
||||
|
@ -393,11 +521,14 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
*/
|
||||
createv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PersonalAccessToken> {
|
||||
return localVarFp
|
||||
.createv1alpha1PersonalAccessToken(requestParameters.personalAccessToken, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.createv1alpha1PersonalAccessToken(
|
||||
requestParameters.personalAccessToken,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/PersonalAccessToken
|
||||
|
@ -407,11 +538,11 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1PersonalAccessToken(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/PersonalAccessToken
|
||||
|
@ -421,11 +552,11 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
*/
|
||||
getv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PersonalAccessToken> {
|
||||
return localVarFp
|
||||
.getv1alpha1PersonalAccessToken(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/PersonalAccessToken
|
||||
|
@ -435,7 +566,7 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
*/
|
||||
listv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PersonalAccessTokenList> {
|
||||
return localVarFp
|
||||
.listv1alpha1PersonalAccessToken(
|
||||
|
@ -443,9 +574,9 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/PersonalAccessToken
|
||||
|
@ -455,14 +586,18 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<PersonalAccessToken> {
|
||||
return localVarFp
|
||||
.updatev1alpha1PersonalAccessToken(requestParameters.name, requestParameters.personalAccessToken, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1PersonalAccessToken(
|
||||
requestParameters.name,
|
||||
requestParameters.personalAccessToken,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1PersonalAccessToken operation in V1alpha1PersonalAccessTokenApi.
|
||||
|
@ -475,7 +610,7 @@ export interface V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessToken
|
|||
* @type {PersonalAccessToken}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly personalAccessToken?: PersonalAccessToken
|
||||
readonly personalAccessToken?: PersonalAccessToken;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -489,7 +624,7 @@ export interface V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessToken
|
|||
* @type {string}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -503,7 +638,7 @@ export interface V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenReq
|
|||
* @type {string}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -517,28 +652,28 @@ export interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRe
|
|||
* @type {number}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -552,14 +687,14 @@ export interface V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessToken
|
|||
* @type {string}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated personalaccesstoken
|
||||
* @type {PersonalAccessToken}
|
||||
* @memberof V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessToken
|
||||
*/
|
||||
readonly personalAccessToken?: PersonalAccessToken
|
||||
readonly personalAccessToken?: PersonalAccessToken;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +713,14 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiCreatev1alpha1PersonalAccessTokenRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
|
||||
.createv1alpha1PersonalAccessToken(requestParameters.personalAccessToken, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.createv1alpha1PersonalAccessToken(
|
||||
requestParameters.personalAccessToken,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +732,11 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiDeletev1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
|
||||
.deletev1alpha1PersonalAccessToken(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,11 +748,11 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
|
||||
.getv1alpha1PersonalAccessToken(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -626,7 +764,7 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
|
||||
.listv1alpha1PersonalAccessToken(
|
||||
|
@ -634,9 +772,9 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -648,10 +786,14 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1PersonalAccessToken(
|
||||
requestParameters: V1alpha1PersonalAccessTokenApiUpdatev1alpha1PersonalAccessTokenRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
|
||||
.updatev1alpha1PersonalAccessToken(requestParameters.name, requestParameters.personalAccessToken, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1PersonalAccessToken(
|
||||
requestParameters.name,
|
||||
requestParameters.personalAccessToken,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Role } from '../models'
|
||||
import { Role } from "../models";
|
||||
// @ts-ignore
|
||||
import { RoleList } from '../models'
|
||||
import { RoleList } from "../models";
|
||||
/**
|
||||
* V1alpha1RoleApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1RoleApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Role
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1Role: async (role?: Role, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/roles`
|
||||
createv1alpha1Role: async (
|
||||
role?: Role,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/roles`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
role,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Role
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1Role: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1Role: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1Role', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1Role", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Role
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1Role: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1Role: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1Role', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1Role", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Role
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/roles`
|
||||
const localVarPath = `/api/v1alpha1/roles`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Role
|
||||
|
@ -224,50 +287,71 @@ export const V1alpha1RoleApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updatev1alpha1Role: async (name: string, role?: Role, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
updatev1alpha1Role: async (
|
||||
name: string,
|
||||
role?: Role,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1Role', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1Role", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/roles/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(role, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
role,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1RoleApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1RoleApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1RoleApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Role
|
||||
|
@ -277,10 +361,18 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1Role(
|
||||
role?: Role,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Role(role, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1Role(role, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Role
|
||||
|
@ -290,10 +382,18 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1Role(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Role(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1Role(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Role
|
||||
|
@ -303,10 +403,20 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1Role(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Role(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Role(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Role
|
||||
|
@ -322,16 +432,24 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Role(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1Role(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Role
|
||||
|
@ -343,13 +461,21 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1Role(
|
||||
name: string,
|
||||
role?: Role,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Role(name, role, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Role>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1Role(name, role, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1RoleApi - factory interface
|
||||
|
@ -358,9 +484,9 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1RoleApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1RoleApiFp(configuration)
|
||||
const localVarFp = V1alpha1RoleApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Role
|
||||
|
@ -370,9 +496,11 @@ export const V1alpha1RoleApiFactory = function (
|
|||
*/
|
||||
createv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Role> {
|
||||
return localVarFp.createv1alpha1Role(requestParameters.role, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.createv1alpha1Role(requestParameters.role, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Role
|
||||
|
@ -382,9 +510,11 @@ export const V1alpha1RoleApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.deletev1alpha1Role(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.deletev1alpha1Role(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Role
|
||||
|
@ -394,9 +524,11 @@ export const V1alpha1RoleApiFactory = function (
|
|||
*/
|
||||
getv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Role> {
|
||||
return localVarFp.getv1alpha1Role(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getv1alpha1Role(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Role
|
||||
|
@ -406,7 +538,7 @@ export const V1alpha1RoleApiFactory = function (
|
|||
*/
|
||||
listv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<RoleList> {
|
||||
return localVarFp
|
||||
.listv1alpha1Role(
|
||||
|
@ -414,9 +546,9 @@ export const V1alpha1RoleApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Role
|
||||
|
@ -426,14 +558,18 @@ export const V1alpha1RoleApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Role> {
|
||||
return localVarFp
|
||||
.updatev1alpha1Role(requestParameters.name, requestParameters.role, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1Role(
|
||||
requestParameters.name,
|
||||
requestParameters.role,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1Role operation in V1alpha1RoleApi.
|
||||
|
@ -446,7 +582,7 @@ export interface V1alpha1RoleApiCreatev1alpha1RoleRequest {
|
|||
* @type {Role}
|
||||
* @memberof V1alpha1RoleApiCreatev1alpha1Role
|
||||
*/
|
||||
readonly role?: Role
|
||||
readonly role?: Role;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -460,7 +596,7 @@ export interface V1alpha1RoleApiDeletev1alpha1RoleRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleApiDeletev1alpha1Role
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -474,7 +610,7 @@ export interface V1alpha1RoleApiGetv1alpha1RoleRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleApiGetv1alpha1Role
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -488,28 +624,28 @@ export interface V1alpha1RoleApiListv1alpha1RoleRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1RoleApiListv1alpha1Role
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1RoleApiListv1alpha1Role
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1RoleApiListv1alpha1Role
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1RoleApiListv1alpha1Role
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,14 +659,14 @@ export interface V1alpha1RoleApiUpdatev1alpha1RoleRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleApiUpdatev1alpha1Role
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated role
|
||||
* @type {Role}
|
||||
* @memberof V1alpha1RoleApiUpdatev1alpha1Role
|
||||
*/
|
||||
readonly role?: Role
|
||||
readonly role?: Role;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -549,11 +685,11 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiCreatev1alpha1RoleRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleApiFp(this.configuration)
|
||||
.createv1alpha1Role(requestParameters.role, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -563,10 +699,13 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1RoleApi
|
||||
*/
|
||||
public deletev1alpha1Role(requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest, options?: AxiosRequestConfig) {
|
||||
public deletev1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiDeletev1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleApiFp(this.configuration)
|
||||
.deletev1alpha1Role(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -576,10 +715,13 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1RoleApi
|
||||
*/
|
||||
public getv1alpha1Role(requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest, options?: AxiosRequestConfig) {
|
||||
public getv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiGetv1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleApiFp(this.configuration)
|
||||
.getv1alpha1Role(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -591,7 +733,7 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiListv1alpha1RoleRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleApiFp(this.configuration)
|
||||
.listv1alpha1Role(
|
||||
|
@ -599,9 +741,9 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -611,9 +753,16 @@ export class V1alpha1RoleApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1RoleApi
|
||||
*/
|
||||
public updatev1alpha1Role(requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest, options?: AxiosRequestConfig) {
|
||||
public updatev1alpha1Role(
|
||||
requestParameters: V1alpha1RoleApiUpdatev1alpha1RoleRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleApiFp(this.configuration)
|
||||
.updatev1alpha1Role(requestParameters.name, requestParameters.role, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1Role(
|
||||
requestParameters.name,
|
||||
requestParameters.role,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { RoleBinding } from '../models'
|
||||
import { RoleBinding } from "../models";
|
||||
// @ts-ignore
|
||||
import { RoleBindingList } from '../models'
|
||||
import { RoleBindingList } from "../models";
|
||||
/**
|
||||
* V1alpha1RoleBindingApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1RoleBindingApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/RoleBinding
|
||||
|
@ -49,39 +57,52 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?:
|
|||
*/
|
||||
createv1alpha1RoleBinding: async (
|
||||
roleBinding?: RoleBinding,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/rolebindings`
|
||||
const localVarPath = `/api/v1alpha1/rolebindings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
roleBinding,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/RoleBinding
|
||||
|
@ -89,37 +110,52 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?:
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1RoleBinding: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1RoleBinding: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1RoleBinding', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1RoleBinding", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/RoleBinding
|
||||
|
@ -127,37 +163,52 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?:
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1RoleBinding: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1RoleBinding: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1RoleBinding', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1RoleBinding", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/RoleBinding
|
||||
|
@ -173,52 +224,61 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?:
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/rolebindings`
|
||||
const localVarPath = `/api/v1alpha1/rolebindings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/RoleBinding
|
||||
|
@ -230,51 +290,70 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (configuration?:
|
|||
updatev1alpha1RoleBinding: async (
|
||||
name: string,
|
||||
roleBinding?: RoleBinding,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1RoleBinding', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1RoleBinding", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/rolebindings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(roleBinding, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
roleBinding,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1RoleBindingApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1RoleBindingApiAxiosParamCreator(configuration)
|
||||
export const V1alpha1RoleBindingApiFp = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1RoleBindingApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/RoleBinding
|
||||
|
@ -284,10 +363,21 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
*/
|
||||
async createv1alpha1RoleBinding(
|
||||
roleBinding?: RoleBinding,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1RoleBinding(roleBinding, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1RoleBinding(
|
||||
roleBinding,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/RoleBinding
|
||||
|
@ -297,10 +387,21 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
*/
|
||||
async deletev1alpha1RoleBinding(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1RoleBinding(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1RoleBinding(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/RoleBinding
|
||||
|
@ -310,10 +411,18 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
*/
|
||||
async getv1alpha1RoleBinding(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1RoleBinding(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1RoleBinding(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/RoleBinding
|
||||
|
@ -329,16 +438,27 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBindingList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1RoleBinding(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<RoleBindingList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1RoleBinding(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/RoleBinding
|
||||
|
@ -350,13 +470,25 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
async updatev1alpha1RoleBinding(
|
||||
name: string,
|
||||
roleBinding?: RoleBinding,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1RoleBinding(name, roleBinding, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleBinding>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1RoleBinding(
|
||||
name,
|
||||
roleBinding,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1RoleBindingApi - factory interface
|
||||
|
@ -365,9 +497,9 @@ export const V1alpha1RoleBindingApiFp = function (configuration?: Configuration)
|
|||
export const V1alpha1RoleBindingApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1RoleBindingApiFp(configuration)
|
||||
const localVarFp = V1alpha1RoleBindingApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/RoleBinding
|
||||
|
@ -377,11 +509,11 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
*/
|
||||
createv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<RoleBinding> {
|
||||
return localVarFp
|
||||
.createv1alpha1RoleBinding(requestParameters.roleBinding, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/RoleBinding
|
||||
|
@ -391,11 +523,11 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1RoleBinding(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/RoleBinding
|
||||
|
@ -405,11 +537,11 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
*/
|
||||
getv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<RoleBinding> {
|
||||
return localVarFp
|
||||
.getv1alpha1RoleBinding(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/RoleBinding
|
||||
|
@ -419,7 +551,7 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
*/
|
||||
listv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<RoleBindingList> {
|
||||
return localVarFp
|
||||
.listv1alpha1RoleBinding(
|
||||
|
@ -427,9 +559,9 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/RoleBinding
|
||||
|
@ -439,14 +571,18 @@ export const V1alpha1RoleBindingApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<RoleBinding> {
|
||||
return localVarFp
|
||||
.updatev1alpha1RoleBinding(requestParameters.name, requestParameters.roleBinding, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1RoleBinding(
|
||||
requestParameters.name,
|
||||
requestParameters.roleBinding,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1RoleBinding operation in V1alpha1RoleBindingApi.
|
||||
|
@ -459,7 +595,7 @@ export interface V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest {
|
|||
* @type {RoleBinding}
|
||||
* @memberof V1alpha1RoleBindingApiCreatev1alpha1RoleBinding
|
||||
*/
|
||||
readonly roleBinding?: RoleBinding
|
||||
readonly roleBinding?: RoleBinding;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -473,7 +609,7 @@ export interface V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleBindingApiDeletev1alpha1RoleBinding
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -487,7 +623,7 @@ export interface V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleBindingApiGetv1alpha1RoleBinding
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -501,28 +637,28 @@ export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -536,14 +672,14 @@ export interface V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated rolebinding
|
||||
* @type {RoleBinding}
|
||||
* @memberof V1alpha1RoleBindingApiUpdatev1alpha1RoleBinding
|
||||
*/
|
||||
readonly roleBinding?: RoleBinding
|
||||
readonly roleBinding?: RoleBinding;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -562,11 +698,11 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiCreatev1alpha1RoleBindingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleBindingApiFp(this.configuration)
|
||||
.createv1alpha1RoleBinding(requestParameters.roleBinding, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -578,11 +714,11 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiDeletev1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleBindingApiFp(this.configuration)
|
||||
.deletev1alpha1RoleBinding(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -594,11 +730,11 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleBindingApiFp(this.configuration)
|
||||
.getv1alpha1RoleBinding(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -610,7 +746,7 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleBindingApiFp(this.configuration)
|
||||
.listv1alpha1RoleBinding(
|
||||
|
@ -618,9 +754,9 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,10 +768,14 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1RoleBinding(
|
||||
requestParameters: V1alpha1RoleBindingApiUpdatev1alpha1RoleBindingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1RoleBindingApiFp(this.configuration)
|
||||
.updatev1alpha1RoleBinding(requestParameters.name, requestParameters.roleBinding, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1RoleBinding(
|
||||
requestParameters.name,
|
||||
requestParameters.roleBinding,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { Setting } from '../models'
|
||||
import { Setting } from "../models";
|
||||
// @ts-ignore
|
||||
import { SettingList } from '../models'
|
||||
import { SettingList } from "../models";
|
||||
/**
|
||||
* V1alpha1SettingApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1SettingApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Setting
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Con
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1Setting: async (setting?: Setting, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/settings`
|
||||
createv1alpha1Setting: async (
|
||||
setting?: Setting,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/settings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
setting,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Setting
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Con
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1Setting: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1Setting: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1Setting', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1Setting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Setting
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Con
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1Setting: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1Setting: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1Setting', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1Setting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Setting
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Con
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/settings`
|
||||
const localVarPath = `/api/v1alpha1/settings`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Setting
|
||||
|
@ -227,51 +290,68 @@ export const V1alpha1SettingApiAxiosParamCreator = function (configuration?: Con
|
|||
updatev1alpha1Setting: async (
|
||||
name: string,
|
||||
setting?: Setting,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1Setting', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1Setting", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/settings/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(setting, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
setting,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1SettingApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1SettingApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1SettingApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Setting
|
||||
|
@ -281,10 +361,18 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1Setting(
|
||||
setting?: Setting,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Setting(setting, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1Setting(setting, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Setting
|
||||
|
@ -294,10 +382,18 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1Setting(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Setting(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1Setting(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Setting
|
||||
|
@ -307,10 +403,18 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1Setting(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Setting(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.getv1alpha1Setting(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Setting
|
||||
|
@ -326,16 +430,24 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SettingList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Setting(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SettingList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1Setting(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Setting
|
||||
|
@ -347,13 +459,25 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1Setting(
|
||||
name: string,
|
||||
setting?: Setting,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Setting(name, setting, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Setting>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1Setting(
|
||||
name,
|
||||
setting,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1SettingApi - factory interface
|
||||
|
@ -362,9 +486,9 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1SettingApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1SettingApiFp(configuration)
|
||||
const localVarFp = V1alpha1SettingApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/Setting
|
||||
|
@ -374,11 +498,11 @@ export const V1alpha1SettingApiFactory = function (
|
|||
*/
|
||||
createv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Setting> {
|
||||
return localVarFp
|
||||
.createv1alpha1Setting(requestParameters.setting, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/Setting
|
||||
|
@ -388,11 +512,11 @@ export const V1alpha1SettingApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp
|
||||
.deletev1alpha1Setting(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/Setting
|
||||
|
@ -402,9 +526,11 @@ export const V1alpha1SettingApiFactory = function (
|
|||
*/
|
||||
getv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Setting> {
|
||||
return localVarFp.getv1alpha1Setting(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getv1alpha1Setting(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/Setting
|
||||
|
@ -414,7 +540,7 @@ export const V1alpha1SettingApiFactory = function (
|
|||
*/
|
||||
listv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<SettingList> {
|
||||
return localVarFp
|
||||
.listv1alpha1Setting(
|
||||
|
@ -422,9 +548,9 @@ export const V1alpha1SettingApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/Setting
|
||||
|
@ -434,14 +560,18 @@ export const V1alpha1SettingApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<Setting> {
|
||||
return localVarFp
|
||||
.updatev1alpha1Setting(requestParameters.name, requestParameters.setting, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1Setting(
|
||||
requestParameters.name,
|
||||
requestParameters.setting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1Setting operation in V1alpha1SettingApi.
|
||||
|
@ -454,7 +584,7 @@ export interface V1alpha1SettingApiCreatev1alpha1SettingRequest {
|
|||
* @type {Setting}
|
||||
* @memberof V1alpha1SettingApiCreatev1alpha1Setting
|
||||
*/
|
||||
readonly setting?: Setting
|
||||
readonly setting?: Setting;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -468,7 +598,7 @@ export interface V1alpha1SettingApiDeletev1alpha1SettingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1SettingApiDeletev1alpha1Setting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -482,7 +612,7 @@ export interface V1alpha1SettingApiGetv1alpha1SettingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1SettingApiGetv1alpha1Setting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -496,28 +626,28 @@ export interface V1alpha1SettingApiListv1alpha1SettingRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1SettingApiListv1alpha1Setting
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1SettingApiListv1alpha1Setting
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1SettingApiListv1alpha1Setting
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1SettingApiListv1alpha1Setting
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -531,14 +661,14 @@ export interface V1alpha1SettingApiUpdatev1alpha1SettingRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1SettingApiUpdatev1alpha1Setting
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated setting
|
||||
* @type {Setting}
|
||||
* @memberof V1alpha1SettingApiUpdatev1alpha1Setting
|
||||
*/
|
||||
readonly setting?: Setting
|
||||
readonly setting?: Setting;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -557,11 +687,11 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiCreatev1alpha1SettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1SettingApiFp(this.configuration)
|
||||
.createv1alpha1Setting(requestParameters.setting, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -573,11 +703,11 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
*/
|
||||
public deletev1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiDeletev1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1SettingApiFp(this.configuration)
|
||||
.deletev1alpha1Setting(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -589,11 +719,11 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
*/
|
||||
public getv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiGetv1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1SettingApiFp(this.configuration)
|
||||
.getv1alpha1Setting(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -605,7 +735,7 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiListv1alpha1SettingRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1SettingApiFp(this.configuration)
|
||||
.listv1alpha1Setting(
|
||||
|
@ -613,9 +743,9 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -627,10 +757,14 @@ export class V1alpha1SettingApi extends BaseAPI {
|
|||
*/
|
||||
public updatev1alpha1Setting(
|
||||
requestParameters: V1alpha1SettingApiUpdatev1alpha1SettingRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1SettingApiFp(this.configuration)
|
||||
.updatev1alpha1Setting(requestParameters.name, requestParameters.setting, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1Setting(
|
||||
requestParameters.name,
|
||||
requestParameters.setting,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from '../configuration'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { Configuration } from "../configuration";
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import {
|
||||
|
@ -28,18 +28,26 @@ import {
|
|||
serializeDataIfNeeded,
|
||||
toPathString,
|
||||
createRequestFunction,
|
||||
} from '../common'
|
||||
} from "../common";
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'
|
||||
import {
|
||||
BASE_PATH,
|
||||
COLLECTION_FORMATS,
|
||||
RequestArgs,
|
||||
BaseAPI,
|
||||
RequiredError,
|
||||
} from "../base";
|
||||
// @ts-ignore
|
||||
import { User } from '../models'
|
||||
import { User } from "../models";
|
||||
// @ts-ignore
|
||||
import { UserList } from '../models'
|
||||
import { UserList } from "../models";
|
||||
/**
|
||||
* V1alpha1UserApi - axios parameter creator
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
export const V1alpha1UserApiAxiosParamCreator = function (
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/User
|
||||
|
@ -47,38 +55,54 @@ export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
createv1alpha1User: async (user?: User, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/users`
|
||||
createv1alpha1User: async (
|
||||
user?: User,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/users`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "POST",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
user,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/User
|
||||
|
@ -86,37 +110,52 @@ export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deletev1alpha1User: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
deletev1alpha1User: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('deletev1alpha1User', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("deletev1alpha1User", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "DELETE",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/User
|
||||
|
@ -124,37 +163,52 @@ export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getv1alpha1User: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getv1alpha1User: async (
|
||||
name: string,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('getv1alpha1User', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("getv1alpha1User", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/User
|
||||
|
@ -170,52 +224,61 @@ export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Config
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options: AxiosRequestConfig = {},
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/v1alpha1/users`
|
||||
const localVarPath = `/api/v1alpha1/users`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "GET",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
if (page !== undefined) {
|
||||
localVarQueryParameter['page'] = page
|
||||
localVarQueryParameter["page"] = page;
|
||||
}
|
||||
|
||||
if (size !== undefined) {
|
||||
localVarQueryParameter['size'] = size
|
||||
localVarQueryParameter["size"] = size;
|
||||
}
|
||||
|
||||
if (labelSelector) {
|
||||
localVarQueryParameter['labelSelector'] = labelSelector
|
||||
localVarQueryParameter["labelSelector"] = labelSelector;
|
||||
}
|
||||
|
||||
if (fieldSelector) {
|
||||
localVarQueryParameter['fieldSelector'] = fieldSelector
|
||||
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/User
|
||||
|
@ -224,50 +287,71 @@ export const V1alpha1UserApiAxiosParamCreator = function (configuration?: Config
|
|||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
updatev1alpha1User: async (name: string, user?: User, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
updatev1alpha1User: async (
|
||||
name: string,
|
||||
user?: User,
|
||||
options: AxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('updatev1alpha1User', 'name', name)
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
||||
assertParamExists("updatev1alpha1User", "name", name);
|
||||
const localVarPath = `/api/v1alpha1/users/{name}`.replace(
|
||||
`{${"name"}}`,
|
||||
encodeURIComponent(String(name))
|
||||
);
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
||||
let baseOptions
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
||||
const localVarHeaderParameter = {} as any
|
||||
const localVarQueryParameter = {} as any
|
||||
const localVarRequestOptions = {
|
||||
method: "PUT",
|
||||
...baseOptions,
|
||||
...options,
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication BasicAuth required
|
||||
// http basic authentication required
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration)
|
||||
setBasicAuthToObject(localVarRequestOptions, configuration);
|
||||
|
||||
// authentication BearerAuth required
|
||||
// http bearer authentication required
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json'
|
||||
localVarHeaderParameter["Content-Type"] = "application/json";
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
||||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration)
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers,
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
user,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1UserApi - functional programming interface
|
||||
* @export
|
||||
*/
|
||||
export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = V1alpha1UserApiAxiosParamCreator(configuration)
|
||||
const localVarAxiosParamCreator =
|
||||
V1alpha1UserApiAxiosParamCreator(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/User
|
||||
|
@ -277,10 +361,18 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async createv1alpha1User(
|
||||
user?: User,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1User(user, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.createv1alpha1User(user, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/User
|
||||
|
@ -290,10 +382,18 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async deletev1alpha1User(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1User(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.deletev1alpha1User(name, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/User
|
||||
|
@ -303,10 +403,20 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
*/
|
||||
async getv1alpha1User(
|
||||
name: string,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1User(name, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
|
||||
> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1User(
|
||||
name,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/User
|
||||
|
@ -322,16 +432,24 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
size?: number,
|
||||
labelSelector?: Array<string>,
|
||||
fieldSelector?: Array<string>,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1User(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options,
|
||||
)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.listv1alpha1User(
|
||||
page,
|
||||
size,
|
||||
labelSelector,
|
||||
fieldSelector,
|
||||
options
|
||||
);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/User
|
||||
|
@ -343,13 +461,21 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
async updatev1alpha1User(
|
||||
name: string,
|
||||
user?: User,
|
||||
options?: AxiosRequestConfig,
|
||||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1User(name, user, options)
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
|
||||
options?: AxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.updatev1alpha1User(name, user, options);
|
||||
return createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* V1alpha1UserApi - factory interface
|
||||
|
@ -358,9 +484,9 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
|
|||
export const V1alpha1UserApiFactory = function (
|
||||
configuration?: Configuration,
|
||||
basePath?: string,
|
||||
axios?: AxiosInstance,
|
||||
axios?: AxiosInstance
|
||||
) {
|
||||
const localVarFp = V1alpha1UserApiFp(configuration)
|
||||
const localVarFp = V1alpha1UserApiFp(configuration);
|
||||
return {
|
||||
/**
|
||||
* Create v1alpha1/User
|
||||
|
@ -370,9 +496,11 @@ export const V1alpha1UserApiFactory = function (
|
|||
*/
|
||||
createv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<User> {
|
||||
return localVarFp.createv1alpha1User(requestParameters.user, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.createv1alpha1User(requestParameters.user, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Delete v1alpha1/User
|
||||
|
@ -382,9 +510,11 @@ export const V1alpha1UserApiFactory = function (
|
|||
*/
|
||||
deletev1alpha1User(
|
||||
requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<void> {
|
||||
return localVarFp.deletev1alpha1User(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.deletev1alpha1User(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get v1alpha1/User
|
||||
|
@ -394,9 +524,11 @@ export const V1alpha1UserApiFactory = function (
|
|||
*/
|
||||
getv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiGetv1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<User> {
|
||||
return localVarFp.getv1alpha1User(requestParameters.name, options).then((request) => request(axios, basePath))
|
||||
return localVarFp
|
||||
.getv1alpha1User(requestParameters.name, options)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* List v1alpha1/User
|
||||
|
@ -406,7 +538,7 @@ export const V1alpha1UserApiFactory = function (
|
|||
*/
|
||||
listv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<UserList> {
|
||||
return localVarFp
|
||||
.listv1alpha1User(
|
||||
|
@ -414,9 +546,9 @@ export const V1alpha1UserApiFactory = function (
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath))
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Update v1alpha1/User
|
||||
|
@ -426,14 +558,18 @@ export const V1alpha1UserApiFactory = function (
|
|||
*/
|
||||
updatev1alpha1User(
|
||||
requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
): AxiosPromise<User> {
|
||||
return localVarFp
|
||||
.updatev1alpha1User(requestParameters.name, requestParameters.user, options)
|
||||
.then((request) => request(axios, basePath))
|
||||
.updatev1alpha1User(
|
||||
requestParameters.name,
|
||||
requestParameters.user,
|
||||
options
|
||||
)
|
||||
.then((request) => request(axios, basePath));
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for createv1alpha1User operation in V1alpha1UserApi.
|
||||
|
@ -446,7 +582,7 @@ export interface V1alpha1UserApiCreatev1alpha1UserRequest {
|
|||
* @type {User}
|
||||
* @memberof V1alpha1UserApiCreatev1alpha1User
|
||||
*/
|
||||
readonly user?: User
|
||||
readonly user?: User;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -460,7 +596,7 @@ export interface V1alpha1UserApiDeletev1alpha1UserRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1UserApiDeletev1alpha1User
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -474,7 +610,7 @@ export interface V1alpha1UserApiGetv1alpha1UserRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1UserApiGetv1alpha1User
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -488,28 +624,28 @@ export interface V1alpha1UserApiListv1alpha1UserRequest {
|
|||
* @type {number}
|
||||
* @memberof V1alpha1UserApiListv1alpha1User
|
||||
*/
|
||||
readonly page?: number
|
||||
readonly page?: number;
|
||||
|
||||
/**
|
||||
* Size of one page. Zero indicates no limit.
|
||||
* @type {number}
|
||||
* @memberof V1alpha1UserApiListv1alpha1User
|
||||
*/
|
||||
readonly size?: number
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* Label selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1UserApiListv1alpha1User
|
||||
*/
|
||||
readonly labelSelector?: Array<string>
|
||||
readonly labelSelector?: Array<string>;
|
||||
|
||||
/**
|
||||
* Field selector for filtering.
|
||||
* @type {Array<string>}
|
||||
* @memberof V1alpha1UserApiListv1alpha1User
|
||||
*/
|
||||
readonly fieldSelector?: Array<string>
|
||||
readonly fieldSelector?: Array<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,14 +659,14 @@ export interface V1alpha1UserApiUpdatev1alpha1UserRequest {
|
|||
* @type {string}
|
||||
* @memberof V1alpha1UserApiUpdatev1alpha1User
|
||||
*/
|
||||
readonly name: string
|
||||
readonly name: string;
|
||||
|
||||
/**
|
||||
* Updated user
|
||||
* @type {User}
|
||||
* @memberof V1alpha1UserApiUpdatev1alpha1User
|
||||
*/
|
||||
readonly user?: User
|
||||
readonly user?: User;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -549,11 +685,11 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
*/
|
||||
public createv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiCreatev1alpha1UserRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1UserApiFp(this.configuration)
|
||||
.createv1alpha1User(requestParameters.user, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -563,10 +699,13 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1UserApi
|
||||
*/
|
||||
public deletev1alpha1User(requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest, options?: AxiosRequestConfig) {
|
||||
public deletev1alpha1User(
|
||||
requestParameters: V1alpha1UserApiDeletev1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1UserApiFp(this.configuration)
|
||||
.deletev1alpha1User(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -576,10 +715,13 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1UserApi
|
||||
*/
|
||||
public getv1alpha1User(requestParameters: V1alpha1UserApiGetv1alpha1UserRequest, options?: AxiosRequestConfig) {
|
||||
public getv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiGetv1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1UserApiFp(this.configuration)
|
||||
.getv1alpha1User(requestParameters.name, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -591,7 +733,7 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
*/
|
||||
public listv1alpha1User(
|
||||
requestParameters: V1alpha1UserApiListv1alpha1UserRequest = {},
|
||||
options?: AxiosRequestConfig,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1UserApiFp(this.configuration)
|
||||
.listv1alpha1User(
|
||||
|
@ -599,9 +741,9 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
requestParameters.size,
|
||||
requestParameters.labelSelector,
|
||||
requestParameters.fieldSelector,
|
||||
options,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -611,9 +753,16 @@ export class V1alpha1UserApi extends BaseAPI {
|
|||
* @throws {RequiredError}
|
||||
* @memberof V1alpha1UserApi
|
||||
*/
|
||||
public updatev1alpha1User(requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest, options?: AxiosRequestConfig) {
|
||||
public updatev1alpha1User(
|
||||
requestParameters: V1alpha1UserApiUpdatev1alpha1UserRequest,
|
||||
options?: AxiosRequestConfig
|
||||
) {
|
||||
return V1alpha1UserApiFp(this.configuration)
|
||||
.updatev1alpha1User(requestParameters.name, requestParameters.user, options)
|
||||
.then((request) => request(this.axios, this.basePath))
|
||||
.updatev1alpha1User(
|
||||
requestParameters.name,
|
||||
requestParameters.user,
|
||||
options
|
||||
)
|
||||
.then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,24 +12,24 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from './configuration'
|
||||
import type { Configuration } from "./configuration";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'
|
||||
import globalAxios from 'axios'
|
||||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import globalAxios from "axios";
|
||||
|
||||
export const BASE_PATH = 'http://127.0.0.1:8090'.replace(/\/+$/, '')
|
||||
export const BASE_PATH = "http://127.0.0.1:8090".replace(/\/+$/, "");
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const COLLECTION_FORMATS = {
|
||||
csv: ',',
|
||||
ssv: ' ',
|
||||
tsv: '\t',
|
||||
pipes: '|',
|
||||
}
|
||||
csv: ",",
|
||||
ssv: " ",
|
||||
tsv: "\t",
|
||||
pipes: "|",
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -37,8 +37,8 @@ export const COLLECTION_FORMATS = {
|
|||
* @interface RequestArgs
|
||||
*/
|
||||
export interface RequestArgs {
|
||||
url: string
|
||||
options: AxiosRequestConfig
|
||||
url: string;
|
||||
options: AxiosRequestConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,16 +47,16 @@ export interface RequestArgs {
|
|||
* @class BaseAPI
|
||||
*/
|
||||
export class BaseAPI {
|
||||
protected configuration: Configuration | undefined
|
||||
protected configuration: Configuration | undefined;
|
||||
|
||||
constructor(
|
||||
configuration?: Configuration,
|
||||
protected basePath: string = BASE_PATH,
|
||||
protected axios: AxiosInstance = globalAxios,
|
||||
protected axios: AxiosInstance = globalAxios
|
||||
) {
|
||||
if (configuration) {
|
||||
this.configuration = configuration
|
||||
this.basePath = configuration.basePath || this.basePath
|
||||
this.configuration = configuration;
|
||||
this.basePath = configuration.basePath || this.basePath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ export class BaseAPI {
|
|||
*/
|
||||
export class RequiredError extends Error {
|
||||
constructor(public field: string, msg?: string) {
|
||||
super(msg)
|
||||
this.name = 'RequiredError'
|
||||
super(msg);
|
||||
this.name = "RequiredError";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,66 +12,85 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { Configuration } from './configuration'
|
||||
import type { RequestArgs } from './base'
|
||||
import type { AxiosInstance, AxiosResponse } from 'axios'
|
||||
import { RequiredError } from './base'
|
||||
import type { Configuration } from "./configuration";
|
||||
import type { RequestArgs } from "./base";
|
||||
import type { AxiosInstance, AxiosResponse } from "axios";
|
||||
import { RequiredError } from "./base";
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const DUMMY_BASE_URL = 'https://example.com'
|
||||
export const DUMMY_BASE_URL = "https://example.com";
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws {RequiredError}
|
||||
* @export
|
||||
*/
|
||||
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
||||
export const assertParamExists = function (
|
||||
functionName: string,
|
||||
paramName: string,
|
||||
paramValue: unknown
|
||||
) {
|
||||
if (paramValue === null || paramValue === undefined) {
|
||||
throw new RequiredError(
|
||||
paramName,
|
||||
`Required parameter ${paramName} was null or undefined when calling ${functionName}.`,
|
||||
)
|
||||
`Required parameter ${paramName} was null or undefined when calling ${functionName}.`
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
||||
export const setApiKeyToObject = async function (
|
||||
object: any,
|
||||
keyParamName: string,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
if (configuration && configuration.apiKey) {
|
||||
const localVarApiKeyValue =
|
||||
typeof configuration.apiKey === 'function' ? await configuration.apiKey(keyParamName) : await configuration.apiKey
|
||||
object[keyParamName] = localVarApiKeyValue
|
||||
typeof configuration.apiKey === "function"
|
||||
? await configuration.apiKey(keyParamName)
|
||||
: await configuration.apiKey;
|
||||
object[keyParamName] = localVarApiKeyValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
||||
export const setBasicAuthToObject = function (
|
||||
object: any,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
if (configuration && (configuration.username || configuration.password)) {
|
||||
object['auth'] = { username: configuration.username, password: configuration.password }
|
||||
object["auth"] = {
|
||||
username: configuration.username,
|
||||
password: configuration.password,
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
||||
export const setBearerAuthToObject = async function (
|
||||
object: any,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const accessToken =
|
||||
typeof configuration.accessToken === 'function'
|
||||
typeof configuration.accessToken === "function"
|
||||
? await configuration.accessToken()
|
||||
: await configuration.accessToken
|
||||
object['Authorization'] = 'Bearer ' + accessToken
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + accessToken;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -81,32 +100,42 @@ export const setOAuthToObject = async function (
|
|||
object: any,
|
||||
name: string,
|
||||
scopes: string[],
|
||||
configuration?: Configuration,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue =
|
||||
typeof configuration.accessToken === 'function'
|
||||
typeof configuration.accessToken === "function"
|
||||
? await configuration.accessToken(name, scopes)
|
||||
: await configuration.accessToken
|
||||
object['Authorization'] = 'Bearer ' + localVarAccessTokenValue
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ''): void {
|
||||
if (parameter == null) return
|
||||
if (typeof parameter === 'object') {
|
||||
function setFlattenedQueryParams(
|
||||
urlSearchParams: URLSearchParams,
|
||||
parameter: any,
|
||||
key: string = ""
|
||||
): void {
|
||||
if (parameter == null) return;
|
||||
if (typeof parameter === "object") {
|
||||
if (Array.isArray(parameter)) {
|
||||
;(parameter as any[]).forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key))
|
||||
(parameter as any[]).forEach((item) =>
|
||||
setFlattenedQueryParams(urlSearchParams, item, key)
|
||||
);
|
||||
} else {
|
||||
Object.keys(parameter).forEach((currentKey) =>
|
||||
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`),
|
||||
)
|
||||
setFlattenedQueryParams(
|
||||
urlSearchParams,
|
||||
parameter[currentKey],
|
||||
`${key}${key !== "" ? "." : ""}${currentKey}`
|
||||
)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (urlSearchParams.has(key)) {
|
||||
urlSearchParams.append(key, parameter)
|
||||
urlSearchParams.append(key, parameter);
|
||||
} else {
|
||||
urlSearchParams.set(key, parameter)
|
||||
urlSearchParams.set(key, parameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -116,31 +145,37 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|||
* @export
|
||||
*/
|
||||
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
||||
const searchParams = new URLSearchParams(url.search)
|
||||
setFlattenedQueryParams(searchParams, objects)
|
||||
url.search = searchParams.toString()
|
||||
}
|
||||
const searchParams = new URLSearchParams(url.search);
|
||||
setFlattenedQueryParams(searchParams, objects);
|
||||
url.search = searchParams.toString();
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
||||
const nonString = typeof value !== 'string'
|
||||
export const serializeDataIfNeeded = function (
|
||||
value: any,
|
||||
requestOptions: any,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
const nonString = typeof value !== "string";
|
||||
const needsSerialization =
|
||||
nonString && configuration && configuration.isJsonMime
|
||||
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
||||
: nonString
|
||||
return needsSerialization ? JSON.stringify(value !== undefined ? value : {}) : value || ''
|
||||
}
|
||||
? configuration.isJsonMime(requestOptions.headers["Content-Type"])
|
||||
: nonString;
|
||||
return needsSerialization
|
||||
? JSON.stringify(value !== undefined ? value : {})
|
||||
: value || "";
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const toPathString = function (url: URL) {
|
||||
return url.pathname + url.search + url.hash
|
||||
}
|
||||
return url.pathname + url.search + url.hash;
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -150,10 +185,16 @@ export const createRequestFunction = function (
|
|||
axiosArgs: RequestArgs,
|
||||
globalAxios: AxiosInstance,
|
||||
BASE_PATH: string,
|
||||
configuration?: Configuration,
|
||||
configuration?: Configuration
|
||||
) {
|
||||
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url }
|
||||
return axios.request<T, R>(axiosRequestArgs)
|
||||
}
|
||||
}
|
||||
return <T = unknown, R = AxiosResponse<T>>(
|
||||
axios: AxiosInstance = globalAxios,
|
||||
basePath: string = BASE_PATH
|
||||
) => {
|
||||
const axiosRequestArgs = {
|
||||
...axiosArgs.options,
|
||||
url: (configuration?.basePath || basePath) + axiosArgs.url,
|
||||
};
|
||||
return axios.request<T, R>(axiosRequestArgs);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -13,17 +13,21 @@
|
|||
*/
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>)
|
||||
username?: string
|
||||
password?: string
|
||||
apiKey?:
|
||||
| string
|
||||
| Promise<string>
|
||||
| ((name: string) => string)
|
||||
| ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?:
|
||||
| string
|
||||
| Promise<string>
|
||||
| ((name?: string, scopes?: string[]) => string)
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>)
|
||||
basePath?: string
|
||||
baseOptions?: any
|
||||
formDataCtor?: new () => any
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
formDataCtor?: new () => any;
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
|
@ -32,21 +36,25 @@ export class Configuration {
|
|||
* @param name security name
|
||||
* @memberof Configuration
|
||||
*/
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>)
|
||||
apiKey?:
|
||||
| string
|
||||
| Promise<string>
|
||||
| ((name: string) => string)
|
||||
| ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
password?: string
|
||||
password?: string;
|
||||
/**
|
||||
* parameter for oauth2 security
|
||||
* @param name security name
|
||||
|
@ -57,21 +65,21 @@ export class Configuration {
|
|||
| string
|
||||
| Promise<string>
|
||||
| ((name?: string, scopes?: string[]) => string)
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>)
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
basePath?: string
|
||||
basePath?: string;
|
||||
/**
|
||||
* base options for axios calls
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
baseOptions?: any
|
||||
baseOptions?: any;
|
||||
/**
|
||||
* The FormData constructor that will be used to create multipart form data
|
||||
* requests. You can inject this here so that execution environments that
|
||||
|
@ -79,16 +87,16 @@ export class Configuration {
|
|||
*
|
||||
* @type {new () => FormData}
|
||||
*/
|
||||
formDataCtor?: new () => any
|
||||
formDataCtor?: new () => any;
|
||||
|
||||
constructor(param: ConfigurationParameters = {}) {
|
||||
this.apiKey = param.apiKey
|
||||
this.username = param.username
|
||||
this.password = param.password
|
||||
this.accessToken = param.accessToken
|
||||
this.basePath = param.basePath
|
||||
this.baseOptions = param.baseOptions
|
||||
this.formDataCtor = param.formDataCtor
|
||||
this.apiKey = param.apiKey;
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.basePath = param.basePath;
|
||||
this.baseOptions = param.baseOptions;
|
||||
this.formDataCtor = param.formDataCtor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,7 +110,14 @@ export class Configuration {
|
|||
* @return True if the given MIME is JSON, false otherwise.
|
||||
*/
|
||||
public isJsonMime(mime: string): boolean {
|
||||
const jsonMime: RegExp = new RegExp('^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i')
|
||||
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json')
|
||||
const jsonMime: RegExp = new RegExp(
|
||||
"^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$",
|
||||
"i"
|
||||
);
|
||||
return (
|
||||
mime !== null &&
|
||||
(jsonMime.test(mime) ||
|
||||
mime.toLowerCase() === "application/json-patch+json")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export * from './api'
|
||||
export * from './configuration'
|
||||
export * from './models'
|
||||
export * from "./api";
|
||||
export * from "./configuration";
|
||||
export * from "./models";
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { AnnotationSetting } from './annotation-setting'
|
||||
import { AnnotationSetting } from "./annotation-setting";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { AnnotationSetting } from './annotation-setting'
|
|||
*/
|
||||
export interface AnnotationSettingList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<AnnotationSetting>}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
items: Array<AnnotationSetting>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<AnnotationSetting>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof AnnotationSettingList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { GroupKind } from './group-kind'
|
||||
import { GroupKind } from "./group-kind";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -22,16 +22,16 @@ import { GroupKind } from './group-kind'
|
|||
* @interface AnnotationSettingSpec
|
||||
*/
|
||||
export interface AnnotationSettingSpec {
|
||||
/**
|
||||
*
|
||||
* @type {GroupKind}
|
||||
* @memberof AnnotationSettingSpec
|
||||
*/
|
||||
targetRef: GroupKind
|
||||
/**
|
||||
*
|
||||
* @type {Array<object>}
|
||||
* @memberof AnnotationSettingSpec
|
||||
*/
|
||||
formSchema: Array<object>
|
||||
formSchema: Array<object>;
|
||||
/**
|
||||
*
|
||||
* @type {GroupKind}
|
||||
* @memberof AnnotationSettingSpec
|
||||
*/
|
||||
targetRef: GroupKind;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { AnnotationSettingSpec } from './annotation-setting-spec'
|
||||
import { AnnotationSettingSpec } from "./annotation-setting-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -27,26 +27,26 @@ import { Metadata } from './metadata'
|
|||
export interface AnnotationSetting {
|
||||
/**
|
||||
*
|
||||
* @type {AnnotationSettingSpec}
|
||||
* @type {string}
|
||||
* @memberof AnnotationSetting
|
||||
*/
|
||||
spec: AnnotationSettingSpec
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AnnotationSetting
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AnnotationSetting
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof AnnotationSetting
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {AnnotationSettingSpec}
|
||||
* @memberof AnnotationSetting
|
||||
*/
|
||||
spec: AnnotationSettingSpec;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Attachment } from './attachment'
|
||||
import { Attachment } from "./attachment";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { Attachment } from './attachment'
|
|||
*/
|
||||
export interface AttachmentList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<Attachment>}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
items: Array<Attachment>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<Attachment>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof AttachmentList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -23,41 +23,41 @@ export interface AttachmentSpec {
|
|||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
displayName?: string
|
||||
displayName?: string;
|
||||
/**
|
||||
* Group name
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
groupName?: string
|
||||
/**
|
||||
* Policy name
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
policyName?: string
|
||||
/**
|
||||
* Name of User who uploads the attachment
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
ownerName?: string
|
||||
groupName?: string;
|
||||
/**
|
||||
* Media type of attachment
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
mediaType?: string
|
||||
mediaType?: string;
|
||||
/**
|
||||
* Name of User who uploads the attachment
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
ownerName?: string;
|
||||
/**
|
||||
* Policy name
|
||||
* @type {string}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
policyName?: string;
|
||||
/**
|
||||
* Size of attachment. Unit is Byte
|
||||
* @type {number}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
size?: number
|
||||
size?: number;
|
||||
/**
|
||||
* Tags of attachment
|
||||
* @type {Array<string>}
|
||||
* @memberof AttachmentSpec
|
||||
*/
|
||||
tags?: Array<string>
|
||||
tags?: Array<string>;
|
||||
}
|
||||
|
|
|
@ -23,5 +23,5 @@ export interface AttachmentStatus {
|
|||
* @type {string}
|
||||
* @memberof AttachmentStatus
|
||||
*/
|
||||
permalink?: string
|
||||
permalink?: string;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { AttachmentSpec } from './attachment-spec'
|
||||
import { AttachmentSpec } from "./attachment-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { AttachmentStatus } from './attachment-status'
|
||||
import { AttachmentStatus } from "./attachment-status";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -30,32 +30,32 @@ import { Metadata } from './metadata'
|
|||
export interface Attachment {
|
||||
/**
|
||||
*
|
||||
* @type {AttachmentSpec}
|
||||
* @type {string}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
spec: AttachmentSpec
|
||||
/**
|
||||
*
|
||||
* @type {AttachmentStatus}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
status?: AttachmentStatus
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {AttachmentSpec}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
spec: AttachmentSpec;
|
||||
/**
|
||||
*
|
||||
* @type {AttachmentStatus}
|
||||
* @memberof Attachment
|
||||
*/
|
||||
status?: AttachmentStatus;
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface Author {
|
|||
* @type {string}
|
||||
* @memberof Author
|
||||
*/
|
||||
name: string
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Author
|
||||
*/
|
||||
website?: string
|
||||
website?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Category } from './category'
|
||||
import { Category } from "./category";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { Category } from './category'
|
|||
*/
|
||||
export interface CategoryList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<Category>}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
items: Array<Category>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<Category>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof CategoryList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -20,44 +20,44 @@
|
|||
export interface CategorySpec {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {Array<string>}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
displayName: string
|
||||
children?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
slug: string
|
||||
cover?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
description?: string
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
cover?: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
template?: string
|
||||
displayName: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
priority: number
|
||||
priority: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
children?: Array<string>
|
||||
slug: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CategorySpec
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
|
|
@ -23,17 +23,17 @@ export interface CategoryStatus {
|
|||
* @type {string}
|
||||
* @memberof CategoryStatus
|
||||
*/
|
||||
permalink?: string
|
||||
permalink?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CategoryStatus
|
||||
*/
|
||||
postCount?: number
|
||||
postCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CategoryStatus
|
||||
*/
|
||||
visiblePostCount?: number
|
||||
visiblePostCount?: number;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CategorySpec } from './category-spec'
|
||||
import { CategorySpec } from "./category-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CategoryStatus } from './category-status'
|
||||
import { CategoryStatus } from "./category-status";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -30,32 +30,32 @@ import { Metadata } from './metadata'
|
|||
export interface Category {
|
||||
/**
|
||||
*
|
||||
* @type {CategorySpec}
|
||||
* @type {string}
|
||||
* @memberof Category
|
||||
*/
|
||||
spec: CategorySpec
|
||||
/**
|
||||
*
|
||||
* @type {CategoryStatus}
|
||||
* @memberof Category
|
||||
*/
|
||||
status?: CategoryStatus
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Category
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Category
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Category
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {CategorySpec}
|
||||
* @memberof Category
|
||||
*/
|
||||
spec: CategorySpec;
|
||||
/**
|
||||
*
|
||||
* @type {CategoryStatus}
|
||||
* @memberof Category
|
||||
*/
|
||||
status?: CategoryStatus;
|
||||
}
|
||||
|
|
|
@ -23,5 +23,5 @@ export interface ChangePasswordRequest {
|
|||
* @type {string}
|
||||
* @memberof ChangePasswordRequest
|
||||
*/
|
||||
password: string
|
||||
password: string;
|
||||
}
|
||||
|
|
|
@ -23,23 +23,23 @@ export interface CommentEmailOwner {
|
|||
* @type {string}
|
||||
* @memberof CommentEmailOwner
|
||||
*/
|
||||
email?: string
|
||||
avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentEmailOwner
|
||||
*/
|
||||
avatar?: string
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentEmailOwner
|
||||
*/
|
||||
displayName?: string
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentEmailOwner
|
||||
*/
|
||||
website?: string
|
||||
website?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Comment } from './comment'
|
||||
import { Comment } from "./comment";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { Comment } from './comment'
|
|||
*/
|
||||
export interface CommentList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<Comment>}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
items: Array<Comment>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<Comment>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof CommentList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -18,28 +18,28 @@
|
|||
* @interface CommentOwner
|
||||
*/
|
||||
export interface CommentOwner {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
kind: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
name: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
displayName?: string
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
annotations?: { [key: string]: string }
|
||||
annotations?: { [key: string]: string };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentOwner
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentEmailOwner } from './comment-email-owner'
|
||||
import { CommentEmailOwner } from "./comment-email-owner";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Ref } from './ref'
|
||||
import { Ref } from "./ref";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -27,32 +27,32 @@ import { Ref } from './ref'
|
|||
export interface CommentRequest {
|
||||
/**
|
||||
*
|
||||
* @type {Ref}
|
||||
* @type {boolean}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
subjectRef: Ref
|
||||
allowNotification?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
content: string;
|
||||
/**
|
||||
*
|
||||
* @type {CommentEmailOwner}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
owner?: CommentEmailOwner
|
||||
owner?: CommentEmailOwner;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
raw: string
|
||||
raw: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {Ref}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
content: string
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentRequest
|
||||
*/
|
||||
allowNotification?: boolean
|
||||
subjectRef: Ref;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentOwner } from './comment-owner'
|
||||
import { CommentOwner } from "./comment-owner";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Ref } from './ref'
|
||||
import { Ref } from "./ref";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -27,86 +27,86 @@ import { Ref } from './ref'
|
|||
export interface CommentSpec {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
raw: string
|
||||
allowNotification: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
approved: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
content: string
|
||||
approvedTime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
content: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
creationTime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
hidden: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
ipAddress?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
lastReadTime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {CommentOwner}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
owner: CommentOwner
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
userAgent?: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
ipAddress?: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
approvedTime?: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
creationTime?: string
|
||||
owner: CommentOwner;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
priority: number
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
top: boolean
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
allowNotification: boolean
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
approved: boolean
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
hidden: boolean
|
||||
/**
|
||||
*
|
||||
* @type {Ref}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
subjectRef: Ref
|
||||
priority: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
lastReadTime?: string
|
||||
raw: string;
|
||||
/**
|
||||
*
|
||||
* @type {Ref}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
subjectRef: Ref;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
top: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentSpec
|
||||
*/
|
||||
userAgent?: string;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Halo Next API
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CommentStatsVo
|
||||
*/
|
||||
export interface CommentStatsVo {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStatsVo
|
||||
*/
|
||||
upvote?: number;
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Halo Next API
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 2.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CommentStats
|
||||
*/
|
||||
export interface CommentStats {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStats
|
||||
*/
|
||||
upvote?: number;
|
||||
}
|
|
@ -18,28 +18,28 @@
|
|||
* @interface CommentStatus
|
||||
*/
|
||||
export interface CommentStatus {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
lastReplyTime?: string
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
replyCount?: number
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
unreadReplyCount?: number
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
hasNewReply?: boolean
|
||||
hasNewReply?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
lastReplyTime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
replyCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CommentStatus
|
||||
*/
|
||||
unreadReplyCount?: number;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentVo } from './comment-vo'
|
||||
import { CommentVo } from "./comment-vo";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { CommentVo } from './comment-vo'
|
|||
*/
|
||||
export interface CommentVoList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<CommentVo>}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
items: Array<CommentVo>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<CommentVo>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof CommentVoList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -14,16 +14,19 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentSpec } from './comment-spec'
|
||||
import { CommentSpec } from "./comment-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentStatus } from './comment-status'
|
||||
import { CommentStatsVo } from "./comment-stats-vo";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { CommentStatus } from "./comment-status";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { OwnerInfo } from './owner-info'
|
||||
import { Metadata } from "./metadata";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { OwnerInfo } from "./owner-info";
|
||||
|
||||
/**
|
||||
* A chunk of items.
|
||||
|
@ -36,23 +39,29 @@ export interface CommentVo {
|
|||
* @type {Metadata}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
metadata: Metadata
|
||||
/**
|
||||
*
|
||||
* @type {CommentSpec}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
spec: CommentSpec
|
||||
/**
|
||||
*
|
||||
* @type {CommentStatus}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
status?: CommentStatus
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {OwnerInfo}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
owner: OwnerInfo
|
||||
owner: OwnerInfo;
|
||||
/**
|
||||
*
|
||||
* @type {CommentSpec}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
spec: CommentSpec;
|
||||
/**
|
||||
*
|
||||
* @type {CommentStatsVo}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
stats: CommentStatsVo;
|
||||
/**
|
||||
*
|
||||
* @type {CommentStatus}
|
||||
* @memberof CommentVo
|
||||
*/
|
||||
status?: CommentStatus;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentSpec } from './comment-spec'
|
||||
import { CommentSpec } from "./comment-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { CommentStatus } from './comment-status'
|
||||
import { CommentStatus } from "./comment-status";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -30,32 +30,32 @@ import { Metadata } from './metadata'
|
|||
export interface Comment {
|
||||
/**
|
||||
*
|
||||
* @type {CommentSpec}
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
spec: CommentSpec
|
||||
/**
|
||||
*
|
||||
* @type {CommentStatus}
|
||||
* @memberof Comment
|
||||
*/
|
||||
status?: CommentStatus
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Comment
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {CommentSpec}
|
||||
* @memberof Comment
|
||||
*/
|
||||
spec: CommentSpec;
|
||||
/**
|
||||
*
|
||||
* @type {CommentStatus}
|
||||
* @memberof Comment
|
||||
*/
|
||||
status?: CommentStatus;
|
||||
}
|
||||
|
|
|
@ -23,37 +23,38 @@ export interface Condition {
|
|||
* @type {string}
|
||||
* @memberof Condition
|
||||
*/
|
||||
type: string
|
||||
lastTransitionTime: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Condition
|
||||
*/
|
||||
status: ConditionStatusEnum
|
||||
message: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Condition
|
||||
*/
|
||||
lastTransitionTime: string
|
||||
reason: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Condition
|
||||
*/
|
||||
message: string
|
||||
status: ConditionStatusEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Condition
|
||||
*/
|
||||
reason: string
|
||||
type: string;
|
||||
}
|
||||
|
||||
export const ConditionStatusEnum = {
|
||||
True: 'TRUE',
|
||||
False: 'FALSE',
|
||||
Unknown: 'UNKNOWN',
|
||||
} as const
|
||||
True: "TRUE",
|
||||
False: "FALSE",
|
||||
Unknown: "UNKNOWN",
|
||||
} as const;
|
||||
|
||||
export type ConditionStatusEnum = typeof ConditionStatusEnum[keyof typeof ConditionStatusEnum]
|
||||
export type ConditionStatusEnum =
|
||||
typeof ConditionStatusEnum[keyof typeof ConditionStatusEnum];
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { ConfigMap } from './config-map'
|
||||
import { ConfigMap } from "./config-map";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { ConfigMap } from './config-map'
|
|||
*/
|
||||
export interface ConfigMapList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<ConfigMap>}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
items: Array<ConfigMap>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<ConfigMap>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof ConfigMapList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -22,28 +22,28 @@ import { Metadata } from './metadata'
|
|||
* @interface ConfigMap
|
||||
*/
|
||||
export interface ConfigMap {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigMap
|
||||
*/
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: string; }}
|
||||
* @memberof ConfigMap
|
||||
*/
|
||||
data?: { [key: string]: string }
|
||||
data?: { [key: string]: string };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigMap
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigMap
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof ConfigMap
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
}
|
||||
|
|
|
@ -23,23 +23,23 @@ export interface ContentWrapper {
|
|||
* @type {string}
|
||||
* @memberof ContentWrapper
|
||||
*/
|
||||
snapshotName?: string
|
||||
content?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContentWrapper
|
||||
*/
|
||||
raw?: string
|
||||
raw?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContentWrapper
|
||||
*/
|
||||
content?: string
|
||||
rawType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ContentWrapper
|
||||
*/
|
||||
rawType?: string
|
||||
snapshotName?: string;
|
||||
}
|
||||
|
|
|
@ -23,17 +23,17 @@ export interface Content {
|
|||
* @type {string}
|
||||
* @memberof Content
|
||||
*/
|
||||
raw?: string
|
||||
content?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Content
|
||||
*/
|
||||
content?: string
|
||||
raw?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Content
|
||||
*/
|
||||
rawType?: string
|
||||
rawType?: string;
|
||||
}
|
||||
|
|
|
@ -23,17 +23,17 @@ export interface Contributor {
|
|||
* @type {string}
|
||||
* @memberof Contributor
|
||||
*/
|
||||
displayName?: string
|
||||
avatar?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Contributor
|
||||
*/
|
||||
avatar?: string
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Contributor
|
||||
*/
|
||||
name?: string
|
||||
name?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Counter } from './counter'
|
||||
import { Counter } from "./counter";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { Counter } from './counter'
|
|||
*/
|
||||
export interface CounterList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<Counter>}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
items: Array<Counter>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<Counter>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof CounterList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -23,41 +23,41 @@ export interface CounterRequest {
|
|||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
group?: string
|
||||
group?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
plural?: string
|
||||
hostname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
name?: string
|
||||
language?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
hostname?: string
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
screen?: string
|
||||
plural?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
language?: string
|
||||
referrer?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CounterRequest
|
||||
*/
|
||||
referrer?: string
|
||||
screen?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -24,50 +24,50 @@ import { Metadata } from './metadata'
|
|||
export interface Counter {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @type {string}
|
||||
* @memberof Counter
|
||||
*/
|
||||
visit?: number
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
upvote?: number
|
||||
approvedComment?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
downvote?: number
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
totalComment?: number
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
approvedComment?: number
|
||||
downvote?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Counter
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Counter
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Counter
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
totalComment?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
upvote?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Counter
|
||||
*/
|
||||
visit?: number;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { TemplateDescriptor } from './template-descriptor'
|
||||
import { TemplateDescriptor } from "./template-descriptor";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -27,17 +27,17 @@ export interface CustomTemplates {
|
|||
* @type {Array<TemplateDescriptor>}
|
||||
* @memberof CustomTemplates
|
||||
*/
|
||||
post?: Array<TemplateDescriptor>
|
||||
category?: Array<TemplateDescriptor>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<TemplateDescriptor>}
|
||||
* @memberof CustomTemplates
|
||||
*/
|
||||
category?: Array<TemplateDescriptor>
|
||||
page?: Array<TemplateDescriptor>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<TemplateDescriptor>}
|
||||
* @memberof CustomTemplates
|
||||
*/
|
||||
page?: Array<TemplateDescriptor>
|
||||
post?: Array<TemplateDescriptor>;
|
||||
}
|
||||
|
|
|
@ -23,35 +23,35 @@ export interface DashboardStats {
|
|||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
visits?: number
|
||||
approvedComments?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
comments?: number
|
||||
comments?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
approvedComments?: number
|
||||
posts?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
upvotes?: number
|
||||
upvotes?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
users?: number
|
||||
users?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof DashboardStats
|
||||
*/
|
||||
posts?: number
|
||||
visits?: number;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Role } from './role'
|
||||
import { Role } from "./role";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { User } from './user'
|
||||
import { User } from "./user";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -25,16 +25,16 @@ import { User } from './user'
|
|||
* @interface DetailedUser
|
||||
*/
|
||||
export interface DetailedUser {
|
||||
/**
|
||||
*
|
||||
* @type {User}
|
||||
* @memberof DetailedUser
|
||||
*/
|
||||
user: User
|
||||
/**
|
||||
*
|
||||
* @type {Array<Role>}
|
||||
* @memberof DetailedUser
|
||||
*/
|
||||
roles: Array<Role>
|
||||
roles: Array<Role>;
|
||||
/**
|
||||
*
|
||||
* @type {User}
|
||||
* @memberof DetailedUser
|
||||
*/
|
||||
user: User;
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface Excerpt {
|
|||
* @type {boolean}
|
||||
* @memberof Excerpt
|
||||
*/
|
||||
autoGenerate: boolean
|
||||
autoGenerate: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Excerpt
|
||||
*/
|
||||
raw?: string
|
||||
raw?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -27,17 +27,17 @@ export interface Extension {
|
|||
* @type {string}
|
||||
* @memberof Extension
|
||||
*/
|
||||
kind: string
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Extension
|
||||
*/
|
||||
apiVersion: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Extension
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface FileReverseProxyProvider {
|
|||
* @type {string}
|
||||
* @memberof FileReverseProxyProvider
|
||||
*/
|
||||
directory?: string
|
||||
directory?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FileReverseProxyProvider
|
||||
*/
|
||||
filename?: string
|
||||
filename?: string;
|
||||
}
|
||||
|
|
|
@ -23,5 +23,5 @@ export interface GrantRequest {
|
|||
* @type {Array<string>}
|
||||
* @memberof GrantRequest
|
||||
*/
|
||||
roles?: Array<string>
|
||||
roles?: Array<string>;
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface GroupKind {
|
|||
* @type {string}
|
||||
* @memberof GroupKind
|
||||
*/
|
||||
group?: string
|
||||
group?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupKind
|
||||
*/
|
||||
kind?: string
|
||||
kind?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Group } from './group'
|
||||
import { Group } from "./group";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { Group } from './group'
|
|||
*/
|
||||
export interface GroupList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<Group>}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
items: Array<Group>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<Group>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof GroupList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -23,5 +23,5 @@ export interface GroupSpec {
|
|||
* @type {string}
|
||||
* @memberof GroupSpec
|
||||
*/
|
||||
displayName: string
|
||||
displayName: string;
|
||||
}
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
* @interface GroupStatus
|
||||
*/
|
||||
export interface GroupStatus {
|
||||
/**
|
||||
* Update timestamp of the group
|
||||
* @type {string}
|
||||
* @memberof GroupStatus
|
||||
*/
|
||||
updateTimestamp?: string
|
||||
/**
|
||||
* Total of attachments under the current group
|
||||
* @type {number}
|
||||
* @memberof GroupStatus
|
||||
*/
|
||||
totalAttachments?: number
|
||||
totalAttachments?: number;
|
||||
/**
|
||||
* Update timestamp of the group
|
||||
* @type {string}
|
||||
* @memberof GroupStatus
|
||||
*/
|
||||
updateTimestamp?: string;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { GroupSpec } from './group-spec'
|
||||
import { GroupSpec } from "./group-spec";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { GroupStatus } from './group-status'
|
||||
import { GroupStatus } from "./group-status";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Metadata } from './metadata'
|
||||
import { Metadata } from "./metadata";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -30,32 +30,32 @@ import { Metadata } from './metadata'
|
|||
export interface Group {
|
||||
/**
|
||||
*
|
||||
* @type {GroupSpec}
|
||||
* @type {string}
|
||||
* @memberof Group
|
||||
*/
|
||||
spec: GroupSpec
|
||||
/**
|
||||
*
|
||||
* @type {GroupStatus}
|
||||
* @memberof Group
|
||||
*/
|
||||
status?: GroupStatus
|
||||
apiVersion: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Group
|
||||
*/
|
||||
apiVersion: string
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Group
|
||||
*/
|
||||
kind: string
|
||||
kind: string;
|
||||
/**
|
||||
*
|
||||
* @type {Metadata}
|
||||
* @memberof Group
|
||||
*/
|
||||
metadata: Metadata
|
||||
metadata: Metadata;
|
||||
/**
|
||||
*
|
||||
* @type {GroupSpec}
|
||||
* @memberof Group
|
||||
*/
|
||||
spec: GroupSpec;
|
||||
/**
|
||||
*
|
||||
* @type {GroupStatus}
|
||||
* @memberof Group
|
||||
*/
|
||||
status?: GroupStatus;
|
||||
}
|
||||
|
|
|
@ -1,133 +1,135 @@
|
|||
export * from './annotation-setting'
|
||||
export * from './annotation-setting-list'
|
||||
export * from './annotation-setting-spec'
|
||||
export * from './attachment'
|
||||
export * from './attachment-list'
|
||||
export * from './attachment-spec'
|
||||
export * from './attachment-status'
|
||||
export * from './author'
|
||||
export * from './category'
|
||||
export * from './category-list'
|
||||
export * from './category-spec'
|
||||
export * from './category-status'
|
||||
export * from './change-password-request'
|
||||
export * from './comment'
|
||||
export * from './comment-email-owner'
|
||||
export * from './comment-list'
|
||||
export * from './comment-owner'
|
||||
export * from './comment-request'
|
||||
export * from './comment-spec'
|
||||
export * from './comment-status'
|
||||
export * from './comment-vo'
|
||||
export * from './comment-vo-list'
|
||||
export * from './condition'
|
||||
export * from './config-map'
|
||||
export * from './config-map-list'
|
||||
export * from './content'
|
||||
export * from './content-wrapper'
|
||||
export * from './contributor'
|
||||
export * from './counter'
|
||||
export * from './counter-list'
|
||||
export * from './counter-request'
|
||||
export * from './custom-templates'
|
||||
export * from './dashboard-stats'
|
||||
export * from './detailed-user'
|
||||
export * from './excerpt'
|
||||
export * from './extension'
|
||||
export * from './file-reverse-proxy-provider'
|
||||
export * from './grant-request'
|
||||
export * from './group'
|
||||
export * from './group-kind'
|
||||
export * from './group-list'
|
||||
export * from './group-spec'
|
||||
export * from './group-status'
|
||||
export * from './license'
|
||||
export * from './listed-comment'
|
||||
export * from './listed-comment-list'
|
||||
export * from './listed-post'
|
||||
export * from './listed-post-list'
|
||||
export * from './listed-reply'
|
||||
export * from './listed-reply-list'
|
||||
export * from './listed-single-page'
|
||||
export * from './listed-single-page-list'
|
||||
export * from './listed-user'
|
||||
export * from './listed-user-list'
|
||||
export * from './login-history'
|
||||
export * from './menu'
|
||||
export * from './menu-item'
|
||||
export * from './menu-item-list'
|
||||
export * from './menu-item-spec'
|
||||
export * from './menu-item-status'
|
||||
export * from './menu-list'
|
||||
export * from './menu-spec'
|
||||
export * from './metadata'
|
||||
export * from './owner-info'
|
||||
export * from './personal-access-token'
|
||||
export * from './personal-access-token-list'
|
||||
export * from './personal-access-token-spec'
|
||||
export * from './plugin'
|
||||
export * from './plugin-author'
|
||||
export * from './plugin-list'
|
||||
export * from './plugin-spec'
|
||||
export * from './plugin-status'
|
||||
export * from './policy'
|
||||
export * from './policy-list'
|
||||
export * from './policy-rule'
|
||||
export * from './policy-spec'
|
||||
export * from './policy-template'
|
||||
export * from './policy-template-list'
|
||||
export * from './policy-template-spec'
|
||||
export * from './post'
|
||||
export * from './post-hit'
|
||||
export * from './post-hits'
|
||||
export * from './post-list'
|
||||
export * from './post-request'
|
||||
export * from './post-spec'
|
||||
export * from './post-status'
|
||||
export * from './ref'
|
||||
export * from './reply'
|
||||
export * from './reply-list'
|
||||
export * from './reply-request'
|
||||
export * from './reply-spec'
|
||||
export * from './reply-vo'
|
||||
export * from './reply-vo-list'
|
||||
export * from './reverse-proxy'
|
||||
export * from './reverse-proxy-list'
|
||||
export * from './reverse-proxy-rule'
|
||||
export * from './role'
|
||||
export * from './role-binding'
|
||||
export * from './role-binding-list'
|
||||
export * from './role-list'
|
||||
export * from './role-ref'
|
||||
export * from './search-engine'
|
||||
export * from './search-engine-list'
|
||||
export * from './search-engine-spec'
|
||||
export * from './setting'
|
||||
export * from './setting-form'
|
||||
export * from './setting-list'
|
||||
export * from './setting-spec'
|
||||
export * from './single-page'
|
||||
export * from './single-page-list'
|
||||
export * from './single-page-request'
|
||||
export * from './single-page-spec'
|
||||
export * from './single-page-status'
|
||||
export * from './snap-shot-spec'
|
||||
export * from './snapshot'
|
||||
export * from './snapshot-list'
|
||||
export * from './stats'
|
||||
export * from './subject'
|
||||
export * from './tag'
|
||||
export * from './tag-list'
|
||||
export * from './tag-spec'
|
||||
export * from './tag-status'
|
||||
export * from './template-descriptor'
|
||||
export * from './theme'
|
||||
export * from './theme-list'
|
||||
export * from './theme-spec'
|
||||
export * from './theme-status'
|
||||
export * from './user'
|
||||
export * from './user-list'
|
||||
export * from './user-permission'
|
||||
export * from './user-spec'
|
||||
export * from './user-status'
|
||||
export * from './vote-request'
|
||||
export * from "./annotation-setting";
|
||||
export * from "./annotation-setting-list";
|
||||
export * from "./annotation-setting-spec";
|
||||
export * from "./attachment";
|
||||
export * from "./attachment-list";
|
||||
export * from "./attachment-spec";
|
||||
export * from "./attachment-status";
|
||||
export * from "./author";
|
||||
export * from "./category";
|
||||
export * from "./category-list";
|
||||
export * from "./category-spec";
|
||||
export * from "./category-status";
|
||||
export * from "./change-password-request";
|
||||
export * from "./comment";
|
||||
export * from "./comment-email-owner";
|
||||
export * from "./comment-list";
|
||||
export * from "./comment-owner";
|
||||
export * from "./comment-request";
|
||||
export * from "./comment-spec";
|
||||
export * from "./comment-stats";
|
||||
export * from "./comment-stats-vo";
|
||||
export * from "./comment-status";
|
||||
export * from "./comment-vo";
|
||||
export * from "./comment-vo-list";
|
||||
export * from "./condition";
|
||||
export * from "./config-map";
|
||||
export * from "./config-map-list";
|
||||
export * from "./content";
|
||||
export * from "./content-wrapper";
|
||||
export * from "./contributor";
|
||||
export * from "./counter";
|
||||
export * from "./counter-list";
|
||||
export * from "./counter-request";
|
||||
export * from "./custom-templates";
|
||||
export * from "./dashboard-stats";
|
||||
export * from "./detailed-user";
|
||||
export * from "./excerpt";
|
||||
export * from "./extension";
|
||||
export * from "./file-reverse-proxy-provider";
|
||||
export * from "./grant-request";
|
||||
export * from "./group";
|
||||
export * from "./group-kind";
|
||||
export * from "./group-list";
|
||||
export * from "./group-spec";
|
||||
export * from "./group-status";
|
||||
export * from "./license";
|
||||
export * from "./listed-comment";
|
||||
export * from "./listed-comment-list";
|
||||
export * from "./listed-post";
|
||||
export * from "./listed-post-list";
|
||||
export * from "./listed-reply";
|
||||
export * from "./listed-reply-list";
|
||||
export * from "./listed-single-page";
|
||||
export * from "./listed-single-page-list";
|
||||
export * from "./listed-user";
|
||||
export * from "./listed-user-list";
|
||||
export * from "./login-history";
|
||||
export * from "./menu";
|
||||
export * from "./menu-item";
|
||||
export * from "./menu-item-list";
|
||||
export * from "./menu-item-spec";
|
||||
export * from "./menu-item-status";
|
||||
export * from "./menu-list";
|
||||
export * from "./menu-spec";
|
||||
export * from "./metadata";
|
||||
export * from "./owner-info";
|
||||
export * from "./personal-access-token";
|
||||
export * from "./personal-access-token-list";
|
||||
export * from "./personal-access-token-spec";
|
||||
export * from "./plugin";
|
||||
export * from "./plugin-author";
|
||||
export * from "./plugin-list";
|
||||
export * from "./plugin-spec";
|
||||
export * from "./plugin-status";
|
||||
export * from "./policy";
|
||||
export * from "./policy-list";
|
||||
export * from "./policy-rule";
|
||||
export * from "./policy-spec";
|
||||
export * from "./policy-template";
|
||||
export * from "./policy-template-list";
|
||||
export * from "./policy-template-spec";
|
||||
export * from "./post";
|
||||
export * from "./post-hit";
|
||||
export * from "./post-hits";
|
||||
export * from "./post-list";
|
||||
export * from "./post-request";
|
||||
export * from "./post-spec";
|
||||
export * from "./post-status";
|
||||
export * from "./ref";
|
||||
export * from "./reply";
|
||||
export * from "./reply-list";
|
||||
export * from "./reply-request";
|
||||
export * from "./reply-spec";
|
||||
export * from "./reply-vo";
|
||||
export * from "./reply-vo-list";
|
||||
export * from "./reverse-proxy";
|
||||
export * from "./reverse-proxy-list";
|
||||
export * from "./reverse-proxy-rule";
|
||||
export * from "./role";
|
||||
export * from "./role-binding";
|
||||
export * from "./role-binding-list";
|
||||
export * from "./role-list";
|
||||
export * from "./role-ref";
|
||||
export * from "./search-engine";
|
||||
export * from "./search-engine-list";
|
||||
export * from "./search-engine-spec";
|
||||
export * from "./setting";
|
||||
export * from "./setting-form";
|
||||
export * from "./setting-list";
|
||||
export * from "./setting-spec";
|
||||
export * from "./single-page";
|
||||
export * from "./single-page-list";
|
||||
export * from "./single-page-request";
|
||||
export * from "./single-page-spec";
|
||||
export * from "./single-page-status";
|
||||
export * from "./snap-shot-spec";
|
||||
export * from "./snapshot";
|
||||
export * from "./snapshot-list";
|
||||
export * from "./stats";
|
||||
export * from "./subject";
|
||||
export * from "./tag";
|
||||
export * from "./tag-list";
|
||||
export * from "./tag-spec";
|
||||
export * from "./tag-status";
|
||||
export * from "./template-descriptor";
|
||||
export * from "./theme";
|
||||
export * from "./theme-list";
|
||||
export * from "./theme-spec";
|
||||
export * from "./theme-status";
|
||||
export * from "./user";
|
||||
export * from "./user-list";
|
||||
export * from "./user-permission";
|
||||
export * from "./user-spec";
|
||||
export * from "./user-status";
|
||||
export * from "./vote-request";
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface License {
|
|||
* @type {string}
|
||||
* @memberof License
|
||||
*/
|
||||
name?: string
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof License
|
||||
*/
|
||||
url?: string
|
||||
url?: string;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { ListedComment } from './listed-comment'
|
||||
import { ListedComment } from "./listed-comment";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { ListedComment } from './listed-comment'
|
|||
*/
|
||||
export interface ListedCommentList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<ListedComment>}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
items: Array<ListedComment>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<ListedComment>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof ListedCommentList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,16 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Comment } from './comment'
|
||||
import { Comment } from "./comment";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { Extension } from './extension'
|
||||
import { CommentStats } from "./comment-stats";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { OwnerInfo } from './owner-info'
|
||||
import { Extension } from "./extension";
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { OwnerInfo } from "./owner-info";
|
||||
|
||||
/**
|
||||
* A chunk of items.
|
||||
|
@ -33,17 +36,23 @@ export interface ListedComment {
|
|||
* @type {Comment}
|
||||
* @memberof ListedComment
|
||||
*/
|
||||
comment: Comment
|
||||
comment: Comment;
|
||||
/**
|
||||
*
|
||||
* @type {OwnerInfo}
|
||||
* @memberof ListedComment
|
||||
*/
|
||||
owner: OwnerInfo
|
||||
owner: OwnerInfo;
|
||||
/**
|
||||
*
|
||||
* @type {CommentStats}
|
||||
* @memberof ListedComment
|
||||
*/
|
||||
stats: CommentStats;
|
||||
/**
|
||||
*
|
||||
* @type {Extension}
|
||||
* @memberof ListedComment
|
||||
*/
|
||||
subject?: Extension
|
||||
subject?: Extension;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import { ListedPost } from './listed-post'
|
||||
import { ListedPost } from "./listed-post";
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -23,57 +23,57 @@ import { ListedPost } from './listed-post'
|
|||
*/
|
||||
export interface ListedPostList {
|
||||
/**
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
page: number
|
||||
first: boolean;
|
||||
/**
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
size: number
|
||||
hasNext: boolean;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
total: number
|
||||
hasPrevious: boolean;
|
||||
/**
|
||||
* A chunk of items.
|
||||
* @type {Array<ListedPost>}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
items: Array<ListedPost>
|
||||
/**
|
||||
* Indicates whether current page is the first page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
first: boolean
|
||||
items: Array<ListedPost>;
|
||||
/**
|
||||
* Indicates whether current page is the last page.
|
||||
* @type {boolean}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
last: boolean
|
||||
last: boolean;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
hasNext: boolean
|
||||
page: number;
|
||||
/**
|
||||
* Indicates whether current page has previous page.
|
||||
* @type {boolean}
|
||||
* Size of each page. If not set or equal to 0, it means no pagination.
|
||||
* @type {number}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
hasPrevious: boolean
|
||||
size: number;
|
||||
/**
|
||||
* Total elements.
|
||||
* @type {number}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
total: number;
|
||||
/**
|
||||
* Indicates total pages.
|
||||
* @type {number}
|
||||
* @memberof ListedPostList
|
||||
*/
|
||||
totalPages: number
|
||||
totalPages: number;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue