qovery-typescript-axios 1.1.967 → 1.1.969

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
@@ -6625,6 +6625,146 @@ export const ClusterDeleteMode = {
6625
6625
  export type ClusterDeleteMode = typeof ClusterDeleteMode[keyof typeof ClusterDeleteMode];
6626
6626
 
6627
6627
 
6628
+ /**
6629
+ *
6630
+ * @export
6631
+ * @interface ClusterDeploymentHistory
6632
+ */
6633
+ export interface ClusterDeploymentHistory {
6634
+ /**
6635
+ *
6636
+ * @type {ClusterDeploymentHistoryIdentifier}
6637
+ * @memberof ClusterDeploymentHistory
6638
+ */
6639
+ 'identifier': ClusterDeploymentHistoryIdentifier;
6640
+ /**
6641
+ *
6642
+ * @type {ClusterDeploymentHistoryAuditingData}
6643
+ * @memberof ClusterDeploymentHistory
6644
+ */
6645
+ 'auditing_data': ClusterDeploymentHistoryAuditingData;
6646
+ /**
6647
+ *
6648
+ * @type {StateEnum}
6649
+ * @memberof ClusterDeploymentHistory
6650
+ */
6651
+ 'status': StateEnum;
6652
+ /**
6653
+ *
6654
+ * @type {DeploymentHistoryActionStatus}
6655
+ * @memberof ClusterDeploymentHistory
6656
+ */
6657
+ 'action_status': DeploymentHistoryActionStatus;
6658
+ /**
6659
+ *
6660
+ * @type {DeploymentHistoryTriggerAction}
6661
+ * @memberof ClusterDeploymentHistory
6662
+ */
6663
+ 'trigger_action': DeploymentHistoryTriggerAction;
6664
+ /**
6665
+ *
6666
+ * @type {string}
6667
+ * @memberof ClusterDeploymentHistory
6668
+ */
6669
+ 'reason': ClusterDeploymentHistoryReasonEnum;
6670
+ /**
6671
+ *
6672
+ * @type {string}
6673
+ * @memberof ClusterDeploymentHistory
6674
+ */
6675
+ 'total_duration'?: string | null;
6676
+ }
6677
+
6678
+ export const ClusterDeploymentHistoryReasonEnum = {
6679
+ UNSPECIFIED: 'UNSPECIFIED',
6680
+ MAINTENANCE: 'MAINTENANCE'
6681
+ } as const;
6682
+
6683
+ export type ClusterDeploymentHistoryReasonEnum = typeof ClusterDeploymentHistoryReasonEnum[keyof typeof ClusterDeploymentHistoryReasonEnum];
6684
+
6685
+ /**
6686
+ *
6687
+ * @export
6688
+ * @interface ClusterDeploymentHistoryAuditingData
6689
+ */
6690
+ export interface ClusterDeploymentHistoryAuditingData {
6691
+ /**
6692
+ *
6693
+ * @type {string}
6694
+ * @memberof ClusterDeploymentHistoryAuditingData
6695
+ */
6696
+ 'created_at': string;
6697
+ /**
6698
+ *
6699
+ * @type {string}
6700
+ * @memberof ClusterDeploymentHistoryAuditingData
6701
+ */
6702
+ 'updated_at': string;
6703
+ /**
6704
+ *
6705
+ * @type {OrganizationEventOrigin}
6706
+ * @memberof ClusterDeploymentHistoryAuditingData
6707
+ */
6708
+ 'origin'?: OrganizationEventOrigin | null;
6709
+ /**
6710
+ * Who triggered the deployment. Null for deployments created before this metadata was recorded
6711
+ * @type {string}
6712
+ * @memberof ClusterDeploymentHistoryAuditingData
6713
+ */
6714
+ 'triggered_by'?: string | null;
6715
+ }
6716
+
6717
+
6718
+ /**
6719
+ *
6720
+ * @export
6721
+ * @interface ClusterDeploymentHistoryIdentifier
6722
+ */
6723
+ export interface ClusterDeploymentHistoryIdentifier {
6724
+ /**
6725
+ *
6726
+ * @type {string}
6727
+ * @memberof ClusterDeploymentHistoryIdentifier
6728
+ */
6729
+ 'deployment_id': string;
6730
+ /**
6731
+ *
6732
+ * @type {string}
6733
+ * @memberof ClusterDeploymentHistoryIdentifier
6734
+ */
6735
+ 'execution_id'?: string | null;
6736
+ /**
6737
+ *
6738
+ * @type {string}
6739
+ * @memberof ClusterDeploymentHistoryIdentifier
6740
+ */
6741
+ 'cluster_id': string;
6742
+ }
6743
+ /**
6744
+ *
6745
+ * @export
6746
+ * @interface ClusterDeploymentHistoryPaginatedResponseListV2
6747
+ */
6748
+ export interface ClusterDeploymentHistoryPaginatedResponseListV2 {
6749
+ /**
6750
+ *
6751
+ * @type {number}
6752
+ * @memberof ClusterDeploymentHistoryPaginatedResponseListV2
6753
+ */
6754
+ 'page': number;
6755
+ /**
6756
+ *
6757
+ * @type {number}
6758
+ * @memberof ClusterDeploymentHistoryPaginatedResponseListV2
6759
+ */
6760
+ 'page_size': number;
6761
+ /**
6762
+ *
6763
+ * @type {Array<ClusterDeploymentHistory>}
6764
+ * @memberof ClusterDeploymentHistoryPaginatedResponseListV2
6765
+ */
6766
+ 'results'?: Array<ClusterDeploymentHistory>;
6767
+ }
6628
6768
  /**
6629
6769
  *
6630
6770
  * @export
@@ -8254,12 +8394,6 @@ export interface ClusterOperatorStatusResponse {
8254
8394
  * @memberof ClusterOperatorStatusResponse
8255
8395
  */
8256
8396
  'operator_version'?: string | null;
8257
- /**
8258
- *
8259
- * @type {string}
8260
- * @memberof ClusterOperatorStatusResponse
8261
- */
8262
- 'controller_version'?: string | null;
8263
8397
  /**
8264
8398
  *
8265
8399
  * @type {string}
@@ -11578,7 +11712,8 @@ export const DeploymentHistoryActionStatus = {
11578
11712
  ERROR: 'ERROR',
11579
11713
  CANCELED: 'CANCELED',
11580
11714
  CANCELING: 'CANCELING',
11581
- NEVER: 'NEVER'
11715
+ NEVER: 'NEVER',
11716
+ EXECUTING: 'EXECUTING'
11582
11717
  } as const;
11583
11718
 
11584
11719
  export type DeploymentHistoryActionStatus = typeof DeploymentHistoryActionStatus[keyof typeof DeploymentHistoryActionStatus];
@@ -40679,6 +40814,226 @@ export class CloudProviderCredentialsApi extends BaseAPI {
40679
40814
 
40680
40815
 
40681
40816
 
40817
+ /**
40818
+ * ClusterDeploymentHistoryApi - axios parameter creator
40819
+ * @export
40820
+ */
40821
+ export const ClusterDeploymentHistoryApiAxiosParamCreator = function (configuration?: Configuration) {
40822
+ return {
40823
+ /**
40824
+ * List previous and current cluster deployments. It returns actual deployments only: dry-runs and stop/delete operations are excluded. By default it returns the 20 last results. Use the pageSize query parameter to adjust the number of returned results
40825
+ * @summary List cluster deployments
40826
+ * @param {string} organizationId Organization ID
40827
+ * @param {string} clusterId Cluster ID
40828
+ * @param {number | null} [pageSize] The number of deployments to return in the current page. Must be greater than or equal to 1
40829
+ * @param {*} [options] Override http request option.
40830
+ * @throws {RequiredError}
40831
+ */
40832
+ listClusterDeploymentHistoryV2: async (organizationId: string, clusterId: string, pageSize?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40833
+ // verify required parameter 'organizationId' is not null or undefined
40834
+ assertParamExists('listClusterDeploymentHistoryV2', 'organizationId', organizationId)
40835
+ // verify required parameter 'clusterId' is not null or undefined
40836
+ assertParamExists('listClusterDeploymentHistoryV2', 'clusterId', clusterId)
40837
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/deploymentHistoryV2`
40838
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40839
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
40840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40841
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40842
+ let baseOptions;
40843
+ if (configuration) {
40844
+ baseOptions = configuration.baseOptions;
40845
+ }
40846
+
40847
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40848
+ const localVarHeaderParameter = {} as any;
40849
+ const localVarQueryParameter = {} as any;
40850
+
40851
+ // authentication ApiKeyAuth required
40852
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40853
+
40854
+ // authentication bearerAuth required
40855
+ // http bearer authentication required
40856
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40857
+
40858
+ if (pageSize !== undefined) {
40859
+ localVarQueryParameter['pageSize'] = pageSize;
40860
+ }
40861
+
40862
+
40863
+
40864
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40866
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40867
+
40868
+ return {
40869
+ url: toPathString(localVarUrlObj),
40870
+ options: localVarRequestOptions,
40871
+ };
40872
+ },
40873
+ /**
40874
+ * List the logs of a specific cluster deployment
40875
+ * @summary List logs for a specific cluster deployment
40876
+ * @param {string} organizationId Organization ID
40877
+ * @param {string} clusterId Cluster ID
40878
+ * @param {string} deploymentId Deployment ID
40879
+ * @param {*} [options] Override http request option.
40880
+ * @throws {RequiredError}
40881
+ */
40882
+ listClusterDeploymentLogs: async (organizationId: string, clusterId: string, deploymentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40883
+ // verify required parameter 'organizationId' is not null or undefined
40884
+ assertParamExists('listClusterDeploymentLogs', 'organizationId', organizationId)
40885
+ // verify required parameter 'clusterId' is not null or undefined
40886
+ assertParamExists('listClusterDeploymentLogs', 'clusterId', clusterId)
40887
+ // verify required parameter 'deploymentId' is not null or undefined
40888
+ assertParamExists('listClusterDeploymentLogs', 'deploymentId', deploymentId)
40889
+ const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/deployment/{deploymentId}/logs`
40890
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
40891
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)))
40892
+ .replace(`{${"deploymentId"}}`, encodeURIComponent(String(deploymentId)));
40893
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40894
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40895
+ let baseOptions;
40896
+ if (configuration) {
40897
+ baseOptions = configuration.baseOptions;
40898
+ }
40899
+
40900
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40901
+ const localVarHeaderParameter = {} as any;
40902
+ const localVarQueryParameter = {} as any;
40903
+
40904
+ // authentication ApiKeyAuth required
40905
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40906
+
40907
+ // authentication bearerAuth required
40908
+ // http bearer authentication required
40909
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40910
+
40911
+
40912
+
40913
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40915
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40916
+
40917
+ return {
40918
+ url: toPathString(localVarUrlObj),
40919
+ options: localVarRequestOptions,
40920
+ };
40921
+ },
40922
+ }
40923
+ };
40924
+
40925
+ /**
40926
+ * ClusterDeploymentHistoryApi - functional programming interface
40927
+ * @export
40928
+ */
40929
+ export const ClusterDeploymentHistoryApiFp = function(configuration?: Configuration) {
40930
+ const localVarAxiosParamCreator = ClusterDeploymentHistoryApiAxiosParamCreator(configuration)
40931
+ return {
40932
+ /**
40933
+ * List previous and current cluster deployments. It returns actual deployments only: dry-runs and stop/delete operations are excluded. By default it returns the 20 last results. Use the pageSize query parameter to adjust the number of returned results
40934
+ * @summary List cluster deployments
40935
+ * @param {string} organizationId Organization ID
40936
+ * @param {string} clusterId Cluster ID
40937
+ * @param {number | null} [pageSize] The number of deployments to return in the current page. Must be greater than or equal to 1
40938
+ * @param {*} [options] Override http request option.
40939
+ * @throws {RequiredError}
40940
+ */
40941
+ async listClusterDeploymentHistoryV2(organizationId: string, clusterId: string, pageSize?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterDeploymentHistoryPaginatedResponseListV2>> {
40942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterDeploymentHistoryV2(organizationId, clusterId, pageSize, options);
40943
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40944
+ const localVarOperationServerBasePath = operationServerMap['ClusterDeploymentHistoryApi.listClusterDeploymentHistoryV2']?.[localVarOperationServerIndex]?.url;
40945
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40946
+ },
40947
+ /**
40948
+ * List the logs of a specific cluster deployment
40949
+ * @summary List logs for a specific cluster deployment
40950
+ * @param {string} organizationId Organization ID
40951
+ * @param {string} clusterId Cluster ID
40952
+ * @param {string} deploymentId Deployment ID
40953
+ * @param {*} [options] Override http request option.
40954
+ * @throws {RequiredError}
40955
+ */
40956
+ async listClusterDeploymentLogs(organizationId: string, clusterId: string, deploymentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogsResponseList>> {
40957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterDeploymentLogs(organizationId, clusterId, deploymentId, options);
40958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
40959
+ const localVarOperationServerBasePath = operationServerMap['ClusterDeploymentHistoryApi.listClusterDeploymentLogs']?.[localVarOperationServerIndex]?.url;
40960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40961
+ },
40962
+ }
40963
+ };
40964
+
40965
+ /**
40966
+ * ClusterDeploymentHistoryApi - factory interface
40967
+ * @export
40968
+ */
40969
+ export const ClusterDeploymentHistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40970
+ const localVarFp = ClusterDeploymentHistoryApiFp(configuration)
40971
+ return {
40972
+ /**
40973
+ * List previous and current cluster deployments. It returns actual deployments only: dry-runs and stop/delete operations are excluded. By default it returns the 20 last results. Use the pageSize query parameter to adjust the number of returned results
40974
+ * @summary List cluster deployments
40975
+ * @param {string} organizationId Organization ID
40976
+ * @param {string} clusterId Cluster ID
40977
+ * @param {number | null} [pageSize] The number of deployments to return in the current page. Must be greater than or equal to 1
40978
+ * @param {*} [options] Override http request option.
40979
+ * @throws {RequiredError}
40980
+ */
40981
+ listClusterDeploymentHistoryV2(organizationId: string, clusterId: string, pageSize?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ClusterDeploymentHistoryPaginatedResponseListV2> {
40982
+ return localVarFp.listClusterDeploymentHistoryV2(organizationId, clusterId, pageSize, options).then((request) => request(axios, basePath));
40983
+ },
40984
+ /**
40985
+ * List the logs of a specific cluster deployment
40986
+ * @summary List logs for a specific cluster deployment
40987
+ * @param {string} organizationId Organization ID
40988
+ * @param {string} clusterId Cluster ID
40989
+ * @param {string} deploymentId Deployment ID
40990
+ * @param {*} [options] Override http request option.
40991
+ * @throws {RequiredError}
40992
+ */
40993
+ listClusterDeploymentLogs(organizationId: string, clusterId: string, deploymentId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogsResponseList> {
40994
+ return localVarFp.listClusterDeploymentLogs(organizationId, clusterId, deploymentId, options).then((request) => request(axios, basePath));
40995
+ },
40996
+ };
40997
+ };
40998
+
40999
+ /**
41000
+ * ClusterDeploymentHistoryApi - object-oriented interface
41001
+ * @export
41002
+ * @class ClusterDeploymentHistoryApi
41003
+ * @extends {BaseAPI}
41004
+ */
41005
+ export class ClusterDeploymentHistoryApi extends BaseAPI {
41006
+ /**
41007
+ * List previous and current cluster deployments. It returns actual deployments only: dry-runs and stop/delete operations are excluded. By default it returns the 20 last results. Use the pageSize query parameter to adjust the number of returned results
41008
+ * @summary List cluster deployments
41009
+ * @param {string} organizationId Organization ID
41010
+ * @param {string} clusterId Cluster ID
41011
+ * @param {number | null} [pageSize] The number of deployments to return in the current page. Must be greater than or equal to 1
41012
+ * @param {*} [options] Override http request option.
41013
+ * @throws {RequiredError}
41014
+ * @memberof ClusterDeploymentHistoryApi
41015
+ */
41016
+ public listClusterDeploymentHistoryV2(organizationId: string, clusterId: string, pageSize?: number | null, options?: RawAxiosRequestConfig) {
41017
+ return ClusterDeploymentHistoryApiFp(this.configuration).listClusterDeploymentHistoryV2(organizationId, clusterId, pageSize, options).then((request) => request(this.axios, this.basePath));
41018
+ }
41019
+
41020
+ /**
41021
+ * List the logs of a specific cluster deployment
41022
+ * @summary List logs for a specific cluster deployment
41023
+ * @param {string} organizationId Organization ID
41024
+ * @param {string} clusterId Cluster ID
41025
+ * @param {string} deploymentId Deployment ID
41026
+ * @param {*} [options] Override http request option.
41027
+ * @throws {RequiredError}
41028
+ * @memberof ClusterDeploymentHistoryApi
41029
+ */
41030
+ public listClusterDeploymentLogs(organizationId: string, clusterId: string, deploymentId: string, options?: RawAxiosRequestConfig) {
41031
+ return ClusterDeploymentHistoryApiFp(this.configuration).listClusterDeploymentLogs(organizationId, clusterId, deploymentId, options).then((request) => request(this.axios, this.basePath));
41032
+ }
41033
+ }
41034
+
41035
+
41036
+
40682
41037
  /**
40683
41038
  * ClusterOperatorApi - axios parameter creator
40684
41039
  * @export
@@ -42479,11 +42834,12 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
42479
42834
  };
42480
42835
  },
42481
42836
  /**
42482
- * List Cluster Logs
42837
+ * List Cluster Logs. Deprecated: use listClusterDeploymentLogs instead to fetch the logs of a specific cluster deployment.
42483
42838
  * @summary List Cluster Logs
42484
42839
  * @param {string} organizationId Organization ID
42485
42840
  * @param {string} clusterId Cluster ID
42486
42841
  * @param {*} [options] Override http request option.
42842
+ * @deprecated
42487
42843
  * @throws {RequiredError}
42488
42844
  */
42489
42845
  listClusterLogs: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -43383,11 +43739,12 @@ export const ClustersApiFp = function(configuration?: Configuration) {
43383
43739
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
43384
43740
  },
43385
43741
  /**
43386
- * List Cluster Logs
43742
+ * List Cluster Logs. Deprecated: use listClusterDeploymentLogs instead to fetch the logs of a specific cluster deployment.
43387
43743
  * @summary List Cluster Logs
43388
43744
  * @param {string} organizationId Organization ID
43389
43745
  * @param {string} clusterId Cluster ID
43390
43746
  * @param {*} [options] Override http request option.
43747
+ * @deprecated
43391
43748
  * @throws {RequiredError}
43392
43749
  */
43393
43750
  async listClusterLogs(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogsResponseList>> {
@@ -43864,11 +44221,12 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
43864
44221
  return localVarFp.listClusterAnalysisLogs(clusterId, analysisId, options).then((request) => request(axios, basePath));
43865
44222
  },
43866
44223
  /**
43867
- * List Cluster Logs
44224
+ * List Cluster Logs. Deprecated: use listClusterDeploymentLogs instead to fetch the logs of a specific cluster deployment.
43868
44225
  * @summary List Cluster Logs
43869
44226
  * @param {string} organizationId Organization ID
43870
44227
  * @param {string} clusterId Cluster ID
43871
44228
  * @param {*} [options] Override http request option.
44229
+ * @deprecated
43872
44230
  * @throws {RequiredError}
43873
44231
  */
43874
44232
  listClusterLogs(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogsResponseList> {
@@ -44364,11 +44722,12 @@ export class ClustersApi extends BaseAPI {
44364
44722
  }
44365
44723
 
44366
44724
  /**
44367
- * List Cluster Logs
44725
+ * List Cluster Logs. Deprecated: use listClusterDeploymentLogs instead to fetch the logs of a specific cluster deployment.
44368
44726
  * @summary List Cluster Logs
44369
44727
  * @param {string} organizationId Organization ID
44370
44728
  * @param {string} clusterId Cluster ID
44371
44729
  * @param {*} [options] Override http request option.
44730
+ * @deprecated
44372
44731
  * @throws {RequiredError}
44373
44732
  * @memberof ClustersApi
44374
44733
  */