qovery-typescript-axios 1.1.951 → 1.1.953
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 +662 -1
- package/dist/api.d.ts +461 -1
- package/dist/api.js +375 -12
- package/dist/esm/api.d.ts +461 -1
- package/dist/esm/api.js +360 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -7772,6 +7772,262 @@ export interface ClusterMetricsResponse {
|
|
|
7772
7772
|
*/
|
|
7773
7773
|
'metrics'?: string;
|
|
7774
7774
|
}
|
|
7775
|
+
/**
|
|
7776
|
+
* Sensitive bootstrap material used to install or manually upgrade the Qovery Operator on a self-managed cluster.
|
|
7777
|
+
* @export
|
|
7778
|
+
* @interface ClusterOperatorBootstrapResponse
|
|
7779
|
+
*/
|
|
7780
|
+
export interface ClusterOperatorBootstrapResponse {
|
|
7781
|
+
/**
|
|
7782
|
+
*
|
|
7783
|
+
* @type {string}
|
|
7784
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7785
|
+
*/
|
|
7786
|
+
'chart_repository': string;
|
|
7787
|
+
/**
|
|
7788
|
+
*
|
|
7789
|
+
* @type {string}
|
|
7790
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7791
|
+
*/
|
|
7792
|
+
'chart_name': string;
|
|
7793
|
+
/**
|
|
7794
|
+
*
|
|
7795
|
+
* @type {string}
|
|
7796
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7797
|
+
*/
|
|
7798
|
+
'chart_version': string;
|
|
7799
|
+
/**
|
|
7800
|
+
*
|
|
7801
|
+
* @type {string}
|
|
7802
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7803
|
+
*/
|
|
7804
|
+
'chart_reference': string;
|
|
7805
|
+
/**
|
|
7806
|
+
*
|
|
7807
|
+
* @type {string}
|
|
7808
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7809
|
+
*/
|
|
7810
|
+
'namespace': string;
|
|
7811
|
+
/**
|
|
7812
|
+
*
|
|
7813
|
+
* @type {string}
|
|
7814
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7815
|
+
*/
|
|
7816
|
+
'release_name': string;
|
|
7817
|
+
/**
|
|
7818
|
+
* Structured Helm values. This object can contain cluster credentials.
|
|
7819
|
+
* @type {{ [key: string]: any; }}
|
|
7820
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7821
|
+
*/
|
|
7822
|
+
'values': { [key: string]: any; };
|
|
7823
|
+
/**
|
|
7824
|
+
* Ready-to-write Helm values file. This value can contain cluster credentials.
|
|
7825
|
+
* @type {string}
|
|
7826
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7827
|
+
*/
|
|
7828
|
+
'values_yaml': string;
|
|
7829
|
+
/**
|
|
7830
|
+
* Ready-to-run Helm upgrade/install command using values_yaml.
|
|
7831
|
+
* @type {string}
|
|
7832
|
+
* @memberof ClusterOperatorBootstrapResponse
|
|
7833
|
+
*/
|
|
7834
|
+
'helm_command': string;
|
|
7835
|
+
}
|
|
7836
|
+
/**
|
|
7837
|
+
*
|
|
7838
|
+
* @export
|
|
7839
|
+
* @interface ClusterOperatorFleetInventoryResponse
|
|
7840
|
+
*/
|
|
7841
|
+
export interface ClusterOperatorFleetInventoryResponse {
|
|
7842
|
+
/**
|
|
7843
|
+
*
|
|
7844
|
+
* @type {string}
|
|
7845
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7846
|
+
*/
|
|
7847
|
+
'organization_id': string;
|
|
7848
|
+
/**
|
|
7849
|
+
*
|
|
7850
|
+
* @type {string}
|
|
7851
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7852
|
+
*/
|
|
7853
|
+
'cluster_id': string;
|
|
7854
|
+
/**
|
|
7855
|
+
*
|
|
7856
|
+
* @type {string}
|
|
7857
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7858
|
+
*/
|
|
7859
|
+
'cluster_name': string;
|
|
7860
|
+
/**
|
|
7861
|
+
*
|
|
7862
|
+
* @type {SelfManagedClusterKind}
|
|
7863
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7864
|
+
*/
|
|
7865
|
+
'cluster_kind': SelfManagedClusterKind;
|
|
7866
|
+
/**
|
|
7867
|
+
* Whether the cluster is explicitly routed through the Operator execution path.
|
|
7868
|
+
* @type {boolean}
|
|
7869
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7870
|
+
*/
|
|
7871
|
+
'attached': boolean;
|
|
7872
|
+
/**
|
|
7873
|
+
* Whether the last heartbeat is within the Operator presence window.
|
|
7874
|
+
* @type {boolean}
|
|
7875
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7876
|
+
*/
|
|
7877
|
+
'connected': boolean;
|
|
7878
|
+
/**
|
|
7879
|
+
*
|
|
7880
|
+
* @type {string}
|
|
7881
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7882
|
+
*/
|
|
7883
|
+
'last_heartbeat'?: string | null;
|
|
7884
|
+
/**
|
|
7885
|
+
*
|
|
7886
|
+
* @type {string}
|
|
7887
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7888
|
+
*/
|
|
7889
|
+
'desired_image_version'?: string | null;
|
|
7890
|
+
/**
|
|
7891
|
+
*
|
|
7892
|
+
* @type {string}
|
|
7893
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7894
|
+
*/
|
|
7895
|
+
'reported_image_version'?: string | null;
|
|
7896
|
+
/**
|
|
7897
|
+
*
|
|
7898
|
+
* @type {string}
|
|
7899
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7900
|
+
*/
|
|
7901
|
+
'desired_chart_version'?: string | null;
|
|
7902
|
+
/**
|
|
7903
|
+
*
|
|
7904
|
+
* @type {string}
|
|
7905
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7906
|
+
*/
|
|
7907
|
+
'reported_chart_version'?: string | null;
|
|
7908
|
+
/**
|
|
7909
|
+
*
|
|
7910
|
+
* @type {ClusterOperatorFleetStatus}
|
|
7911
|
+
* @memberof ClusterOperatorFleetInventoryResponse
|
|
7912
|
+
*/
|
|
7913
|
+
'status': ClusterOperatorFleetStatus;
|
|
7914
|
+
}
|
|
7915
|
+
|
|
7916
|
+
|
|
7917
|
+
/**
|
|
7918
|
+
*
|
|
7919
|
+
* @export
|
|
7920
|
+
* @interface ClusterOperatorFleetInventoryResponseList
|
|
7921
|
+
*/
|
|
7922
|
+
export interface ClusterOperatorFleetInventoryResponseList {
|
|
7923
|
+
/**
|
|
7924
|
+
*
|
|
7925
|
+
* @type {Array<ClusterOperatorFleetInventoryResponse>}
|
|
7926
|
+
* @memberof ClusterOperatorFleetInventoryResponseList
|
|
7927
|
+
*/
|
|
7928
|
+
'results': Array<ClusterOperatorFleetInventoryResponse>;
|
|
7929
|
+
}
|
|
7930
|
+
/**
|
|
7931
|
+
* Stable fleet classification. OUTDATED_IMAGE and OUTDATED_CHART identify which globally selected bootstrap target differs from the version reported by the running Operator.
|
|
7932
|
+
* @export
|
|
7933
|
+
* @enum {string}
|
|
7934
|
+
*/
|
|
7935
|
+
|
|
7936
|
+
export const ClusterOperatorFleetStatus = {
|
|
7937
|
+
NOT_ATTACHED: 'NOT_ATTACHED',
|
|
7938
|
+
DISCONNECTED: 'DISCONNECTED',
|
|
7939
|
+
TARGET_UNKNOWN: 'TARGET_UNKNOWN',
|
|
7940
|
+
REPORTED_VERSION_UNKNOWN: 'REPORTED_VERSION_UNKNOWN',
|
|
7941
|
+
CURRENT: 'CURRENT',
|
|
7942
|
+
OUTDATED_IMAGE: 'OUTDATED_IMAGE',
|
|
7943
|
+
OUTDATED_CHART: 'OUTDATED_CHART',
|
|
7944
|
+
OUTDATED_IMAGE_AND_CHART: 'OUTDATED_IMAGE_AND_CHART'
|
|
7945
|
+
} as const;
|
|
7946
|
+
|
|
7947
|
+
export type ClusterOperatorFleetStatus = typeof ClusterOperatorFleetStatus[keyof typeof ClusterOperatorFleetStatus];
|
|
7948
|
+
|
|
7949
|
+
|
|
7950
|
+
/**
|
|
7951
|
+
*
|
|
7952
|
+
* @export
|
|
7953
|
+
* @interface ClusterOperatorStatusResponse
|
|
7954
|
+
*/
|
|
7955
|
+
export interface ClusterOperatorStatusResponse {
|
|
7956
|
+
/**
|
|
7957
|
+
*
|
|
7958
|
+
* @type {string}
|
|
7959
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7960
|
+
*/
|
|
7961
|
+
'organization_id': string;
|
|
7962
|
+
/**
|
|
7963
|
+
*
|
|
7964
|
+
* @type {string}
|
|
7965
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7966
|
+
*/
|
|
7967
|
+
'cluster_id': string;
|
|
7968
|
+
/**
|
|
7969
|
+
* Whether the last heartbeat is within the Operator presence window.
|
|
7970
|
+
* @type {boolean}
|
|
7971
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7972
|
+
*/
|
|
7973
|
+
'operator_connected': boolean;
|
|
7974
|
+
/**
|
|
7975
|
+
*
|
|
7976
|
+
* @type {string}
|
|
7977
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7978
|
+
*/
|
|
7979
|
+
'last_heartbeat'?: string | null;
|
|
7980
|
+
/**
|
|
7981
|
+
* Display version reported by the Operator. For the POC version-reporting heartbeat, the official chart sets this to the exact installed image tag. Legacy Operators can report opaque build metadata instead.
|
|
7982
|
+
* @type {string}
|
|
7983
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7984
|
+
*/
|
|
7985
|
+
'operator_version'?: string | null;
|
|
7986
|
+
/**
|
|
7987
|
+
*
|
|
7988
|
+
* @type {string}
|
|
7989
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7990
|
+
*/
|
|
7991
|
+
'controller_version'?: string | null;
|
|
7992
|
+
/**
|
|
7993
|
+
*
|
|
7994
|
+
* @type {string}
|
|
7995
|
+
* @memberof ClusterOperatorStatusResponse
|
|
7996
|
+
*/
|
|
7997
|
+
'request_schema_version'?: string | null;
|
|
7998
|
+
/**
|
|
7999
|
+
* Image tag currently selected for a newly compiled Operator bootstrap.
|
|
8000
|
+
* @type {string}
|
|
8001
|
+
* @memberof ClusterOperatorStatusResponse
|
|
8002
|
+
*/
|
|
8003
|
+
'desired_image_version'?: string | null;
|
|
8004
|
+
/**
|
|
8005
|
+
* Helm chart version currently selected for a newly compiled Operator bootstrap.
|
|
8006
|
+
* @type {string}
|
|
8007
|
+
* @memberof ClusterOperatorStatusResponse
|
|
8008
|
+
*/
|
|
8009
|
+
'desired_chart_version'?: string | null;
|
|
8010
|
+
/**
|
|
8011
|
+
*
|
|
8012
|
+
* @type {ClusterOperatorFleetStatus}
|
|
8013
|
+
* @memberof ClusterOperatorStatusResponse
|
|
8014
|
+
*/
|
|
8015
|
+
'status': ClusterOperatorFleetStatus;
|
|
8016
|
+
/**
|
|
8017
|
+
* Helm chart version reported by the Operator, even without immutable identity.
|
|
8018
|
+
* @type {string}
|
|
8019
|
+
* @memberof ClusterOperatorStatusResponse
|
|
8020
|
+
*/
|
|
8021
|
+
'reported_chart_version'?: string | null;
|
|
8022
|
+
/**
|
|
8023
|
+
*
|
|
8024
|
+
* @type {ReportedClusterOperatorIdentity}
|
|
8025
|
+
* @memberof ClusterOperatorStatusResponse
|
|
8026
|
+
*/
|
|
8027
|
+
'reported_identity'?: ReportedClusterOperatorIdentity | null;
|
|
8028
|
+
}
|
|
8029
|
+
|
|
8030
|
+
|
|
7775
8031
|
/**
|
|
7776
8032
|
*
|
|
7777
8033
|
* @export
|
|
@@ -21021,7 +21277,7 @@ export const OrganizationEventType = {
|
|
|
21021
21277
|
IMPORT: 'IMPORT',
|
|
21022
21278
|
LOCK: 'LOCK',
|
|
21023
21279
|
UNLOCK: 'UNLOCK',
|
|
21024
|
-
|
|
21280
|
+
POLICY_FAILED: 'POLICY_FAILED'
|
|
21025
21281
|
} as const;
|
|
21026
21282
|
|
|
21027
21283
|
export type OrganizationEventType = typeof OrganizationEventType[keyof typeof OrganizationEventType];
|
|
@@ -23325,6 +23581,37 @@ export const RegistryMirroringModeEnum = {
|
|
|
23325
23581
|
export type RegistryMirroringModeEnum = typeof RegistryMirroringModeEnum[keyof typeof RegistryMirroringModeEnum];
|
|
23326
23582
|
|
|
23327
23583
|
|
|
23584
|
+
/**
|
|
23585
|
+
*
|
|
23586
|
+
* @export
|
|
23587
|
+
* @interface ReportedClusterOperatorIdentity
|
|
23588
|
+
*/
|
|
23589
|
+
export interface ReportedClusterOperatorIdentity {
|
|
23590
|
+
/**
|
|
23591
|
+
* Multi-architecture OCI index digest selected for the installed release.
|
|
23592
|
+
* @type {string}
|
|
23593
|
+
* @memberof ReportedClusterOperatorIdentity
|
|
23594
|
+
*/
|
|
23595
|
+
'release_digest': string;
|
|
23596
|
+
/**
|
|
23597
|
+
* OCI image reference resolved by the Kubernetes runtime.
|
|
23598
|
+
* @type {string}
|
|
23599
|
+
* @memberof ReportedClusterOperatorIdentity
|
|
23600
|
+
*/
|
|
23601
|
+
'runtime_image_id': string;
|
|
23602
|
+
/**
|
|
23603
|
+
*
|
|
23604
|
+
* @type {string}
|
|
23605
|
+
* @memberof ReportedClusterOperatorIdentity
|
|
23606
|
+
*/
|
|
23607
|
+
'chart_version': string;
|
|
23608
|
+
/**
|
|
23609
|
+
*
|
|
23610
|
+
* @type {string}
|
|
23611
|
+
* @memberof ReportedClusterOperatorIdentity
|
|
23612
|
+
*/
|
|
23613
|
+
'observed_at'?: string | null;
|
|
23614
|
+
}
|
|
23328
23615
|
/**
|
|
23329
23616
|
*
|
|
23330
23617
|
* @export
|
|
@@ -23958,6 +24245,23 @@ export interface SecretResponseList {
|
|
|
23958
24245
|
*/
|
|
23959
24246
|
'results'?: Array<Secret>;
|
|
23960
24247
|
}
|
|
24248
|
+
/**
|
|
24249
|
+
*
|
|
24250
|
+
* @export
|
|
24251
|
+
* @enum {string}
|
|
24252
|
+
*/
|
|
24253
|
+
|
|
24254
|
+
export const SelfManagedClusterKind = {
|
|
24255
|
+
EKS_SELF_MANAGED: 'EKS_SELF_MANAGED',
|
|
24256
|
+
SCW_SELF_MANAGED: 'SCW_SELF_MANAGED',
|
|
24257
|
+
GKE_SELF_MANAGED: 'GKE_SELF_MANAGED',
|
|
24258
|
+
AKS_SELF_MANAGED: 'AKS_SELF_MANAGED',
|
|
24259
|
+
SELF_MANAGED: 'SELF_MANAGED'
|
|
24260
|
+
} as const;
|
|
24261
|
+
|
|
24262
|
+
export type SelfManagedClusterKind = typeof SelfManagedClusterKind[keyof typeof SelfManagedClusterKind];
|
|
24263
|
+
|
|
24264
|
+
|
|
23961
24265
|
/**
|
|
23962
24266
|
*
|
|
23963
24267
|
* @export
|
|
@@ -39833,6 +40137,363 @@ export class CloudProviderCredentialsApi extends BaseAPI {
|
|
|
39833
40137
|
|
|
39834
40138
|
|
|
39835
40139
|
|
|
40140
|
+
/**
|
|
40141
|
+
* ClusterOperatorApi - axios parameter creator
|
|
40142
|
+
* @export
|
|
40143
|
+
*/
|
|
40144
|
+
export const ClusterOperatorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40145
|
+
return {
|
|
40146
|
+
/**
|
|
40147
|
+
* Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
|
|
40148
|
+
* @summary Attach a cluster to the Qovery Operator execution path
|
|
40149
|
+
* @param {string} organizationId Organization ID
|
|
40150
|
+
* @param {string} clusterId Cluster ID
|
|
40151
|
+
* @param {*} [options] Override http request option.
|
|
40152
|
+
* @throws {RequiredError}
|
|
40153
|
+
*/
|
|
40154
|
+
attachClusterOperator: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40155
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
40156
|
+
assertParamExists('attachClusterOperator', 'organizationId', organizationId)
|
|
40157
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
40158
|
+
assertParamExists('attachClusterOperator', 'clusterId', clusterId)
|
|
40159
|
+
const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/attach`
|
|
40160
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
40161
|
+
.replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
|
|
40162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40164
|
+
let baseOptions;
|
|
40165
|
+
if (configuration) {
|
|
40166
|
+
baseOptions = configuration.baseOptions;
|
|
40167
|
+
}
|
|
40168
|
+
|
|
40169
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40170
|
+
const localVarHeaderParameter = {} as any;
|
|
40171
|
+
const localVarQueryParameter = {} as any;
|
|
40172
|
+
|
|
40173
|
+
// authentication ApiKeyAuth required
|
|
40174
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
40175
|
+
|
|
40176
|
+
// authentication bearerAuth required
|
|
40177
|
+
// http bearer authentication required
|
|
40178
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40179
|
+
|
|
40180
|
+
|
|
40181
|
+
|
|
40182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40184
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40185
|
+
|
|
40186
|
+
return {
|
|
40187
|
+
url: toPathString(localVarUrlObj),
|
|
40188
|
+
options: localVarRequestOptions,
|
|
40189
|
+
};
|
|
40190
|
+
},
|
|
40191
|
+
/**
|
|
40192
|
+
* Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
|
|
40193
|
+
* @summary Get the Qovery Operator bootstrap
|
|
40194
|
+
* @param {string} organizationId Organization ID
|
|
40195
|
+
* @param {string} clusterId Cluster ID
|
|
40196
|
+
* @param {*} [options] Override http request option.
|
|
40197
|
+
* @throws {RequiredError}
|
|
40198
|
+
*/
|
|
40199
|
+
getClusterOperatorBootstrap: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40200
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
40201
|
+
assertParamExists('getClusterOperatorBootstrap', 'organizationId', organizationId)
|
|
40202
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
40203
|
+
assertParamExists('getClusterOperatorBootstrap', 'clusterId', clusterId)
|
|
40204
|
+
const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/bootstrap`
|
|
40205
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
40206
|
+
.replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
|
|
40207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40208
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40209
|
+
let baseOptions;
|
|
40210
|
+
if (configuration) {
|
|
40211
|
+
baseOptions = configuration.baseOptions;
|
|
40212
|
+
}
|
|
40213
|
+
|
|
40214
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40215
|
+
const localVarHeaderParameter = {} as any;
|
|
40216
|
+
const localVarQueryParameter = {} as any;
|
|
40217
|
+
|
|
40218
|
+
// authentication ApiKeyAuth required
|
|
40219
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
40220
|
+
|
|
40221
|
+
// authentication bearerAuth required
|
|
40222
|
+
// http bearer authentication required
|
|
40223
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40224
|
+
|
|
40225
|
+
|
|
40226
|
+
|
|
40227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40230
|
+
|
|
40231
|
+
return {
|
|
40232
|
+
url: toPathString(localVarUrlObj),
|
|
40233
|
+
options: localVarRequestOptions,
|
|
40234
|
+
};
|
|
40235
|
+
},
|
|
40236
|
+
/**
|
|
40237
|
+
* Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
|
|
40238
|
+
* @summary Get the Qovery Operator status for a cluster
|
|
40239
|
+
* @param {string} organizationId Organization ID
|
|
40240
|
+
* @param {string} clusterId Cluster ID
|
|
40241
|
+
* @param {*} [options] Override http request option.
|
|
40242
|
+
* @throws {RequiredError}
|
|
40243
|
+
*/
|
|
40244
|
+
getClusterOperatorStatus: async (organizationId: string, clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40245
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
40246
|
+
assertParamExists('getClusterOperatorStatus', 'organizationId', organizationId)
|
|
40247
|
+
// verify required parameter 'clusterId' is not null or undefined
|
|
40248
|
+
assertParamExists('getClusterOperatorStatus', 'clusterId', clusterId)
|
|
40249
|
+
const localVarPath = `/organization/{organizationId}/cluster/{clusterId}/operator/status`
|
|
40250
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
40251
|
+
.replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
|
|
40252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40254
|
+
let baseOptions;
|
|
40255
|
+
if (configuration) {
|
|
40256
|
+
baseOptions = configuration.baseOptions;
|
|
40257
|
+
}
|
|
40258
|
+
|
|
40259
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40260
|
+
const localVarHeaderParameter = {} as any;
|
|
40261
|
+
const localVarQueryParameter = {} as any;
|
|
40262
|
+
|
|
40263
|
+
// authentication ApiKeyAuth required
|
|
40264
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
40265
|
+
|
|
40266
|
+
// authentication bearerAuth required
|
|
40267
|
+
// http bearer authentication required
|
|
40268
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40269
|
+
|
|
40270
|
+
|
|
40271
|
+
|
|
40272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40275
|
+
|
|
40276
|
+
return {
|
|
40277
|
+
url: toPathString(localVarUrlObj),
|
|
40278
|
+
options: localVarRequestOptions,
|
|
40279
|
+
};
|
|
40280
|
+
},
|
|
40281
|
+
/**
|
|
40282
|
+
* Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
|
|
40283
|
+
* @summary List the Qovery Operator fleet
|
|
40284
|
+
* @param {*} [options] Override http request option.
|
|
40285
|
+
* @throws {RequiredError}
|
|
40286
|
+
*/
|
|
40287
|
+
listClusterOperatorFleet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40288
|
+
const localVarPath = `/admin/operator/clusters`;
|
|
40289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40291
|
+
let baseOptions;
|
|
40292
|
+
if (configuration) {
|
|
40293
|
+
baseOptions = configuration.baseOptions;
|
|
40294
|
+
}
|
|
40295
|
+
|
|
40296
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40297
|
+
const localVarHeaderParameter = {} as any;
|
|
40298
|
+
const localVarQueryParameter = {} as any;
|
|
40299
|
+
|
|
40300
|
+
// authentication ApiKeyAuth required
|
|
40301
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
40302
|
+
|
|
40303
|
+
// authentication bearerAuth required
|
|
40304
|
+
// http bearer authentication required
|
|
40305
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40306
|
+
|
|
40307
|
+
|
|
40308
|
+
|
|
40309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40311
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40312
|
+
|
|
40313
|
+
return {
|
|
40314
|
+
url: toPathString(localVarUrlObj),
|
|
40315
|
+
options: localVarRequestOptions,
|
|
40316
|
+
};
|
|
40317
|
+
},
|
|
40318
|
+
}
|
|
40319
|
+
};
|
|
40320
|
+
|
|
40321
|
+
/**
|
|
40322
|
+
* ClusterOperatorApi - functional programming interface
|
|
40323
|
+
* @export
|
|
40324
|
+
*/
|
|
40325
|
+
export const ClusterOperatorApiFp = function(configuration?: Configuration) {
|
|
40326
|
+
const localVarAxiosParamCreator = ClusterOperatorApiAxiosParamCreator(configuration)
|
|
40327
|
+
return {
|
|
40328
|
+
/**
|
|
40329
|
+
* Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
|
|
40330
|
+
* @summary Attach a cluster to the Qovery Operator execution path
|
|
40331
|
+
* @param {string} organizationId Organization ID
|
|
40332
|
+
* @param {string} clusterId Cluster ID
|
|
40333
|
+
* @param {*} [options] Override http request option.
|
|
40334
|
+
* @throws {RequiredError}
|
|
40335
|
+
*/
|
|
40336
|
+
async attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
40337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attachClusterOperator(organizationId, clusterId, options);
|
|
40338
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40339
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.attachClusterOperator']?.[localVarOperationServerIndex]?.url;
|
|
40340
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40341
|
+
},
|
|
40342
|
+
/**
|
|
40343
|
+
* Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
|
|
40344
|
+
* @summary Get the Qovery Operator bootstrap
|
|
40345
|
+
* @param {string} organizationId Organization ID
|
|
40346
|
+
* @param {string} clusterId Cluster ID
|
|
40347
|
+
* @param {*} [options] Override http request option.
|
|
40348
|
+
* @throws {RequiredError}
|
|
40349
|
+
*/
|
|
40350
|
+
async getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorBootstrapResponse>> {
|
|
40351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterOperatorBootstrap(organizationId, clusterId, options);
|
|
40352
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40353
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.getClusterOperatorBootstrap']?.[localVarOperationServerIndex]?.url;
|
|
40354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40355
|
+
},
|
|
40356
|
+
/**
|
|
40357
|
+
* Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
|
|
40358
|
+
* @summary Get the Qovery Operator status for a cluster
|
|
40359
|
+
* @param {string} organizationId Organization ID
|
|
40360
|
+
* @param {string} clusterId Cluster ID
|
|
40361
|
+
* @param {*} [options] Override http request option.
|
|
40362
|
+
* @throws {RequiredError}
|
|
40363
|
+
*/
|
|
40364
|
+
async getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorStatusResponse>> {
|
|
40365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterOperatorStatus(organizationId, clusterId, options);
|
|
40366
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40367
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.getClusterOperatorStatus']?.[localVarOperationServerIndex]?.url;
|
|
40368
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40369
|
+
},
|
|
40370
|
+
/**
|
|
40371
|
+
* Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
|
|
40372
|
+
* @summary List the Qovery Operator fleet
|
|
40373
|
+
* @param {*} [options] Override http request option.
|
|
40374
|
+
* @throws {RequiredError}
|
|
40375
|
+
*/
|
|
40376
|
+
async listClusterOperatorFleet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterOperatorFleetInventoryResponseList>> {
|
|
40377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusterOperatorFleet(options);
|
|
40378
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40379
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterOperatorApi.listClusterOperatorFleet']?.[localVarOperationServerIndex]?.url;
|
|
40380
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40381
|
+
},
|
|
40382
|
+
}
|
|
40383
|
+
};
|
|
40384
|
+
|
|
40385
|
+
/**
|
|
40386
|
+
* ClusterOperatorApi - factory interface
|
|
40387
|
+
* @export
|
|
40388
|
+
*/
|
|
40389
|
+
export const ClusterOperatorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
40390
|
+
const localVarFp = ClusterOperatorApiFp(configuration)
|
|
40391
|
+
return {
|
|
40392
|
+
/**
|
|
40393
|
+
* Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
|
|
40394
|
+
* @summary Attach a cluster to the Qovery Operator execution path
|
|
40395
|
+
* @param {string} organizationId Organization ID
|
|
40396
|
+
* @param {string} clusterId Cluster ID
|
|
40397
|
+
* @param {*} [options] Override http request option.
|
|
40398
|
+
* @throws {RequiredError}
|
|
40399
|
+
*/
|
|
40400
|
+
attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
40401
|
+
return localVarFp.attachClusterOperator(organizationId, clusterId, options).then((request) => request(axios, basePath));
|
|
40402
|
+
},
|
|
40403
|
+
/**
|
|
40404
|
+
* Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
|
|
40405
|
+
* @summary Get the Qovery Operator bootstrap
|
|
40406
|
+
* @param {string} organizationId Organization ID
|
|
40407
|
+
* @param {string} clusterId Cluster ID
|
|
40408
|
+
* @param {*} [options] Override http request option.
|
|
40409
|
+
* @throws {RequiredError}
|
|
40410
|
+
*/
|
|
40411
|
+
getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorBootstrapResponse> {
|
|
40412
|
+
return localVarFp.getClusterOperatorBootstrap(organizationId, clusterId, options).then((request) => request(axios, basePath));
|
|
40413
|
+
},
|
|
40414
|
+
/**
|
|
40415
|
+
* Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
|
|
40416
|
+
* @summary Get the Qovery Operator status for a cluster
|
|
40417
|
+
* @param {string} organizationId Organization ID
|
|
40418
|
+
* @param {string} clusterId Cluster ID
|
|
40419
|
+
* @param {*} [options] Override http request option.
|
|
40420
|
+
* @throws {RequiredError}
|
|
40421
|
+
*/
|
|
40422
|
+
getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorStatusResponse> {
|
|
40423
|
+
return localVarFp.getClusterOperatorStatus(organizationId, clusterId, options).then((request) => request(axios, basePath));
|
|
40424
|
+
},
|
|
40425
|
+
/**
|
|
40426
|
+
* Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
|
|
40427
|
+
* @summary List the Qovery Operator fleet
|
|
40428
|
+
* @param {*} [options] Override http request option.
|
|
40429
|
+
* @throws {RequiredError}
|
|
40430
|
+
*/
|
|
40431
|
+
listClusterOperatorFleet(options?: RawAxiosRequestConfig): AxiosPromise<ClusterOperatorFleetInventoryResponseList> {
|
|
40432
|
+
return localVarFp.listClusterOperatorFleet(options).then((request) => request(axios, basePath));
|
|
40433
|
+
},
|
|
40434
|
+
};
|
|
40435
|
+
};
|
|
40436
|
+
|
|
40437
|
+
/**
|
|
40438
|
+
* ClusterOperatorApi - object-oriented interface
|
|
40439
|
+
* @export
|
|
40440
|
+
* @class ClusterOperatorApi
|
|
40441
|
+
* @extends {BaseAPI}
|
|
40442
|
+
*/
|
|
40443
|
+
export class ClusterOperatorApi extends BaseAPI {
|
|
40444
|
+
/**
|
|
40445
|
+
* Marks a self-managed cluster for routing through the Qovery Operator. This records the routing intent only; it does not install the Operator or prove that it is connected. Cluster administrator permission is required.
|
|
40446
|
+
* @summary Attach a cluster to the Qovery Operator execution path
|
|
40447
|
+
* @param {string} organizationId Organization ID
|
|
40448
|
+
* @param {string} clusterId Cluster ID
|
|
40449
|
+
* @param {*} [options] Override http request option.
|
|
40450
|
+
* @throws {RequiredError}
|
|
40451
|
+
* @memberof ClusterOperatorApi
|
|
40452
|
+
*/
|
|
40453
|
+
public attachClusterOperator(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
|
|
40454
|
+
return ClusterOperatorApiFp(this.configuration).attachClusterOperator(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
40455
|
+
}
|
|
40456
|
+
|
|
40457
|
+
/**
|
|
40458
|
+
* Compiles the Helm chart coordinates, values file, and ready-to-run Helm command for a self-managed cluster. The response contains cluster credentials and must be handled as sensitive data. Cluster administrator permission is required.
|
|
40459
|
+
* @summary Get the Qovery Operator bootstrap
|
|
40460
|
+
* @param {string} organizationId Organization ID
|
|
40461
|
+
* @param {string} clusterId Cluster ID
|
|
40462
|
+
* @param {*} [options] Override http request option.
|
|
40463
|
+
* @throws {RequiredError}
|
|
40464
|
+
* @memberof ClusterOperatorApi
|
|
40465
|
+
*/
|
|
40466
|
+
public getClusterOperatorBootstrap(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
|
|
40467
|
+
return ClusterOperatorApiFp(this.configuration).getClusterOperatorBootstrap(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
40468
|
+
}
|
|
40469
|
+
|
|
40470
|
+
/**
|
|
40471
|
+
* Returns heartbeat freshness and the image, chart, and protocol versions last reported by the running Operator, together with the current bootstrap targets and a stable drift status. A false operator_connected value means that no heartbeat was received within the presence window. The status is a display-version drift verdict, not an immutable release compatibility decision. Cluster viewer permission is sufficient.
|
|
40472
|
+
* @summary Get the Qovery Operator status for a cluster
|
|
40473
|
+
* @param {string} organizationId Organization ID
|
|
40474
|
+
* @param {string} clusterId Cluster ID
|
|
40475
|
+
* @param {*} [options] Override http request option.
|
|
40476
|
+
* @throws {RequiredError}
|
|
40477
|
+
* @memberof ClusterOperatorApi
|
|
40478
|
+
*/
|
|
40479
|
+
public getClusterOperatorStatus(organizationId: string, clusterId: string, options?: RawAxiosRequestConfig) {
|
|
40480
|
+
return ClusterOperatorApiFp(this.configuration).getClusterOperatorStatus(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
40481
|
+
}
|
|
40482
|
+
|
|
40483
|
+
/**
|
|
40484
|
+
* Returns every self-managed cluster with its attachment, heartbeat freshness, desired and reported image and Helm chart versions, and a stable drift status. This operation is restricted to Qovery administrators and is the source for internal fleet CLI and dashboard consumers.
|
|
40485
|
+
* @summary List the Qovery Operator fleet
|
|
40486
|
+
* @param {*} [options] Override http request option.
|
|
40487
|
+
* @throws {RequiredError}
|
|
40488
|
+
* @memberof ClusterOperatorApi
|
|
40489
|
+
*/
|
|
40490
|
+
public listClusterOperatorFleet(options?: RawAxiosRequestConfig) {
|
|
40491
|
+
return ClusterOperatorApiFp(this.configuration).listClusterOperatorFleet(options).then((request) => request(this.axios, this.basePath));
|
|
40492
|
+
}
|
|
40493
|
+
}
|
|
40494
|
+
|
|
40495
|
+
|
|
40496
|
+
|
|
39836
40497
|
/**
|
|
39837
40498
|
* ClustersApi - axios parameter creator
|
|
39838
40499
|
* @export
|