qovery-typescript-axios 1.1.840 → 1.1.842

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/api.ts CHANGED
@@ -1896,6 +1896,114 @@ export interface ApplicationResponseList {
1896
1896
  */
1897
1897
  'results'?: Array<Application>;
1898
1898
  }
1899
+ /**
1900
+ *
1901
+ * @export
1902
+ * @interface ArgoCdConnectionCheckResponse
1903
+ */
1904
+ export interface ArgoCdConnectionCheckResponse {
1905
+ /**
1906
+ * Connection result
1907
+ * @type {string}
1908
+ * @memberof ArgoCdConnectionCheckResponse
1909
+ */
1910
+ 'status': ArgoCdConnectionCheckResponseStatusEnum;
1911
+ /**
1912
+ * Number of ArgoCD applications visible with the provided token. Present only when status is \"connected\".
1913
+ * @type {number}
1914
+ * @memberof ArgoCdConnectionCheckResponse
1915
+ */
1916
+ 'app_count'?: number;
1917
+ /**
1918
+ * Failure reason. Present only when status is \"error\".
1919
+ * @type {string}
1920
+ * @memberof ArgoCdConnectionCheckResponse
1921
+ */
1922
+ 'reason'?: ArgoCdConnectionCheckResponseReasonEnum;
1923
+ }
1924
+
1925
+ export const ArgoCdConnectionCheckResponseStatusEnum = {
1926
+ CONNECTED: 'connected',
1927
+ ERROR: 'error'
1928
+ } as const;
1929
+
1930
+ export type ArgoCdConnectionCheckResponseStatusEnum = typeof ArgoCdConnectionCheckResponseStatusEnum[keyof typeof ArgoCdConnectionCheckResponseStatusEnum];
1931
+ export const ArgoCdConnectionCheckResponseReasonEnum = {
1932
+ AUTHENTICATION_FAILED: 'authentication_failed',
1933
+ UNREACHABLE: 'unreachable',
1934
+ INSUFFICIENT_PERMISSIONS: 'insufficient_permissions'
1935
+ } as const;
1936
+
1937
+ export type ArgoCdConnectionCheckResponseReasonEnum = typeof ArgoCdConnectionCheckResponseReasonEnum[keyof typeof ArgoCdConnectionCheckResponseReasonEnum];
1938
+
1939
+ /**
1940
+ *
1941
+ * @export
1942
+ * @interface ArgoCdCredentialsRequest
1943
+ */
1944
+ export interface ArgoCdCredentialsRequest {
1945
+ /**
1946
+ * The URL of the ArgoCD instance (e.g. https://argocd.example.com)
1947
+ * @type {string}
1948
+ * @memberof ArgoCdCredentialsRequest
1949
+ */
1950
+ 'argocd_url': string;
1951
+ /**
1952
+ * ArgoCD API authentication token
1953
+ * @type {string}
1954
+ * @memberof ArgoCdCredentialsRequest
1955
+ */
1956
+ 'argocd_token': string;
1957
+ }
1958
+ /**
1959
+ *
1960
+ * @export
1961
+ * @interface ArgoCdCredentialsResponse
1962
+ */
1963
+ export interface ArgoCdCredentialsResponse {
1964
+ /**
1965
+ *
1966
+ * @type {string}
1967
+ * @memberof ArgoCdCredentialsResponse
1968
+ */
1969
+ 'id': string;
1970
+ /**
1971
+ *
1972
+ * @type {string}
1973
+ * @memberof ArgoCdCredentialsResponse
1974
+ */
1975
+ 'cluster_id': string;
1976
+ /**
1977
+ *
1978
+ * @type {string}
1979
+ * @memberof ArgoCdCredentialsResponse
1980
+ */
1981
+ 'argocd_url': string;
1982
+ /**
1983
+ * Always returned as REDACTED
1984
+ * @type {string}
1985
+ * @memberof ArgoCdCredentialsResponse
1986
+ */
1987
+ 'argocd_token': string;
1988
+ /**
1989
+ *
1990
+ * @type {string}
1991
+ * @memberof ArgoCdCredentialsResponse
1992
+ */
1993
+ 'last_checked_at'?: string | null;
1994
+ /**
1995
+ *
1996
+ * @type {string}
1997
+ * @memberof ArgoCdCredentialsResponse
1998
+ */
1999
+ 'created_at': string;
2000
+ /**
2001
+ *
2002
+ * @type {string}
2003
+ * @memberof ArgoCdCredentialsResponse
2004
+ */
2005
+ 'updated_at': string;
2006
+ }
1899
2007
  /**
1900
2008
  *
1901
2009
  * @export
@@ -17356,13 +17464,13 @@ export interface ProbeType {
17356
17464
  'grpc'?: ProbeTypeGrpc | null;
17357
17465
  }
17358
17466
  /**
17359
- *
17467
+ * Execute a command inside the container. The probe succeeds if the command exits with status code 0.
17360
17468
  * @export
17361
17469
  * @interface ProbeTypeExec
17362
17470
  */
