qovery-typescript-axios 1.1.869 → 1.1.870
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 +112 -0
- package/dist/api.d.ts +69 -0
- package/dist/api.js +71 -0
- package/dist/esm/api.d.ts +69 -0
- package/dist/esm/api.js +71 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2071,6 +2071,42 @@ export interface ArgocdAppResponse {
|
|
|
2071
2071
|
* @memberof ArgocdAppResponse
|
|
2072
2072
|
*/
|
|
2073
2073
|
'namespace': string;
|
|
2074
|
+
/**
|
|
2075
|
+
*
|
|
2076
|
+
* @type {string}
|
|
2077
|
+
* @memberof ArgocdAppResponse
|
|
2078
|
+
*/
|
|
2079
|
+
'environment_id': string;
|
|
2080
|
+
/**
|
|
2081
|
+
*
|
|
2082
|
+
* @type {string}
|
|
2083
|
+
* @memberof ArgocdAppResponse
|
|
2084
|
+
*/
|
|
2085
|
+
'cluster_id': string;
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @type {string}
|
|
2089
|
+
* @memberof ArgocdAppResponse
|
|
2090
|
+
*/
|
|
2091
|
+
'last_synced_at'?: string | null;
|
|
2092
|
+
/**
|
|
2093
|
+
*
|
|
2094
|
+
* @type {string}
|
|
2095
|
+
* @memberof ArgocdAppResponse
|
|
2096
|
+
*/
|
|
2097
|
+
'manifest_revision'?: string | null;
|
|
2098
|
+
/**
|
|
2099
|
+
*
|
|
2100
|
+
* @type {string}
|
|
2101
|
+
* @memberof ArgocdAppResponse
|
|
2102
|
+
*/
|
|
2103
|
+
'source_repo_url'?: string | null;
|
|
2104
|
+
/**
|
|
2105
|
+
*
|
|
2106
|
+
* @type {string}
|
|
2107
|
+
* @memberof ArgocdAppResponse
|
|
2108
|
+
*/
|
|
2109
|
+
'source_target_revision'?: string | null;
|
|
2074
2110
|
}
|
|
2075
2111
|
|
|
2076
2112
|
|
|
@@ -28004,6 +28040,47 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
28004
28040
|
|
|
28005
28041
|
|
|
28006
28042
|
|
|
28043
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28045
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28046
|
+
|
|
28047
|
+
return {
|
|
28048
|
+
url: toPathString(localVarUrlObj),
|
|
28049
|
+
options: localVarRequestOptions,
|
|
28050
|
+
};
|
|
28051
|
+
},
|
|
28052
|
+
/**
|
|
28053
|
+
*
|
|
28054
|
+
* @summary Get ArgoCD app by ID
|
|
28055
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
28056
|
+
* @param {*} [options] Override http request option.
|
|
28057
|
+
* @throws {RequiredError}
|
|
28058
|
+
*/
|
|
28059
|
+
getArgoCdApp: async (argocdAppId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28060
|
+
// verify required parameter 'argocdAppId' is not null or undefined
|
|
28061
|
+
assertParamExists('getArgoCdApp', 'argocdAppId', argocdAppId)
|
|
28062
|
+
const localVarPath = `/argocdApp/{argocdAppId}`
|
|
28063
|
+
.replace(`{${"argocdAppId"}}`, encodeURIComponent(String(argocdAppId)));
|
|
28064
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28065
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28066
|
+
let baseOptions;
|
|
28067
|
+
if (configuration) {
|
|
28068
|
+
baseOptions = configuration.baseOptions;
|
|
28069
|
+
}
|
|
28070
|
+
|
|
28071
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28072
|
+
const localVarHeaderParameter = {} as any;
|
|
28073
|
+
const localVarQueryParameter = {} as any;
|
|
28074
|
+
|
|
28075
|
+
// authentication ApiKeyAuth required
|
|
28076
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
28077
|
+
|
|
28078
|
+
// authentication bearerAuth required
|
|
28079
|
+
// http bearer authentication required
|
|
28080
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28081
|
+
|
|
28082
|
+
|
|
28083
|
+
|
|
28007
28084
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28008
28085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28009
28086
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -28138,6 +28215,19 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
|
|
|
28138
28215
|
const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.deleteArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
|
|
28139
28216
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28140
28217
|
},
|
|
28218
|
+
/**
|
|
28219
|
+
*
|
|
28220
|
+
* @summary Get ArgoCD app by ID
|
|
28221
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
28222
|
+
* @param {*} [options] Override http request option.
|
|
28223
|
+
* @throws {RequiredError}
|
|
28224
|
+
*/
|
|
28225
|
+
async getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgocdAppResponse>> {
|
|
28226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getArgoCdApp(argocdAppId, options);
|
|
28227
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28228
|
+
const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.getArgoCdApp']?.[localVarOperationServerIndex]?.url;
|
|
28229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28230
|
+
},
|
|
28141
28231
|
/**
|
|
28142
28232
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
28143
28233
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -28196,6 +28286,16 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
|
|
|
28196
28286
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
28197
28287
|
return localVarFp.deleteArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
|
|
28198
28288
|
},
|
|
28289
|
+
/**
|
|
28290
|
+
*
|
|
28291
|
+
* @summary Get ArgoCD app by ID
|
|
28292
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
28293
|
+
* @param {*} [options] Override http request option.
|
|
28294
|
+
* @throws {RequiredError}
|
|
28295
|
+
*/
|
|
28296
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgocdAppResponse> {
|
|
28297
|
+
return localVarFp.getArgoCdApp(argocdAppId, options).then((request) => request(axios, basePath));
|
|
28298
|
+
},
|
|
28199
28299
|
/**
|
|
28200
28300
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
28201
28301
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -28252,6 +28352,18 @@ export class ArgoCDApi extends BaseAPI {
|
|
|
28252
28352
|
return ArgoCDApiFp(this.configuration).deleteArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
28253
28353
|
}
|
|
28254
28354
|
|
|
28355
|
+
/**
|
|
28356
|
+
*
|
|
28357
|
+
* @summary Get ArgoCD app by ID
|
|
28358
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
28359
|
+
* @param {*} [options] Override http request option.
|
|
28360
|
+
* @throws {RequiredError}
|
|
28361
|
+
* @memberof ArgoCDApi
|
|
28362
|
+
*/
|
|
28363
|
+
public getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig) {
|
|
28364
|
+
return ArgoCDApiFp(this.configuration).getArgoCdApp(argocdAppId, options).then((request) => request(this.axios, this.basePath));
|
|
28365
|
+
}
|
|
28366
|
+
|
|
28255
28367
|
/**
|
|
28256
28368
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
28257
28369
|
* @summary Get ArgoCD credentials for a cluster
|
package/dist/api.d.ts
CHANGED
|
@@ -1991,6 +1991,42 @@ export interface ArgocdAppResponse {
|
|
|
1991
1991
|
* @memberof ArgocdAppResponse
|
|
1992
1992
|
*/
|
|
1993
1993
|
'namespace': string;
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @type {string}
|
|
1997
|
+
* @memberof ArgocdAppResponse
|
|
1998
|
+
*/
|
|
1999
|
+
'environment_id': string;
|
|
2000
|
+
/**
|
|
2001
|
+
*
|
|
2002
|
+
* @type {string}
|
|
2003
|
+
* @memberof ArgocdAppResponse
|
|
2004
|
+
*/
|
|
2005
|
+
'cluster_id': string;
|
|
2006
|
+
/**
|
|
2007
|
+
*
|
|
2008
|
+
* @type {string}
|
|
2009
|
+
* @memberof ArgocdAppResponse
|
|
2010
|
+
*/
|
|
2011
|
+
'last_synced_at'?: string | null;
|
|
2012
|
+
/**
|
|
2013
|
+
*
|
|
2014
|
+
* @type {string}
|
|
2015
|
+
* @memberof ArgocdAppResponse
|
|
2016
|
+
*/
|
|
2017
|
+
'manifest_revision'?: string | null;
|
|
2018
|
+
/**
|
|
2019
|
+
*
|
|
2020
|
+
* @type {string}
|
|
2021
|
+
* @memberof ArgocdAppResponse
|
|
2022
|
+
*/
|
|
2023
|
+
'source_repo_url'?: string | null;
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @type {string}
|
|
2027
|
+
* @memberof ArgocdAppResponse
|
|
2028
|
+
*/
|
|
2029
|
+
'source_target_revision'?: string | null;
|
|
1994
2030
|
}
|
|
1995
2031
|
/**
|
|
1996
2032
|
*
|
|
@@ -24305,6 +24341,14 @@ export declare const ArgoCDApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
24305
24341
|
* @throws {RequiredError}
|
|
24306
24342
|
*/
|
|
24307
24343
|
deleteArgoCdCredentials: (clusterId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24344
|
+
/**
|
|
24345
|
+
*
|
|
24346
|
+
* @summary Get ArgoCD app by ID
|
|
24347
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24348
|
+
* @param {*} [options] Override http request option.
|
|
24349
|
+
* @throws {RequiredError}
|
|
24350
|
+
*/
|
|
24351
|
+
getArgoCdApp: (argocdAppId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24308
24352
|
/**
|
|
24309
24353
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24310
24354
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24345,6 +24389,14 @@ export declare const ArgoCDApiFp: (configuration?: Configuration) => {
|
|
|
24345
24389
|
* @throws {RequiredError}
|
|
24346
24390
|
*/
|
|
24347
24391
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
24392
|
+
/**
|
|
24393
|
+
*
|
|
24394
|
+
* @summary Get ArgoCD app by ID
|
|
24395
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24396
|
+
* @param {*} [options] Override http request option.
|
|
24397
|
+
* @throws {RequiredError}
|
|
24398
|
+
*/
|
|
24399
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgocdAppResponse>>;
|
|
24348
24400
|
/**
|
|
24349
24401
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24350
24402
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24385,6 +24437,14 @@ export declare const ArgoCDApiFactory: (configuration?: Configuration, basePath?
|
|
|
24385
24437
|
* @throws {RequiredError}
|
|
24386
24438
|
*/
|
|
24387
24439
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24440
|
+
/**
|
|
24441
|
+
*
|
|
24442
|
+
* @summary Get ArgoCD app by ID
|
|
24443
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24444
|
+
* @param {*} [options] Override http request option.
|
|
24445
|
+
* @throws {RequiredError}
|
|
24446
|
+
*/
|
|
24447
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgocdAppResponse>;
|
|
24388
24448
|
/**
|
|
24389
24449
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24390
24450
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24429,6 +24489,15 @@ export declare class ArgoCDApi extends BaseAPI {
|
|
|
24429
24489
|
* @memberof ArgoCDApi
|
|
24430
24490
|
*/
|
|
24431
24491
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
24492
|
+
/**
|
|
24493
|
+
*
|
|
24494
|
+
* @summary Get ArgoCD app by ID
|
|
24495
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24496
|
+
* @param {*} [options] Override http request option.
|
|
24497
|
+
* @throws {RequiredError}
|
|
24498
|
+
* @memberof ArgoCDApi
|
|
24499
|
+
*/
|
|
24500
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ArgocdAppResponse, any, {}>>;
|
|
24432
24501
|
/**
|
|
24433
24502
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24434
24503
|
* @summary Get ArgoCD credentials for a cluster
|
package/dist/api.js
CHANGED
|
@@ -6524,6 +6524,40 @@ const ArgoCDApiAxiosParamCreator = function (configuration) {
|
|
|
6524
6524
|
options: localVarRequestOptions,
|
|
6525
6525
|
};
|
|
6526
6526
|
}),
|
|
6527
|
+
/**
|
|
6528
|
+
*
|
|
6529
|
+
* @summary Get ArgoCD app by ID
|
|
6530
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6531
|
+
* @param {*} [options] Override http request option.
|
|
6532
|
+
* @throws {RequiredError}
|
|
6533
|
+
*/
|
|
6534
|
+
getArgoCdApp: (argocdAppId_1, ...args_1) => __awaiter(this, [argocdAppId_1, ...args_1], void 0, function* (argocdAppId, options = {}) {
|
|
6535
|
+
// verify required parameter 'argocdAppId' is not null or undefined
|
|
6536
|
+
(0, common_1.assertParamExists)('getArgoCdApp', 'argocdAppId', argocdAppId);
|
|
6537
|
+
const localVarPath = `/argocdApp/{argocdAppId}`
|
|
6538
|
+
.replace(`{${"argocdAppId"}}`, encodeURIComponent(String(argocdAppId)));
|
|
6539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6540
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6541
|
+
let baseOptions;
|
|
6542
|
+
if (configuration) {
|
|
6543
|
+
baseOptions = configuration.baseOptions;
|
|
6544
|
+
}
|
|
6545
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6546
|
+
const localVarHeaderParameter = {};
|
|
6547
|
+
const localVarQueryParameter = {};
|
|
6548
|
+
// authentication ApiKeyAuth required
|
|
6549
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
6550
|
+
// authentication bearerAuth required
|
|
6551
|
+
// http bearer authentication required
|
|
6552
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6553
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6556
|
+
return {
|
|
6557
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6558
|
+
options: localVarRequestOptions,
|
|
6559
|
+
};
|
|
6560
|
+
}),
|
|
6527
6561
|
/**
|
|
6528
6562
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6529
6563
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6640,6 +6674,22 @@ const ArgoCDApiFp = function (configuration) {
|
|
|
6640
6674
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6641
6675
|
});
|
|
6642
6676
|
},
|
|
6677
|
+
/**
|
|
6678
|
+
*
|
|
6679
|
+
* @summary Get ArgoCD app by ID
|
|
6680
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6681
|
+
* @param {*} [options] Override http request option.
|
|
6682
|
+
* @throws {RequiredError}
|
|
6683
|
+
*/
|
|
6684
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6686
|
+
var _a, _b, _c;
|
|
6687
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getArgoCdApp(argocdAppId, options);
|
|
6688
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6689
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ArgoCDApi.getArgoCdApp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6690
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6691
|
+
});
|
|
6692
|
+
},
|
|
6643
6693
|
/**
|
|
6644
6694
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6645
6695
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6704,6 +6754,16 @@ const ArgoCDApiFactory = function (configuration, basePath, axios) {
|
|
|
6704
6754
|
deleteArgoCdCredentials(clusterId, options) {
|
|
6705
6755
|
return localVarFp.deleteArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
|
|
6706
6756
|
},
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @summary Get ArgoCD app by ID
|
|
6760
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6761
|
+
* @param {*} [options] Override http request option.
|
|
6762
|
+
* @throws {RequiredError}
|
|
6763
|
+
*/
|
|
6764
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6765
|
+
return localVarFp.getArgoCdApp(argocdAppId, options).then((request) => request(axios, basePath));
|
|
6766
|
+
},
|
|
6707
6767
|
/**
|
|
6708
6768
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6709
6769
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6758,6 +6818,17 @@ class ArgoCDApi extends base_1.BaseAPI {
|
|
|
6758
6818
|
deleteArgoCdCredentials(clusterId, options) {
|
|
6759
6819
|
return (0, exports.ArgoCDApiFp)(this.configuration).deleteArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
6760
6820
|
}
|
|
6821
|
+
/**
|
|
6822
|
+
*
|
|
6823
|
+
* @summary Get ArgoCD app by ID
|
|
6824
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6825
|
+
* @param {*} [options] Override http request option.
|
|
6826
|
+
* @throws {RequiredError}
|
|
6827
|
+
* @memberof ArgoCDApi
|
|
6828
|
+
*/
|
|
6829
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6830
|
+
return (0, exports.ArgoCDApiFp)(this.configuration).getArgoCdApp(argocdAppId, options).then((request) => request(this.axios, this.basePath));
|
|
6831
|
+
}
|
|
6761
6832
|
/**
|
|
6762
6833
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6763
6834
|
* @summary Get ArgoCD credentials for a cluster
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1991,6 +1991,42 @@ export interface ArgocdAppResponse {
|
|
|
1991
1991
|
* @memberof ArgocdAppResponse
|
|
1992
1992
|
*/
|
|
1993
1993
|
'namespace': string;
|
|
1994
|
+
/**
|
|
1995
|
+
*
|
|
1996
|
+
* @type {string}
|
|
1997
|
+
* @memberof ArgocdAppResponse
|
|
1998
|
+
*/
|
|
1999
|
+
'environment_id': string;
|
|
2000
|
+
/**
|
|
2001
|
+
*
|
|
2002
|
+
* @type {string}
|
|
2003
|
+
* @memberof ArgocdAppResponse
|
|
2004
|
+
*/
|
|
2005
|
+
'cluster_id': string;
|
|
2006
|
+
/**
|
|
2007
|
+
*
|
|
2008
|
+
* @type {string}
|
|
2009
|
+
* @memberof ArgocdAppResponse
|
|
2010
|
+
*/
|
|
2011
|
+
'last_synced_at'?: string | null;
|
|
2012
|
+
/**
|
|
2013
|
+
*
|
|
2014
|
+
* @type {string}
|
|
2015
|
+
* @memberof ArgocdAppResponse
|
|
2016
|
+
*/
|
|
2017
|
+
'manifest_revision'?: string | null;
|
|
2018
|
+
/**
|
|
2019
|
+
*
|
|
2020
|
+
* @type {string}
|
|
2021
|
+
* @memberof ArgocdAppResponse
|
|
2022
|
+
*/
|
|
2023
|
+
'source_repo_url'?: string | null;
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @type {string}
|
|
2027
|
+
* @memberof ArgocdAppResponse
|
|
2028
|
+
*/
|
|
2029
|
+
'source_target_revision'?: string | null;
|
|
1994
2030
|
}
|
|
1995
2031
|
/**
|
|
1996
2032
|
*
|
|
@@ -24305,6 +24341,14 @@ export declare const ArgoCDApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
24305
24341
|
* @throws {RequiredError}
|
|
24306
24342
|
*/
|
|
24307
24343
|
deleteArgoCdCredentials: (clusterId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24344
|
+
/**
|
|
24345
|
+
*
|
|
24346
|
+
* @summary Get ArgoCD app by ID
|
|
24347
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24348
|
+
* @param {*} [options] Override http request option.
|
|
24349
|
+
* @throws {RequiredError}
|
|
24350
|
+
*/
|
|
24351
|
+
getArgoCdApp: (argocdAppId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24308
24352
|
/**
|
|
24309
24353
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24310
24354
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24345,6 +24389,14 @@ export declare const ArgoCDApiFp: (configuration?: Configuration) => {
|
|
|
24345
24389
|
* @throws {RequiredError}
|
|
24346
24390
|
*/
|
|
24347
24391
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
24392
|
+
/**
|
|
24393
|
+
*
|
|
24394
|
+
* @summary Get ArgoCD app by ID
|
|
24395
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24396
|
+
* @param {*} [options] Override http request option.
|
|
24397
|
+
* @throws {RequiredError}
|
|
24398
|
+
*/
|
|
24399
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgocdAppResponse>>;
|
|
24348
24400
|
/**
|
|
24349
24401
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24350
24402
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24385,6 +24437,14 @@ export declare const ArgoCDApiFactory: (configuration?: Configuration, basePath?
|
|
|
24385
24437
|
* @throws {RequiredError}
|
|
24386
24438
|
*/
|
|
24387
24439
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24440
|
+
/**
|
|
24441
|
+
*
|
|
24442
|
+
* @summary Get ArgoCD app by ID
|
|
24443
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24444
|
+
* @param {*} [options] Override http request option.
|
|
24445
|
+
* @throws {RequiredError}
|
|
24446
|
+
*/
|
|
24447
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgocdAppResponse>;
|
|
24388
24448
|
/**
|
|
24389
24449
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24390
24450
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -24429,6 +24489,15 @@ export declare class ArgoCDApi extends BaseAPI {
|
|
|
24429
24489
|
* @memberof ArgoCDApi
|
|
24430
24490
|
*/
|
|
24431
24491
|
deleteArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
24492
|
+
/**
|
|
24493
|
+
*
|
|
24494
|
+
* @summary Get ArgoCD app by ID
|
|
24495
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
24496
|
+
* @param {*} [options] Override http request option.
|
|
24497
|
+
* @throws {RequiredError}
|
|
24498
|
+
* @memberof ArgoCDApi
|
|
24499
|
+
*/
|
|
24500
|
+
getArgoCdApp(argocdAppId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ArgocdAppResponse, any, {}>>;
|
|
24432
24501
|
/**
|
|
24433
24502
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
24434
24503
|
* @summary Get ArgoCD credentials for a cluster
|
package/dist/esm/api.js
CHANGED
|
@@ -6459,6 +6459,40 @@ export const ArgoCDApiAxiosParamCreator = function (configuration) {
|
|
|
6459
6459
|
options: localVarRequestOptions,
|
|
6460
6460
|
};
|
|
6461
6461
|
}),
|
|
6462
|
+
/**
|
|
6463
|
+
*
|
|
6464
|
+
* @summary Get ArgoCD app by ID
|
|
6465
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6466
|
+
* @param {*} [options] Override http request option.
|
|
6467
|
+
* @throws {RequiredError}
|
|
6468
|
+
*/
|
|
6469
|
+
getArgoCdApp: (argocdAppId_1, ...args_1) => __awaiter(this, [argocdAppId_1, ...args_1], void 0, function* (argocdAppId, options = {}) {
|
|
6470
|
+
// verify required parameter 'argocdAppId' is not null or undefined
|
|
6471
|
+
assertParamExists('getArgoCdApp', 'argocdAppId', argocdAppId);
|
|
6472
|
+
const localVarPath = `/argocdApp/{argocdAppId}`
|
|
6473
|
+
.replace(`{${"argocdAppId"}}`, encodeURIComponent(String(argocdAppId)));
|
|
6474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6476
|
+
let baseOptions;
|
|
6477
|
+
if (configuration) {
|
|
6478
|
+
baseOptions = configuration.baseOptions;
|
|
6479
|
+
}
|
|
6480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6481
|
+
const localVarHeaderParameter = {};
|
|
6482
|
+
const localVarQueryParameter = {};
|
|
6483
|
+
// authentication ApiKeyAuth required
|
|
6484
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
6485
|
+
// authentication bearerAuth required
|
|
6486
|
+
// http bearer authentication required
|
|
6487
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6491
|
+
return {
|
|
6492
|
+
url: toPathString(localVarUrlObj),
|
|
6493
|
+
options: localVarRequestOptions,
|
|
6494
|
+
};
|
|
6495
|
+
}),
|
|
6462
6496
|
/**
|
|
6463
6497
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6464
6498
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6574,6 +6608,22 @@ export const ArgoCDApiFp = function (configuration) {
|
|
|
6574
6608
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6575
6609
|
});
|
|
6576
6610
|
},
|
|
6611
|
+
/**
|
|
6612
|
+
*
|
|
6613
|
+
* @summary Get ArgoCD app by ID
|
|
6614
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6615
|
+
* @param {*} [options] Override http request option.
|
|
6616
|
+
* @throws {RequiredError}
|
|
6617
|
+
*/
|
|
6618
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6620
|
+
var _a, _b, _c;
|
|
6621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getArgoCdApp(argocdAppId, options);
|
|
6622
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6623
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArgoCDApi.getArgoCdApp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6624
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6625
|
+
});
|
|
6626
|
+
},
|
|
6577
6627
|
/**
|
|
6578
6628
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6579
6629
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6637,6 +6687,16 @@ export const ArgoCDApiFactory = function (configuration, basePath, axios) {
|
|
|
6637
6687
|
deleteArgoCdCredentials(clusterId, options) {
|
|
6638
6688
|
return localVarFp.deleteArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
|
|
6639
6689
|
},
|
|
6690
|
+
/**
|
|
6691
|
+
*
|
|
6692
|
+
* @summary Get ArgoCD app by ID
|
|
6693
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6694
|
+
* @param {*} [options] Override http request option.
|
|
6695
|
+
* @throws {RequiredError}
|
|
6696
|
+
*/
|
|
6697
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6698
|
+
return localVarFp.getArgoCdApp(argocdAppId, options).then((request) => request(axios, basePath));
|
|
6699
|
+
},
|
|
6640
6700
|
/**
|
|
6641
6701
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6642
6702
|
* @summary Get ArgoCD credentials for a cluster
|
|
@@ -6690,6 +6750,17 @@ export class ArgoCDApi extends BaseAPI {
|
|
|
6690
6750
|
deleteArgoCdCredentials(clusterId, options) {
|
|
6691
6751
|
return ArgoCDApiFp(this.configuration).deleteArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
6692
6752
|
}
|
|
6753
|
+
/**
|
|
6754
|
+
*
|
|
6755
|
+
* @summary Get ArgoCD app by ID
|
|
6756
|
+
* @param {string} argocdAppId ArgoCD App ID
|
|
6757
|
+
* @param {*} [options] Override http request option.
|
|
6758
|
+
* @throws {RequiredError}
|
|
6759
|
+
* @memberof ArgoCDApi
|
|
6760
|
+
*/
|
|
6761
|
+
getArgoCdApp(argocdAppId, options) {
|
|
6762
|
+
return ArgoCDApiFp(this.configuration).getArgoCdApp(argocdAppId, options).then((request) => request(this.axios, this.basePath));
|
|
6763
|
+
}
|
|
6693
6764
|
/**
|
|
6694
6765
|
* Retrieve the stored ArgoCD configuration for a cluster. The token is always returned as REDACTED. Requires VIEWER role.
|
|
6695
6766
|
* @summary Get ArgoCD credentials for a cluster
|