qovery-typescript-axios 1.1.915 → 1.1.916

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
@@ -5449,6 +5449,217 @@ export const ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = {
5449
5449
 
5450
5450
  export type ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = typeof ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum[keyof typeof ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum];
5451
5451
 
5452
+ /**
5453
+ *
5454
+ * @export
5455
+ * @enum {string}
5456
+ */
5457
+
5458
+ export const ClusterAnalysisKind = {
5459
+ COST_RECOMMENDATION: 'COST_RECOMMENDATION',
5460
+ DEPRECATED_API_CHECK: 'DEPRECATED_API_CHECK'
5461
+ } as const;
5462
+
5463
+ export type ClusterAnalysisKind = typeof ClusterAnalysisKind[keyof typeof ClusterAnalysisKind];
5464
+
5465
+
5466
+ /**
5467
+ *
5468
+ * @export
5469
+ * @interface ClusterAnalysisLogResponse
5470
+ */
5471
+ export interface ClusterAnalysisLogResponse {
5472
+ /**
5473
+ *
5474
+ * @type {string}
5475
+ * @memberof ClusterAnalysisLogResponse
5476
+ */
5477
+ 'timestamp': string;
5478
+ /**
5479
+ *
5480
+ * @type {string}
5481
+ * @memberof ClusterAnalysisLogResponse
5482
+ */
5483
+ 'level': string;
5484
+ /**
5485
+ *
5486
+ * @type {string}
5487
+ * @memberof ClusterAnalysisLogResponse
5488
+ */
5489
+ 'message': string;
5490
+ /**
5491
+ *
5492
+ * @type {number}
5493
+ * @memberof ClusterAnalysisLogResponse
5494
+ */
5495
+ 'line_order': number;
5496
+ }
5497
+ /**
5498
+ *
5499
+ * @export
5500
+ * @interface ClusterAnalysisLogResponseList
5501
+ */
5502
+ export interface ClusterAnalysisLogResponseList {
5503
+ /**
5504
+ *
5505
+ * @type {Array<ClusterAnalysisLogResponse>}
5506
+ * @memberof ClusterAnalysisLogResponseList
5507
+ */
5508
+ 'results'?: Array<ClusterAnalysisLogResponse>;
5509
+ }
5510
+ /**
5511
+ *
5512
+ * @export
5513
+ * @enum {string}
5514
+ */
5515
+
5516
+ export const ClusterAnalysisOutputFormat = {
5517
+ TABLE: 'TABLE',
5518
+ JSON: 'JSON',
5519
+ CSV: 'CSV'
5520
+ } as const;
5521
+
5522
+ export type ClusterAnalysisOutputFormat = typeof ClusterAnalysisOutputFormat[keyof typeof ClusterAnalysisOutputFormat];
5523
+
5524
+
5525
+ /**
5526
+ *
5527
+ * @export
5528
+ * @interface ClusterAnalysisRequest
5529
+ */
5530
+ export interface ClusterAnalysisRequest {
5531
+ /**
5532
+ *
5533
+ * @type {ClusterAnalysisKind}
5534
+ * @memberof ClusterAnalysisRequest
5535
+ */
5536
+ 'kind': ClusterAnalysisKind;
5537
+ /**
5538
+ *
5539
+ * @type {ClusterAnalysisOutputFormat}
5540
+ * @memberof ClusterAnalysisRequest
5541
+ */
5542
+ 'output_format': ClusterAnalysisOutputFormat;
5543
+ /**
5544
+ * Optional Prometheus URL for COST_RECOMMENDATION analysis. When omitted, the engine resolves the default Qovery OBS endpoint.
5545
+ * @type {string}
5546
+ * @memberof ClusterAnalysisRequest
5547
+ */
5548
+ 'prometheus_url'?: string | null;
5549
+ /**
5550
+ * Optional history duration in hours for COST_RECOMMENDATION analysis.
5551
+ * @type {number}
5552
+ * @memberof ClusterAnalysisRequest
5553
+ */
5554
+ 'history_duration_hours'?: number | null;
5555
+ /**
5556
+ * Optional target Kubernetes version for DEPRECATED_API_CHECK analysis.
5557
+ * @type {string}
5558
+ * @memberof ClusterAnalysisRequest
5559
+ */
5560
+ 'target_kubernetes_version'?: string | null;
5561
+ }
5562
+
5563
+
5564
+ /**
5565
+ *
5566
+ * @export
5567
+ * @interface ClusterAnalysisResponse
5568
+ */
5569
+ export interface ClusterAnalysisResponse {
5570
+ /**
5571
+ *
5572
+ * @type {string}
5573
+ * @memberof ClusterAnalysisResponse
5574
+ */
5575
+ 'id': string;
5576
+ /**
5577
+ *
5578
+ * @type {string}
5579
+ * @memberof ClusterAnalysisResponse
5580
+ */
5581
+ 'cluster_id': string;
5582
+ /**
5583
+ *
5584
+ * @type {string}
5585
+ * @memberof ClusterAnalysisResponse
5586
+ */
5587
+ 'organization_id': string;
5588
+ /**
5589
+ *
5590
+ * @type {ClusterAnalysisKind}
5591
+ * @memberof ClusterAnalysisResponse
5592
+ */
5593
+ 'kind': ClusterAnalysisKind;
5594
+ /**
5595
+ *
5596
+ * @type {ClusterAnalysisStatus}
5597
+ * @memberof ClusterAnalysisResponse
5598
+ */
5599
+ 'status': ClusterAnalysisStatus;
5600
+ /**
5601
+ *
5602
+ * @type {ClusterAnalysisOutputFormat}
5603
+ * @memberof ClusterAnalysisResponse
5604
+ */
5605
+ 'output_format': ClusterAnalysisOutputFormat;
5606
+ /**
5607
+ *
5608
+ * @type {string}
5609
+ * @memberof ClusterAnalysisResponse
5610
+ */
5611
+ 'created_at': string;
5612
+ /**
5613
+ *
5614
+ * @type {string}
5615
+ * @memberof ClusterAnalysisResponse
5616
+ */
5617
+ 'updated_at': string;
5618
+ /**
5619
+ *
5620
+ * @type {string}
5621
+ * @memberof ClusterAnalysisResponse
5622
+ */
5623
+ 'triggered_by': string;
5624
+ /**
5625
+ *
5626
+ * @type {string}
5627
+ * @memberof ClusterAnalysisResponse
5628
+ */
5629
+ 'error_message'?: string | null;
5630
+ }
5631
+
5632
+
5633
+ /**
5634
+ *
5635
+ * @export
5636
+ * @interface ClusterAnalysisResponseList
5637
+ */
5638
+ export interface ClusterAnalysisResponseList {
5639
+ /**
5640
+ *
5641
+ * @type {Array<ClusterAnalysisResponse>}
5642
+ * @memberof ClusterAnalysisResponseList
5643
+ */
5644
+ 'results'?: Array<ClusterAnalysisResponse>;
5645
+ }
5646
+ /**
5647
+ *
5648
+ * @export
5649
+ * @enum {string}
5650
+ */
5651
+
5652
+ export const ClusterAnalysisStatus = {
5653
+ PENDING: 'PENDING',
5654
+ RUNNING: 'RUNNING',
5655
+ SUCCEEDED: 'SUCCEEDED',
5656
+ FAILED: 'FAILED',
5657
+ TERMINATED: 'TERMINATED'
5658
+ } as const;
5659
+
5660
+ export type ClusterAnalysisStatus = typeof ClusterAnalysisStatus[keyof typeof ClusterAnalysisStatus];
5661
+
5662
+
5452
5663
  /**
5453
5664
  *
5454
5665
  * @export
@@ -37699,6 +37910,51 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
37699
37910
 
37700
37911
 
37701
37912
 
37913
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37915
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
37916
+
37917
+ return {
37918
+ url: toPathString(localVarUrlObj),
37919
+ options: localVarRequestOptions,
37920
+ };
37921
+ },
37922
+ /**
37923
+ * Returns metadata and status for one cluster analysis execution.
37924
+ * @summary Get cluster analysis
37925
+ * @param {string} clusterId Cluster ID
37926
+ * @param {string} analysisId Cluster analysis ID
37927
+ * @param {*} [options] Override http request option.
37928
+ * @throws {RequiredError}
37929
+ */
37930
+ getClusterAnalysis: async (clusterId: string, analysisId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
37931
+ // verify required parameter 'clusterId' is not null or undefined
37932
+ assertParamExists('getClusterAnalysis', 'clusterId', clusterId)
37933
+ // verify required parameter 'analysisId' is not null or undefined
37934
+ assertParamExists('getClusterAnalysis', 'analysisId', analysisId)
37935
+ const localVarPath = `/clusters/{clusterId}/analysis/{analysisId}`
37936
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)))
37937
+ .replace(`{${"analysisId"}}`, encodeURIComponent(String(analysisId)));
37938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37940
+ let baseOptions;
37941
+ if (configuration) {
37942
+ baseOptions = configuration.baseOptions;
37943
+ }
37944
+
37945
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
37946
+ const localVarHeaderParameter = {} as any;
37947
+ const localVarQueryParameter = {} as any;
37948
+
37949
+ // authentication ApiKeyAuth required
37950
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
37951
+
37952
+ // authentication bearerAuth required
37953
+ // http bearer authentication required
37954
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
37955
+
37956
+
37957
+
37702
37958
  setSearchParams(localVarUrlObj, localVarQueryParameter);