17363
17471
  export interface ProbeTypeExec {
17364
17472
  /**
17365
- *
17473
+ * Command to execute inside the container, specified as an array of strings. The first element is the executable, followed by its arguments. Example: [\"sh\", \"-c\", \"test -f /tmp/healthy\"]
17366
17474
  * @type {Array<string>}
17367
17475
  * @memberof ProbeTypeExec
17368
17476
  */
@@ -27027,6 +27135,367 @@ export class ApplicationsApi extends BaseAPI {
27027
27135
 
27028
27136
 
27029
27137
 
27138
+ /**
27139
+ * ArgoCDApi - axios parameter creator
27140
+ * @export
27141
+ */
27142
+ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuration) {
27143
+ return {
27144
+ /**
27145
+ * Test an ArgoCD URL and token before saving. The cluster agent attempts to connect to ArgoCD and returns the connection result. Always returns HTTP 200 — check the `status` field for the connection outcome. Requires ADMIN role.
27146
+ * @summary Check ArgoCD connection
27147
+ * @param {string} clusterId Cluster ID
27148
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27149
+ * @param {*} [options] Override http request option.
27150
+ * @throws {RequiredError}
27151
+ */
27152
+ checkArgoCdConnection: async (clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27153
+ // verify required parameter 'clusterId' is not null or undefined
27154
+ assertParamExists('checkArgoCdConnection', 'clusterId', clusterId)
27155
+ // verify required parameter 'argoCdCredentialsRequest' is not null or undefined
27156
+ assertParamExists('checkArgoCdConnection', 'argoCdCredentialsRequest', argoCdCredentialsRequest)
27157
+ const localVarPath = `/cluster/{clusterId}/argoCdConfig/check`
27158
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
27159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27161
+ let baseOptions;
27162
+ if (configuration) {
27163
+ baseOptions = configuration.baseOptions;
27164
+ }
27165
+
27166
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27167
+ const localVarHeaderParameter = {} as any;
27168
+ const localVarQueryParameter = {} as any;
27169
+
27170
+ // authentication ApiKeyAuth required
27171
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27172
+
27173
+ // authentication bearerAuth required
27174
+ // http bearer authentication required
27175
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27176
+
27177
+
27178
+
27179
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27180
+
27181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27183
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27184
+ localVarRequestOptions.data = serializeDataIfNeeded(argoCdCredentialsRequest, localVarRequestOptions, configuration)
27185
+
27186
+ return {
27187
+ url: toPathString(localVarUrlObj),
27188
+ options: localVarRequestOptions,
27189
+ };
27190
+ },
27191
+ /**
27192
+ * Remove the stored ArgoCD configuration for a cluster. Requires ADMIN role.
27193
+ * @summary Delete ArgoCD credentials for a cluster
27194
+ * @param {string} clusterId Cluster ID
27195
+ * @param {*} [options] Override http request option.
27196
+ * @throws {RequiredError}
27197
+ */
27198
+ deleteArgoCdCredentials: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27199
+ // verify required parameter 'clusterId' is not null or undefined
27200
+ assertParamExists('deleteArgoCdCredentials', 'clusterId', clusterId)
27201
+ const localVarPath = `/cluster/{clusterId}/argoCdConfig`
27202
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
27203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27205
+ let baseOptions;
27206
+ if (configuration) {
27207
+ baseOptions = configuration.baseOptions;
27208
+ }
27209
+
27210
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
27211
+ const localVarHeaderParameter = {} as any;
27212
+ const localVarQueryParameter = {} as any;
27213
+
27214
+ // authentication ApiKeyAuth required
27215
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27216
+
27217
+ // authentication bearerAuth required
27218
+ // http bearer authentication required
27219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27220
+
27221
+
27222
+
27223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27226
+
27227
+ return {
27228
+ url: toPathString(localVarUrlObj),
27229
+ options: localVarRequestOptions,
27230
+ };
27231
+ },
27232
+ /**
27233
+ * Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
27234
+ * @summary Get ArgoCD credentials for a cluster
27235
+ * @param {string} clusterId Cluster ID
27236
+ * @param {*} [options] Override http request option.
27237
+ * @throws {RequiredError}
27238
+ */
27239
+ getArgoCdCredentials: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27240
+ // verify required parameter 'clusterId' is not null or undefined
27241
+ assertParamExists('getArgoCdCredentials', 'clusterId', clusterId)
27242
+ const localVarPath = `/cluster/{clusterId}/argoCdConfig`
27243
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
27244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27246
+ let baseOptions;
27247
+ if (configuration) {
27248
+ baseOptions = configuration.baseOptions;
27249
+ }
27250
+
27251
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27252
+ const localVarHeaderParameter = {} as any;
27253
+ const localVarQueryParameter = {} as any;
27254
+
27255
+ // authentication ApiKeyAuth required
27256
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27257
+
27258
+ // authentication bearerAuth required
27259
+ // http bearer authentication required
27260
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27261
+
27262
+
27263
+
27264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27266
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27267
+
27268
+ return {
27269
+ url: toPathString(localVarUrlObj),
27270
+ options: localVarRequestOptions,
27271
+ };
27272
+ },
27273
+ /**
27274
+ * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
27275
+ * @summary Save ArgoCD credentials for a cluster
27276
+ * @param {string} clusterId Cluster ID
27277
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27278
+ * @param {*} [options] Override http request option.
27279
+ * @throws {RequiredError}
27280
+ */
27281
+ saveArgoCdCredentials: async (clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27282
+ // verify required parameter 'clusterId' is not null or undefined
27283
+ assertParamExists('saveArgoCdCredentials', 'clusterId', clusterId)
27284
+ // verify required parameter 'argoCdCredentialsRequest' is not null or undefined
27285
+ assertParamExists('saveArgoCdCredentials', 'argoCdCredentialsRequest', argoCdCredentialsRequest)
27286
+ const localVarPath = `/cluster/{clusterId}/argoCdConfig`
27287
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
27288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27289
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27290
+ let baseOptions;
27291
+ if (configuration) {
27292
+ baseOptions = configuration.baseOptions;
27293
+ }
27294
+
27295
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27296
+ const localVarHeaderParameter = {} as any;
27297
+ const localVarQueryParameter = {} as any;
27298
+
27299
+ // authentication ApiKeyAuth required
27300
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
27301
+
27302
+ // authentication bearerAuth required
27303
+ // http bearer authentication required
27304
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27305
+
27306
+
27307
+
27308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27309
+
27310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27313
+ localVarRequestOptions.data = serializeDataIfNeeded(argoCdCredentialsRequest, localVarRequestOptions, configuration)
27314
+
27315
+ return {
27316
+ url: toPathString(localVarUrlObj),
27317
+ options: localVarRequestOptions,
27318
+ };
27319
+ },
27320
+ }
27321
+ };
27322
+
27323
+ /**
27324
+ * ArgoCDApi - functional programming interface
27325
+ * @export
27326
+ */
27327
+ export const ArgoCDApiFp = function(configuration?: Configuration) {
27328
+ const localVarAxiosParamCreator = ArgoCDApiAxiosParamCreator(configuration)
27329
+ return {
27330
+ /**
27331
+ * Test an ArgoCD URL and token before saving. The cluster agent attempts to connect to ArgoCD and returns the connection result. Always returns HTTP 200 — check the `status` field for the connection outcome. Requires ADMIN role.
27332
+ * @summary Check ArgoCD connection
27333
+ * @param {string} clusterId Cluster ID
27334
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27335
+ * @param {*} [options] Override http request option.
27336
+ * @throws {RequiredError}
27337
+ */
27338
+ async checkArgoCdConnection(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdConnectionCheckResponse>> {
27339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkArgoCdConnection(clusterId, argoCdCredentialsRequest, options);
27340
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27341
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.checkArgoCdConnection']?.[localVarOperationServerIndex]?.url;
27342
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27343
+ },
27344
+ /**
27345
+ * Remove the stored ArgoCD configuration for a cluster. Requires ADMIN role.
27346
+ * @summary Delete ArgoCD credentials for a cluster
27347
+ * @param {string} clusterId Cluster ID
27348
+ * @param {*} [options] Override http request option.
27349
+ * @throws {RequiredError}
27350
+ */
27351
+ async deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
27352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteArgoCdCredentials(clusterId, options);
27353
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27354
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.deleteArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
27355
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27356
+ },
27357
+ /**
27358
+ * Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
27359
+ * @summary Get ArgoCD credentials for a cluster
27360
+ * @param {string} clusterId Cluster ID
27361
+ * @param {*} [options] Override http request option.
27362
+ * @throws {RequiredError}
27363
+ */
27364
+ async getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdCredentialsResponse>> {
27365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getArgoCdCredentials(clusterId, options);
27366
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27367
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.getArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
27368
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27369
+ },
27370
+ /**
27371
+ * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
27372
+ * @summary Save ArgoCD credentials for a cluster
27373
+ * @param {string} clusterId Cluster ID
27374
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27375
+ * @param {*} [options] Override http request option.
27376
+ * @throws {RequiredError}
27377
+ */
27378
+ async saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdCredentialsResponse>> {
27379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options);
27380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27381
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
27382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27383
+ },
27384
+ }
27385
+ };
27386
+
27387
+ /**
27388
+ * ArgoCDApi - factory interface
27389
+ * @export
27390
+ */
27391
+ export const ArgoCDApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27392
+ const localVarFp = ArgoCDApiFp(configuration)
27393
+ return {
27394
+ /**
27395
+ * Test an ArgoCD URL and token before saving. The cluster agent attempts to connect to ArgoCD and returns the connection result. Always returns HTTP 200 — check the `status` field for the connection outcome. Requires ADMIN role.
27396
+ * @summary Check ArgoCD connection
27397
+ * @param {string} clusterId Cluster ID
27398
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27399
+ * @param {*} [options] Override http request option.
27400
+ * @throws {RequiredError}
27401
+ */
27402
+ checkArgoCdConnection(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdConnectionCheckResponse> {
27403
+ return localVarFp.checkArgoCdConnection(clusterId, argoCdCredentialsRequest, options).then((request) => request(axios, basePath));
27404
+ },
27405
+ /**
27406
+ * Remove the stored ArgoCD configuration for a cluster. Requires ADMIN role.
27407
+ * @summary Delete ArgoCD credentials for a cluster
27408
+ * @param {string} clusterId Cluster ID
27409
+ * @param {*} [options] Override http request option.
27410
+ * @throws {RequiredError}
27411
+ */
27412
+ deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
27413
+ return localVarFp.deleteArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
27414
+ },
27415
+ /**
27416
+ * Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
27417
+ * @summary Get ArgoCD credentials for a cluster
27418
+ * @param {string} clusterId Cluster ID
27419
+ * @param {*} [options] Override http request option.
27420
+ * @throws {RequiredError}
27421
+ */
27422
+ getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
27423
+ return localVarFp.getArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
27424
+ },
27425
+ /**
27426
+ * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
27427
+ * @summary Save ArgoCD credentials for a cluster
27428
+ * @param {string} clusterId Cluster ID
27429
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27430
+ * @param {*} [options] Override http request option.
27431
+ * @throws {RequiredError}
27432
+ */
27433
+ saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
27434
+ return localVarFp.saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(axios, basePath));
27435
+ },
27436
+ };
27437
+ };
27438
+
27439
+ /**
27440
+ * ArgoCDApi - object-oriented interface
27441
+ * @export
27442
+ * @class ArgoCDApi
27443
+ * @extends {BaseAPI}
27444
+ */
27445
+ export class ArgoCDApi extends BaseAPI {
27446
+ /**
27447
+ * Test an ArgoCD URL and token before saving. The cluster agent attempts to connect to ArgoCD and returns the connection result. Always returns HTTP 200 — check the `status` field for the connection outcome. Requires ADMIN role.
27448
+ * @summary Check ArgoCD connection
27449
+ * @param {string} clusterId Cluster ID
27450
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27451
+ * @param {*} [options] Override http request option.
27452
+ * @throws {RequiredError}
27453
+ * @memberof ArgoCDApi
27454
+ */
27455
+ public checkArgoCdConnection(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig) {
27456
+ return ArgoCDApiFp(this.configuration).checkArgoCdConnection(clusterId, argoCdCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
27457
+ }
27458
+
27459
+ /**
27460
+ * Remove the stored ArgoCD configuration for a cluster. Requires ADMIN role.
27461
+ * @summary Delete ArgoCD credentials for a cluster
27462
+ * @param {string} clusterId Cluster ID
27463
+ * @param {*} [options] Override http request option.
27464
+ * @throws {RequiredError}
27465
+ * @memberof ArgoCDApi
27466
+ */
27467
+ public deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig) {
27468
+ return ArgoCDApiFp(this.configuration).deleteArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
27469
+ }
27470
+
27471
+ /**
27472
+ * Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
27473
+ * @summary Get ArgoCD credentials for a cluster
27474
+ * @param {string} clusterId Cluster ID
27475
+ * @param {*} [options] Override http request option.
27476
+ * @throws {RequiredError}
27477
+ * @memberof ArgoCDApi
27478
+ */
27479
+ public getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig) {
27480
+ return ArgoCDApiFp(this.configuration).getArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
27481
+ }
27482
+
27483
+ /**
27484
+ * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
27485
+ * @summary Save ArgoCD credentials for a cluster
27486
+ * @param {string} clusterId Cluster ID
27487
+ * @param {ArgoCdCredentialsRequest} argoCdCredentialsRequest
27488
+ * @param {*} [options] Override http request option.
27489
+ * @throws {RequiredError}
27490
+ * @memberof ArgoCDApi
27491
+ */
27492
+ public saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig) {
27493
+ return ArgoCDApiFp(this.configuration).saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
27494
+ }
27495
+ }
27496
+
27497
+
27498
+
27030
27499
  /**
27031
27500
  * BackupsApi - axios parameter creator
27032
27501
  * @export