qovery-typescript-axios 1.1.915 → 1.1.917

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
@@ -1030,6 +1030,12 @@ export interface Application {
1030
1030
  * @memberof Application
1031
1031
  */
1032
1032
  'ephemeral_storage_in_gib'?: number;
1033
+ /**
1034
+ * CPU architecture this service runs on. If null, the cluster default architecture is used.
1035
+ * @type {CpuArchitectureEnum}
1036
+ * @memberof Application
1037
+ */
1038
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
1033
1039
  /**
1034
1040
  * Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no application running.
1035
1041
  * @type {number}
@@ -1650,6 +1656,12 @@ export interface ApplicationEditRequest {
1650
1656
  * @memberof ApplicationEditRequest
1651
1657
  */
1652
1658
  'docker_target_build_stage'?: string | null;
1659
+ /**
1660
+ * CPU architecture to run this service on. If null, the cluster default architecture is used.
1661
+ * @type {CpuArchitectureEnum}
1662
+ * @memberof ApplicationEditRequest
1663
+ */
1664
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
1653
1665
  /**
1654
1666
  *
1655
1667
  * @type {AutoscalingPolicyRequest}
@@ -1949,6 +1961,12 @@ export interface ApplicationRequest {
1949
1961
  * @memberof ApplicationRequest
1950
1962
  */
1951
1963
  'docker_target_build_stage'?: string | null;
1964
+ /**
1965
+ * CPU architecture to run this service on. If null, the cluster default architecture is used.
1966
+ * @type {CpuArchitectureEnum}
1967
+ * @memberof ApplicationRequest
1968
+ */
1969
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
1952
1970
  /**
1953
1971
  *
1954
1972
  * @type {AutoscalingPolicyRequest}
@@ -3218,6 +3236,12 @@ export interface BaseJobResponse {
3218
3236
  * @memberof BaseJobResponse
3219
3237
  */
3220
3238
  'ephemeral_storage_in_gib'?: number;
3239
+ /**
3240
+ * CPU architecture this service runs on. If null, the cluster default architecture is used.
3241
+ * @type {CpuArchitectureEnum}
3242
+ * @memberof BaseJobResponse
3243
+ */
3244
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
3221
3245
  /**
3222
3246
  * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
3223
3247
  * @type {number}
@@ -5449,6 +5473,217 @@ export const ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = {
5449
5473
 
5450
5474
  export type ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = typeof ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum[keyof typeof ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum];
5451
5475
 
5476
+ /**
5477
+ *
5478
+ * @export
5479
+ * @enum {string}
5480
+ */
5481
+
5482
+ export const ClusterAnalysisKind = {
5483
+ COST_RECOMMENDATION: 'COST_RECOMMENDATION',
5484
+ DEPRECATED_API_CHECK: 'DEPRECATED_API_CHECK'
5485
+ } as const;
5486
+
5487
+ export type ClusterAnalysisKind = typeof ClusterAnalysisKind[keyof typeof ClusterAnalysisKind];
5488
+
5489
+
5490
+ /**
5491
+ *
5492
+ * @export
5493
+ * @interface ClusterAnalysisLogResponse
5494
+ */
5495
+ export interface ClusterAnalysisLogResponse {
5496
+ /**
5497
+ *
5498
+ * @type {string}
5499
+ * @memberof ClusterAnalysisLogResponse
5500
+ */
5501
+ 'timestamp': string;
5502
+ /**
5503
+ *
5504
+ * @type {string}
5505
+ * @memberof ClusterAnalysisLogResponse
5506
+ */
5507
+ 'level': string;
5508
+ /**
5509
+ *
5510
+ * @type {string}
5511
+ * @memberof ClusterAnalysisLogResponse
5512
+ */
5513
+ 'message': string;
5514
+ /**
5515
+ *
5516
+ * @type {number}
5517
+ * @memberof ClusterAnalysisLogResponse
5518
+ */
5519
+ 'line_order': number;
5520
+ }
5521
+ /**
5522
+ *
5523
+ * @export
5524
+ * @interface ClusterAnalysisLogResponseList
5525
+ */
5526
+ export interface ClusterAnalysisLogResponseList {
5527
+ /**
5528
+ *
5529
+ * @type {Array<ClusterAnalysisLogResponse>}
5530
+ * @memberof ClusterAnalysisLogResponseList
5531
+ */
5532
+ 'results'?: Array<ClusterAnalysisLogResponse>;
5533
+ }
5534
+ /**
5535
+ *
5536
+ * @export
5537
+ * @enum {string}
5538
+ */
5539
+
5540
+ export const ClusterAnalysisOutputFormat = {
5541
+ TABLE: 'TABLE',
5542
+ JSON: 'JSON',
5543
+ CSV: 'CSV'
5544
+ } as const;
5545
+
5546
+ export type ClusterAnalysisOutputFormat = typeof ClusterAnalysisOutputFormat[keyof typeof ClusterAnalysisOutputFormat];
5547
+
5548
+
5549
+ /**
5550
+ *
5551
+ * @export
5552
+ * @interface ClusterAnalysisRequest
5553
+ */
5554
+ export interface ClusterAnalysisRequest {
5555
+ /**
5556
+ *
5557
+ * @type {ClusterAnalysisKind}
5558
+ * @memberof ClusterAnalysisRequest
5559
+ */
5560
+ 'kind': ClusterAnalysisKind;
5561
+ /**
5562
+ *
5563
+ * @type {ClusterAnalysisOutputFormat}
5564
+ * @memberof ClusterAnalysisRequest
5565
+ */
5566
+ 'output_format': ClusterAnalysisOutputFormat;
5567
+ /**
5568
+ * Optional Prometheus URL for COST_RECOMMENDATION analysis. When omitted, the engine resolves the default Qovery OBS endpoint.
5569
+ * @type {string}
5570
+ * @memberof ClusterAnalysisRequest
5571
+ */
5572
+ 'prometheus_url'?: string | null;
5573
+ /**
5574
+ * Optional history duration in hours for COST_RECOMMENDATION analysis.
5575
+ * @type {number}
5576
+ * @memberof ClusterAnalysisRequest
5577
+ */
5578
+ 'history_duration_hours'?: number | null;
5579
+ /**
5580
+ * Optional target Kubernetes version for DEPRECATED_API_CHECK analysis.
5581
+ * @type {string}
5582
+ * @memberof ClusterAnalysisRequest
5583
+ */
5584
+ 'target_kubernetes_version'?: string | null;
5585
+ }
5586
+
5587
+
5588
+ /**
5589
+ *
5590
+ * @export
5591
+ * @interface ClusterAnalysisResponse
5592
+ */
5593
+ export interface ClusterAnalysisResponse {
5594
+ /**
5595
+ *
5596
+ * @type {string}
5597
+ * @memberof ClusterAnalysisResponse
5598
+ */
5599
+ 'id': string;
5600
+ /**
5601
+ *
5602
+ * @type {string}
5603
+ * @memberof ClusterAnalysisResponse
5604
+ */
5605
+ 'cluster_id': string;
5606
+ /**
5607
+ *
5608
+ * @type {string}
5609
+ * @memberof ClusterAnalysisResponse
5610
+ */
5611
+ 'organization_id': string;
5612
+ /**
5613
+ *
5614
+ * @type {ClusterAnalysisKind}
5615
+ * @memberof ClusterAnalysisResponse
5616
+ */
5617
+ 'kind': ClusterAnalysisKind;
5618
+ /**
5619
+ *
5620
+ * @type {ClusterAnalysisStatus}
5621
+ * @memberof ClusterAnalysisResponse
5622
+ */
5623
+ 'status': ClusterAnalysisStatus;
5624
+ /**
5625
+ *
5626
+ * @type {ClusterAnalysisOutputFormat}
5627
+ * @memberof ClusterAnalysisResponse
5628
+ */
5629
+ 'output_format': ClusterAnalysisOutputFormat;
5630
+ /**
5631
+ *
5632
+ * @type {string}
5633
+ * @memberof ClusterAnalysisResponse
5634
+ */
5635
+ 'created_at': string;
5636
+ /**
5637
+ *
5638
+ * @type {string}
5639
+ * @memberof ClusterAnalysisResponse
5640
+ */
5641
+ 'updated_at': string;
5642
+ /**
5643
+ *
5644
+ * @type {string}
5645
+ * @memberof ClusterAnalysisResponse
5646
+ */
5647
+ 'triggered_by': string;
5648
+ /**
5649
+ *
5650
+ * @type {string}
5651
+ * @memberof ClusterAnalysisResponse
5652
+ */
5653
+ 'error_message'?: string | null;
5654
+ }
5655
+
5656
+
5657
+ /**
5658
+ *
5659
+ * @export
5660
+ * @interface ClusterAnalysisResponseList
5661
+ */
5662
+ export interface ClusterAnalysisResponseList {
5663
+ /**
5664
+ *
5665
+ * @type {Array<ClusterAnalysisResponse>}
5666
+ * @memberof ClusterAnalysisResponseList
5667
+ */
5668
+ 'results'?: Array<ClusterAnalysisResponse>;
5669
+ }
5670
+ /**
5671
+ *
5672
+ * @export
5673
+ * @enum {string}
5674
+ */
5675
+
5676
+ export const ClusterAnalysisStatus = {
5677
+ PENDING: 'PENDING',
5678
+ RUNNING: 'RUNNING',
5679
+ SUCCEEDED: 'SUCCEEDED',
5680
+ FAILED: 'FAILED',
5681
+ TERMINATED: 'TERMINATED'
5682
+ } as const;
5683
+
5684
+ export type ClusterAnalysisStatus = typeof ClusterAnalysisStatus[keyof typeof ClusterAnalysisStatus];
5685
+
5686
+
5452
5687
  /**
5453
5688
  *
5454
5689
  * @export
@@ -8395,6 +8630,12 @@ export interface ContainerRequest {
8395
8630
  * @memberof ContainerRequest
8396
8631
  */
8397
8632
  'ephemeral_storage_in_gib'?: number;
8633
+ /**
8634
+ * CPU architecture to run this service on. If null, the cluster default architecture is used.
8635
+ * @type {CpuArchitectureEnum}
8636
+ * @memberof ContainerRequest
8637
+ */
8638
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
8398
8639
  /**
8399
8640
  * Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no container running.
8400
8641
  * @type {number}
@@ -8450,6 +8691,8 @@ export interface ContainerRequest {
8450
8691
  */
8451
8692
  'autoscaling'?: AutoscalingPolicyRequest;
8452
8693
  }
