qovery-typescript-axios 1.1.872 → 1.1.873

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
@@ -1928,11 +1928,11 @@ export interface ApplicationResponseList {
1928
1928
  */
1929
1929
  export interface ArgoCdConnectionCheckResponse {
1930
1930
  /**
1931
- * Connection result
1932
- * @type {string}
1931
+ *
1932
+ * @type {ArgoCdConnectionStatusEnum}
1933
1933
  * @memberof ArgoCdConnectionCheckResponse
1934
1934
  */
1935
- 'status': ArgoCdConnectionCheckResponseStatusEnum;
1935
+ 'status': ArgoCdConnectionStatusEnum;
1936
1936
  /**
1937
1937
  * Number of ArgoCD applications visible with the provided token. Present only when status is \"connected\".
1938
1938
  * @type {number}
@@ -1947,12 +1947,6 @@ export interface ArgoCdConnectionCheckResponse {
1947
1947
  'reason'?: ArgoCdConnectionCheckResponseReasonEnum;
1948
1948
  }
1949
1949
 
1950
- export const ArgoCdConnectionCheckResponseStatusEnum = {
1951
- CONNECTED: 'connected',
1952
- ERROR: 'error'
1953
- } as const;
1954
-
1955
- export type ArgoCdConnectionCheckResponseStatusEnum = typeof ArgoCdConnectionCheckResponseStatusEnum[keyof typeof ArgoCdConnectionCheckResponseStatusEnum];
1956
1950
  export const ArgoCdConnectionCheckResponseReasonEnum = {
1957
1951
  AUTHENTICATION_FAILED: 'authentication_failed',
1958
1952
  UNREACHABLE: 'unreachable',
@@ -1961,6 +1955,20 @@ export const ArgoCdConnectionCheckResponseReasonEnum = {
1961
1955
 
1962
1956
  export type ArgoCdConnectionCheckResponseReasonEnum = typeof ArgoCdConnectionCheckResponseReasonEnum[keyof typeof ArgoCdConnectionCheckResponseReasonEnum];
1963
1957
 
1958
+ /**
1959
+ * Connection status of an ArgoCD instance
1960
+ * @export
1961
+ * @enum {string}
1962
+ */
1963
+
1964
+ export const ArgoCdConnectionStatusEnum = {
1965
+ CONNECTED: 'connected',
1966
+ ERROR: 'error'
1967
+ } as const;
1968
+
1969
+ export type ArgoCdConnectionStatusEnum = typeof ArgoCdConnectionStatusEnum[keyof typeof ArgoCdConnectionStatusEnum];
1970
+
1971
+
1964
1972
  /**
1965
1973
  *
1966
1974
  * @export
@@ -2029,6 +2037,196 @@ export interface ArgoCdCredentialsResponse {
2029
2037
  */
2030
2038
  'updated_at': string;
2031
2039
  }
2040
+ /**
2041
+ *
2042
+ * @export
2043
+ * @interface ArgoCdDestinationClusterMappingRequest
2044
+ */
2045
+ export interface ArgoCdDestinationClusterMappingRequest {
2046
+ /**
2047
+ * ID of the Qovery cluster where the ArgoCD instance is running
2048
+ * @type {string}
2049
+ * @memberof ArgoCdDestinationClusterMappingRequest
2050
+ */
2051
+ 'agent_cluster_id': string;
2052
+ /**
2053
+ * ArgoCD destination cluster URL as reported by ArgoCD
2054
+ * @type {string}
2055
+ * @memberof ArgoCdDestinationClusterMappingRequest
2056
+ */
2057
+ 'argocd_cluster_url': string;
2058
+ /**
2059
+ * ID of the Qovery cluster to map this ArgoCD destination to
2060
+ * @type {string}
2061
+ * @memberof ArgoCdDestinationClusterMappingRequest
2062
+ */
2063
+ 'cluster_id': string;
2064
+ }
2065
+ /**
2066
+ *
2067
+ * @export
2068
+ * @interface ArgoCdDestinationClusterMappingResponse
2069
+ */
2070
+ export interface ArgoCdDestinationClusterMappingResponse {
2071
+ /**
2072
+ *
2073
+ * @type {string}
2074
+ * @memberof ArgoCdDestinationClusterMappingResponse
2075
+ */
2076
+ 'agent_cluster_id': string;
2077
+ /**
2078
+ *
2079
+ * @type {string}
2080
+ * @memberof ArgoCdDestinationClusterMappingResponse
2081
+ */
2082
+ 'argocd_cluster_url': string;
2083
+ /**
2084
+ *
2085
+ * @type {string}
2086
+ * @memberof ArgoCdDestinationClusterMappingResponse
2087
+ */
2088
+ 'cluster_id': string | null;
2089
+ }
2090
+ /**
2091
+ *
2092
+ * @export
2093
+ * @interface ArgoCdInstanceMappingResponse
2094
+ */
2095
+ export interface ArgoCdInstanceMappingResponse {
2096
+ /**
2097
+ * ID of the Qovery cluster where the ArgoCD instance is running
2098
+ * @type {string}
2099
+ * @memberof ArgoCdInstanceMappingResponse
2100
+ */
2101
+ 'agent_cluster_id': string;
2102
+ /**
2103
+ * ID of the stored ArgoCD credentials for this instance
2104
+ * @type {string}
2105
+ * @memberof ArgoCdInstanceMappingResponse
2106
+ */
2107
+ 'credentials_id': string;
2108
+ /**
2109
+ * URL of the ArgoCD instance
2110
+ * @type {string}
2111
+ * @memberof ArgoCdInstanceMappingResponse
2112
+ */
2113
+ 'argocd_url': string;
2114
+ /**
2115
+ *
2116
+ * @type {ArgoCdConnectionStatusEnum}
2117
+ * @memberof ArgoCdInstanceMappingResponse
2118
+ */
2119
+ 'status': ArgoCdConnectionStatusEnum;
2120
+ /**
2121
+ * Timestamp of the last configuration update (will use last connectivity check in future)
2122
+ * @type {string}
2123
+ * @memberof ArgoCdInstanceMappingResponse
2124
+ */
2125
+ 'last_checked_at': string;
2126
+ /**
2127
+ * ArgoCD clusters detected and mapped to a Qovery cluster
2128
+ * @type {Array<ArgoCdLinkedClusterDetails>}
2129
+ * @memberof ArgoCdInstanceMappingResponse
2130
+ */
2131
+ 'linked_clusters': Array<ArgoCdLinkedClusterDetails>;
2132
+ /**
2133
+ * ArgoCD clusters detected but mapping is missing
2134
+ * @type {Array<ArgoCdUnlinkedClusterDetails>}
2135
+ * @memberof ArgoCdInstanceMappingResponse
2136
+ */
2137
+ 'unlinked_clusters': Array<ArgoCdUnlinkedClusterDetails>;
2138
+ }
2139
+
2140
+
2141
+ /**
2142
+ *
2143
+ * @export
2144
+ * @interface ArgoCdInstanceMappingResponseList
2145
+ */
2146
+ export interface ArgoCdInstanceMappingResponseList {
2147
+ /**
2148
+ *
2149
+ * @type {Array<ArgoCdInstanceMappingResponse>}
2150
+ * @memberof ArgoCdInstanceMappingResponseList
2151
+ */
2152
+ 'results': Array<ArgoCdInstanceMappingResponse>;
2153
+ }
2154
+ /**
2155
+ *
2156
+ * @export
2157
+ * @interface ArgoCdLinkedClusterDetails
2158
+ */
2159
+ export interface ArgoCdLinkedClusterDetails {
2160
+ /**
2161
+ * ArgoCD destination cluster URL
2162
+ * @type {string}
2163
+ * @memberof ArgoCdLinkedClusterDetails
2164
+ */
2165
+ 'argocd_cluster_url': string;
2166
+ /**
2167
+ * ArgoCD cluster name (currently same as URL; will use ArgoCD alias in future)
2168
+ * @type {string}
2169
+ * @memberof ArgoCdLinkedClusterDetails
2170
+ */
2171
+ 'argocd_cluster_name': string;
2172
+ /**
2173
+ * ID of the Qovery cluster this destination is mapped to
2174
+ * @type {string}
2175
+ * @memberof ArgoCdLinkedClusterDetails
2176
+ */
2177
+ 'qovery_cluster_id': string;
2178
+ /**
2179
+ * Display name of the mapped Qovery cluster
2180
+ * @type {string}
2181
+ * @memberof ArgoCdLinkedClusterDetails
2182
+ */
2183
+ 'qovery_cluster_name': string;
2184
+ /**
2185
+ *
2186
+ * @type {CloudVendorEnum}
2187
+ * @memberof ArgoCdLinkedClusterDetails
2188
+ */
2189
+ 'qovery_cluster_cloud_provider': CloudVendorEnum;
2190
+ /**
2191
+ *
2192
+ * @type {KubernetesEnum}
2193
+ * @memberof ArgoCdLinkedClusterDetails
2194
+ */
2195
+ 'qovery_cluster_type': KubernetesEnum;
2196
+ /**
2197
+ * Number of ArgoCD applications targeting this destination
2198
+ * @type {number}
2199
+ * @memberof ArgoCdLinkedClusterDetails
2200
+ */
2201
+ 'applications_count': number;
2202
+ }
2203
+
2204
+
2205
+ /**
2206
+ *
2207
+ * @export
2208
+ * @interface ArgoCdUnlinkedClusterDetails
2209
+ */
2210
+ export interface ArgoCdUnlinkedClusterDetails {
2211
+ /**
2212
+ * ArgoCD destination cluster URL for this stale mapping
2213
+ * @type {string}
2214
+ * @memberof ArgoCdUnlinkedClusterDetails
2215
+ */
2216
+ 'argocd_cluster_url': string;
2217
+ /**
2218
+ * ArgoCD cluster name (currently same as URL; will use ArgoCD alias in future)
2219
+ * @type {string}
2220
+ * @memberof ArgoCdUnlinkedClusterDetails
2221
+ */
2222
+ 'argocd_cluster_name': string;
2223
+ /**
2224
+ * Number of ArgoCD applications targeting this destination
2225
+ * @type {number}
2226
+ * @memberof ArgoCdUnlinkedClusterDetails
2227
+ */
2228
+ 'applications_count': number;
2229
+ }
2032
2230
  /**
2033
2231
  * An ArgoCD service
2034
2232
  * @export
@@ -28432,6 +28630,47 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28432
28630
 
28433
28631
 
28434
28632
 
28633
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28634
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28635
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28636
+
28637
+ return {
28638
+ url: toPathString(localVarUrlObj),
28639
+ options: localVarRequestOptions,
28640
+ };
28641
+ },
28642
+ /**
28643
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28644
+ * @summary List ArgoCD instance mappings for an organization
28645
+ * @param {string} organizationId Organization ID
28646
+ * @param {*} [options] Override http request option.
28647
+ * @throws {RequiredError}
28648
+ */
28649
+ listArgoCdDestinationClusterMappings: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28650
+ // verify required parameter 'organizationId' is not null or undefined
28651
+ assertParamExists('listArgoCdDestinationClusterMappings', 'organizationId', organizationId)
28652
+ const localVarPath = `/organization/{organizationId}/argoCdDestinationClusterMapping`
28653
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
28654
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28655
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28656
+ let baseOptions;
28657
+ if (configuration) {
28658
+ baseOptions = configuration.baseOptions;
28659
+ }
28660
+
28661
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28662
+ const localVarHeaderParameter = {} as any;
28663
+ const localVarQueryParameter = {} as any;
28664
+
28665
+ // authentication ApiKeyAuth required
28666
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28667
+
28668
+ // authentication bearerAuth required
28669
+ // http bearer authentication required
28670
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28671
+
28672
+
28673
+
28435
28674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28436
28675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28437
28676
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28483,6 +28722,53 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28483
28722
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28484
28723
  localVarRequestOptions.data = serializeDataIfNeeded(argoCdCredentialsRequest, localVarRequestOptions, configuration)
28485
28724
 
28725
+ return {
28726
+ url: toPathString(localVarUrlObj),
28727
+ options: localVarRequestOptions,
28728
+ };
28729
+ },
28730
+ /**
28731
+ * Map an ArgoCD destination cluster URL to a Qovery cluster for a given agent cluster. If a mapping for the same (agentClusterId, argocdClusterUrl) already exists, it is updated. Requires ADMIN role on the agent cluster.
28732
+ * @summary Save an ArgoCD destination cluster mapping
28733
+ * @param {string} organizationId Organization ID
28734
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28735
+ * @param {*} [options] Override http request option.
28736
+ * @throws {RequiredError}
28737
+ */
28738
+ saveArgoCdDestinationClusterMapping: async (organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28739
+ // verify required parameter 'organizationId' is not null or undefined
28740
+ assertParamExists('saveArgoCdDestinationClusterMapping', 'organizationId', organizationId)
28741
+ // verify required parameter 'argoCdDestinationClusterMappingRequest' is not null or undefined
28742
+ assertParamExists('saveArgoCdDestinationClusterMapping', 'argoCdDestinationClusterMappingRequest', argoCdDestinationClusterMappingRequest)
28743
+ const localVarPath = `/organization/{organizationId}/argoCdDestinationClusterMapping`
28744
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
28745
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28746
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28747
+ let baseOptions;
28748
+ if (configuration) {
28749
+ baseOptions = configuration.baseOptions;
28750
+ }
28751
+
28752
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28753
+ const localVarHeaderParameter = {} as any;
28754
+ const localVarQueryParameter = {} as any;
28755
+
28756
+ // authentication ApiKeyAuth required
28757
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28758
+
28759
+ // authentication bearerAuth required
28760
+ // http bearer authentication required
28761
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28762
+
28763
+
28764
+
28765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28766
+
28767
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28768
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28769
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28770
+ localVarRequestOptions.data = serializeDataIfNeeded(argoCdDestinationClusterMappingRequest, localVarRequestOptions, configuration)
28771
+
28486
28772
  return {
28487
28773
  url: toPathString(localVarUrlObj),
28488
28774
  options: localVarRequestOptions,
@@ -28551,6 +28837,19 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28551
28837
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.getArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28552
28838
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28553
28839
  },
28840
+ /**
28841
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28842
+ * @summary List ArgoCD instance mappings for an organization
28843
+ * @param {string} organizationId Organization ID
28844
+ * @param {*} [options] Override http request option.
28845
+ * @throws {RequiredError}
28846
+ */
28847
+ async listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdInstanceMappingResponseList>> {
28848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listArgoCdDestinationClusterMappings(organizationId, options);
28849
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28850
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.listArgoCdDestinationClusterMappings']?.[localVarOperationServerIndex]?.url;
28851
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28852
+ },
28554
28853
  /**
28555
28854
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28556
28855
  * @summary Save ArgoCD credentials for a cluster
@@ -28565,6 +28864,20 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28565
28864
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28566
28865
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28567
28866
  },
28867
+ /**
28868
+ * Map an ArgoCD destination cluster URL to a Qovery cluster for a given agent cluster. If a mapping for the same (agentClusterId, argocdClusterUrl) already exists, it is updated. Requires ADMIN role on the agent cluster.
28869
+ * @summary Save an ArgoCD destination cluster mapping
28870
+ * @param {string} organizationId Organization ID
28871
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28872
+ * @param {*} [options] Override http request option.
28873
+ * @throws {RequiredError}
28874
+ */
28875
+ async saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdDestinationClusterMappingResponse>> {
28876
+ const localVarAxiosArgs = await localVarAxiosParamCreator.saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options);
28877
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28878
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdDestinationClusterMapping']?.[localVarOperationServerIndex]?.url;
28879
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28880
+ },
28568
28881
  }
