qovery-typescript-axios 1.1.871 → 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
@@ -2123,6 +2321,26 @@ export interface AttachServiceToDeploymentStageRequest {
2123
2321
  */
2124
2322
  'is_skipped'?: boolean;
2125
2323
  }
2324
+ /**
2325
+ *
2326
+ * @export
2327
+ * @interface AutomaticallyConfiguredAuthDto
2328
+ */
2329
+ export interface AutomaticallyConfiguredAuthDto {
2330
+ /**
2331
+ *
2332
+ * @type {string}
2333
+ * @memberof AutomaticallyConfiguredAuthDto
2334
+ */
2335
+ 'mode': AutomaticallyConfiguredAuthDtoModeEnum;
2336
+ }
2337
+
2338
+ export const AutomaticallyConfiguredAuthDtoModeEnum = {
2339
+ AUTOMATICALLY_CONFIGURED: 'AUTOMATICALLY_CONFIGURED'
2340
+ } as const;
2341
+
2342
+ export type AutomaticallyConfiguredAuthDtoModeEnum = typeof AutomaticallyConfiguredAuthDtoModeEnum[keyof typeof AutomaticallyConfiguredAuthDtoModeEnum];
2343
+
2126
2344
  /**
2127
2345
  *
2128
2346
  * @export
@@ -2234,6 +2452,58 @@ export interface AvailableHelmRepositoryResponseList {
2234
2452
  */
2235
2453
  export type AwsCredentialsRequest = { type: 'AWS_ROLE' } & AwsRoleCredentialsRequest | { type: 'AWS_STATIC' } & AwsStaticCredentialsRequest | { type: 'EKS_ANYWHERE_VSPHERE_ROLE' } & EksAnywhereVsphereRoleCredentialsRequest | { type: 'EKS_ANYWHERE_VSPHERE_STATIC' } & EksAnywhereVsphereStaticCredentialsRequest;
2236
2454
 
