qovery-typescript-axios 1.1.473 → 1.1.475

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
@@ -7596,6 +7596,56 @@ export interface GenericObjectCurrentCost {
7596
7596
  */
7597
7597
  'cost': Cost;
7598
7598
  }
7599
+ /**
7600
+ *
7601
+ * @export
7602
+ * @interface GetClusterTokenByClusterId200Response
7603
+ */
7604
+ export interface GetClusterTokenByClusterId200Response {
7605
+ /**
7606
+ *
7607
+ * @type {string}
7608
+ * @memberof GetClusterTokenByClusterId200Response
7609
+ */
7610
+ 'apiVersion': string;
7611
+ /**
7612
+ *
7613
+ * @type {string}
7614
+ * @memberof GetClusterTokenByClusterId200Response
7615
+ */
7616
+ 'kind': string;
7617
+ /**
7618
+ *
7619
+ * @type {object}
7620
+ * @memberof GetClusterTokenByClusterId200Response
7621
+ */
7622
+ 'spec': object;
7623
+ /**
7624
+ *
7625
+ * @type {GetClusterTokenByClusterId200ResponseStatus}
7626
+ * @memberof GetClusterTokenByClusterId200Response
7627
+ */
7628
+ 'status': GetClusterTokenByClusterId200ResponseStatus;
7629
+ }
7630
+ /**
7631
+ *
7632
+ * @export
7633
+ * @interface GetClusterTokenByClusterId200ResponseStatus
7634
+ */
7635
+ export interface GetClusterTokenByClusterId200ResponseStatus {
7636
+ /**
7637
+ *
7638
+ * @type {string}
7639
+ * @memberof GetClusterTokenByClusterId200ResponseStatus
7640
+ */
7641
+ 'token': string;
7642
+ /**
7643
+ *
7644
+ * @type {string}
7645
+ * @memberof GetClusterTokenByClusterId200ResponseStatus
7646
+ */
7647
+ 'expirationTimestamp': string;
7648
+ }
7599
7649
  /**
7600
7650
  *
7601
7651
  * @export
@@ -10088,6 +10138,101 @@ export const KubernetesEnum = {
10088
10138
  export type KubernetesEnum = typeof KubernetesEnum[keyof typeof KubernetesEnum];
10089
10139
 
10090
10140
 
10141
+ /**
10142
+ *
10143
+ * @export
10144
+ * @interface KubernetesMetadata
10145
+ */
10146
+ export interface KubernetesMetadata {
10147
+ /**
10148
+ *
10149
+ * @type {string}
10150
+ * @memberof KubernetesMetadata
10151
+ */
10152
+ 'name'?: string;
10153
+ }
10154
+ /**
10155
+ *
10156
+ * @export
10157
+ * @interface KubernetesSelector
10158
+ */
10159
+ export interface KubernetesSelector {
10160
+ /**
10161
+ *
10162
+ * @type {string}
10163
+ * @memberof KubernetesSelector
10164
+ */
10165
+ 'key': string;
10166
+ /**
10167
+ *
10168
+ * @type {string}
10169
+ * @memberof KubernetesSelector
10170
+ */
10171
+ 'value': string;
10172
+ }
10173
+ /**
10174
+ *
10175
+ * @export
10176
+ * @interface KubernetesService
10177
+ */
10178
+ export interface KubernetesService {
10179
+ /**
10180
+ *
10181
+ * @type {KubernetesMetadata}
10182
+ * @memberof KubernetesService
10183
+ */
10184
+ 'metadata': KubernetesMetadata;
10185
+ /**
10186
+ *
10187
+ * @type {KubernetesServiceSpec}
10188
+ * @memberof KubernetesService
10189
+ */
10190
+ 'service_spec': KubernetesServiceSpec;
10191
+ }
10192
+ /**
10193
+ *
10194
+ * @export
10195
+ * @interface KubernetesServicePort
10196
+ */
10197
+ export interface KubernetesServicePort {
10198
+ /**
10199
+ *
10200
+ * @type {string}
10201
+ * @memberof KubernetesServicePort
10202
+ */
10203
+ 'name'?: string;
10204
+ /**
10205
+ *
10206
+ * @type {number}
10207
+ * @memberof KubernetesServicePort
10208
+ */
10209
+ 'port': number;
10210
+ }
10211
+ /**
10212
+ *
10213
+ * @export
10214
+ * @interface KubernetesServiceSpec
10215
+ */
10216
+ export interface KubernetesServiceSpec {
10217
+ /**
10218
+ *
10219
+ * @type {string}
10220
+ * @memberof KubernetesServiceSpec
10221
+ */
10222
+ 'type'?: string;
10223
+ /**
10224
+ *
10225
+ * @type {Array<KubernetesServicePort>}
10226
+ * @memberof KubernetesServiceSpec
10227
+ */
10228
+ 'ports'?: Array<KubernetesServicePort>;
10229
+ /**
10230
+ *
10231
+ * @type {Array<KubernetesSelector>}
10232
+ * @memberof KubernetesServiceSpec
10233
+ */
10234
+ 'selectors'?: Array<KubernetesSelector>;
10235
+ }
10091
10236
  /**
10092
10237
  *
10093
10238
  * @export
@@ -23803,10 +23948,11 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
23803
23948
  * @summary Get cluster kubeconfig
23804
23949
  * @param {string} organizationId Organization ID
23805
23950
  * @param {string} clusterId Cluster ID
23951
+ * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
23806
23952
  * @param {*} [options] Override http request option.
23807
23953
  * @throws {RequiredError}
23808
23954
  */