28569
28882
  };
28570
28883
 
@@ -28616,6 +28929,16 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28616
28929
  getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28617
28930
  return localVarFp.getArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
28618
28931
  },
28932
+ /**
28933
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28934
+ * @summary List ArgoCD instance mappings for an organization
28935
+ * @param {string} organizationId Organization ID
28936
+ * @param {*} [options] Override http request option.
28937
+ * @throws {RequiredError}
28938
+ */
28939
+ listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdInstanceMappingResponseList> {
28940
+ return localVarFp.listArgoCdDestinationClusterMappings(organizationId, options).then((request) => request(axios, basePath));
28941
+ },
28619
28942
  /**
28620
28943
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28621
28944
  * @summary Save ArgoCD credentials for a cluster
@@ -28627,6 +28950,17 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28627
28950
  saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28628
28951
  return localVarFp.saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(axios, basePath));
28629
28952
  },
28953
+ /**
28954
+ * Map an ArgoCD destination cluster URL to a Qovery cluster for a given agent cluster. If a mapping for the same (agentClusterId, argocdClusterUrl) already exists, it is updated. Requires ADMIN role on the agent cluster.
28955
+ * @summary Save an ArgoCD destination cluster mapping
28956
+ * @param {string} organizationId Organization ID
28957
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28958
+ * @param {*} [options] Override http request option.
28959
+ * @throws {RequiredError}
28960
+ */
28961
+ saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdDestinationClusterMappingResponse> {
28962
+ return localVarFp.saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options).then((request) => request(axios, basePath));
28963
+ },
28630
28964
  };