8694
+
8695
+
8453
8696
  /**
8454
8697
  *
8455
8698
  * @export
@@ -8576,6 +8819,12 @@ export interface ContainerResponse {
8576
8819
  * @memberof ContainerResponse
8577
8820
  */
8578
8821
  'ephemeral_storage_in_gib'?: number;
8822
+ /**
8823
+ * CPU architecture this service runs on. If null, the cluster default architecture is used.
8824
+ * @type {CpuArchitectureEnum}
8825
+ * @memberof ContainerResponse
8826
+ */
8827
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
8579
8828
  /**
8580
8829
  * Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no container running.
8581
8830
  * @type {number}
@@ -9099,6 +9348,12 @@ export interface CronJobResponse {
9099
9348
  * @memberof CronJobResponse
9100
9349
  */
9101
9350
  'ephemeral_storage_in_gib'?: number;
9351
+ /**
9352
+ * CPU architecture this service runs on. If null, the cluster default architecture is used.
9353
+ * @type {CpuArchitectureEnum}
9354
+ * @memberof CronJobResponse
9355
+ */
9356
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
9102
9357
  /**
9103
9358
  * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
9104
9359
  * @type {number}
@@ -16374,6 +16629,12 @@ export interface JobRequest {
16374
16629
  * @memberof JobRequest
16375
16630
  */
