qovery-typescript-axios 1.1.872 → 1.1.874

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,208 @@ 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
+ * Display name of the Qovery cluster where the ArgoCD instance is running
2104
+ * @type {string}
2105
+ * @memberof ArgoCdInstanceMappingResponse
2106
+ */
2107
+ 'agent_cluster_name': string;
2108
+ /**
2109
+ *
2110
+ * @type {CloudVendorEnum}
2111
+ * @memberof ArgoCdInstanceMappingResponse
2112
+ */
2113
+ 'agent_cluster_cloud_provider': CloudVendorEnum;
2114
+ /**
2115
+ * ID of the stored ArgoCD credentials for this instance
2116
+ * @type {string}
2117
+ * @memberof ArgoCdInstanceMappingResponse
2118
+ */
2119
+ 'credentials_id': string;
2120
+ /**
2121
+ * URL of the ArgoCD instance
2122
+ * @type {string}
2123
+ * @memberof ArgoCdInstanceMappingResponse
2124
+ */
2125
+ 'argocd_url': string;
2126
+ /**
2127
+ *
2128
+ * @type {ArgoCdConnectionStatusEnum}
2129
+ * @memberof ArgoCdInstanceMappingResponse
2130
+ */
2131
+ 'status': ArgoCdConnectionStatusEnum;
2132
+ /**
2133
+ * Timestamp of the last configuration update (will use last connectivity check in future)
2134
+ * @type {string}
2135
+ * @memberof ArgoCdInstanceMappingResponse
2136
+ */
2137
+ 'last_checked_at': string;
2138
+ /**
2139
+ * ArgoCD clusters detected and mapped to a Qovery cluster
2140
+ * @type {Array<ArgoCdLinkedClusterDetails>}
2141
+ * @memberof ArgoCdInstanceMappingResponse
2142
+ */
2143
+ 'linked_clusters': Array<ArgoCdLinkedClusterDetails>;
2144
+ /**
2145
+ * ArgoCD clusters detected but mapping is missing
2146
+ * @type {Array<ArgoCdUnlinkedClusterDetails>}
2147
+ * @memberof ArgoCdInstanceMappingResponse
2148
+ */
2149
+ 'unlinked_clusters': Array<ArgoCdUnlinkedClusterDetails>;
2150
+ }
2151
+
2152
+
2153
+ /**
2154
+ *
2155
+ * @export
2156
+ * @interface ArgoCdInstanceMappingResponseList
2157
+ */
2158
+ export interface ArgoCdInstanceMappingResponseList {
2159
+ /**
2160
+ *
2161
+ * @type {Array<ArgoCdInstanceMappingResponse>}
2162
+ * @memberof ArgoCdInstanceMappingResponseList
2163
+ */
2164
+ 'results': Array<ArgoCdInstanceMappingResponse>;
2165
+ }
2166
+ /**
2167
+ *
2168
+ * @export
2169
+ * @interface ArgoCdLinkedClusterDetails
2170
+ */
2171
+ export interface ArgoCdLinkedClusterDetails {
2172
+ /**
2173
+ * ArgoCD destination cluster URL
2174
+ * @type {string}
2175
+ * @memberof ArgoCdLinkedClusterDetails
2176
+ */
2177
+ 'argocd_cluster_url': string;
2178
+ /**
2179
+ * ArgoCD cluster name (currently same as URL; will use ArgoCD alias in future)
2180
+ * @type {string}
2181
+ * @memberof ArgoCdLinkedClusterDetails
2182
+ */
2183
+ 'argocd_cluster_name': string;
2184
+ /**
2185
+ * ID of the Qovery cluster this destination is mapped to
2186
+ * @type {string}
2187
+ * @memberof ArgoCdLinkedClusterDetails
2188
+ */
2189
+ 'qovery_cluster_id': string;
2190
+ /**
2191
+ * Display name of the mapped Qovery cluster
2192
+ * @type {string}
2193
+ * @memberof ArgoCdLinkedClusterDetails
2194
+ */
2195
+ 'qovery_cluster_name': string;
2196
+ /**
2197
+ *
2198
+ * @type {CloudVendorEnum}
2199
+ * @memberof ArgoCdLinkedClusterDetails
2200
+ */
2201
+ 'qovery_cluster_cloud_provider': CloudVendorEnum;
2202
+ /**
2203
+ *
2204
+ * @type {KubernetesEnum}
2205
+ * @memberof ArgoCdLinkedClusterDetails
2206
+ */
2207
+ 'qovery_cluster_type': KubernetesEnum;
2208
+ /**
2209
+ * Number of ArgoCD applications targeting this destination
2210
+ * @type {number}
2211
+ * @memberof ArgoCdLinkedClusterDetails
2212
+ */
2213
+ 'applications_count': number;
2214
+ }
2215
+
2216
+
2217
+ /**
2218
+ *
2219
+ * @export
2220
+ * @interface ArgoCdUnlinkedClusterDetails
2221
+ */
2222
+ export interface ArgoCdUnlinkedClusterDetails {
2223
+ /**
2224
+ * ArgoCD destination cluster URL for this stale mapping
2225
+ * @type {string}
2226
+ * @memberof ArgoCdUnlinkedClusterDetails
2227
+ */
2228
+ 'argocd_cluster_url': string;
2229
+ /**
2230
+ * ArgoCD cluster name (currently same as URL; will use ArgoCD alias in future)
2231
+ * @type {string}
2232
+ * @memberof ArgoCdUnlinkedClusterDetails
2233
+ */
2234
+ 'argocd_cluster_name': string;
2235
+ /**
2236
+ * Number of ArgoCD applications targeting this destination
2237
+ * @type {number}
2238
+ * @memberof ArgoCdUnlinkedClusterDetails
2239
+ */
2240
+ 'applications_count': number;
2241
+ }
2032
2242
  /**
2033
2243
  * An ArgoCD service
2034
2244
  * @export
@@ -28432,6 +28642,47 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28432
28642
 
28433
28643
 
28434
28644
 
28645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28647
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28648
+
28649
+ return {
28650
+ url: toPathString(localVarUrlObj),
28651
+ options: localVarRequestOptions,
28652
+ };
28653
+ },
28654
+ /**
28655
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28656
+ * @summary List ArgoCD instance mappings for an organization
28657
+ * @param {string} organizationId Organization ID
28658
+ * @param {*} [options] Override http request option.
28659
+ * @throws {RequiredError}
28660
+ */
28661
+ listArgoCdDestinationClusterMappings: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28662
+ // verify required parameter 'organizationId' is not null or undefined
28663
+ assertParamExists('listArgoCdDestinationClusterMappings', 'organizationId', organizationId)
28664
+ const localVarPath = `/organization/{organizationId}/argoCdDestinationClusterMapping`
28665
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
28666
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28667
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28668
+ let baseOptions;
28669
+ if (configuration) {
28670
+ baseOptions = configuration.baseOptions;
28671
+ }
28672
+
28673
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28674
+ const localVarHeaderParameter = {} as any;
28675
+ const localVarQueryParameter = {} as any;
28676
+
28677
+ // authentication ApiKeyAuth required
28678
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28679
+
28680
+ // authentication bearerAuth required
28681
+ // http bearer authentication required
28682
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28683
+
28684
+
28685
+
28435
28686
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28436
28687
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28437
28688
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28483,6 +28734,53 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28483
28734
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28484
28735
  localVarRequestOptions.data = serializeDataIfNeeded(argoCdCredentialsRequest, localVarRequestOptions, configuration)