28631
28965
  };
28632
28966
 
@@ -28686,6 +29020,18 @@ export class ArgoCDApi extends BaseAPI {
28686
29020
  return ArgoCDApiFp(this.configuration).getArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
28687
29021
  }
28688
29022
 
29023
+ /**
29024
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
29025
+ * @summary List ArgoCD instance mappings for an organization
29026
+ * @param {string} organizationId Organization ID
29027
+ * @param {*} [options] Override http request option.
29028
+ * @throws {RequiredError}
29029
+ * @memberof ArgoCDApi
29030
+ */
29031
+ public listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig) {
29032
+ return ArgoCDApiFp(this.configuration).listArgoCdDestinationClusterMappings(organizationId, options).then((request) => request(this.axios, this.basePath));
29033
+ }
29034
+
28689
29035
  /**
28690
29036
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28691
29037
  * @summary Save ArgoCD credentials for a cluster
@@ -28698,6 +29044,19 @@ export class ArgoCDApi extends BaseAPI {
28698
29044
  public saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig) {
28699
29045
  return ArgoCDApiFp(this.configuration).saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
28700
29046
  }
29047
+
29048
+ /**
29049
+ * Map an ArgoCD destination cluster URL to a Qovery cluster for a given agent cluster. If a mapping for the same (agentClusterId, argocdClusterUrl) already exists, it is updated. Requires ADMIN role on the agent cluster.
29050
+ * @summary Save an ArgoCD destination cluster mapping
29051
+ * @param {string} organizationId Organization ID
29052
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
29053
+ * @param {*} [options] Override http request option.
29054
+ * @throws {RequiredError}
29055
+ * @memberof ArgoCDApi
29056
+ */
29057
+ public saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig) {
29058
+ return ArgoCDApiFp(this.configuration).saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options).then((request) => request(this.axios, this.basePath));
29059
+ }
28701
29060
  }
28702
29061
 
28703
29062