16376
16631
  'source'?: JobRequestAllOfSource;
16632
+ /**
16633
+ * CPU architecture to run this service on. If null, the cluster default architecture is used.
16634
+ * @type {CpuArchitectureEnum}
16635
+ * @memberof JobRequest
16636
+ */
16637
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
16377
16638
  /**
16378
16639
  *
16379
16640
  * @type {Healthcheck}
@@ -16411,6 +16672,8 @@ export interface JobRequest {
16411
16672
  */
16412
16673
  'icon_uri'?: string;
16413
16674
  }
16675
+
16676
+
16414
16677
  /**
16415
16678
  * If you want to define a Cron job, only the `cronjob` property must be filled A Lifecycle job should contain at least one property `on_XXX` among the 3 properties: `on_start`, `on_stop`, `on_delete`
16416
16679
  * @export
@@ -17524,6 +17787,12 @@ export interface LifecycleJobResponse {
17524
17787
  * @memberof LifecycleJobResponse
17525
17788
  */
17526
17789
  'ephemeral_storage_in_gib'?: number;
17790
+ /**
17791
+ * CPU architecture this service runs on. If null, the cluster default architecture is used.
17792
+ * @type {CpuArchitectureEnum}
17793
+ * @memberof LifecycleJobResponse
17794
+ */
17795
+ 'cpu_architecture'?: CpuArchitectureEnum | null;
17527
17796
  /**
17528
17797
  * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
17529
17798
  * @type {number}
@@ -37699,6 +37968,51 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
37699
37968
 
37700
37969
 
37701
37970
 
37971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37973
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
37974
+
37975
+ return {
37976
+ url: toPathString(localVarUrlObj),
37977
+ options: localVarRequestOptions,
37978
+ };
37979
+ },
37980
+ /**
37981
+ * Returns metadata and status for one cluster analysis execution.
37982
+ * @summary Get cluster analysis
37983
+ * @param {string} clusterId Cluster ID
37984
+ * @param {string} analysisId Cluster analysis ID
37985
+ * @param {*} [options] Override http request option.
37986
+ * @throws {RequiredError}
37987
+ */
37988
+ getClusterAnalysis: async (clusterId: string, analysisId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
37989
+ // verify required parameter 'clusterId' is not null or undefined
37990
+ assertParamExists('getClusterAnalysis', 'clusterId', clusterId)
37991
+ // verify required parameter 'analysisId' is not null or undefined
37992
+ assertParamExists('getClusterAnalysis', 'analysisId', analysisId)
37993
+ const localVarPath = `/clusters/{clusterId}/analysis/{analysisId}`
37994
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)))
37995
+ .replace(`{${"analysisId"}}`, encodeURIComponent(String(analysisId)));
37996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37997
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37998
+ let baseOptions;
37999
+ if (configuration) {
38000
+ baseOptions = configuration.baseOptions;
38001
+ }
38002
+
38003
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38004
+ const localVarHeaderParameter = {} as any;
38005
+ const localVarQueryParameter = {} as any;
38006
+
38007
+ // authentication ApiKeyAuth required
38008
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
38009
+
38010
+ // authentication bearerAuth required
38011
+ // http bearer authentication required
38012
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38013
+
38014
+
38015
+
37702
38016
  setSearchParams(localVarUrlObj, localVarQueryParameter);