28485
28736
 
28737
+ return {
28738
+ url: toPathString(localVarUrlObj),
28739
+ options: localVarRequestOptions,
28740
+ };
28741
+ },
28742
+ /**
28743
+ * 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.
28744
+ * @summary Save an ArgoCD destination cluster mapping
28745
+ * @param {string} organizationId Organization ID
28746
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28747
+ * @param {*} [options] Override http request option.
28748
+ * @throws {RequiredError}
28749
+ */
28750
+ saveArgoCdDestinationClusterMapping: async (organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28751
+ // verify required parameter 'organizationId' is not null or undefined
28752
+ assertParamExists('saveArgoCdDestinationClusterMapping', 'organizationId', organizationId)
28753
+ // verify required parameter 'argoCdDestinationClusterMappingRequest' is not null or undefined
28754
+ assertParamExists('saveArgoCdDestinationClusterMapping', 'argoCdDestinationClusterMappingRequest', argoCdDestinationClusterMappingRequest)
28755
+ const localVarPath = `/organization/{organizationId}/argoCdDestinationClusterMapping`
28756
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
28757
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28758
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28759
+ let baseOptions;
28760
+ if (configuration) {
28761
+ baseOptions = configuration.baseOptions;
28762
+ }
28763
+
28764
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28765
+ const localVarHeaderParameter = {} as any;
28766
+ const localVarQueryParameter = {} as any;
28767
+
28768
+ // authentication ApiKeyAuth required
28769
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28770
+
28771
+ // authentication bearerAuth required
28772
+ // http bearer authentication required
28773
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28774
+
28775
+
28776
+
28777
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28778
+
28779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28781
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28782
+ localVarRequestOptions.data = serializeDataIfNeeded(argoCdDestinationClusterMappingRequest, localVarRequestOptions, configuration)
28783
+
28486
28784
  return {
28487
28785
  url: toPathString(localVarUrlObj),
28488
28786
  options: localVarRequestOptions,
@@ -28551,6 +28849,19 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28551
28849
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.getArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28552
28850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28553
28851
  },
28852
+ /**
28853
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28854
+ * @summary List ArgoCD instance mappings for an organization
28855
+ * @param {string} organizationId Organization ID
28856
+ * @param {*} [options] Override http request option.
28857
+ * @throws {RequiredError}
28858
+ */
28859
+ async listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdInstanceMappingResponseList>> {
28860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listArgoCdDestinationClusterMappings(organizationId, options);
28861
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28862
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.listArgoCdDestinationClusterMappings']?.[localVarOperationServerIndex]?.url;
28863
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28864
+ },
28554
28865
  /**
28555
28866
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28556
28867
  * @summary Save ArgoCD credentials for a cluster
@@ -28565,6 +28876,20 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28565
28876
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28566
28877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28567
28878
  },
28879
+ /**
28880
+ * 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.
28881
+ * @summary Save an ArgoCD destination cluster mapping
28882
+ * @param {string} organizationId Organization ID
28883
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28884
+ * @param {*} [options] Override http request option.
28885
+ * @throws {RequiredError}
28886
+ */
28887
+ async saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArgoCdDestinationClusterMappingResponse>> {
28888
+ const localVarAxiosArgs = await localVarAxiosParamCreator.saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options);
28889
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28890
+ const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdDestinationClusterMapping']?.[localVarOperationServerIndex]?.url;
28891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28892
+ },
28568
28893
  }
