qovery-typescript-axios 1.1.853 → 1.1.855

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
@@ -2151,7 +2151,7 @@ export interface AvailableHelmRepositoryResponseList {
2151
2151
  * @type AwsCredentialsRequest
2152
2152
  * @export
2153
2153
  */
2154
- export type AwsCredentialsRequest = AwsRoleCredentialsRequest | AwsStaticCredentialsRequest;
2154
+ export type AwsCredentialsRequest = { type: 'AWS_ROLE' } & AwsRoleCredentialsRequest | { type: 'AWS_STATIC' } & AwsStaticCredentialsRequest | { type: 'EKS_ANYWHERE_VSPHERE_ROLE' } & EksAnywhereVsphereRoleCredentialsRequest | { type: 'EKS_ANYWHERE_VSPHERE_STATIC' } & EksAnywhereVsphereStaticCredentialsRequest;
2155
2155
 
2156
2156
  /**
2157
2157
  *
@@ -2197,6 +2197,12 @@ export type AwsRoleClusterCredentialsObjectTypeEnum = typeof AwsRoleClusterCrede
2197
2197
  * @interface AwsRoleCredentialsRequest
2198
2198
  */
2199
2199
  export interface AwsRoleCredentialsRequest {
2200
+ /**
2201
+ *
2202
+ * @type {string}
2203
+ * @memberof AwsRoleCredentialsRequest
2204
+ */
2205
+ 'type': AwsRoleCredentialsRequestTypeEnum;
2200
2206
  /**
2201
2207
  *
2202
2208
  * @type {string}
@@ -2210,6 +2216,13 @@ export interface AwsRoleCredentialsRequest {
2210
2216
  */
2211
2217
  'role_arn': string;
2212
2218
  }
2219
+
2220
+ export const AwsRoleCredentialsRequestTypeEnum = {
2221
+ AWS_ROLE: 'AWS_ROLE'
2222
+ } as const;
2223
+
2224
+ export type AwsRoleCredentialsRequestTypeEnum = typeof AwsRoleCredentialsRequestTypeEnum[keyof typeof AwsRoleCredentialsRequestTypeEnum];
2225
+
2213
2226
  /**
2214
2227
  *
2215
2228
  * @export
@@ -2254,6 +2267,12 @@ export type AwsStaticClusterCredentialsObjectTypeEnum = typeof AwsStaticClusterC
2254
2267
  * @interface AwsStaticCredentialsRequest
2255
2268
  */
2256
2269
  export interface AwsStaticCredentialsRequest {
2270
+ /**
2271
+ *
2272
+ * @type {string}
2273
+ * @memberof AwsStaticCredentialsRequest
2274
+ */
2275
+ 'type': AwsStaticCredentialsRequestTypeEnum;
2257
2276
  /**
2258
2277
  *
2259
2278
  * @type {string}
@@ -2273,6 +2292,13 @@ export interface AwsStaticCredentialsRequest {
2273
2292
  */
2274
2293
  'secret_access_key': string;
2275
2294
  }
2295
+
2296
+ export const AwsStaticCredentialsRequestTypeEnum = {
2297
+ AWS_STATIC: 'AWS_STATIC'
2298
+ } as const;
2299
+
2300
+ export type AwsStaticCredentialsRequestTypeEnum = typeof AwsStaticCredentialsRequestTypeEnum[keyof typeof AwsStaticCredentialsRequestTypeEnum];
2301
+
2276
2302
  /**
2277
2303
  *
2278
2304
  * @export
@@ -3618,7 +3644,7 @@ export interface ClusterCloudProviderInfoRequest {
3618
3644
  * @type ClusterCredentials
3619
3645
  * @export
3620
3646
  */
3621
- export type ClusterCredentials = { object_type: 'AWS' } & AwsStaticClusterCredentials | { object_type: 'AWS_ROLE' } & AwsRoleClusterCredentials | { object_type: 'AZURE' } & AzureStaticClusterCredentials | { object_type: 'GCP' } & GcpStaticClusterCredentials | { object_type: 'OTHER' } & GenericClusterCredentials | { object_type: 'SCW' } & ScalewayClusterCredentials;
3647
+ export type ClusterCredentials = { object_type: 'AWS' } & AwsStaticClusterCredentials | { object_type: 'AWS_ROLE' } & AwsRoleClusterCredentials | { object_type: 'AZURE' } & AzureStaticClusterCredentials | { object_type: 'EKS_ANYWHERE_VSPHERE' } & EksAnywhereVsphereClusterCredentials | { object_type: 'GCP' } & GcpStaticClusterCredentials | { object_type: 'OTHER' } & GenericClusterCredentials | { object_type: 'SCW' } & ScalewayClusterCredentials;
3622
3648
 
3623
3649
  /**
3624
3650
  *
@@ -3702,6 +3728,83 @@ export interface ClusterEksAnywhereGitRepository {
3702
3728
  }
3703
3729
 
3704
3730
 
3731
+ /**
3732
+ *
3733
+ * @export
3734
+ * @interface ClusterEnvironmentResponse
3735
+ */
3736
+ export interface ClusterEnvironmentResponse {
3737
+ /**
3738
+ *
3739
+ * @type {string}
3740
+ * @memberof ClusterEnvironmentResponse
3741
+ */
3742
+ 'environment_id': string;
3743
+ /**
3744
+ *
3745
+ * @type {string}
3746
+ * @memberof ClusterEnvironmentResponse
3747
+ */
3748
+ 'environment_name': string;
3749
+ /**
3750
+ *
3751
+ * @type {string}
3752
+ * @memberof ClusterEnvironmentResponse
3753
+ */
3754
+ 'project_id': string;
3755
+ /**
3756
+ *
3757
+ * @type {string}
3758
+ * @memberof ClusterEnvironmentResponse
3759
+ */
3760
+ 'project_name': string;
3761
+ /**
3762
+ *
3763
+ * @type {Array<ClusterEnvironmentServiceResponse>}
3764
+ * @memberof ClusterEnvironmentResponse
3765
+ */
3766
+ 'services': Array<ClusterEnvironmentServiceResponse>;
3767
+ }
3768
+ /**
3769
+ *
3770
+ * @export
3771
+ * @interface ClusterEnvironmentResponseList
3772
+ */
3773
+ export interface ClusterEnvironmentResponseList {
3774
+ /**
3775
+ *
3776
+ * @type {Array<ClusterEnvironmentResponse>}
3777
+ * @memberof ClusterEnvironmentResponseList
3778
+ */
3779
+ 'results'?: Array<ClusterEnvironmentResponse>;
3780
+ }
3781
+ /**
3782
+ *
3783
+ * @export
3784
+ * @interface ClusterEnvironmentServiceResponse
3785
+ */
3786
+ export interface ClusterEnvironmentServiceResponse {
3787
+ /**
3788
+ *
3789
+ * @type {string}
3790
+ * @memberof ClusterEnvironmentServiceResponse
3791
+ */
3792
+ 'id': string;
3793
+ /**
3794
+ *
3795
+ * @type {string}
3796
+ * @memberof ClusterEnvironmentServiceResponse
3797
+ */
3798
+ 'name': string;
3799
+ /**
3800
+ *
3801
+ * @type {LinkedServiceTypeEnum}
3802
+ * @memberof ClusterEnvironmentServiceResponse
3803
+ */
3804
+ 'type': LinkedServiceTypeEnum;
3805
+ }
3806
+
3807
+
3705
3808
  /**
3706
3809
  *
3707
3810
  * @export
@@ -9006,6 +9109,150 @@ export interface EksAnywhereCommitResponse {
9006
9109
  */
9007
9110
  'commit_id': string;
9008
9111
  }
