chore: generate api client (#3648)

#### What type of PR is this?

/kind improvement
/area core
/milestone 2.4.0

#### What this PR does / why we need it:

重新生成 api client。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/3653/head
Ryan Wang 2023-03-31 11:00:20 +08:00 committed by GitHub
parent a2d2d5443f
commit ff5a62b900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 920 additions and 1 deletions

View File

@ -55,5 +55,6 @@ 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-secret-api";
export * from "./api/v1alpha1-setting-api";
export * from "./api/v1alpha1-user-api";

View File

@ -0,0 +1,770 @@
/* 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.
*/
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 {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { Secret } from "../models";
// @ts-ignore
import { SecretList } from "../models";
/**
* V1alpha1SecretApi - axios parameter creator
* @export
*/
export const V1alpha1SecretApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Create v1alpha1/Secret
* @param {Secret} [secret] Fresh secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createv1alpha1Secret: async (
secret?: Secret,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/secrets`;
// 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;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
localVarHeaderParameter["Content-Type"] = "application/json";
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
localVarRequestOptions.data = serializeDataIfNeeded(
secret,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Delete v1alpha1/Secret
* @param {string} name Name of secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deletev1alpha1Secret: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("deletev1alpha1Secret", "name", name);
const localVarPath = `/api/v1alpha1/secrets/{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;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, 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,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Get v1alpha1/Secret
* @param {string} name Name of secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getv1alpha1Secret: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("getv1alpha1Secret", "name", name);
const localVarPath = `/api/v1alpha1/secrets/{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;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, 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,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* List v1alpha1/Secret
* @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}
*/
listv1alpha1Secret: async (
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/secrets`;
// 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;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
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,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Update v1alpha1/Secret
* @param {string} name Name of secret
* @param {Secret} [secret] Updated secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updatev1alpha1Secret: async (
name: string,
secret?: Secret,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("updatev1alpha1Secret", "name", name);
const localVarPath = `/api/v1alpha1/secrets/{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;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
localVarHeaderParameter["Content-Type"] = "application/json";
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
localVarRequestOptions.data = serializeDataIfNeeded(
secret,
localVarRequestOptions,
configuration
);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* V1alpha1SecretApi - functional programming interface
* @export
*/
export const V1alpha1SecretApiFp = function (configuration?: Configuration) {
const localVarAxiosParamCreator =
V1alpha1SecretApiAxiosParamCreator(configuration);
return {
/**
* Create v1alpha1/Secret
* @param {Secret} [secret] Fresh secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createv1alpha1Secret(
secret?: Secret,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.createv1alpha1Secret(secret, options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Delete v1alpha1/Secret
* @param {string} name Name of secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async deletev1alpha1Secret(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.deletev1alpha1Secret(name, options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Get v1alpha1/Secret
* @param {string} name Name of secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getv1alpha1Secret(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.getv1alpha1Secret(name, options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* List v1alpha1/Secret
* @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}
*/
async listv1alpha1Secret(
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1Secret(
size,
labelSelector,
fieldSelector,
page,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Update v1alpha1/Secret
* @param {string} name Name of secret
* @param {Secret} [secret] Updated secret
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updatev1alpha1Secret(
name: string,
secret?: Secret,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.updatev1alpha1Secret(
name,
secret,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* V1alpha1SecretApi - factory interface
* @export
*/
export const V1alpha1SecretApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = V1alpha1SecretApiFp(configuration);
return {
/**
* Create v1alpha1/Secret
* @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createv1alpha1Secret(
requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<Secret> {
return localVarFp
.createv1alpha1Secret(requestParameters.secret, options)
.then((request) => request(axios, basePath));
},
/**
* Delete v1alpha1/Secret
* @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deletev1alpha1Secret(
requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest,
options?: AxiosRequestConfig
): AxiosPromise<void> {
return localVarFp
.deletev1alpha1Secret(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Get v1alpha1/Secret
* @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getv1alpha1Secret(
requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest,
options?: AxiosRequestConfig
): AxiosPromise<Secret> {
return localVarFp
.getv1alpha1Secret(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* List v1alpha1/Secret
* @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1Secret(
requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<SecretList> {
return localVarFp
.listv1alpha1Secret(
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(axios, basePath));
},
/**
* Update v1alpha1/Secret
* @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updatev1alpha1Secret(
requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest,
options?: AxiosRequestConfig
): AxiosPromise<Secret> {
return localVarFp
.updatev1alpha1Secret(
requestParameters.name,
requestParameters.secret,
options
)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for createv1alpha1Secret operation in V1alpha1SecretApi.
* @export
* @interface V1alpha1SecretApiCreatev1alpha1SecretRequest
*/
export interface V1alpha1SecretApiCreatev1alpha1SecretRequest {
/**
* Fresh secret
* @type {Secret}
* @memberof V1alpha1SecretApiCreatev1alpha1Secret
*/
readonly secret?: Secret;
}
/**
* Request parameters for deletev1alpha1Secret operation in V1alpha1SecretApi.
* @export
* @interface V1alpha1SecretApiDeletev1alpha1SecretRequest
*/
export interface V1alpha1SecretApiDeletev1alpha1SecretRequest {
/**
* Name of secret
* @type {string}
* @memberof V1alpha1SecretApiDeletev1alpha1Secret
*/
readonly name: string;
}
/**
* Request parameters for getv1alpha1Secret operation in V1alpha1SecretApi.
* @export
* @interface V1alpha1SecretApiGetv1alpha1SecretRequest
*/
export interface V1alpha1SecretApiGetv1alpha1SecretRequest {
/**
* Name of secret
* @type {string}
* @memberof V1alpha1SecretApiGetv1alpha1Secret
*/
readonly name: string;
}
/**
* Request parameters for listv1alpha1Secret operation in V1alpha1SecretApi.
* @export
* @interface V1alpha1SecretApiListv1alpha1SecretRequest
*/
export interface V1alpha1SecretApiListv1alpha1SecretRequest {
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly page?: number;
}
/**
* Request parameters for updatev1alpha1Secret operation in V1alpha1SecretApi.
* @export
* @interface V1alpha1SecretApiUpdatev1alpha1SecretRequest
*/
export interface V1alpha1SecretApiUpdatev1alpha1SecretRequest {
/**
* Name of secret
* @type {string}
* @memberof V1alpha1SecretApiUpdatev1alpha1Secret
*/
readonly name: string;
/**
* Updated secret
* @type {Secret}
* @memberof V1alpha1SecretApiUpdatev1alpha1Secret
*/
readonly secret?: Secret;
}
/**
* V1alpha1SecretApi - object-oriented interface
* @export
* @class V1alpha1SecretApi
* @extends {BaseAPI}
*/
export class V1alpha1SecretApi extends BaseAPI {
/**
* Create v1alpha1/Secret
* @param {V1alpha1SecretApiCreatev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof V1alpha1SecretApi
*/
public createv1alpha1Secret(
requestParameters: V1alpha1SecretApiCreatev1alpha1SecretRequest = {},
options?: AxiosRequestConfig
) {
return V1alpha1SecretApiFp(this.configuration)
.createv1alpha1Secret(requestParameters.secret, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Delete v1alpha1/Secret
* @param {V1alpha1SecretApiDeletev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof V1alpha1SecretApi
*/
public deletev1alpha1Secret(
requestParameters: V1alpha1SecretApiDeletev1alpha1SecretRequest,
options?: AxiosRequestConfig
) {
return V1alpha1SecretApiFp(this.configuration)
.deletev1alpha1Secret(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Get v1alpha1/Secret
* @param {V1alpha1SecretApiGetv1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof V1alpha1SecretApi
*/
public getv1alpha1Secret(
requestParameters: V1alpha1SecretApiGetv1alpha1SecretRequest,
options?: AxiosRequestConfig
) {
return V1alpha1SecretApiFp(this.configuration)
.getv1alpha1Secret(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* List v1alpha1/Secret
* @param {V1alpha1SecretApiListv1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof V1alpha1SecretApi
*/
public listv1alpha1Secret(
requestParameters: V1alpha1SecretApiListv1alpha1SecretRequest = {},
options?: AxiosRequestConfig
) {
return V1alpha1SecretApiFp(this.configuration)
.listv1alpha1Secret(
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(this.axios, this.basePath));
}
/**
* Update v1alpha1/Secret
* @param {V1alpha1SecretApiUpdatev1alpha1SecretRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof V1alpha1SecretApi
*/
public updatev1alpha1Secret(
requestParameters: V1alpha1SecretApiUpdatev1alpha1SecretRequest,
options?: AxiosRequestConfig
) {
return V1alpha1SecretApiFp(this.configuration)
.updatev1alpha1Secret(
requestParameters.name,
requestParameters.secret,
options
)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -42,4 +42,10 @@ export interface CommentStatus {
* @memberof CommentStatus
*/
unreadReplyCount?: number;
/**
*
* @type {number}
* @memberof CommentStatus
*/
visibleReplyCount?: number;
}

View File

@ -116,11 +116,14 @@ export * from "./role-ref";
export * from "./search-engine";
export * from "./search-engine-list";
export * from "./search-engine-spec";
export * from "./secret";
export * from "./secret-list";
export * from "./setting";
export * from "./setting-form";
export * from "./setting-list";
export * from "./setting-ref";
export * from "./setting-spec";
export * from "./sign-up-request";
export * from "./single-page";
export * from "./single-page-list";
export * from "./single-page-request";
@ -149,4 +152,3 @@ export * from "./user-permission";
export * from "./user-spec";
export * from "./user-status";
export * from "./vote-request";
export * from "./sign-up-request";

View File

@ -0,0 +1,79 @@
/* 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.
*/
// May contain unused imports in some cases
// @ts-ignore
import { Secret } from "./secret";
/**
*
* @export
* @interface SecretList
*/
export interface SecretList {
/**
* Indicates whether current page is the first page.
* @type {boolean}
* @memberof SecretList
*/
first: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof SecretList
*/
hasNext: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof SecretList
*/
hasPrevious: boolean;
/**
* A chunk of items.
* @type {Array<Secret>}
* @memberof SecretList
*/
items: Array<Secret>;
/**
* Indicates whether current page is the last page.
* @type {boolean}
* @memberof SecretList
*/
last: boolean;
/**
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof SecretList
*/
page: number;
/**
* Size of each page. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof SecretList
*/
size: number;
/**
* Total elements.
* @type {number}
* @memberof SecretList
*/
total: number;
/**
* Indicates total pages.
* @type {number}
* @memberof SecretList
*/
totalPages: number;
}

View File

@ -0,0 +1,61 @@
/* 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.
*/
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
/**
*
* @export
* @interface Secret
*/
export interface Secret {
/**
*
* @type {string}
* @memberof Secret
*/
apiVersion: string;
/**
*
* @type {{ [key: string]: string; }}
* @memberof Secret
*/
data?: { [key: string]: string };
/**
*
* @type {string}
* @memberof Secret
*/
kind: string;
/**
*
* @type {Metadata}
* @memberof Secret
*/
metadata: Metadata;
/**
*
* @type {{ [key: string]: string; }}
* @memberof Secret
*/
stringData?: { [key: string]: string };
/**
*
* @type {string}
* @memberof Secret
*/
type?: string;
}