23809
- getClusterKubeconfig: async (organizationId: string, clusterId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23955
+ getClusterKubeconfig: async (organizationId: string, clusterId: string, withTokenFromCli?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
23810
23956
  // verify required parameter 'organizationId' is not null or undefined
23811
23957
  assertParamExists('getClusterKubeconfig', 'organizationId', organizationId)
23812
23958
  // verify required parameter 'clusterId' is not null or undefined
@@ -23832,6 +23978,10 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
23832
23978
  // http bearer authentication required
23833
23979
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
23834
23980
 
23981
+ if (withTokenFromCli !== undefined) {
23982
+ localVarQueryParameter['withTokenFromCli'] = withTokenFromCli;
23983
+ }
23984
+
23835
23985
 
23836
23986
 
23837
23987
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -24442,11 +24592,12 @@ export const ClustersApiFp = function(configuration?: Configuration) {
24442
24592
  * @summary Get cluster kubeconfig
24443
24593
  * @param {string} organizationId Organization ID
24444
24594
  * @param {string} clusterId Cluster ID
24595
+ * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
24445
24596
  * @param {*} [options] Override http request option.
24446
24597
  * @throws {RequiredError}
24447
24598
  */
24448
- async getClusterKubeconfig(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
24449
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, options);
24599
+ async getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
24600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options);
24450
24601
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
24451
24602
  },
24452
24603
  /**
@@ -24686,11 +24837,12 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
24686
24837
  * @summary Get cluster kubeconfig
24687
24838
  * @param {string} organizationId Organization ID
24688
24839
  * @param {string} clusterId Cluster ID
24840
+ * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
24689
24841
  * @param {*} [options] Override http request option.
24690
24842
  * @throws {RequiredError}
24691
24843
  */
24692
- getClusterKubeconfig(organizationId: string, clusterId: string, options?: any): AxiosPromise<string> {
24693
- return localVarFp.getClusterKubeconfig(organizationId, clusterId, options).then((request) => request(axios, basePath));
24844
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: any): AxiosPromise<string> {
24845
+ return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(axios, basePath));
24694
24846
  },
24695
24847
  /**
24696
24848
  *
@@ -24934,12 +25086,13 @@ export class ClustersApi extends BaseAPI {
24934
25086
  * @summary Get cluster kubeconfig
24935
25087
  * @param {string} organizationId Organization ID
24936
25088
  * @param {string} clusterId Cluster ID
25089
+ * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
24937
25090
  * @param {*} [options] Override http request option.
24938
25091
  * @throws {RequiredError}
24939
25092
  * @memberof ClustersApi
24940
25093
  */
24941
- public getClusterKubeconfig(organizationId: string, clusterId: string, options?: AxiosRequestConfig) {
24942
- return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
25094
+ public getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: AxiosRequestConfig) {
25095
+ return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(this.axios, this.basePath));
24943
25096
  }
24944
25097
 