9112
+ /**
9113
+ *
9114
+ * @export
9115
+ * @interface EksAnywhereVsphereClusterCredentials
9116
+ */
9117
+ export interface EksAnywhereVsphereClusterCredentials {
9118
+ /**
9119
+ *
9120
+ * @type {string}
9121
+ * @memberof EksAnywhereVsphereClusterCredentials
9122
+ */
9123
+ 'id': string;
9124
+ /**
9125
+ *
9126
+ * @type {string}
9127
+ * @memberof EksAnywhereVsphereClusterCredentials
9128
+ */
9129
+ 'name': string;
9130
+ /**
9131
+ *
9132
+ * @type {string}
9133
+ * @memberof EksAnywhereVsphereClusterCredentials
9134
+ */
9135
+ 'vsphere_user': string;
9136
+ /**
9137
+ *
9138
+ * @type {string}
9139
+ * @memberof EksAnywhereVsphereClusterCredentials
9140
+ */
9141
+ 'access_key_id'?: string | null;
9142
+ /**
9143
+ *
9144
+ * @type {string}
9145
+ * @memberof EksAnywhereVsphereClusterCredentials
9146
+ */
9147
+ 'role_arn'?: string | null;
9148
+ /**
9149
+ *
9150
+ * @type {string}
9151
+ * @memberof EksAnywhereVsphereClusterCredentials
9152
+ */
9153
+ 'object_type': EksAnywhereVsphereClusterCredentialsObjectTypeEnum;
9154
+ }
9155
+
9156
+ export const EksAnywhereVsphereClusterCredentialsObjectTypeEnum = {
9157
+ EKS_ANYWHERE_VSPHERE: 'EKS_ANYWHERE_VSPHERE'
9158
+ } as const;
9159
+
9160
+ export type EksAnywhereVsphereClusterCredentialsObjectTypeEnum = typeof EksAnywhereVsphereClusterCredentialsObjectTypeEnum[keyof typeof EksAnywhereVsphereClusterCredentialsObjectTypeEnum];
9161
+
9162
+ /**
9163
+ *
9164
+ * @export
9165
+ * @interface EksAnywhereVsphereRoleCredentialsRequest
9166
+ */
9167
+ export interface EksAnywhereVsphereRoleCredentialsRequest {
9168
+ /**
9169
+ *
9170
+ * @type {string}
9171
+ * @memberof EksAnywhereVsphereRoleCredentialsRequest
9172
+ */
9173
+ 'type': EksAnywhereVsphereRoleCredentialsRequestTypeEnum;
9174
+ /**
9175
+ *
9176
+ * @type {string}
9177
+ * @memberof EksAnywhereVsphereRoleCredentialsRequest
9178
+ */
9179
+ 'name': string;
9180
+ /**
9181
+ *
9182
+ * @type {string}
9183
+ * @memberof EksAnywhereVsphereRoleCredentialsRequest
9184
+ */
9185
+ 'vsphere_user': string;
9186
+ /**
9187
+ *
9188
+ * @type {string}
9189
+ * @memberof EksAnywhereVsphereRoleCredentialsRequest
9190
+ */
9191
+ 'vsphere_password': string;
9192
+ /**
9193
+ *
9194
+ * @type {string}
9195
+ * @memberof EksAnywhereVsphereRoleCredentialsRequest
9196
+ */
9197
+ 'role_arn': string;
9198
+ }
9199
+
9200
+ export const EksAnywhereVsphereRoleCredentialsRequestTypeEnum = {
9201
+ EKS_ANYWHERE_VSPHERE_ROLE: 'EKS_ANYWHERE_VSPHERE_ROLE'
9202
+ } as const;
9203
+
9204
+ export type EksAnywhereVsphereRoleCredentialsRequestTypeEnum = typeof EksAnywhereVsphereRoleCredentialsRequestTypeEnum[keyof typeof EksAnywhereVsphereRoleCredentialsRequestTypeEnum];
9205
+
9206
+ /**
9207
+ *
9208
+ * @export
9209
+ * @interface EksAnywhereVsphereStaticCredentialsRequest
9210
+ */
9211
+ export interface EksAnywhereVsphereStaticCredentialsRequest {
9212
+ /**
9213
+ *
9214
+ * @type {string}
9215
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9216
+ */
9217
+ 'type': EksAnywhereVsphereStaticCredentialsRequestTypeEnum;
9218
+ /**
9219
+ *
9220
+ * @type {string}
9221
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9222
+ */
9223
+ 'name': string;
9224
+ /**
9225
+ *
9226
+ * @type {string}
9227
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9228
+ */
9229
+ 'vsphere_user': string;
9230
+ /**
9231
+ *
9232
+ * @type {string}
9233
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9234
+ */
9235
+ 'vsphere_password': string;
9236
+ /**
9237
+ *
9238
+ * @type {string}
9239
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9240
+ */
9241
+ 'access_key_id': string;
9242
+ /**
9243
+ *
9244
+ * @type {string}
9245
+ * @memberof EksAnywhereVsphereStaticCredentialsRequest
9246
+ */
9247
+ 'secret_access_key': string;
9248
+ }
9249
+
9250
+ export const EksAnywhereVsphereStaticCredentialsRequestTypeEnum = {
9251
+ EKS_ANYWHERE_VSPHERE_STATIC: 'EKS_ANYWHERE_VSPHERE_STATIC'
9252
+ } as const;
9253
+
9254
+ export type EksAnywhereVsphereStaticCredentialsRequestTypeEnum = typeof EksAnywhereVsphereStaticCredentialsRequestTypeEnum[keyof typeof EksAnywhereVsphereStaticCredentialsRequestTypeEnum];
9255
+
9009
9256
  /**
9010
9257
  *
9011
9258
  * @export
@@ -33651,6 +33898,47 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
33651
33898
 
33652
33899
 
33653
33900
 
33901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33903
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33904
+
33905
+ return {
33906
+ url: toPathString(localVarUrlObj),
33907
+ options: localVarRequestOptions,
33908
+ };
33909
+ },
33910
+ /**
33911
+ *
33912
+ * @summary List environments services by cluster id
33913
+ * @param {string} clusterId
33914
+ * @param {*} [options] Override http request option.
33915
+ * @throws {RequiredError}
33916
+ */
33917
+ getEnvironmentsByClusterId: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33918
+ // verify required parameter 'clusterId' is not null or undefined
33919
+ assertParamExists('getEnvironmentsByClusterId', 'clusterId', clusterId)
33920
+ const localVarPath = `/cluster/{clusterId}/environments`
33921
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
33922
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33923
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33924
+ let baseOptions;
33925
+ if (configuration) {
33926
+ baseOptions = configuration.baseOptions;
33927
+ }
33928
+
33929
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33930
+ const localVarHeaderParameter = {} as any;
33931
+ const localVarQueryParameter = {} as any;
33932
+
33933
+ // authentication ApiKeyAuth required
33934
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
33935
+
33936
+ // authentication bearerAuth required
33937
+ // http bearer authentication required
33938
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33939
+
33940
+
33941
+
33654
33942
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33655
33943
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33656
33944
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -34541,6 +34829,19 @@ export const ClustersApiFp = function(configuration?: Configuration) {
34541
34829
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getDefaultClusterAdvancedSettings']?.[localVarOperationServerIndex]?.url;
34542
34830
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34543
34831
  },