2455
+ /**
2456
+ *
2457
+ * @export
2458
+ * @interface AwsParameterStoreEndpointDto
2459
+ */
2460
+ export interface AwsParameterStoreEndpointDto {
2461
+ /**
2462
+ *
2463
+ * @type {string}
2464
+ * @memberof AwsParameterStoreEndpointDto
2465
+ */
2466
+ 'mode': AwsParameterStoreEndpointDtoModeEnum;
2467
+ /**
2468
+ *
2469
+ * @type {string}
2470
+ * @memberof AwsParameterStoreEndpointDto
2471
+ */
2472
+ 'region': string;
2473
+ }
2474
+
2475
+ export const AwsParameterStoreEndpointDtoModeEnum = {
2476
+ AWS_PARAMETER_STORE: 'AWS_PARAMETER_STORE'
2477
+ } as const;
2478
+
2479
+ export type AwsParameterStoreEndpointDtoModeEnum = typeof AwsParameterStoreEndpointDtoModeEnum[keyof typeof AwsParameterStoreEndpointDtoModeEnum];
2480
+
2481
+ /**
2482
+ *
2483
+ * @export
2484
+ * @interface AwsRoleArnAuthDto
2485
+ */
2486
+ export interface AwsRoleArnAuthDto {
2487
+ /**
2488
+ *
2489
+ * @type {string}
2490
+ * @memberof AwsRoleArnAuthDto
2491
+ */
2492
+ 'mode': AwsRoleArnAuthDtoModeEnum;
2493
+ /**
2494
+ *
2495
+ * @type {string}
2496
+ * @memberof AwsRoleArnAuthDto
2497
+ */
2498
+ 'role_arn': string;
2499
+ }
2500
+
2501
+ export const AwsRoleArnAuthDtoModeEnum = {
2502
+ AWS_ROLE_ARN: 'AWS_ROLE_ARN'
2503
+ } as const;
2504
+
2505
+ export type AwsRoleArnAuthDtoModeEnum = typeof AwsRoleArnAuthDtoModeEnum[keyof typeof AwsRoleArnAuthDtoModeEnum];
2506
+
2237
2507
  /**
2238
2508
  *
2239
2509
  * @export
@@ -2304,6 +2574,32 @@ export const AwsRoleCredentialsRequestTypeEnum = {
2304
2574
 
2305
2575
  export type AwsRoleCredentialsRequestTypeEnum = typeof AwsRoleCredentialsRequestTypeEnum[keyof typeof AwsRoleCredentialsRequestTypeEnum];
2306
2576
 
2577
+ /**
2578
+ *
2579
+ * @export
2580
+ * @interface AwsSecretManagerEndpointDto
2581
+ */
2582
+ export interface AwsSecretManagerEndpointDto {
2583
+ /**
2584
+ *
2585
+ * @type {string}
2586
+ * @memberof AwsSecretManagerEndpointDto
2587
+ */
2588
+ 'mode': AwsSecretManagerEndpointDtoModeEnum;
2589
+ /**
2590
+ *
2591
+ * @type {string}
2592
+ * @memberof AwsSecretManagerEndpointDto
2593
+ */
2594
+ 'region': string;
2595
+ }
2596
+
2597
+ export const AwsSecretManagerEndpointDtoModeEnum = {
2598
+ AWS_SECRET_MANAGER: 'AWS_SECRET_MANAGER'
2599
+ } as const;
2600
+
2601
+ export type AwsSecretManagerEndpointDtoModeEnum = typeof AwsSecretManagerEndpointDtoModeEnum[keyof typeof AwsSecretManagerEndpointDtoModeEnum];
2602
+
2307
2603
  /**
2308
2604
  *
2309
2605
  * @export
@@ -2342,6 +2638,44 @@ export const AwsStaticClusterCredentialsObjectTypeEnum = {
2342
2638
 
2343
2639
  export type AwsStaticClusterCredentialsObjectTypeEnum = typeof AwsStaticClusterCredentialsObjectTypeEnum[keyof typeof AwsStaticClusterCredentialsObjectTypeEnum];
2344
2640
 
2641
+ /**
2642
+ *
2643
+ * @export
2644
+ * @interface AwsStaticCredentialsAuthDto
2645
+ */
2646
+ export interface AwsStaticCredentialsAuthDto {
2647
+ /**
2648
+ *
2649
+ * @type {string}
2650
+ * @memberof AwsStaticCredentialsAuthDto
2651
+ */
2652
+ 'mode': AwsStaticCredentialsAuthDtoModeEnum;
2653
+ /**
2654
+ *
2655
+ * @type {string}
2656
+ * @memberof AwsStaticCredentialsAuthDto
2657
+ */
2658
+ 'region': string;
2659
+ /**
2660
+ *
2661
+ * @type {string}
2662
+ * @memberof AwsStaticCredentialsAuthDto
2663
+ */
2664
+ 'access_key': string;
2665
+ /**
2666
+ *
2667
+ * @type {string}
2668
+ * @memberof AwsStaticCredentialsAuthDto
2669
+ */
2670
+ 'secret_key'?: string | null;
2671
+ }
2672
+
2673
+ export const AwsStaticCredentialsAuthDtoModeEnum = {
2674
+ AWS_STATIC_CREDENTIALS: 'AWS_STATIC_CREDENTIALS'
2675
+ } as const;
2676
+
2677
+ export type AwsStaticCredentialsAuthDtoModeEnum = typeof AwsStaticCredentialsAuthDtoModeEnum[keyof typeof AwsStaticCredentialsAuthDtoModeEnum];
2678
+
2345
2679
  /**
2346
2680
  *
2347
2681
  * @export
@@ -3425,6 +3759,12 @@ export interface Cluster {
3425
3759
  * @memberof Cluster
3426
3760
  */
3427
3761
  'labels_groups'?: Array<ClusterLabelsGroup>;
3762
+ /**
3763
+ *
3764
+ * @type {Array<SecretManagerAccessResponse>}
3765
+ * @memberof Cluster
3766
+ */
3767
+ 'secret_manager_accesses'?: Array<SecretManagerAccessResponse>;
3428
3768
  }
3429
3769
 
3430
3770
 
@@ -5393,6 +5733,12 @@ export interface ClusterRequest {
5393
5733
  * @memberof ClusterRequest
5394
5734
  */
5395
5735
  'labels_groups'?: Array<ClusterLabelsGroup>;
5736
+ /**
5737
+ *
5738
+ * @type {Array<SecretManagerAccessRequest>}
5739
+ * @memberof ClusterRequest
5740
+ */
5741
+ 'secret_manager_accesses'?: Array<SecretManagerAccessRequest>;
5396
5742
  }
5397
5743
 
5398
5744
 
@@ -11187,6 +11533,64 @@ export interface GcpCredentialsRequest {
11187
11533
  */
11188
11534
  'gcp_credentials': string;
11189
11535
  }