28569
28894
  };
28570
28895
 
@@ -28616,6 +28941,16 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28616
28941
  getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28617
28942
  return localVarFp.getArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
28618
28943
  },
28944
+ /**
28945
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
28946
+ * @summary List ArgoCD instance mappings for an organization
28947
+ * @param {string} organizationId Organization ID
28948
+ * @param {*} [options] Override http request option.
28949
+ * @throws {RequiredError}
28950
+ */
28951
+ listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdInstanceMappingResponseList> {
28952
+ return localVarFp.listArgoCdDestinationClusterMappings(organizationId, options).then((request) => request(axios, basePath));
28953
+ },
28619
28954
  /**
28620
28955
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28621
28956
  * @summary Save ArgoCD credentials for a cluster
@@ -28627,6 +28962,17 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28627
28962
  saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28628
28963
  return localVarFp.saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(axios, basePath));
28629
28964
  },
28965
+ /**
28966
+ * 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.
28967
+ * @summary Save an ArgoCD destination cluster mapping
28968
+ * @param {string} organizationId Organization ID
28969
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
28970
+ * @param {*} [options] Override http request option.
28971
+ * @throws {RequiredError}
28972
+ */
28973
+ saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdDestinationClusterMappingResponse> {
28974
+ return localVarFp.saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options).then((request) => request(axios, basePath));
28975
+ },
28630
28976
  };
28631
28977
  };
28632
28978
 
@@ -28686,6 +29032,18 @@ export class ArgoCDApi extends BaseAPI {
28686
29032
  return ArgoCDApiFp(this.configuration).getArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
28687
29033
  }
28688
29034
 
29035
+ /**
29036
+ * Returns one entry per ArgoCD agent cluster that has credentials configured. Each entry lists linked clusters and unlinked clusters. Requires VIEWER role.
29037
+ * @summary List ArgoCD instance mappings for an organization
29038
+ * @param {string} organizationId Organization ID
29039
+ * @param {*} [options] Override http request option.
29040
+ * @throws {RequiredError}
29041
+ * @memberof ArgoCDApi
29042
+ */
29043
+ public listArgoCdDestinationClusterMappings(organizationId: string, options?: RawAxiosRequestConfig) {
29044
+ return ArgoCDApiFp(this.configuration).listArgoCdDestinationClusterMappings(organizationId, options).then((request) => request(this.axios, this.basePath));
29045
+ }
29046
+
28689
29047
  /**
28690
29048
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28691
29049
  * @summary Save ArgoCD credentials for a cluster
@@ -28698,6 +29056,19 @@ export class ArgoCDApi extends BaseAPI {
28698
29056
  public saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig) {
28699
29057
  return ArgoCDApiFp(this.configuration).saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
28700
29058
  }
29059
+
29060
+ /**
29061
+ * 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.
29062
+ * @summary Save an ArgoCD destination cluster mapping
29063
+ * @param {string} organizationId Organization ID
29064
+ * @param {ArgoCdDestinationClusterMappingRequest} argoCdDestinationClusterMappingRequest
29065
+ * @param {*} [options] Override http request option.
29066
+ * @throws {RequiredError}
29067
+ * @memberof ArgoCDApi
29068
+ */
29069
+ public saveArgoCdDestinationClusterMapping(organizationId: string, argoCdDestinationClusterMappingRequest: ArgoCdDestinationClusterMappingRequest, options?: RawAxiosRequestConfig) {
29070
+ return ArgoCDApiFp(this.configuration).saveArgoCdDestinationClusterMapping(organizationId, argoCdDestinationClusterMappingRequest, options).then((request) => request(this.axios, this.basePath));
29071
+ }
28701
29072
  }
28702
29073
 
28703
29074