37703
38017
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37704
38018
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38474,6 +38788,92 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
38474
38788
 
38475
38789
 
38476
38790
 
38791
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38793
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38794
+
38795
+ return {
38796
+ url: toPathString(localVarUrlObj),
38797
+ options: localVarRequestOptions,
38798
+ };
38799
+ },
38800
+ /**
38801
+ * Lists previous analysis executions for the cluster.
38802
+ * @summary List cluster analyses
38803
+ * @param {string} clusterId Cluster ID
38804
+ * @param {*} [options] Override http request option.
38805
+ * @throws {RequiredError}
38806
+ */
38807
+ listClusterAnalyses: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38808
+ // verify required parameter 'clusterId' is not null or undefined
38809
+ assertParamExists('listClusterAnalyses', 'clusterId', clusterId)
38810
+ const localVarPath = `/clusters/{clusterId}/analysis`
38811
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
38812
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38813
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38814
+ let baseOptions;
38815
+ if (configuration) {
38816
+ baseOptions = configuration.baseOptions;
38817
+ }
38818
+
38819
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38820
+ const localVarHeaderParameter = {} as any;
38821
+ const localVarQueryParameter = {} as any;
38822
+
38823
+ // authentication ApiKeyAuth required
38824
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
38825
+
38826
+ // authentication bearerAuth required
38827
+ // http bearer authentication required
38828
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38829
+
38830
+
38831
+
38832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38835
+
38836
+ return {
38837
+ url: toPathString(localVarUrlObj),
38838
+ options: localVarRequestOptions,
38839
+ };
38840
+ },
38841
+ /**
38842
+ * Returns the persisted cluster analysis report/log lines in order.
38843
+ * @summary List cluster analysis logs
38844
+ * @param {string} clusterId Cluster ID
38845
+ * @param {string} analysisId Cluster analysis ID
38846
+ * @param {*} [options] Override http request option.
38847
+ * @throws {RequiredError}
38848
+ */
38849
+ listClusterAnalysisLogs: async (clusterId: string, analysisId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38850
+ // verify required parameter 'clusterId' is not null or undefined
38851
+ assertParamExists('listClusterAnalysisLogs', 'clusterId', clusterId)
38852
+ // verify required parameter 'analysisId' is not null or undefined
38853
+ assertParamExists('listClusterAnalysisLogs', 'analysisId', analysisId)
38854
+ const localVarPath = `/clusters/{clusterId}/analysis/{analysisId}/logs`
38855
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)))
38856
+ .replace(`{${"analysisId"}}`, encodeURIComponent(String(analysisId)));
38857
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38858
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38859
+ let baseOptions;
38860
+ if (configuration) {
38861
+ baseOptions = configuration.baseOptions;
38862
+ }
38863
+
38864
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38865
+ const localVarHeaderParameter = {} as any;
38866
+ const localVarQueryParameter = {} as any;
38867
+
38868
+ // authentication ApiKeyAuth required
38869
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
38870
+
38871
+ // authentication bearerAuth required
38872
+ // http bearer authentication required
38873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38874
+
38875
+
38876
+
38477
38877
  setSearchParams(localVarUrlObj, localVarQueryParameter);