11536
+ /**
11537
+ *
11538
+ * @export
11539
+ * @interface GcpJsonCredentialsAuthDto
11540
+ */
11541
+ export interface GcpJsonCredentialsAuthDto {
11542
+ /**
11543
+ *
11544
+ * @type {string}
11545
+ * @memberof GcpJsonCredentialsAuthDto
11546
+ */
11547
+ 'mode': GcpJsonCredentialsAuthDtoModeEnum;
11548
+ /**
11549
+ *
11550
+ * @type {string}
11551
+ * @memberof GcpJsonCredentialsAuthDto
11552
+ */
11553
+ 'json_credentials'?: string | null;
11554
+ }
11555
+
11556
+ export const GcpJsonCredentialsAuthDtoModeEnum = {
11557
+ GCP_JSON_CREDENTIALS: 'GCP_JSON_CREDENTIALS'
11558
+ } as const;
11559
+
11560
+ export type GcpJsonCredentialsAuthDtoModeEnum = typeof GcpJsonCredentialsAuthDtoModeEnum[keyof typeof GcpJsonCredentialsAuthDtoModeEnum];
11561
+
11562
+ /**
11563
+ *
11564
+ * @export
11565
+ * @interface GcpSecretManagerEndpointDto
11566
+ */
11567
+ export interface GcpSecretManagerEndpointDto {
11568
+ /**
11569
+ *
11570
+ * @type {string}
11571
+ * @memberof GcpSecretManagerEndpointDto
11572
+ */
11573
+ 'mode': GcpSecretManagerEndpointDtoModeEnum;
11574
+ /**
11575
+ *
11576
+ * @type {string}
11577
+ * @memberof GcpSecretManagerEndpointDto
11578
+ */
11579
+ 'region': string;
11580
+ /**
11581
+ *
11582
+ * @type {string}
11583
+ * @memberof GcpSecretManagerEndpointDto
11584
+ */
11585
+ 'projectId': string;
11586
+ }
11587
+
11588
+ export const GcpSecretManagerEndpointDtoModeEnum = {
11589
+ GCP_SECRET_MANAGER: 'GCP_SECRET_MANAGER'
11590
+ } as const;
11591
+
11592
+ export type GcpSecretManagerEndpointDtoModeEnum = typeof GcpSecretManagerEndpointDtoModeEnum[keyof typeof GcpSecretManagerEndpointDtoModeEnum];
11593
+
11190
11594
  /**
11191
11595
  *
11192
11596
  * @export
@@ -19386,6 +19790,92 @@ export interface SecretEditRequest {
19386
19790
  */
19387
19791
  'enable_interpolation_in_file'?: boolean | null;
19388
19792
  }
