kb-cloud-client-typescript 2.3.0-alpha.109 → 2.3.0-alpha.111

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.
Files changed (70) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-log-api.d.ts +84 -324
  6. package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/cluster-log-api.js +78 -228
  8. package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
  9. package/dist/adminapi/apis/database-parameters-api.d.ts +11 -11
  10. package/dist/adminapi/apis/database-parameters-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/database-parameters-api.js +10 -6
  12. package/dist/adminapi/apis/database-parameters-api.js.map +1 -1
  13. package/dist/adminapi/apis/diagnostics-api.d.ts +120 -0
  14. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -0
  15. package/dist/adminapi/apis/diagnostics-api.js +143 -0
  16. package/dist/adminapi/apis/diagnostics-api.js.map +1 -0
  17. package/dist/adminapi/apis/shared-api.d.ts +84 -324
  18. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  19. package/dist/adminapi/apis/shared-api.js +78 -228
  20. package/dist/adminapi/apis/shared-api.js.map +1 -1
  21. package/dist/adminapi/models/index.d.ts +1 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +1 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/postgresql-session.d.ts +121 -0
  26. package/dist/adminapi/models/postgresql-session.d.ts.map +1 -0
  27. package/dist/adminapi/models/postgresql-session.js +16 -0
  28. package/dist/adminapi/models/postgresql-session.js.map +1 -0
  29. package/dist/openapi/api.d.ts +1 -0
  30. package/dist/openapi/api.d.ts.map +1 -1
  31. package/dist/openapi/api.js +1 -0
  32. package/dist/openapi/api.js.map +1 -1
  33. package/dist/openapi/apis/cluster-log-api.d.ts +98 -378
  34. package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/cluster-log-api.js +91 -266
  36. package/dist/openapi/apis/cluster-log-api.js.map +1 -1
  37. package/dist/openapi/apis/diagnostics-api.d.ts +120 -0
  38. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -0
  39. package/dist/openapi/apis/diagnostics-api.js +143 -0
  40. package/dist/openapi/apis/diagnostics-api.js.map +1 -0
  41. package/dist/openapi/apis/shared-api.d.ts +98 -378
  42. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  43. package/dist/openapi/apis/shared-api.js +91 -266
  44. package/dist/openapi/apis/shared-api.js.map +1 -1
  45. package/dist/openapi/models/index.d.ts +1 -0
  46. package/dist/openapi/models/index.d.ts.map +1 -1
  47. package/dist/openapi/models/index.js +1 -0
  48. package/dist/openapi/models/index.js.map +1 -1
  49. package/dist/openapi/models/postgresql-session.d.ts +121 -0
  50. package/dist/openapi/models/postgresql-session.d.ts.map +1 -0
  51. package/dist/openapi/models/postgresql-session.js +16 -0
  52. package/dist/openapi/models/postgresql-session.js.map +1 -0
  53. package/package.json +1 -6
  54. package/src/adminapi/.openapi-generator/FILES +2 -0
  55. package/src/adminapi/api.ts +1 -0
  56. package/src/adminapi/apis/cluster-log-api.ts +102 -492
  57. package/src/adminapi/apis/database-parameters-api.ts +15 -11
  58. package/src/adminapi/apis/diagnostics-api.ts +196 -0
  59. package/src/adminapi/apis/shared-api.ts +102 -492
  60. package/src/adminapi/models/index.ts +1 -0
  61. package/src/adminapi/models/postgresql-session.ts +126 -0
  62. package/src/adminapi.yaml +134 -120
  63. package/src/openapi/.openapi-generator/FILES +2 -0
  64. package/src/openapi/api.ts +1 -0
  65. package/src/openapi/apis/cluster-log-api.ts +119 -574
  66. package/src/openapi/apis/diagnostics-api.ts +196 -0
  67. package/src/openapi/apis/shared-api.ts +119 -574
  68. package/src/openapi/models/index.ts +1 -0
  69. package/src/openapi/models/postgresql-session.ts +126 -0
  70. package/src/openapi.yaml +131 -140