37703
37959
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37704
37960
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38474,6 +38730,92 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
38474
38730
 
38475
38731
 
38476
38732
 
38733
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38735
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38736
+
38737
+ return {
38738
+ url: toPathString(localVarUrlObj),
38739
+ options: localVarRequestOptions,
38740
+ };
38741
+ },
38742
+ /**
38743
+ * Lists previous analysis executions for the cluster.
38744
+ * @summary List cluster analyses
38745
+ * @param {string} clusterId Cluster ID
38746
+ * @param {*} [options] Override http request option.
38747
+ * @throws {RequiredError}
38748
+ */
38749
+ listClusterAnalyses: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38750
+ // verify required parameter 'clusterId' is not null or undefined
38751
+ assertParamExists('listClusterAnalyses', 'clusterId', clusterId)
38752
+ const localVarPath = `/clusters/{clusterId}/analysis`
38753
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
38754
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38755
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38756
+ let baseOptions;
38757
+ if (configuration) {
38758
+ baseOptions = configuration.baseOptions;
38759
+ }
38760
+
38761
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38762
+ const localVarHeaderParameter = {} as any;
38763
+ const localVarQueryParameter = {} as any;
38764
+
38765
+ // authentication ApiKeyAuth required
38766
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
38767
+
38768
+ // authentication bearerAuth required
38769
+ // http bearer authentication required
38770
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38771
+
38772
+
38773
+
38774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38776
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38777
+
38778
+ return {
38779
+ url: toPathString(localVarUrlObj),
38780
+ options: localVarRequestOptions,
38781
+ };
38782
+ },
38783
+ /**
38784
+ * Returns the persisted cluster analysis report/log lines in order.
38785
+ * @summary List cluster analysis logs
38786
+ * @param {string} clusterId Cluster ID
38787
+ * @param {string} analysisId Cluster analysis ID
38788
+ * @param {*} [options] Override http request option.
38789
+ * @throws {RequiredError}
38790
+ */
38791
+ listClusterAnalysisLogs: async (clusterId: string, analysisId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38792
+ // verify required parameter 'clusterId' is not null or undefined
38793
+ assertParamExists('listClusterAnalysisLogs', 'clusterId', clusterId)
38794
+ // verify required parameter 'analysisId' is not null or undefined
38795
+ assertParamExists('listClusterAnalysisLogs', 'analysisId', analysisId)
38796
+ const localVarPath = `/clusters/{clusterId}/analysis/{analysisId}/logs`
38797
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)))
38798
+ .replace(`{${"analysisId"}}`, encodeURIComponent(String(analysisId)));
38799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38801
+ let baseOptions;
38802
+ if (configuration) {
38803
+ baseOptions = configuration.baseOptions;
38804
+ }
38805
+
38806
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38807
+ const localVarHeaderParameter = {} as any;
38808
+ const localVarQueryParameter = {} as any;
38809
+
38810
+ // authentication ApiKeyAuth required
38811
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
38812
+
38813
+ // authentication bearerAuth required
38814
+ // http bearer authentication required
38815
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38816
+
38817
+
38818
+
38477
38819
  setSearchParams(localVarUrlObj, localVarQueryParameter);
