kb-cloud-client-typescript 2.3.28 → 2.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/api.d.ts +2 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +2 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/compute-group-api.d.ts +947 -0
- package/dist/adminapi/apis/compute-group-api.d.ts.map +1 -0
- package/dist/adminapi/apis/compute-group-api.js +1005 -0
- package/dist/adminapi/apis/compute-group-api.js.map +1 -0
- package/dist/adminapi/apis/dashboard-config-api.d.ts +223 -0
- package/dist/adminapi/apis/dashboard-config-api.d.ts.map +1 -0
- package/dist/adminapi/apis/dashboard-config-api.js +277 -0
- package/dist/adminapi/apis/dashboard-config-api.js.map +1 -0
- package/dist/adminapi/apis/inspection-api.d.ts +17 -16
- package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/adminapi/apis/inspection-api.js +18 -18
- package/dist/adminapi/apis/inspection-api.js.map +1 -1
- package/dist/adminapi/models/compute-group-account-list.d.ts +26 -0
- package/dist/adminapi/models/compute-group-account-list.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-account-list.js +16 -0
- package/dist/adminapi/models/compute-group-account-list.js.map +1 -0
- package/dist/adminapi/models/compute-group-account.d.ts +61 -0
- package/dist/adminapi/models/compute-group-account.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-account.js +16 -0
- package/dist/adminapi/models/compute-group-account.js.map +1 -0
- package/dist/adminapi/models/compute-group-backend.d.ts +73 -0
- package/dist/adminapi/models/compute-group-backend.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-backend.js +16 -0
- package/dist/adminapi/models/compute-group-backend.js.map +1 -0
- package/dist/adminapi/models/compute-group-create.d.ts +37 -0
- package/dist/adminapi/models/compute-group-create.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-create.js +16 -0
- package/dist/adminapi/models/compute-group-create.js.map +1 -0
- package/dist/adminapi/models/compute-group-list.d.ts +38 -0
- package/dist/adminapi/models/compute-group-list.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-list.js +16 -0
- package/dist/adminapi/models/compute-group-list.js.map +1 -0
- package/dist/adminapi/models/compute-group-scale.d.ts +31 -0
- package/dist/adminapi/models/compute-group-scale.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group-scale.js +16 -0
- package/dist/adminapi/models/compute-group-scale.js.map +1 -0
- package/dist/adminapi/models/compute-group.d.ts +110 -0
- package/dist/adminapi/models/compute-group.d.ts.map +1 -0
- package/dist/adminapi/models/compute-group.js +16 -0
- package/dist/adminapi/models/compute-group.js.map +1 -0
- package/dist/adminapi/models/dashboard-config-update.d.ts +25 -0
- package/dist/adminapi/models/dashboard-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/dashboard-config-update.js +16 -0
- package/dist/adminapi/models/dashboard-config-update.js.map +1 -0
- package/dist/adminapi/models/dashboard-config.d.ts +31 -0
- package/dist/adminapi/models/dashboard-config.d.ts.map +1 -0
- package/dist/adminapi/models/dashboard-config.js +16 -0
- package/dist/adminapi/models/dashboard-config.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +10 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +10 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/inspection-task-create.d.ts +49 -0
- package/dist/adminapi/models/inspection-task-create.d.ts.map +1 -0
- package/dist/adminapi/models/inspection-task-create.js +16 -0
- package/dist/adminapi/models/inspection-task-create.js.map +1 -0
- package/dist/openapi/api.d.ts +2 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +2 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/compute-group-api.d.ts +947 -0
- package/dist/openapi/apis/compute-group-api.d.ts.map +1 -0
- package/dist/openapi/apis/compute-group-api.js +1005 -0
- package/dist/openapi/apis/compute-group-api.js.map +1 -0
- package/dist/openapi/apis/dashboard-config-api.d.ts +104 -0
- package/dist/openapi/apis/dashboard-config-api.d.ts.map +1 -0
- package/dist/openapi/apis/dashboard-config-api.js +133 -0
- package/dist/openapi/apis/dashboard-config-api.js.map +1 -0
- package/dist/openapi/apis/inspection-api.d.ts +17 -16
- package/dist/openapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/openapi/apis/inspection-api.js +18 -18
- package/dist/openapi/apis/inspection-api.js.map +1 -1
- package/dist/openapi/models/compute-group-account-list.d.ts +26 -0
- package/dist/openapi/models/compute-group-account-list.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-account-list.js +16 -0
- package/dist/openapi/models/compute-group-account-list.js.map +1 -0
- package/dist/openapi/models/compute-group-account.d.ts +61 -0
- package/dist/openapi/models/compute-group-account.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-account.js +16 -0
- package/dist/openapi/models/compute-group-account.js.map +1 -0
- package/dist/openapi/models/compute-group-backend.d.ts +73 -0
- package/dist/openapi/models/compute-group-backend.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-backend.js +16 -0
- package/dist/openapi/models/compute-group-backend.js.map +1 -0
- package/dist/openapi/models/compute-group-create.d.ts +37 -0
- package/dist/openapi/models/compute-group-create.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-create.js +16 -0
- package/dist/openapi/models/compute-group-create.js.map +1 -0
- package/dist/openapi/models/compute-group-list.d.ts +38 -0
- package/dist/openapi/models/compute-group-list.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-list.js +16 -0
- package/dist/openapi/models/compute-group-list.js.map +1 -0
- package/dist/openapi/models/compute-group-scale.d.ts +31 -0
- package/dist/openapi/models/compute-group-scale.d.ts.map +1 -0
- package/dist/openapi/models/compute-group-scale.js +16 -0
- package/dist/openapi/models/compute-group-scale.js.map +1 -0
- package/dist/openapi/models/compute-group.d.ts +110 -0
- package/dist/openapi/models/compute-group.d.ts.map +1 -0
- package/dist/openapi/models/compute-group.js +16 -0
- package/dist/openapi/models/compute-group.js.map +1 -0
- package/dist/openapi/models/dashboard-config.d.ts +31 -0
- package/dist/openapi/models/dashboard-config.d.ts.map +1 -0
- package/dist/openapi/models/dashboard-config.js +16 -0
- package/dist/openapi/models/dashboard-config.js.map +1 -0
- package/dist/openapi/models/index.d.ts +9 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +9 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/inspection-task-create.d.ts +49 -0
- package/dist/openapi/models/inspection-task-create.d.ts.map +1 -0
- package/dist/openapi/models/inspection-task-create.js +16 -0
- package/dist/openapi/models/inspection-task-create.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +12 -0
- package/src/adminapi/api.ts +2 -0
- package/src/adminapi/apis/compute-group-api.ts +1618 -0
- package/src/adminapi/apis/dashboard-config-api.ts +388 -0
- package/src/adminapi/apis/inspection-api.ts +24 -22
- package/src/adminapi/models/compute-group-account-list.ts +33 -0
- package/src/adminapi/models/compute-group-account.ts +66 -0
- package/src/adminapi/models/compute-group-backend.ts +78 -0
- package/src/adminapi/models/compute-group-create.ts +42 -0
- package/src/adminapi/models/compute-group-list.ts +45 -0
- package/src/adminapi/models/compute-group-scale.ts +36 -0
- package/src/adminapi/models/compute-group.ts +117 -0
- package/src/adminapi/models/dashboard-config-update.ts +30 -0
- package/src/adminapi/models/dashboard-config.ts +36 -0
- package/src/adminapi/models/index.ts +10 -0
- package/src/adminapi/models/inspection-task-create.ts +54 -0
- package/src/adminapi.yaml +845 -51
- package/src/openapi/.openapi-generator/FILES +11 -0
- package/src/openapi/api.ts +2 -0
- package/src/openapi/apis/compute-group-api.ts +1618 -0
- package/src/openapi/apis/dashboard-config-api.ts +172 -0
- package/src/openapi/apis/inspection-api.ts +24 -22
- package/src/openapi/models/compute-group-account-list.ts +33 -0
- package/src/openapi/models/compute-group-account.ts +66 -0
- package/src/openapi/models/compute-group-backend.ts +78 -0
- package/src/openapi/models/compute-group-create.ts +42 -0
- package/src/openapi/models/compute-group-list.ts +45 -0
- package/src/openapi/models/compute-group-scale.ts +36 -0
- package/src/openapi/models/compute-group.ts +117 -0
- package/src/openapi/models/dashboard-config.ts +36 -0
- package/src/openapi/models/index.ts +9 -0
- package/src/openapi/models/inspection-task-create.ts +54 -0
- package/src/openapi.yaml +739 -3
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { APIErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { DashboardConfig } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* DashboardConfigApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const DashboardConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
36
|
+
* @summary Get dashboard configuration by key
|
|
37
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getDashboardConfig: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'key' is not null or undefined
|
|
43
|
+
assertParamExists('getDashboardConfig', 'key', key)
|
|
44
|
+
const localVarPath = `/api/v1/dashboardConfigs/{key}`
|
|
45
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
// authentication BearerToken required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
+
|
|
61
|
+
// authentication DigestAuth required
|
|
62
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
url: toPathString(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* DashboardConfigApi - functional programming interface
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const DashboardConfigApiFp = function(configuration?: Configuration) {
|
|
83
|
+
const localVarAxiosParamCreator = DashboardConfigApiAxiosParamCreator(configuration)
|
|
84
|
+
return {
|
|
85
|
+
/**
|
|
86
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
87
|
+
* @summary Get dashboard configuration by key
|
|
88
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
async getDashboardConfig(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardConfig>> {
|
|
93
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboardConfig(key, options);
|
|
94
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95
|
+
const localVarOperationServerBasePath = operationServerMap['DashboardConfigApi.getDashboardConfig']?.[localVarOperationServerIndex]?.url;
|
|
96
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* DashboardConfigApi - factory interface
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const DashboardConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
106
|
+
const localVarFp = DashboardConfigApiFp(configuration)
|
|
107
|
+
return {
|
|
108
|
+
/**
|
|
109
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
110
|
+
* @summary Get dashboard configuration by key
|
|
111
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig> {
|
|
116
|
+
return localVarFp.getDashboardConfig(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* DashboardConfigApi - interface
|
|
123
|
+
* @export
|
|
124
|
+
* @interface DashboardConfigApi
|
|
125
|
+
*/
|
|
126
|
+
export interface DashboardConfigApiInterface {
|
|
127
|
+
/**
|
|
128
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
129
|
+
* @summary Get dashboard configuration by key
|
|
130
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
* @memberof DashboardConfigApiInterface
|
|
134
|
+
*/
|
|
135
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig>;
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Request parameters for getDashboardConfig operation in DashboardConfigApi.
|
|
141
|
+
* @export
|
|
142
|
+
* @interface DashboardConfigApiGetDashboardConfigRequest
|
|
143
|
+
*/
|
|
144
|
+
export interface DashboardConfigApiGetDashboardConfigRequest {
|
|
145
|
+
/**
|
|
146
|
+
* Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof DashboardConfigApiGetDashboardConfig
|
|
149
|
+
*/
|
|
150
|
+
readonly key: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* DashboardConfigApi - object-oriented interface
|
|
155
|
+
* @export
|
|
156
|
+
* @class DashboardConfigApi
|
|
157
|
+
* @extends {BaseAPI}
|
|
158
|
+
*/
|
|
159
|
+
export class DashboardConfigApi extends BaseAPI implements DashboardConfigApiInterface {
|
|
160
|
+
/**
|
|
161
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
162
|
+
* @summary Get dashboard configuration by key
|
|
163
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
* @memberof DashboardConfigApi
|
|
167
|
+
*/
|
|
168
|
+
public getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig) {
|
|
169
|
+
return DashboardConfigApiFp(this.configuration).getDashboardConfig(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -36,6 +36,8 @@ import type { InspectionScript } from '../models';
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import type { InspectionTask } from '../models';
|
|
38
38
|
// @ts-ignore
|
|
39
|
+
import type { InspectionTaskCreate } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
39
41
|
import type { InspectionTaskFormat } from '../models';
|
|
40
42
|
/**
|
|
41
43
|
* InspectionApi - axios parameter creator
|
|
@@ -130,18 +132,18 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
130
132
|
};
|
|
131
133
|
},
|
|
132
134
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @summary
|
|
135
|
+
* Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
|
|
136
|
+
* @summary Trigger inspection for selected clusters in an organization
|
|
135
137
|
* @param {string} orgName name of the Org
|
|
136
|
-
* @param {
|
|
138
|
+
* @param {InspectionTaskCreate} inspectionTaskCreate
|
|
137
139
|
* @param {*} [options] Override http request option.
|
|
138
140
|
* @throws {RequiredError}
|
|
139
141
|
*/
|
|
140
|
-
createInspectionTaskByOrg: async (orgName: string,
|
|
142
|
+
createInspectionTaskByOrg: async (orgName: string, inspectionTaskCreate: InspectionTaskCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
143
|
// verify required parameter 'orgName' is not null or undefined
|
|
142
144
|
assertParamExists('createInspectionTaskByOrg', 'orgName', orgName)
|
|
143
|
-
// verify required parameter '
|
|
144
|
-
assertParamExists('createInspectionTaskByOrg', '
|
|
145
|
+
// verify required parameter 'inspectionTaskCreate' is not null or undefined
|
|
146
|
+
assertParamExists('createInspectionTaskByOrg', 'inspectionTaskCreate', inspectionTaskCreate)
|
|
145
147
|
const localVarPath = `/api/v1/organizations/{orgName}/inspectionTasksByOrg`
|
|
146
148
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
147
149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -169,7 +171,7 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
169
171
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
173
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
174
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inspectionTaskCreate, localVarRequestOptions, configuration)
|
|
173
175
|
|
|
174
176
|
return {
|
|
175
177
|
url: toPathString(localVarUrlObj),
|
|
@@ -676,15 +678,15 @@ export const InspectionApiFp = function(configuration?: Configuration) {
|
|
|
676
678
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
677
679
|
},
|
|
678
680
|
/**
|
|
679
|
-
*
|
|
680
|
-
* @summary
|
|
681
|
+
* Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
|
|
682
|
+
* @summary Trigger inspection for selected clusters in an organization
|
|
681
683
|
* @param {string} orgName name of the Org
|
|
682
|
-
* @param {
|
|
684
|
+
* @param {InspectionTaskCreate} inspectionTaskCreate
|
|
683
685
|
* @param {*} [options] Override http request option.
|
|
684
686
|
* @throws {RequiredError}
|
|
685
687
|
*/
|
|
686
|
-
async createInspectionTaskByOrg(orgName: string,
|
|
687
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createInspectionTaskByOrg(orgName,
|
|
688
|
+
async createInspectionTaskByOrg(orgName: string, inspectionTaskCreate: InspectionTaskCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInspectionTaskByOrg(orgName, inspectionTaskCreate, options);
|
|
688
690
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
689
691
|
const localVarOperationServerBasePath = operationServerMap['InspectionApi.createInspectionTaskByOrg']?.[localVarOperationServerIndex]?.url;
|
|
690
692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -853,14 +855,14 @@ export const InspectionApiFactory = function (configuration?: Configuration, bas
|
|
|
853
855
|
return localVarFp.createInspectionScript(requestParameters.inspectionScript, options).then((request) => request(axios, basePath));
|
|
854
856
|
},
|
|
855
857
|
/**
|
|
856
|
-
*
|
|
857
|
-
* @summary
|
|
858
|
+
* Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
|
|
859
|
+
* @summary Trigger inspection for selected clusters in an organization
|
|
858
860
|
* @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
|
|
859
861
|
* @param {*} [options] Override http request option.
|
|
860
862
|
* @throws {RequiredError}
|
|
861
863
|
*/
|
|
862
864
|
createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
863
|
-
return localVarFp.createInspectionTaskByOrg(requestParameters.orgName, requestParameters.
|
|
865
|
+
return localVarFp.createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTaskCreate, options).then((request) => request(axios, basePath));
|
|
864
866
|
},
|
|
865
867
|
/**
|
|
866
868
|
*
|
|
@@ -982,8 +984,8 @@ export interface InspectionApiInterface {
|
|
|
982
984
|
createInspectionScript(requestParameters: InspectionApiCreateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionScript>;
|
|
983
985
|
|
|
984
986
|
/**
|
|
985
|
-
*
|
|
986
|
-
* @summary
|
|
987
|
+
* Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
|
|
988
|
+
* @summary Trigger inspection for selected clusters in an organization
|
|
987
989
|
* @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
|
|
988
990
|
* @param {*} [options] Override http request option.
|
|
989
991
|
* @throws {RequiredError}
|
|
@@ -1126,10 +1128,10 @@ export interface InspectionApiCreateInspectionTaskByOrgRequest {
|
|
|
1126
1128
|
|
|
1127
1129
|
/**
|
|
1128
1130
|
*
|
|
1129
|
-
* @type {
|
|
1131
|
+
* @type {InspectionTaskCreate}
|
|
1130
1132
|
* @memberof InspectionApiCreateInspectionTaskByOrg
|
|
1131
1133
|
*/
|
|
1132
|
-
readonly
|
|
1134
|
+
readonly inspectionTaskCreate: InspectionTaskCreate
|
|
1133
1135
|
}
|
|
1134
1136
|
|
|
1135
1137
|
/**
|
|
@@ -1402,15 +1404,15 @@ export class InspectionApi extends BaseAPI implements InspectionApiInterface {
|
|
|
1402
1404
|
}
|
|
1403
1405
|
|
|
1404
1406
|
/**
|
|
1405
|
-
*
|
|
1406
|
-
* @summary
|
|
1407
|
+
* Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
|
|
1408
|
+
* @summary Trigger inspection for selected clusters in an organization
|
|
1407
1409
|
* @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
|
|
1408
1410
|
* @param {*} [options] Override http request option.
|
|
1409
1411
|
* @throws {RequiredError}
|
|
1410
1412
|
* @memberof InspectionApi
|
|
1411
1413
|
*/
|
|
1412
1414
|
public createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig) {
|
|
1413
|
-
return InspectionApiFp(this.configuration).createInspectionTaskByOrg(requestParameters.orgName, requestParameters.
|
|
1415
|
+
return InspectionApiFp(this.configuration).createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTaskCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1414
1416
|
}
|
|
1415
1417
|
|
|
1416
1418
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ComputeGroupAccount } from './compute-group-account';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ComputeGroupAccountList
|
|
24
|
+
*/
|
|
25
|
+
export interface ComputeGroupAccountList {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ComputeGroupAccount>}
|
|
29
|
+
* @memberof ComputeGroupAccountList
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<ComputeGroupAccount>;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Grants reported by the engine can include role inheritance. Revoking a direct grant does not remove inherited permissions.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ComputeGroupAccount
|
|
21
|
+
*/
|
|
22
|
+
export interface ComputeGroupAccount {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ComputeGroupAccount
|
|
27
|
+
*/
|
|
28
|
+
'identity'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ComputeGroupAccount
|
|
33
|
+
*/
|
|
34
|
+
'accountName'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ComputeGroupAccount
|
|
39
|
+
*/
|
|
40
|
+
'manageable'?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ComputeGroupAccount
|
|
45
|
+
*/
|
|
46
|
+
'globalGrants'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ComputeGroupAccount
|
|
51
|
+
*/
|
|
52
|
+
'computeGrants'?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ComputeGroupAccount
|
|
57
|
+
*/
|
|
58
|
+
'roles'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ComputeGroupAccount
|
|
63
|
+
*/
|
|
64
|
+
'isDefault'?: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ComputeGroupBackend
|
|
21
|
+
*/
|
|
22
|
+
export interface ComputeGroupBackend {
|
|
23
|
+
/**
|
|
24
|
+
* Opaque backend ID; do not convert to a JavaScript number.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ComputeGroupBackend
|
|
27
|
+
*/
|
|
28
|
+
'id'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ComputeGroupBackend
|
|
33
|
+
*/
|
|
34
|
+
'host'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ComputeGroupBackend
|
|
39
|
+
*/
|
|
40
|
+
'heartbeatPort'?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof ComputeGroupBackend
|
|
45
|
+
*/
|
|
46
|
+
'alive'?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof ComputeGroupBackend
|
|
51
|
+
*/
|
|
52
|
+
'decommissioned'?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ComputeGroupBackend
|
|
57
|
+
*/
|
|
58
|
+
'tabletCount'?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ComputeGroupBackend
|
|
63
|
+
*/
|
|
64
|
+
'lastHeartbeat'?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ComputeGroupBackend
|
|
69
|
+
*/
|
|
70
|
+
'version'?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ComputeGroupBackend
|
|
75
|
+
*/
|
|
76
|
+
'errorMessage'?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ComputeGroupCreate
|
|
21
|
+
*/
|
|
22
|
+
export interface ComputeGroupCreate {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ComputeGroupCreate
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ComputeGroupCreate
|
|
33
|
+
*/
|
|
34
|
+
'replicas': number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ComputeGroupCreate
|
|
39
|
+
*/
|
|
40
|
+
'classCode': string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ComputeGroup } from './compute-group';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ComputeGroupList
|
|
24
|
+
*/
|
|
25
|
+
export interface ComputeGroupList {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ComputeGroup>}
|
|
29
|
+
* @memberof ComputeGroupList
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<ComputeGroup>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof ComputeGroupList
|
|
36
|
+
*/
|
|
37
|
+
'managementSupported'?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ComputeGroupList
|
|
42
|
+
*/
|
|
43
|
+
'unsupportedReason'?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ComputeGroupScale
|
|
21
|
+
*/
|
|
22
|
+
export interface ComputeGroupScale {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ComputeGroupScale
|
|
27
|
+
*/
|
|
28
|
+
'replicas'?: number | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ComputeGroupScale
|
|
33
|
+
*/
|
|
34
|
+
'classCode'?: string;
|
|
35
|
+
}
|
|
36
|
+
|