@@ -0,0 +1,196 @@
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 { PostgresqlSession } from '../models';
28
+ /**
29
+ * DiagnosticsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
36
+ * @summary Get PostgreSQL session basic diagnostics
37
+ * @param {string} orgName Organization name
38
+ * @param {string} clusterName Cluster name
39
+ * @param {number} pid PostgreSQL backend process id.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getDiagnosticsPostgresqlSession: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'orgName' is not null or undefined
45
+ assertParamExists('getDiagnosticsPostgresqlSession', 'orgName', orgName)
46
+ // verify required parameter 'clusterName' is not null or undefined
47
+ assertParamExists('getDiagnosticsPostgresqlSession', 'clusterName', clusterName)
48
+ // verify required parameter 'pid' is not null or undefined
49
+ assertParamExists('getDiagnosticsPostgresqlSession', 'pid', pid)
50
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}`
51
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
52
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
53
+ .replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+
61
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62
+ const localVarHeaderParameter = {} as any;
63
+ const localVarQueryParameter = {} as any;
64
+
65
+ // authentication BearerToken required
66
+ // http bearer authentication required
67
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
+
69
+ // authentication DigestAuth required
70
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
71
+
72
+
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+
78
+ return {
79
+ url: toPathString(localVarUrlObj),
80
+ options: localVarRequestOptions,
81
+ };
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DiagnosticsApi - functional programming interface
88
+ * @export
89
+ */
90
+ export const DiagnosticsApiFp = function(configuration?: Configuration) {
91
+ const localVarAxiosParamCreator = DiagnosticsApiAxiosParamCreator(configuration)
92
+ return {
93
+ /**
94
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
95
+ * @summary Get PostgreSQL session basic diagnostics
96
+ * @param {string} orgName Organization name
97
+ * @param {string} clusterName Cluster name
98
+ * @param {number} pid PostgreSQL backend process id.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ async getDiagnosticsPostgresqlSession(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSession>> {
103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSession(orgName, clusterName, pid, options);
104
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
105
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSession']?.[localVarOperationServerIndex]?.url;
106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
107
+ },
108
+ }
109
+ };
110
+
111
+ /**
112
+ * DiagnosticsApi - factory interface
113
+ * @export
114
+ */
115
+ export const DiagnosticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
116
+ const localVarFp = DiagnosticsApiFp(configuration)
117
+ return {
118
+ /**
119
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
120
+ * @summary Get PostgreSQL session basic diagnostics
121
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession> {
126
+ return localVarFp.getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
127
+ },
128
+ };
129
+ };
130
+
131
+ /**
132
+ * DiagnosticsApi - interface
133
+ * @export
134
+ * @interface DiagnosticsApi
135
+ */
136
+ export interface DiagnosticsApiInterface {
137
+ /**
138
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
139
+ * @summary Get PostgreSQL session basic diagnostics
140
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ * @memberof DiagnosticsApiInterface
144
+ */
145
+ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession>;
146
+
147
+ }
148
+
149
+ /**
150
+ * Request parameters for getDiagnosticsPostgresqlSession operation in DiagnosticsApi.
151
+ * @export
152
+ * @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest
153
+ */
154
+ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest {
155
+ /**
156
+ * Organization name
157
+ * @type {string}
158
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
159
+ */
160
+ readonly orgName: string
161
+
162
+ /**
163
+ * Cluster name
164
+ * @type {string}
165
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
166
+ */
167
+ readonly clusterName: string
168
+
169
+ /**
170
+ * PostgreSQL backend process id.
171
+ * @type {number}
172
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
173
+ */
174
+ readonly pid: number
175
+ }
176
+
177
+ /**
178
+ * DiagnosticsApi - object-oriented interface
179
+ * @export
180
+ * @class DiagnosticsApi
181
+ * @extends {BaseAPI}
182
+ */
183
+ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
184
+ /**
185
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
186
+ * @summary Get PostgreSQL session basic diagnostics
187
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ * @memberof DiagnosticsApi
191
+ */
192
+ public getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig) {
193
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
194
+ }
195
+ }
196
+