34832
+ /**
34833
+ *
34834
+ * @summary List environments services by cluster id
34835
+ * @param {string} clusterId
34836
+ * @param {*} [options] Override http request option.
34837
+ * @throws {RequiredError}
34838
+ */
34839
+ async getEnvironmentsByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterEnvironmentResponseList>> {
34840
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentsByClusterId(clusterId, options);
34841
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34842
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.getEnvironmentsByClusterId']?.[localVarOperationServerIndex]?.url;
34843
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34844
+ },
34544
34845
  /**
34545
34846
  *
34546
34847
  * @summary Get cluster helm values for self managed installation
@@ -34944,6 +35245,16 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
34944
35245
  getDefaultClusterAdvancedSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClusterAdvancedSettings> {
34945
35246
  return localVarFp.getDefaultClusterAdvancedSettings(options).then((request) => request(axios, basePath));
34946
35247
  },
35248
+ /**
35249
+ *
35250
+ * @summary List environments services by cluster id
35251
+ * @param {string} clusterId
35252
+ * @param {*} [options] Override http request option.
35253
+ * @throws {RequiredError}
35254
+ */
35255
+ getEnvironmentsByClusterId(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterEnvironmentResponseList> {
35256
+ return localVarFp.getEnvironmentsByClusterId(clusterId, options).then((request) => request(axios, basePath));
35257
+ },
34947
35258
  /**
34948
35259
  *
34949
35260
  * @summary Get cluster helm values for self managed installation
@@ -35335,6 +35646,18 @@ export class ClustersApi extends BaseAPI {
35335
35646
  return ClustersApiFp(this.configuration).getDefaultClusterAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
35336
35647
  }
35337
35648
 
35649
+ /**
35650
+ *
35651
+ * @summary List environments services by cluster id
35652
+ * @param {string} clusterId
35653
+ * @param {*} [options] Override http request option.
35654
+ * @throws {RequiredError}
35655
+ * @memberof ClustersApi
35656
+ */
35657
+ public getEnvironmentsByClusterId(clusterId: string, options?: RawAxiosRequestConfig) {
35658
+ return ClustersApiFp(this.configuration).getEnvironmentsByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
35659
+ }
35660
+
35338
35661
  /**
35339
35662
  *
35340
35663
  * @summary Get cluster helm values for self managed installation