38478
38878
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38479
38879
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38708,6 +39108,53 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
38708
39108
  options: localVarRequestOptions,
38709
39109
  };
38710
39110
  },
39111
+ /**
39112
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
39113
+ * @summary Start cluster analysis
39114
+ * @param {string} clusterId Cluster ID
39115
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
39116
+ * @param {*} [options] Override http request option.
39117
+ * @throws {RequiredError}
39118
+ */
39119
+ startClusterAnalysis: async (clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39120
+ // verify required parameter 'clusterId' is not null or undefined
39121
+ assertParamExists('startClusterAnalysis', 'clusterId', clusterId)
39122
+ // verify required parameter 'clusterAnalysisRequest' is not null or undefined
39123
+ assertParamExists('startClusterAnalysis', 'clusterAnalysisRequest', clusterAnalysisRequest)
39124
+ const localVarPath = `/clusters/{clusterId}/analysis`
39125
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
39126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39127
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39128
+ let baseOptions;
39129
+ if (configuration) {
39130
+ baseOptions = configuration.baseOptions;
39131
+ }
39132
+
39133
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
39134
+ const localVarHeaderParameter = {} as any;
39135
+ const localVarQueryParameter = {} as any;
39136
+
39137
+ // authentication ApiKeyAuth required
39138
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
39139
+
39140
+ // authentication bearerAuth required
39141
+ // http bearer authentication required
39142
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
39143
+
39144
+
39145
+
39146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39147
+
39148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39150
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39151
+ localVarRequestOptions.data = serializeDataIfNeeded(clusterAnalysisRequest, localVarRequestOptions, configuration)
39152
+
39153
+ return {
39154
+ url: toPathString(localVarUrlObj),
39155
+ options: localVarRequestOptions,
39156
+ };
39157
+ },
38711
39158
  /**
38712
39159
  * Cluster stop has been requester.
38713
39160
  * @summary Stop cluster
@@ -39077,6 +39524,20 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39077
39524
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterAdvancedSettings']?.[localVarOperationServerIndex]?.url;
39078
39525
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39079
39526
  },
39527
+ /**
39528
+ * Returns metadata and status for one cluster analysis execution.
39529
+ * @summary Get cluster analysis
39530
+ * @param {string} clusterId Cluster ID
39531
+ * @param {string} analysisId Cluster analysis ID
39532
+ * @param {*} [options] Override http request option.
39533
+ * @throws {RequiredError}
39534
+ */
39535
+ async getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponse>> {
39536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterAnalysis(clusterId, analysisId, options);
39537
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39538
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterAnalysis']?.[localVarOperationServerIndex]?.url;
39539
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39540
+ },
39080
39541
  /**
39081
39542
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39082
39543
  * @summary Get cluster DNS provider
@@ -39298,6 +39759,33 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39298
39759
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getRoutingTable']?.[localVarOperationServerIndex]?.url;
39299
39760
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39300
39761
  },
39762
+ /**
39763
+ * Lists previous analysis executions for the cluster.
39764
+ * @summary List cluster analyses
39765
+ * @param {string} clusterId Cluster ID
39766
+ * @param {*} [options] Override http request option.
39767
+ * @throws {RequiredError}
39768
+ */
39769
+ async listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponseList>> {
39770
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterAnalyses(clusterId, options);
39771
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39772
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.listClusterAnalyses']?.[localVarOperationServerIndex]?.url;
39773
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39774
+ },
39775
+ /**
39776
+ * Returns the persisted cluster analysis report/log lines in order.
39777
+ * @summary List cluster analysis logs
39778
+ * @param {string} clusterId Cluster ID
39779
+ * @param {string} analysisId Cluster analysis ID
39780
+ * @param {*} [options] Override http request option.
39781
+ * @throws {RequiredError}
39782
+ */
39783
+ async listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisLogResponseList>> {
39784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterAnalysisLogs(clusterId, analysisId, options);
39785
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39786
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.listClusterAnalysisLogs']?.[localVarOperationServerIndex]?.url;
39787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39788
+ },
39301
39789
  /**
39302
39790
  * List Cluster Logs
39303
39791
  * @summary List Cluster Logs
@@ -39368,6 +39856,20 @@ export const ClustersApiFp = function(configuration?: Configuration) {
39368
39856
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.specifyClusterCloudProviderInfo']?.[localVarOperationServerIndex]?.url;
39369
39857
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39370
39858
  },
39859
+ /**
39860
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
39861
+ * @summary Start cluster analysis
39862
+ * @param {string} clusterId Cluster ID
39863
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
39864
+ * @param {*} [options] Override http request option.
39865
+ * @throws {RequiredError}
39866
+ */
39867
+ async startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterAnalysisResponse>> {
39868
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startClusterAnalysis(clusterId, clusterAnalysisRequest, options);
39869
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39870
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.startClusterAnalysis']?.[localVarOperationServerIndex]?.url;
39871
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39872
+ },
39371
39873
  /**
39372
39874
  * Cluster stop has been requester.
39373
39875
  * @summary Stop cluster
@@ -39553,6 +40055,17 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39553
40055
  getClusterAdvancedSettings(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAdvancedSettings> {
39554
40056
  return localVarFp.getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(axios, basePath));
39555
40057
  },
40058
+ /**
40059
+ * Returns metadata and status for one cluster analysis execution.
40060
+ * @summary Get cluster analysis
40061
+ * @param {string} clusterId Cluster ID
40062
+ * @param {string} analysisId Cluster analysis ID
40063
+ * @param {*} [options] Override http request option.
40064
+ * @throws {RequiredError}
40065
+ */
40066
+ getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponse> {
40067
+ return localVarFp.getClusterAnalysis(clusterId, analysisId, options).then((request) => request(axios, basePath));
40068
+ },
39556
40069
  /**
39557
40070
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39558
40071
  * @summary Get cluster DNS provider
@@ -39732,6 +40245,27 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39732
40245
  getRoutingTable(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRoutingTable> {
39733
40246
  return localVarFp.getRoutingTable(organizationId, clusterId, options).then((request) => request(axios, basePath));
39734
40247
  },
40248
+ /**
40249
+ * Lists previous analysis executions for the cluster.
40250
+ * @summary List cluster analyses
40251
+ * @param {string} clusterId Cluster ID
40252
+ * @param {*} [options] Override http request option.
40253
+ * @throws {RequiredError}
40254
+ */
40255
+ listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponseList> {
40256
+ return localVarFp.listClusterAnalyses(clusterId, options).then((request) => request(axios, basePath));
40257
+ },
40258
+ /**
40259
+ * Returns the persisted cluster analysis report/log lines in order.
40260
+ * @summary List cluster analysis logs
40261
+ * @param {string} clusterId Cluster ID
40262
+ * @param {string} analysisId Cluster analysis ID
40263
+ * @param {*} [options] Override http request option.
40264
+ * @throws {RequiredError}
40265
+ */
40266
+ listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisLogResponseList> {
40267
+ return localVarFp.listClusterAnalysisLogs(clusterId, analysisId, options).then((request) => request(axios, basePath));
40268
+ },
39735
40269
  /**
39736
40270
  * List Cluster Logs
39737
40271
  * @summary List Cluster Logs
@@ -39787,6 +40321,17 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
39787
40321
  specifyClusterCloudProviderInfo(organizationId: string, clusterId: string, clusterCloudProviderInfoRequest?: ClusterCloudProviderInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterCloudProviderInfo> {
39788
40322
  return localVarFp.specifyClusterCloudProviderInfo(organizationId, clusterId, clusterCloudProviderInfoRequest, options).then((request) => request(axios, basePath));
39789
40323
  },
40324
+ /**
40325
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
40326
+ * @summary Start cluster analysis
40327
+ * @param {string} clusterId Cluster ID
40328
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
40329
+ * @param {*} [options] Override http request option.
40330
+ * @throws {RequiredError}
40331
+ */
40332
+ startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterAnalysisResponse> {
40333
+ return localVarFp.startClusterAnalysis(clusterId, clusterAnalysisRequest, options).then((request) => request(axios, basePath));
40334
+ },
39790
40335
  /**
39791
40336
  * Cluster stop has been requester.
39792
40337
  * @summary Stop cluster
@@ -39975,6 +40520,19 @@ export class ClustersApi extends BaseAPI {
39975
40520
  return ClustersApiFp(this.configuration).getClusterAdvancedSettings(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
39976
40521
  }
39977
40522
 
40523
+ /**
40524
+ * Returns metadata and status for one cluster analysis execution.
40525
+ * @summary Get cluster analysis
40526
+ * @param {string} clusterId Cluster ID
40527
+ * @param {string} analysisId Cluster analysis ID
40528
+ * @param {*} [options] Override http request option.
40529
+ * @throws {RequiredError}
40530
+ * @memberof ClustersApi
40531
+ */
40532
+ public getClusterAnalysis(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig) {
40533
+ return ClustersApiFp(this.configuration).getClusterAnalysis(clusterId, analysisId, options).then((request) => request(this.axios, this.basePath));
40534
+ }
40535
+
39978
40536
  /**
39979
40537
  * Retrieve the DNS provider currently associated with a cluster. Requires VIEWER role.
39980
40538
  * @summary Get cluster DNS provider
@@ -40182,6 +40740,31 @@ export class ClustersApi extends BaseAPI {
40182
40740
  return ClustersApiFp(this.configuration).getRoutingTable(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
40183
40741
  }
40184
40742
 
40743
+ /**
40744
+ * Lists previous analysis executions for the cluster.
40745
+ * @summary List cluster analyses
40746
+ * @param {string} clusterId Cluster ID
40747
+ * @param {*} [options] Override http request option.
40748
+ * @throws {RequiredError}
40749
+ * @memberof ClustersApi
40750
+ */
40751
+ public listClusterAnalyses(clusterId: string, options?: RawAxiosRequestConfig) {
40752
+ return ClustersApiFp(this.configuration).listClusterAnalyses(clusterId, options).then((request) => request(this.axios, this.basePath));
40753
+ }
40754
+
40755
+ /**
40756
+ * Returns the persisted cluster analysis report/log lines in order.
40757
+ * @summary List cluster analysis logs
40758
+ * @param {string} clusterId Cluster ID
40759
+ * @param {string} analysisId Cluster analysis ID
40760
+ * @param {*} [options] Override http request option.
40761
+ * @throws {RequiredError}
40762
+ * @memberof ClustersApi
40763
+ */
40764
+ public listClusterAnalysisLogs(clusterId: string, analysisId: string, options?: RawAxiosRequestConfig) {
40765
+ return ClustersApiFp(this.configuration).listClusterAnalysisLogs(clusterId, analysisId, options).then((request) => request(this.axios, this.basePath));
40766
+ }
40767
+
40185
40768
  /**
40186
40769
  * List Cluster Logs
40187
40770
  * @summary List Cluster Logs
@@ -40247,6 +40830,19 @@ export class ClustersApi extends BaseAPI {
40247
40830
  return ClustersApiFp(this.configuration).specifyClusterCloudProviderInfo(organizationId, clusterId, clusterCloudProviderInfoRequest, options).then((request) => request(this.axios, this.basePath));
40248
40831
  }
40249
40832
 
40833
+ /**
40834
+ * Starts a read-only analysis for the cluster. The result and logs can be retrieved later from the cluster analysis endpoints.
40835
+ * @summary Start cluster analysis
40836
+ * @param {string} clusterId Cluster ID
40837
+ * @param {ClusterAnalysisRequest} clusterAnalysisRequest
40838
+ * @param {*} [options] Override http request option.
40839
+ * @throws {RequiredError}
40840
+ * @memberof ClustersApi
40841
+ */
40842
+ public startClusterAnalysis(clusterId: string, clusterAnalysisRequest: ClusterAnalysisRequest, options?: RawAxiosRequestConfig) {
40843
+ return ClustersApiFp(this.configuration).startClusterAnalysis(clusterId, clusterAnalysisRequest, options).then((request) => request(this.axios, this.basePath));
40844
+ }
40845
+
40250
40846
  /**
40251
40847
  * Cluster stop has been requester.
40252
40848
  * @summary Stop cluster