38478
38820
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38479
38821
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38708,6 +39050,53 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
38708
39050
  options: localVarRequestOptions,
38709
39051
  };
38710
39052
  },
39053
+ /**
39054
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
39055
+ * @summary Start cluster analysis
39056
+ * @param {string} clusterId Cluster ID
39057
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
39058
+ * @param {*} [options] Override http request option.
39059
+ * @throws {RequiredError}
39060
+ */
39061
+ startClusterAnalysis: async (clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39062
+ // verify required parameter 'clusterId' is not null or undefined
39063
+ assertParamExists('startClusterAnalysis', 'clusterId', clusterId)
39064
+ // verify required parameter 'clusterAnalysisRequest' is not null or undefined
39065
+ assertParamExists('startClusterAnalysis', 'clusterAnalysisRequest', clusterAnalysisRequest)
39066
+ const localVarPath = `/clusters/{clusterId}/analysis`
39067
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
39068
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39069
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39070
+ let baseOptions;
39071
+ if (configuration) {
39072
+ baseOptions = configuration.baseOptions;
39073
+ }
39074
+
39075
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
39076
+ const localVarHeaderParameter = {} as any;
39077
+ const localVarQueryParameter = {} as any;
39078
+
39079
+ // authentication ApiKeyAuth required
39080
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
39081
+
39082
+ // authentication bearerAuth required
39083
+ // http bearer authentication required
39084
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
39085
+
39086
+
39087
+
39088
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39089
+
39090
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39092
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39093
+ localVarRequestOptions.data = serializeDataIfNeeded(clusterAnalysisRequest, localVarRequestOptions, configuration)
39094
+
39095
+ return {
39096
+ url: toPathString(localVarUrlObj),
39097
+ options: localVarRequestOptions,
39098
+ };
39099
+ },
38711
39100
  /**
38712
39101
  * Cluster stop has been requester.
38713
39102
  * @summary Stop cluster
@@ -39077,6 +39466,20 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39077
39466
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterAdvancedSettings']?.[localVarOperationServerIndex]?.url;
39078
39467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39079
39468
  },
39469
+ /**
39470
+ * Returns metadata and status for one cluster analysis execution.
39471
+ * @summary Get cluster analysis
39472
+ * @param {string} clusterId Cluster ID
39473
+ * @param {string} analysisId Cluster analysis ID
39474
+ * @param {*} [options] Override http request option.
39475
+ * @throws {RequiredError}
39476
+ */
39477
+ async getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponse>> {
39478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterAnalysis(clusterId, analysisId, options);
39479
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39480
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterAnalysis']?.[localVarOperationServerIndex]?.url;
39481
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39482
+ },
39080
39483
  /**
39081
39484
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39082
39485
  * @summary Get cluster DNS provider
@@ -39298,6 +39701,33 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39298
39701
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getRoutingTable']?.[localVarOperationServerIndex]?.url;
39299
39702
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39300
39703
  },
39704
+ /**
39705
+ * Lists previous analysis executions for the cluster.
39706
+ * @summary List cluster analyses
39707
+ * @param {string} clusterId Cluster ID
39708
+ * @param {*} [options] Override http request option.
39709
+ * @throws {RequiredError}
39710
+ */
39711
+ async listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponseList>> {
39712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterAnalyses(clusterId, options);
39713
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39714
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.listClusterAnalyses']?.[localVarOperationServerIndex]?.url;
39715
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39716
+ },
39717
+ /**
39718
+ * Returns the persisted cluster analysis report/log lines in order.
39719
+ * @summary List cluster analysis logs
39720
+ * @param {string} clusterId Cluster ID
39721
+ * @param {string} analysisId Cluster analysis ID
39722
+ * @param {*} [options] Override http request option.
39723
+ * @throws {RequiredError}
39724
+ */
39725
+ async listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisLogResponseList>> {
39726
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterAnalysisLogs(clusterId, analysisId, options);
39727
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39728
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.listClusterAnalysisLogs']?.[localVarOperationServerIndex]?.url;
39729
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39730
+ },
39301
39731
  /**
39302
39732
  * List Cluster Logs
39303
39733
  * @summary List Cluster Logs
@@ -39368,6 +39798,20 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39368
39798
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.specifyClusterCloudProviderInfo']?.[localVarOperationServerIndex]?.url;
39369
39799
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39370
39800
  },
39801
+ /**
39802
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
39803
+ * @summary Start cluster analysis
39804
+ * @param {string} clusterId Cluster ID
39805
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
39806
+ * @param {*} [options] Override http request option.
39807
+ * @throws {RequiredError}
39808
+ */
39809
+ async startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponse>> {
39810
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startClusterAnalysis(clusterId, clusterAnalysisRequest, options);
39811
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39812
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.startClusterAnalysis']?.[localVarOperationServerIndex]?.url;
39813
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39814
+ },
39371
39815
  /**
39372
39816
  * Cluster stop has been requester.
39373
39817
  * @summary Stop cluster
@@ -39553,6 +39997,17 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39553
39997
  getClusterAdvancedSettings(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAdvancedSettings> {
39554
39998
  return localVarFp.getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(axios, basePath));
39555
39999
  },
40000
+ /**
40001
+ * Returns metadata and status for one cluster analysis execution.
40002
+ * @summary Get cluster analysis
40003
+ * @param {string} clusterId Cluster ID
40004
+ * @param {string} analysisId Cluster analysis ID
40005
+ * @param {*} [options] Override http request option.
40006
+ * @throws {RequiredError}
40007
+ */
40008
+ getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponse> {
40009
+ return localVarFp.getClusterAnalysis(clusterId, analysisId, options).then((request) => request(axios, basePath));
40010
+ },
39556
40011
  /**
39557
40012
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39558
40013
  * @summary Get cluster DNS provider
@@ -39732,6 +40187,27 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39732
40187
  getRoutingTable(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRoutingTable> {
39733
40188
  return localVarFp.getRoutingTable(organizationId, clusterId, options).then((request) => request(axios, basePath));
39734
40189
  },
40190
+ /**
40191
+ * Lists previous analysis executions for the cluster.
40192
+ * @summary List cluster analyses
40193
+ * @param {string} clusterId Cluster ID
40194
+ * @param {*} [options] Override http request option.
40195
+ * @throws {RequiredError}
40196
+ */
40197
+ listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponseList> {
40198
+ return localVarFp.listClusterAnalyses(clusterId, options).then((request) => request(axios, basePath));
40199
+ },
40200
+ /**
40201
+ * Returns the persisted cluster analysis report/log lines in order.
40202
+ * @summary List cluster analysis logs
40203
+ * @param {string} clusterId Cluster ID
40204
+ * @param {string} analysisId Cluster analysis ID
40205
+ * @param {*} [options] Override http request option.
40206
+ * @throws {RequiredError}
40207
+ */
40208
+ listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisLogResponseList> {
40209
+ return localVarFp.listClusterAnalysisLogs(clusterId, analysisId, options).then((request) => request(axios, basePath));
40210
+ },
39735
40211
  /**
39736
40212
  * List Cluster Logs
39737
40213
  * @summary List Cluster Logs
@@ -39787,6 +40263,17 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39787
40263
  specifyClusterCloudProviderInfo(organizationId: string, clusterId: string, clusterCloudProviderInfoRequest?: ClusterCloudProviderInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterCloudProviderInfo> {
39788
40264
  return localVarFp.specifyClusterCloudProviderInfo(organizationId, clusterId, clusterCloudProviderInfoRequest, options).then((request) => request(axios, basePath));
39789
40265
  },
40266
+ /**
40267
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
40268
+ * @summary Start cluster analysis
40269
+ * @param {string} clusterId Cluster ID
40270
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
40271
+ * @param {*} [options] Override http request option.
40272
+ * @throws {RequiredError}
40273
+ */
40274
+ startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponse> {
40275
+ return localVarFp.startClusterAnalysis(clusterId, clusterAnalysisRequest, options).then((request) => request(axios, basePath));
40276
+ },
39790
40277
  /**
39791
40278
  * Cluster stop has been requester.
39792
40279
  * @summary Stop cluster
@@ -39975,6 +40462,19 @@ export class ClustersApi extends BaseAPI {
39975
40462
  return ClustersApiFp(this.configuration).getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
39976
40463
  }
39977
40464
 
40465
+ /**
40466
+ * Returns metadata and status for one cluster analysis execution.
40467
+ * @summary Get cluster analysis
40468
+ * @param {string} clusterId Cluster ID
40469
+ * @param {string} analysisId Cluster analysis ID
40470
+ * @param {*} [options] Override http request option.
40471
+ * @throws {RequiredError}
40472
+ * @memberof ClustersApi
40473
+ */
40474
+ public getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig) {
40475
+ return ClustersApiFp(this.configuration).getClusterAnalysis(clusterId, analysisId, options).then((request) => request(this.axios, this.basePath));
40476
+ }
40477
+
39978
40478
  /**
39979
40479
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39980
40480
  * @summary Get cluster DNS provider
@@ -40182,6 +40682,31 @@ export class ClustersApi extends BaseAPI {
40182
40682
  return ClustersApiFp(this.configuration).getRoutingTable(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
40183
40683
  }
40184
40684
 
40685
+ /**
40686
+ * Lists previous analysis executions for the cluster.
40687
+ * @summary List cluster analyses
40688
+ * @param {string} clusterId Cluster ID
40689
+ * @param {*} [options] Override http request option.
40690
+ * @throws {RequiredError}
40691
+ * @memberof ClustersApi
40692
+ */
40693
+ public listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig) {
40694
+ return ClustersApiFp(this.configuration).listClusterAnalyses(clusterId, options).then((request) => request(this.axios, this.basePath));
40695
+ }
40696
+
40697
+ /**
40698
+ * Returns the persisted cluster analysis report/log lines in order.
40699
+ * @summary List cluster analysis logs
40700
+ * @param {string} clusterId Cluster ID
40701
+ * @param {string} analysisId Cluster analysis ID
40702
+ * @param {*} [options] Override http request option.
40703
+ * @throws {RequiredError}
40704
+ * @memberof ClustersApi
40705
+ */
40706
+ public listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig) {
40707
+ return ClustersApiFp(this.configuration).listClusterAnalysisLogs(clusterId, analysisId, options).then((request) => request(this.axios, this.basePath));
40708
+ }
40709
+
40185
40710
  /**
40186
40711
  * List Cluster Logs
40187
40712
  * @summary List Cluster Logs
@@ -40247,6 +40772,19 @@ export class ClustersApi extends BaseAPI {
40247
40772
  return ClustersApiFp(this.configuration).specifyClusterCloudProviderInfo(organizationId, clusterId, clusterCloudProviderInfoRequest, options).then((request) => request(this.axios, this.basePath));
40248
40773
  }
40249
40774
 
40775
+ /**
40776
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
40777
+ * @summary Start cluster analysis
40778
+ * @param {string} clusterId Cluster ID
40779
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
40780
+ * @param {*} [options] Override http request option.
40781
+ * @throws {RequiredError}
40782
+ * @memberof ClustersApi
40783
+ */
40784
+ public startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig) {
40785
+ return ClustersApiFp(this.configuration).startClusterAnalysis(clusterId, clusterAnalysisRequest, options).then((request) => request(this.axios, this.basePath));
40786
+ }
40787
+
40250
40788
  /**
40251
40789
  * Cluster stop has been requester.
40252
40790
  * @summary Stop cluster