19793
+ /**
19794
+ *
19795
+ * @export
19796
+ * @interface SecretManagerAccessRequest
19797
+ */
19798
+ export interface SecretManagerAccessRequest {
19799
+ /**
19800
+ *
19801
+ * @type {string}
19802
+ * @memberof SecretManagerAccessRequest
19803
+ */
19804
+ 'id'?: string | null;
19805
+ /**
19806
+ *
19807
+ * @type {string}
19808
+ * @memberof SecretManagerAccessRequest
19809
+ */
19810
+ 'name': string;
19811
+ /**
19812
+ *
19813
+ * @type {SecretManagerEndpointConfigurationDto}
19814
+ * @memberof SecretManagerAccessRequest
19815
+ */
19816
+ 'endpoint': SecretManagerEndpointConfigurationDto;
19817
+ /**
19818
+ *
19819
+ * @type {SecretManagerAuthenticationDto}
19820
+ * @memberof SecretManagerAccessRequest
19821
+ */
19822
+ 'authentication': SecretManagerAuthenticationDto;
19823
+ }
19824
+ /**
19825
+ *
19826
+ * @export
19827
+ * @interface SecretManagerAccessResponse
19828
+ */
19829
+ export interface SecretManagerAccessResponse {
19830
+ /**
19831
+ *
19832
+ * @type {string}
19833
+ * @memberof SecretManagerAccessResponse
19834
+ */
19835
+ 'id': string;
19836
+ /**
19837
+ *
19838
+ * @type {string}
19839
+ * @memberof SecretManagerAccessResponse
19840
+ */
19841
+ 'name': string;
19842
+ /**
19843
+ *
19844
+ * @type {string}
19845
+ * @memberof SecretManagerAccessResponse
19846
+ */
19847
+ 'created_at': string;
19848
+ /**
19849
+ *
19850
+ * @type {string}
19851
+ * @memberof SecretManagerAccessResponse
19852
+ */
19853
+ 'updated_at': string;
19854
+ /**
19855
+ *
19856
+ * @type {SecretManagerEndpointConfigurationDto}
19857
+ * @memberof SecretManagerAccessResponse
19858
+ */
19859
+ 'endpoint': SecretManagerEndpointConfigurationDto;
19860
+ /**
19861
+ *
19862
+ * @type {SecretManagerAuthenticationDto}
19863
+ * @memberof SecretManagerAccessResponse
19864
+ */
19865
+ 'authentication': SecretManagerAuthenticationDto;
19866
+ }
19867
+ /**
19868
+ * @type SecretManagerAuthenticationDto
19869
+ * @export
19870
+ */
19871
+ export type SecretManagerAuthenticationDto = { mode: 'AUTOMATICALLY_CONFIGURED' } & AutomaticallyConfiguredAuthDto | { mode: 'AWS_ROLE_ARN' } & AwsRoleArnAuthDto | { mode: 'AWS_STATIC_CREDENTIALS' } & AwsStaticCredentialsAuthDto | { mode: 'GCP_JSON_CREDENTIALS' } & GcpJsonCredentialsAuthDto;
19872
+
19873
+ /**
19874
+ * @type SecretManagerEndpointConfigurationDto
19875
+ * @export
19876
+ */
19877
+ export type SecretManagerEndpointConfigurationDto = { mode: 'AWS_PARAMETER_STORE' } & AwsParameterStoreEndpointDto | { mode: 'AWS_SECRET_MANAGER' } & AwsSecretManagerEndpointDto | { mode: 'GCP_SECRET_MANAGER' } & GcpSecretManagerEndpointDto;
19878
+
19389
19879
  /**
19390
19880
  *
19391
19881
  * @export
@@ -28140,6 +28630,47 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28140
28630
 
28141
28631
 
28142
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
+
28143
28674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28144
28675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28145
28676
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28191,6 +28722,53 @@ export const ArgoCDApiAxiosParamCreator = function (configuration?: Configuratio
28191
28722
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28192
28723
  localVarRequestOptions.data = serializeDataIfNeeded(argoCdCredentialsRequest, localVarRequestOptions, configuration)
28193
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
+
28194
28772
  return {
28195
28773
  url: toPathString(localVarUrlObj),
28196
28774
  options: localVarRequestOptions,
@@ -28259,6 +28837,19 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28259
28837
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.getArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28260
28838
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28261
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
+ },
28262
28853
  /**
28263
28854
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28264
28855
  * @summary Save ArgoCD credentials for a cluster
@@ -28273,6 +28864,20 @@ export const ArgoCDApiFp = function(configuration?: Configuration) {
28273
28864
  const localVarOperationServerBasePath = operationServerMap['ArgoCDApi.saveArgoCdCredentials']?.[localVarOperationServerIndex]?.url;
28274
28865
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28275
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
+ },
28276
28881
  }
28277
28882
  };
28278
28883
 
@@ -28324,6 +28929,16 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28324
28929
  getArgoCdCredentials(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28325
28930
  return localVarFp.getArgoCdCredentials(clusterId, options).then((request) => request(axios, basePath));
28326
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
+ },
28327
28942
  /**
28328
28943
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28329
28944
  * @summary Save ArgoCD credentials for a cluster
@@ -28335,6 +28950,17 @@ export const ArgoCDApiFactory = function (configuration?: Configuration, basePat
28335
28950
  saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ArgoCdCredentialsResponse> {
28336
28951
  return localVarFp.saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(axios, basePath));
28337
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
+ },
28338
28964
  };
28339
28965
  };
28340
28966
 
@@ -28394,6 +29020,18 @@ export class ArgoCDApi extends BaseAPI {
28394
29020
  return ArgoCDApiFp(this.configuration).getArgoCdCredentials(clusterId, options).then((request) => request(this.axios, this.basePath));
28395
29021
  }
28396
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
+
28397
29035
  /**
28398
29036
  * Save or update the ArgoCD URL and authentication token for a cluster. Requires ADMIN role.
28399
29037
  * @summary Save ArgoCD credentials for a cluster
@@ -28406,6 +29044,19 @@ export class ArgoCDApi extends BaseAPI {
28406
29044
  public saveArgoCdCredentials(clusterId: string, argoCdCredentialsRequest: ArgoCdCredentialsRequest, options?: RawAxiosRequestConfig) {
28407
29045
  return ArgoCDApiFp(this.configuration).saveArgoCdCredentials(clusterId, argoCdCredentialsRequest, options).then((request) => request(this.axios, this.basePath));
28408
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
+ }
28409
29060
  }
28410
29061
 
28411
29062