24945
25098
  /**
@@ -31596,6 +31749,193 @@ export class DatabasesApi extends BaseAPI {
31596
31749
 
31597
31750
 
31598
31751
 
31752
+ /**
31753
+ * DefaultApi - axios parameter creator
31754
+ * @export
31755
+ */
31756
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
31757
+ return {
31758
+ /**
31759
+ *
31760
+ * @summary Get cluster token by clusterId
31761
+ * @param {string} clusterId
31762
+ * @param {*} [options] Override http request option.
31763
+ * @throws {RequiredError}
31764
+ */
31765
+ getClusterTokenByClusterId: async (clusterId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31766
+ // verify required parameter 'clusterId' is not null or undefined
31767
+ assertParamExists('getClusterTokenByClusterId', 'clusterId', clusterId)
31768
+ const localVarPath = `/cluster/{clusterId}/token`
31769
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
31770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31772
+ let baseOptions;
31773
+ if (configuration) {
31774
+ baseOptions = configuration.baseOptions;
31775
+ }
31776
+
31777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31778
+ const localVarHeaderParameter = {} as any;
31779
+ const localVarQueryParameter = {} as any;
31780
+
31781
+ // authentication ApiKeyAuth required
31782
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
31783
+
31784
+ // authentication bearerAuth required
31785
+ // http bearer authentication required
31786
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31787
+
31788
+
31789
+
31790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31792
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31793
+
31794
+ return {
31795
+ url: toPathString(localVarUrlObj),
31796
+ options: localVarRequestOptions,
31797
+ };
31798
+ },
31799
+ /**
31800
+ * Get helm kubernetes services
31801
+ * @summary Get helm kubernetes services
31802
+ * @param {string} helmId
31803
+ * @param {*} [options] Override http request option.
31804
+ * @throws {RequiredError}
31805
+ */
31806
+ getHelmKubernetesServices: async (helmId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
31807
+ // verify required parameter 'helmId' is not null or undefined
31808
+ assertParamExists('getHelmKubernetesServices', 'helmId', helmId)
31809
+ const localVarPath = `/helm/{helmId}/listServices`
31810
+ .replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
31811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31812
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31813
+ let baseOptions;
31814
+ if (configuration) {
31815
+ baseOptions = configuration.baseOptions;
31816
+ }
31817
+
31818
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31819
+ const localVarHeaderParameter = {} as any;
31820
+ const localVarQueryParameter = {} as any;
31821
+
31822
+ // authentication ApiKeyAuth required
31823
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
31824
+
31825
+ // authentication bearerAuth required
31826
+ // http bearer authentication required
31827
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31828
+
31829
+
31830
+
31831
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31833
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31834
+
31835
+ return {
31836
+ url: toPathString(localVarUrlObj),
31837
+ options: localVarRequestOptions,
31838
+ };
31839
+ },
31840
+ }
31841
+ };
31842
+
31843
+ /**
31844
+ * DefaultApi - functional programming interface
31845
+ * @export
31846
+ */
31847
+ export const DefaultApiFp = function(configuration?: Configuration) {
31848
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
31849
+ return {
31850
+ /**
31851
+ *
31852
+ * @summary Get cluster token by clusterId
31853
+ * @param {string} clusterId
31854
+ * @param {*} [options] Override http request option.
31855
+ * @throws {RequiredError}
31856
+ */
31857
+ async getClusterTokenByClusterId(clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>> {
31858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, options);
31859
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31860
+ },
31861
+ /**
31862
+ * Get helm kubernetes services
31863
+ * @summary Get helm kubernetes services
31864
+ * @param {string} helmId
31865
+ * @param {*} [options] Override http request option.
31866
+ * @throws {RequiredError}
31867
+ */
31868
+ async getHelmKubernetesServices(helmId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KubernetesService>>> {
31869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmKubernetesServices(helmId, options);
31870
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31871
+ },
31872
+ }
31873
+ };
31874
+
31875
+ /**
31876
+ * DefaultApi - factory interface
31877
+ * @export
31878
+ */
31879
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31880
+ const localVarFp = DefaultApiFp(configuration)
31881
+ return {
31882
+ /**
31883
+ *
31884
+ * @summary Get cluster token by clusterId
31885
+ * @param {string} clusterId
31886
+ * @param {*} [options] Override http request option.
31887
+ * @throws {RequiredError}
31888
+ */
31889
+ getClusterTokenByClusterId(clusterId: string, options?: any): AxiosPromise<GetClusterTokenByClusterId200Response> {
31890
+ return localVarFp.getClusterTokenByClusterId(clusterId, options).then((request) => request(axios, basePath));
31891
+ },
31892
+ /**
31893
+ * Get helm kubernetes services
31894
+ * @summary Get helm kubernetes services
31895
+ * @param {string} helmId
31896
+ * @param {*} [options] Override http request option.
31897
+ * @throws {RequiredError}
31898
+ */
31899
+ getHelmKubernetesServices(helmId: string, options?: any): AxiosPromise<Array<KubernetesService>> {
31900
+ return localVarFp.getHelmKubernetesServices(helmId, options).then((request) => request(axios, basePath));
31901
+ },
31902
+ };
31903
+ };
31904
+
31905
+ /**
31906
+ * DefaultApi - object-oriented interface
31907
+ * @export
31908
+ * @class DefaultApi
31909
+ * @extends {BaseAPI}
31910
+ */
31911
+ export class DefaultApi extends BaseAPI {
31912
+ /**
31913
+ *
31914
+ * @summary Get cluster token by clusterId
31915
+ * @param {string} clusterId
31916
+ * @param {*} [options] Override http request option.
31917
+ * @throws {RequiredError}
31918
+ * @memberof DefaultApi
31919
+ */
31920
+ public getClusterTokenByClusterId(clusterId: string, options?: AxiosRequestConfig) {
31921
+ return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
31922
+ }
31923
+
31924
+ /**
31925
+ * Get helm kubernetes services
31926
+ * @summary Get helm kubernetes services
31927
+ * @param {string} helmId
31928
+ * @param {*} [options] Override http request option.
31929
+ * @throws {RequiredError}
31930
+ * @memberof DefaultApi
31931
+ */
31932
+ public getHelmKubernetesServices(helmId: string, options?: AxiosRequestConfig) {
31933
+ return DefaultApiFp(this.configuration).getHelmKubernetesServices(helmId, options).then((request) => request(this.axios, this.basePath));
31934
+ }
31935
+ }
31936
+
31937
+
31938
+
31599
31939
  /**
31600
31940
  * DeploymentStageMainCallsApi - axios parameter creator
31601
31941
  * @export