kb-cloud-client-typescript 2.4.0-alpha.155 → 2.4.0-alpha.156
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/apis/cluster-api.d.ts +72 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +79 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +79 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-event-item.d.ts +91 -0
- package/dist/adminapi/models/cluster-event-item.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-event-item.js +16 -0
- package/dist/adminapi/models/cluster-event-item.js.map +1 -0
- package/dist/adminapi/models/cluster-event-list.d.ts +32 -0
- package/dist/adminapi/models/cluster-event-list.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-event-list.js +16 -0
- package/dist/adminapi/models/cluster-event-list.js.map +1 -0
- package/dist/adminapi/models/environment.d.ts +6 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/platform-component-node.d.ts +20 -1
- package/dist/adminapi/models/platform-component-node.d.ts.map +1 -1
- package/dist/adminapi/models/platform-component-overview.d.ts +1 -1
- package/dist/internalapi/api.d.ts +2 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +2 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/environment-api.d.ts +112 -0
- package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
- package/dist/internalapi/apis/environment-api.js +135 -0
- package/dist/internalapi/apis/environment-api.js.map +1 -1
- package/dist/internalapi/apis/image-registry-api.d.ts +142 -0
- package/dist/internalapi/apis/image-registry-api.d.ts.map +1 -0
- package/dist/internalapi/apis/image-registry-api.js +192 -0
- package/dist/internalapi/apis/image-registry-api.js.map +1 -0
- package/dist/internalapi/apis/task-api.d.ts +256 -0
- package/dist/internalapi/apis/task-api.d.ts.map +1 -0
- package/dist/internalapi/apis/task-api.js +290 -0
- package/dist/internalapi/apis/task-api.js.map +1 -0
- package/dist/internalapi/models/autohealing-config.d.ts +55 -0
- package/dist/internalapi/models/autohealing-config.d.ts.map +1 -0
- package/dist/internalapi/models/autohealing-config.js +16 -0
- package/dist/internalapi/models/autohealing-config.js.map +1 -0
- package/dist/internalapi/models/cluster-info.d.ts +37 -0
- package/dist/internalapi/models/cluster-info.d.ts.map +1 -0
- package/dist/internalapi/models/cluster-info.js +16 -0
- package/dist/internalapi/models/cluster-info.js.map +1 -0
- package/dist/internalapi/models/cluster-scheduling-policy.d.ts +24 -0
- package/dist/internalapi/models/cluster-scheduling-policy.d.ts.map +1 -0
- package/dist/internalapi/models/cluster-scheduling-policy.js +28 -0
- package/dist/internalapi/models/cluster-scheduling-policy.js.map +1 -0
- package/dist/internalapi/models/cluster-validation-policy.d.ts +23 -0
- package/dist/internalapi/models/cluster-validation-policy.d.ts.map +1 -0
- package/dist/internalapi/models/cluster-validation-policy.js +27 -0
- package/dist/internalapi/models/cluster-validation-policy.js.map +1 -0
- package/dist/internalapi/models/component.d.ts +79 -0
- package/dist/internalapi/models/component.d.ts.map +1 -0
- package/dist/internalapi/models/component.js +16 -0
- package/dist/internalapi/models/component.js.map +1 -0
- package/dist/internalapi/models/dns.d.ts +31 -0
- package/dist/internalapi/models/dns.d.ts.map +1 -0
- package/dist/internalapi/models/dns.js +16 -0
- package/dist/internalapi/models/dns.js.map +1 -0
- package/dist/internalapi/models/environment-architecture.d.ts +23 -0
- package/dist/internalapi/models/environment-architecture.d.ts.map +1 -0
- package/dist/internalapi/models/environment-architecture.js +27 -0
- package/dist/internalapi/models/environment-architecture.js.map +1 -0
- package/dist/internalapi/models/environment-create.d.ts +133 -0
- package/dist/internalapi/models/environment-create.d.ts.map +1 -0
- package/dist/internalapi/models/environment-create.js +16 -0
- package/dist/internalapi/models/environment-create.js.map +1 -0
- package/dist/internalapi/models/environment-delete-policy.d.ts +22 -0
- package/dist/internalapi/models/environment-delete-policy.d.ts.map +1 -0
- package/dist/internalapi/models/environment-delete-policy.js +26 -0
- package/dist/internalapi/models/environment-delete-policy.js.map +1 -0
- package/dist/internalapi/models/environment-module-status.d.ts +34 -0
- package/dist/internalapi/models/environment-module-status.d.ts.map +1 -0
- package/dist/internalapi/models/environment-module-status.js +38 -0
- package/dist/internalapi/models/environment-module-status.js.map +1 -0
- package/dist/internalapi/models/environment-module.d.ts +106 -0
- package/dist/internalapi/models/environment-module.d.ts.map +1 -0
- package/dist/internalapi/models/environment-module.js +16 -0
- package/dist/internalapi/models/environment-module.js.map +1 -0
- package/dist/internalapi/models/environment-register-type.d.ts +21 -0
- package/dist/internalapi/models/environment-register-type.d.ts.map +1 -0
- package/dist/internalapi/models/environment-register-type.js +25 -0
- package/dist/internalapi/models/environment-register-type.js.map +1 -0
- package/dist/internalapi/models/environment-state.d.ts +30 -0
- package/dist/internalapi/models/environment-state.d.ts.map +1 -0
- package/dist/internalapi/models/environment-state.js +34 -0
- package/dist/internalapi/models/environment-state.js.map +1 -0
- package/dist/internalapi/models/environment.d.ts +193 -0
- package/dist/internalapi/models/environment.d.ts.map +1 -0
- package/dist/internalapi/models/environment.js +16 -0
- package/dist/internalapi/models/environment.js.map +1 -0
- package/dist/internalapi/models/index.d.ts +32 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +32 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/internal-image-registry-list.d.ts +26 -0
- package/dist/internalapi/models/internal-image-registry-list.d.ts.map +1 -0
- package/dist/internalapi/models/internal-image-registry-list.js +16 -0
- package/dist/internalapi/models/internal-image-registry-list.js.map +1 -0
- package/dist/internalapi/models/internal-image-registry.d.ts +31 -0
- package/dist/internalapi/models/internal-image-registry.d.ts.map +1 -0
- package/dist/internalapi/models/internal-image-registry.js +16 -0
- package/dist/internalapi/models/internal-image-registry.js.map +1 -0
- package/dist/internalapi/models/internal-task-list.d.ts +33 -0
- package/dist/internalapi/models/internal-task-list.d.ts.map +1 -0
- package/dist/internalapi/models/internal-task-list.js +16 -0
- package/dist/internalapi/models/internal-task-list.js.map +1 -0
- package/dist/internalapi/models/internal-task-steps-inner.d.ts +32 -0
- package/dist/internalapi/models/internal-task-steps-inner.d.ts.map +1 -0
- package/dist/internalapi/models/internal-task-steps-inner.js +16 -0
- package/dist/internalapi/models/internal-task-steps-inner.js.map +1 -0
- package/dist/internalapi/models/internal-task.d.ts +57 -0
- package/dist/internalapi/models/internal-task.d.ts.map +1 -0
- package/dist/internalapi/models/internal-task.js +16 -0
- package/dist/internalapi/models/internal-task.js.map +1 -0
- package/dist/internalapi/models/log-backend-type.d.ts +22 -0
- package/dist/internalapi/models/log-backend-type.d.ts.map +1 -0
- package/dist/internalapi/models/log-backend-type.js +26 -0
- package/dist/internalapi/models/log-backend-type.js.map +1 -0
- package/dist/internalapi/models/network-config.d.ts +50 -0
- package/dist/internalapi/models/network-config.d.ts.map +1 -0
- package/dist/internalapi/models/network-config.js +16 -0
- package/dist/internalapi/models/network-config.js.map +1 -0
- package/dist/internalapi/models/node-pool-node.d.ts +49 -0
- package/dist/internalapi/models/node-pool-node.d.ts.map +1 -0
- package/dist/internalapi/models/node-pool-node.js +16 -0
- package/dist/internalapi/models/node-pool-node.js.map +1 -0
- package/dist/internalapi/models/pagination-result.d.ts +37 -0
- package/dist/internalapi/models/pagination-result.d.ts.map +1 -0
- package/dist/internalapi/models/pagination-result.js +16 -0
- package/dist/internalapi/models/pagination-result.js.map +1 -0
- package/dist/internalapi/models/provision-config.d.ts +68 -0
- package/dist/internalapi/models/provision-config.d.ts.map +1 -0
- package/dist/internalapi/models/provision-config.js +16 -0
- package/dist/internalapi/models/provision-config.js.map +1 -0
- package/dist/internalapi/models/register.d.ts +32 -0
- package/dist/internalapi/models/register.d.ts.map +1 -0
- package/dist/internalapi/models/register.js +16 -0
- package/dist/internalapi/models/register.js.map +1 -0
- package/dist/internalapi/models/scheduling-config.d.ts +53 -0
- package/dist/internalapi/models/scheduling-config.d.ts.map +1 -0
- package/dist/internalapi/models/scheduling-config.js +16 -0
- package/dist/internalapi/models/scheduling-config.js.map +1 -0
- package/dist/internalapi/models/storage-config-backup.d.ts +43 -0
- package/dist/internalapi/models/storage-config-backup.d.ts.map +1 -0
- package/dist/internalapi/models/storage-config-backup.js +16 -0
- package/dist/internalapi/models/storage-config-backup.js.map +1 -0
- package/dist/internalapi/models/storage-config.d.ts +33 -0
- package/dist/internalapi/models/storage-config.d.ts.map +1 -0
- package/dist/internalapi/models/storage-config.js +16 -0
- package/dist/internalapi/models/storage-config.js.map +1 -0
- package/dist/internalapi/models/system-component-scheduler-policy.d.ts +22 -0
- package/dist/internalapi/models/system-component-scheduler-policy.d.ts.map +1 -0
- package/dist/internalapi/models/system-component-scheduler-policy.js +26 -0
- package/dist/internalapi/models/system-component-scheduler-policy.js.map +1 -0
- package/dist/internalapi/models/task-retry-mode.d.ts +22 -0
- package/dist/internalapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/internalapi/models/task-retry-mode.js +26 -0
- package/dist/internalapi/models/task-retry-mode.js.map +1 -0
- package/dist/internalapi/models/task-status.d.ts +28 -0
- package/dist/internalapi/models/task-status.d.ts.map +1 -0
- package/dist/internalapi/models/task-status.js +32 -0
- package/dist/internalapi/models/task-status.js.map +1 -0
- package/dist/internalapi/models/tolerate-default-taints.d.ts +31 -0
- package/dist/internalapi/models/tolerate-default-taints.d.ts.map +1 -0
- package/dist/internalapi/models/tolerate-default-taints.js +16 -0
- package/dist/internalapi/models/tolerate-default-taints.js.map +1 -0
- package/dist/openapi/apis/cluster-api.d.ts +72 -0
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +79 -0
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +72 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +79 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/cluster-event-item.d.ts +91 -0
- package/dist/openapi/models/cluster-event-item.d.ts.map +1 -0
- package/dist/openapi/models/cluster-event-item.js +16 -0
- package/dist/openapi/models/cluster-event-item.js.map +1 -0
- package/dist/openapi/models/cluster-event-list.d.ts +32 -0
- package/dist/openapi/models/cluster-event-list.d.ts.map +1 -0
- package/dist/openapi/models/cluster-event-list.js +16 -0
- package/dist/openapi/models/cluster-event-list.js.map +1 -0
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/cluster-api.ts +127 -0
- package/src/adminapi/apis/shared-api.ts +127 -0
- package/src/adminapi/models/cluster-event-item.ts +96 -0
- package/src/adminapi/models/cluster-event-list.ts +39 -0
- package/src/adminapi/models/environment.ts +6 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/platform-component-node.ts +22 -1
- package/src/adminapi/models/platform-component-overview.ts +1 -1
- package/src/adminapi.yaml +113 -2
- package/src/internalapi/.openapi-generator/FILES +34 -0
- package/src/internalapi/api.ts +2 -0
- package/src/internalapi/apis/environment-api.ts +200 -0
- package/src/internalapi/apis/image-registry-api.ts +246 -0
- package/src/internalapi/apis/task-api.ts +433 -0
- package/src/internalapi/models/autohealing-config.ts +60 -0
- package/src/internalapi/models/cluster-info.ts +42 -0
- package/src/internalapi/models/cluster-scheduling-policy.ts +33 -0
- package/src/internalapi/models/cluster-validation-policy.ts +32 -0
- package/src/internalapi/models/component.ts +84 -0
- package/src/internalapi/models/dns.ts +36 -0
- package/src/internalapi/models/environment-architecture.ts +32 -0
- package/src/internalapi/models/environment-create.ts +152 -0
- package/src/internalapi/models/environment-delete-policy.ts +31 -0
- package/src/internalapi/models/environment-module-status.ts +43 -0
- package/src/internalapi/models/environment-module.ts +119 -0
- package/src/internalapi/models/environment-register-type.ts +30 -0
- package/src/internalapi/models/environment-state.ts +39 -0
- package/src/internalapi/models/environment.ts +224 -0
- package/src/internalapi/models/index.ts +32 -0
- package/src/internalapi/models/internal-image-registry-list.ts +33 -0
- package/src/internalapi/models/internal-image-registry.ts +36 -0
- package/src/internalapi/models/internal-task-list.ts +42 -0
- package/src/internalapi/models/internal-task-steps-inner.ts +41 -0
- package/src/internalapi/models/internal-task.ts +68 -0
- package/src/internalapi/models/log-backend-type.ts +31 -0
- package/src/internalapi/models/network-config.ts +57 -0
- package/src/internalapi/models/node-pool-node.ts +54 -0
- package/src/internalapi/models/pagination-result.ts +42 -0
- package/src/internalapi/models/provision-config.ts +87 -0
- package/src/internalapi/models/register.ts +41 -0
- package/src/internalapi/models/scheduling-config.ts +68 -0
- package/src/internalapi/models/storage-config-backup.ts +48 -0
- package/src/internalapi/models/storage-config.ts +42 -0
- package/src/internalapi/models/system-component-scheduler-policy.ts +31 -0
- package/src/internalapi/models/task-retry-mode.ts +31 -0
- package/src/internalapi/models/task-status.ts +37 -0
- package/src/internalapi/models/tolerate-default-taints.ts +36 -0
- package/src/internalapi.yaml +1039 -193
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/cluster-api.ts +127 -0
- package/src/openapi/apis/shared-api.ts +127 -0
- package/src/openapi/models/cluster-event-item.ts +96 -0
- package/src/openapi/models/cluster-event-list.ts +39 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi.yaml +101 -0
|
@@ -28,6 +28,10 @@ import type { BackupRepo } from '../models';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { BackupRepoCreate } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
+
import type { Environment } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { EnvironmentCreate } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
31
35
|
import type { HttpBody } from '../models';
|
|
32
36
|
/**
|
|
33
37
|
* EnvironmentApi - axios parameter creator
|
|
@@ -91,6 +95,46 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
91
95
|
options: localVarRequestOptions,
|
|
92
96
|
};
|
|
93
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Create environment
|
|
101
|
+
* @param {EnvironmentCreate} body
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
createEnvironment: async (body: EnvironmentCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
106
|
+
// verify required parameter 'body' is not null or undefined
|
|
107
|
+
assertParamExists('createEnvironment', 'body', body)
|
|
108
|
+
const localVarPath = `/internal/v1/environments`;
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
117
|
+
const localVarHeaderParameter = {} as any;
|
|
118
|
+
const localVarQueryParameter = {} as any;
|
|
119
|
+
|
|
120
|
+
// authentication BasicAuth required
|
|
121
|
+
// http basic authentication required
|
|
122
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
url: toPathString(localVarUrlObj),
|
|
135
|
+
options: localVarRequestOptions,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
94
138
|
/**
|
|
95
139
|
*
|
|
96
140
|
* @summary Delete Environment
|
|
@@ -189,6 +233,44 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
189
233
|
options: localVarRequestOptions,
|
|
190
234
|
};
|
|
191
235
|
},
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Get environment
|
|
239
|
+
* @param {string} environmentName name of the environment
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
getEnvironment: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
244
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
245
|
+
assertParamExists('getEnvironment', 'environmentName', environmentName)
|
|
246
|
+
const localVarPath = `/internal/v1/environments/{environmentName}`
|
|
247
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
248
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
249
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
250
|
+
let baseOptions;
|
|
251
|
+
if (configuration) {
|
|
252
|
+
baseOptions = configuration.baseOptions;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
256
|
+
const localVarHeaderParameter = {} as any;
|
|
257
|
+
const localVarQueryParameter = {} as any;
|
|
258
|
+
|
|
259
|
+
// authentication BasicAuth required
|
|
260
|
+
// http basic authentication required
|
|
261
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
268
|
+
|
|
269
|
+
return {
|
|
270
|
+
url: toPathString(localVarUrlObj),
|
|
271
|
+
options: localVarRequestOptions,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
192
274
|
/**
|
|
193
275
|
*
|
|
194
276
|
* @summary Get environment kubeconfig
|
|
@@ -306,6 +388,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
306
388
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.createBackupRepoInternal']?.[localVarOperationServerIndex]?.url;
|
|
307
389
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
390
|
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @summary Create environment
|
|
394
|
+
* @param {EnvironmentCreate} body
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
async createEnvironment(body: EnvironmentCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Environment>> {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironment(body, options);
|
|
400
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
401
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.createEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
402
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
|
+
},
|
|
309
404
|
/**
|
|
310
405
|
*
|
|
311
406
|
* @summary Delete Environment
|
|
@@ -336,6 +431,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
336
431
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.executeEnvironmentModuleUninstall']?.[localVarOperationServerIndex]?.url;
|
|
337
432
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
338
433
|
},
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @summary Get environment
|
|
437
|
+
* @param {string} environmentName name of the environment
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
async getEnvironment(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Environment>> {
|
|
442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironment(environmentName, options);
|
|
443
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
444
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
445
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
446
|
+
},
|
|
339
447
|
/**
|
|
340
448
|
*
|
|
341
449
|
* @summary Get environment kubeconfig
|
|
@@ -385,6 +493,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
385
493
|
createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo> {
|
|
386
494
|
return localVarFp.createBackupRepoInternal(requestParameters.environmentName, requestParameters.uid, requestParameters.backupRepoCreate, requestParameters.envInstall, options).then((request) => request(axios, basePath));
|
|
387
495
|
},
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @summary Create environment
|
|
499
|
+
* @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Environment> {
|
|
504
|
+
return localVarFp.createEnvironment(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
505
|
+
},
|
|
388
506
|
/**
|
|
389
507
|
*
|
|
390
508
|
* @summary Delete Environment
|
|
@@ -405,6 +523,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
405
523
|
executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
406
524
|
return localVarFp.executeEnvironmentModuleUninstall(requestParameters.environmentName, requestParameters.moduleName, requestParameters.stage, requestParameters.requestBody, requestParameters.uid, options).then((request) => request(axios, basePath));
|
|
407
525
|
},
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @summary Get environment
|
|
529
|
+
* @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters.
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Environment> {
|
|
534
|
+
return localVarFp.getEnvironment(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
535
|
+
},
|
|
408
536
|
/**
|
|
409
537
|
*
|
|
410
538
|
* @summary Get environment kubeconfig
|
|
@@ -444,6 +572,16 @@ export interface EnvironmentApiInterface {
|
|
|
444
572
|
*/
|
|
445
573
|
createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo>;
|
|
446
574
|
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @summary Create environment
|
|
578
|
+
* @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters.
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
* @memberof EnvironmentApiInterface
|
|
582
|
+
*/
|
|
583
|
+
createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Environment>;
|
|
584
|
+
|
|
447
585
|
/**
|
|
448
586
|
*
|
|
449
587
|
* @summary Delete Environment
|
|
@@ -464,6 +602,16 @@ export interface EnvironmentApiInterface {
|
|
|
464
602
|
*/
|
|
465
603
|
executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
466
604
|
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @summary Get environment
|
|
608
|
+
* @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters.
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
* @memberof EnvironmentApiInterface
|
|
612
|
+
*/
|
|
613
|
+
getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Environment>;
|
|
614
|
+
|
|
467
615
|
/**
|
|
468
616
|
*
|
|
469
617
|
* @summary Get environment kubeconfig
|
|
@@ -521,6 +669,20 @@ export interface EnvironmentApiCreateBackupRepoInternalRequest {
|
|
|
521
669
|
readonly envInstall?: boolean
|
|
522
670
|
}
|
|
523
671
|
|
|
672
|
+
/**
|
|
673
|
+
* Request parameters for createEnvironment operation in EnvironmentApi.
|
|
674
|
+
* @export
|
|
675
|
+
* @interface EnvironmentApiCreateEnvironmentRequest
|
|
676
|
+
*/
|
|
677
|
+
export interface EnvironmentApiCreateEnvironmentRequest {
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {EnvironmentCreate}
|
|
681
|
+
* @memberof EnvironmentApiCreateEnvironment
|
|
682
|
+
*/
|
|
683
|
+
readonly body: EnvironmentCreate
|
|
684
|
+
}
|
|
685
|
+
|
|
524
686
|
/**
|
|
525
687
|
* Request parameters for deleteEnvironment operation in EnvironmentApi.
|
|
526
688
|
* @export
|
|
@@ -577,6 +739,20 @@ export interface EnvironmentApiExecuteEnvironmentModuleUninstallRequest {
|
|
|
577
739
|
readonly uid?: string
|
|
578
740
|
}
|
|
579
741
|
|
|
742
|
+
/**
|
|
743
|
+
* Request parameters for getEnvironment operation in EnvironmentApi.
|
|
744
|
+
* @export
|
|
745
|
+
* @interface EnvironmentApiGetEnvironmentRequest
|
|
746
|
+
*/
|
|
747
|
+
export interface EnvironmentApiGetEnvironmentRequest {
|
|
748
|
+
/**
|
|
749
|
+
* name of the environment
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof EnvironmentApiGetEnvironment
|
|
752
|
+
*/
|
|
753
|
+
readonly environmentName: string
|
|
754
|
+
}
|
|
755
|
+
|
|
580
756
|
/**
|
|
581
757
|
* Request parameters for getEnvironmentKubeconfigInternal operation in EnvironmentApi.
|
|
582
758
|
* @export
|
|
@@ -645,6 +821,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
645
821
|
return EnvironmentApiFp(this.configuration).createBackupRepoInternal(requestParameters.environmentName, requestParameters.uid, requestParameters.backupRepoCreate, requestParameters.envInstall, options).then((request) => request(this.axios, this.basePath));
|
|
646
822
|
}
|
|
647
823
|
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @summary Create environment
|
|
827
|
+
* @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters.
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
* @memberof EnvironmentApi
|
|
831
|
+
*/
|
|
832
|
+
public createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig) {
|
|
833
|
+
return EnvironmentApiFp(this.configuration).createEnvironment(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
834
|
+
}
|
|
835
|
+
|
|
648
836
|
/**
|
|
649
837
|
*
|
|
650
838
|
* @summary Delete Environment
|
|
@@ -669,6 +857,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
669
857
|
return EnvironmentApiFp(this.configuration).executeEnvironmentModuleUninstall(requestParameters.environmentName, requestParameters.moduleName, requestParameters.stage, requestParameters.requestBody, requestParameters.uid, options).then((request) => request(this.axios, this.basePath));
|
|
670
858
|
}
|
|
671
859
|
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @summary Get environment
|
|
863
|
+
* @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters.
|
|
864
|
+
* @param {*} [options] Override http request option.
|
|
865
|
+
* @throws {RequiredError}
|
|
866
|
+
* @memberof EnvironmentApi
|
|
867
|
+
*/
|
|
868
|
+
public getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig) {
|
|
869
|
+
return EnvironmentApiFp(this.configuration).getEnvironment(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
870
|
+
}
|
|
871
|
+
|
|
672
872
|
/**
|
|
673
873
|
*
|
|
674
874
|
* @summary Get environment kubeconfig
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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 { ImageRegistry } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { InternalImageRegistryList } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* ImageRegistryApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const ImageRegistryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Create image registry
|
|
37
|
+
* @param {ImageRegistry} body
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
createImageRegistry: async (body: ImageRegistry, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'body' is not null or undefined
|
|
43
|
+
assertParamExists('createImageRegistry', 'body', body)
|
|
44
|
+
const localVarPath = `/internal/v1/imageRegistries`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
53
|
+
const localVarHeaderParameter = {} as any;
|
|
54
|
+
const localVarQueryParameter = {} as any;
|
|
55
|
+
|
|
56
|
+
// authentication BasicAuth required
|
|
57
|
+
// http basic authentication required
|
|
58
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63
|
+
|
|
64
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
67
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
url: toPathString(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary List image registry names and URLs without credentials
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
listInternalImageRegistries: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
81
|
+
const localVarPath = `/internal/v1/imageRegistries`;
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
90
|
+
const localVarHeaderParameter = {} as any;
|
|
91
|
+
const localVarQueryParameter = {} as any;
|
|
92
|
+
|
|
93
|
+
// authentication BasicAuth required
|
|
94
|
+
// http basic authentication required
|
|
95
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* ImageRegistryApi - functional programming interface
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export const ImageRegistryApiFp = function(configuration?: Configuration) {
|
|
116
|
+
const localVarAxiosParamCreator = ImageRegistryApiAxiosParamCreator(configuration)
|
|
117
|
+
return {
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Create image registry
|
|
121
|
+
* @param {ImageRegistry} body
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
async createImageRegistry(body: ImageRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageRegistry>> {
|
|
126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createImageRegistry(body, options);
|
|
127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
128
|
+
const localVarOperationServerBasePath = operationServerMap['ImageRegistryApi.createImageRegistry']?.[localVarOperationServerIndex]?.url;
|
|
129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @summary List image registry names and URLs without credentials
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
async listInternalImageRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InternalImageRegistryList>> {
|
|
138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInternalImageRegistries(options);
|
|
139
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
140
|
+
const localVarOperationServerBasePath = operationServerMap['ImageRegistryApi.listInternalImageRegistries']?.[localVarOperationServerIndex]?.url;
|
|
141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* ImageRegistryApi - factory interface
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export const ImageRegistryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
151
|
+
const localVarFp = ImageRegistryApiFp(configuration)
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @summary Create image registry
|
|
156
|
+
* @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageRegistry> {
|
|
161
|
+
return localVarFp.createImageRegistry(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @summary List image registry names and URLs without credentials
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
listInternalImageRegistries(options?: RawAxiosRequestConfig): AxiosPromise<InternalImageRegistryList> {
|
|
170
|
+
return localVarFp.listInternalImageRegistries(options).then((request) => request(axios, basePath));
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ImageRegistryApi - interface
|
|
177
|
+
* @export
|
|
178
|
+
* @interface ImageRegistryApi
|
|
179
|
+
*/
|
|
180
|
+
export interface ImageRegistryApiInterface {
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @summary Create image registry
|
|
184
|
+
* @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof ImageRegistryApiInterface
|
|
188
|
+
*/
|
|
189
|
+
createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageRegistry>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @summary List image registry names and URLs without credentials
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
* @memberof ImageRegistryApiInterface
|
|
197
|
+
*/
|
|
198
|
+
listInternalImageRegistries(options?: RawAxiosRequestConfig): AxiosPromise<InternalImageRegistryList>;
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Request parameters for createImageRegistry operation in ImageRegistryApi.
|
|
204
|
+
* @export
|
|
205
|
+
* @interface ImageRegistryApiCreateImageRegistryRequest
|
|
206
|
+
*/
|
|
207
|
+
export interface ImageRegistryApiCreateImageRegistryRequest {
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {ImageRegistry}
|
|
211
|
+
* @memberof ImageRegistryApiCreateImageRegistry
|
|
212
|
+
*/
|
|
213
|
+
readonly body: ImageRegistry
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* ImageRegistryApi - object-oriented interface
|
|
218
|
+
* @export
|
|
219
|
+
* @class ImageRegistryApi
|
|
220
|
+
* @extends {BaseAPI}
|
|
221
|
+
*/
|
|
222
|
+
export class ImageRegistryApi extends BaseAPI implements ImageRegistryApiInterface {
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @summary Create image registry
|
|
226
|
+
* @param {ImageRegistryApiCreateImageRegistryRequest} requestParameters Request parameters.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof ImageRegistryApi
|
|
230
|
+
*/
|
|
231
|
+
public createImageRegistry(requestParameters: ImageRegistryApiCreateImageRegistryRequest, options?: RawAxiosRequestConfig) {
|
|
232
|
+
return ImageRegistryApiFp(this.configuration).createImageRegistry(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @summary List image registry names and URLs without credentials
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof ImageRegistryApi
|
|
241
|
+
*/
|
|
242
|
+
public listInternalImageRegistries(options?: RawAxiosRequestConfig) {
|
|
243
|
+
return ImageRegistryApiFp(this.configuration).listInternalImageRegistries(options).then((request) => request(this.axios, this.basePath));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|