qovery-typescript-axios 1.1.258 → 1.1.261

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
@@ -1918,6 +1918,48 @@ export interface ClusterAdvancedSettings {
1918
1918
  * @memberof ClusterAdvancedSettings
1919
1919
  */
1920
1920
  'registry.mirroring_mode'?: RegistryMirroringModeEnum;
1921
+ /**
1922
+ * vcpu request in millicores
1923
+ * @type {number}
1924
+ * @memberof ClusterAdvancedSettings
1925
+ */
1926
+ 'nginx.vcpu.request_in_milli_cpu'?: number;
1927
+ /**
1928
+ * vcpu limit in millicores
1929
+ * @type {number}
1930
+ * @memberof ClusterAdvancedSettings
1931
+ */
1932
+ 'nginx.vcpu.limit_in_milli_cpu'?: number;
1933
+ /**
1934
+ * memory request in MiB
1935
+ * @type {number}
1936
+ * @memberof ClusterAdvancedSettings
1937
+ */
1938
+ 'nginx.memory.request_in_mib'?: number;
1939
+ /**
1940
+ * memory limit in MiB
1941
+ * @type {number}
1942
+ * @memberof ClusterAdvancedSettings
1943
+ */
1944
+ 'nginx.memory.limit_in_mib'?: number;
1945
+ /**
1946
+ * hpa cpu threshold in percentage
1947
+ * @type {number}
1948
+ * @memberof ClusterAdvancedSettings
1949
+ */
1950
+ 'nginx.hpa.cpu_utilization_percentage_threshold'?: number;
1951
+ /**
1952
+ * hpa minimum number of instances
1953
+ * @type {number}
1954
+ * @memberof ClusterAdvancedSettings
1955
+ */
1956
+ 'nginx.hpa.min_number_instances'?: number;
1957
+ /**
1958
+ * hpa maximum number of instances
1959
+ * @type {number}
1960
+ * @memberof ClusterAdvancedSettings
1961
+ */
1962
+ 'nginx.hpa.max_number_instances'?: number;
1921
1963
  }
1922
1964
 
1923
1965
  export const ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = {
@@ -7212,6 +7254,45 @@ export interface GitRepositoryResponseList {
7212
7254
  */
7213
7255
  'results'?: Array<GitRepository>;
7214
7256
  }
7257
+ /**
7258
+ *
7259
+ * @export
7260
+ * @interface GitTokenRequest
7261
+ */
7262
+ export interface GitTokenRequest {
7263
+ /**
7264
+ *
7265
+ * @type {string}
7266
+ * @memberof GitTokenRequest
7267
+ */
7268
+ 'name': string;
7269
+ /**
7270
+ *
7271
+ * @type {string}
7272
+ * @memberof GitTokenRequest
7273
+ */
7274
+ 'description'?: string;
7275
+ /**
7276
+ *
7277
+ * @type {GitProviderEnum}
7278
+ * @memberof GitTokenRequest
7279
+ */
7280
+ 'type': GitProviderEnum;
7281
+ /**
7282
+ * The token from your git provider side
7283
+ * @type {string}
7284
+ * @memberof GitTokenRequest
7285
+ */
7286
+ 'token': string;
7287
+ /**
7288
+ * Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service
7289
+ * @type {string}
7290
+ * @memberof GitTokenRequest
7291
+ */
7292
+ 'workspace'?: string;
7293
+ }
7294
+
7295
+
7215
7296
  /**
7216
7297
  *
7217
7298
  * @export
@@ -7254,6 +7335,12 @@ export interface GitTokenResponse {
7254
7335
  * @memberof GitTokenResponse
7255
7336
  */
7256
7337
  'type': GitProviderEnum;
7338
+ /**
7339
+ *
7340
+ * @type {string}
7341
+ * @memberof GitTokenResponse
7342
+ */
7343
+ 'expired_at'?: string;
7257
7344
  }
7258
7345
 
7259
7346
 
@@ -42916,6 +43003,51 @@ export class OrganizationEventApi extends BaseAPI {
42916
43003
  */
42917
43004
  export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
42918
43005
  return {
43006
+ /**
43007
+ * Create a new git token to be used as a git provider by a service
43008
+ * @summary Create a git token
43009
+ * @param {string} organizationId Organization ID
43010
+ * @param {GitTokenRequest} [gitTokenRequest]
43011
+ * @param {*} [options] Override http request option.
43012
+ * @throws {RequiredError}
43013
+ */
43014
+ createGitToken: async (organizationId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43015
+ // verify required parameter 'organizationId' is not null or undefined
43016
+ assertParamExists('createGitToken', 'organizationId', organizationId)
43017
+ const localVarPath = `/organization/{organizationId}/gitToken`
43018
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
43019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43020
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43021
+ let baseOptions;
43022
+ if (configuration) {
43023
+ baseOptions = configuration.baseOptions;
43024
+ }
43025
+
43026
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43027
+ const localVarHeaderParameter = {} as any;
43028
+ const localVarQueryParameter = {} as any;
43029
+
43030
+ // authentication ApiKeyAuth required
43031
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
43032
+
43033
+ // authentication bearerAuth required
43034
+ // http bearer authentication required
43035
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43036
+
43037
+
43038
+
43039
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43040
+
43041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43043
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43044
+ localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
43045
+
43046
+ return {
43047
+ url: toPathString(localVarUrlObj),
43048
+ options: localVarRequestOptions,
43049
+ };
43050
+ },
42919
43051
  /**
42920
43052
  *
42921
43053
  * @summary Create an organization
@@ -42957,6 +43089,51 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
42957
43089
  options: localVarRequestOptions,
42958
43090
  };
42959
43091
  },
43092
+ /**
43093
+ *
43094
+ * @summary Delete a git token
43095
+ * @param {string} organizationId Organization ID
43096
+ * @param {string} gitTokenId Git Token ID
43097
+ * @param {*} [options] Override http request option.
43098
+ * @throws {RequiredError}
43099
+ */
43100
+ deleteGitToken: async (organizationId: string, gitTokenId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43101
+ // verify required parameter 'organizationId' is not null or undefined
43102
+ assertParamExists('deleteGitToken', 'organizationId', organizationId)
43103
+ // verify required parameter 'gitTokenId' is not null or undefined
43104
+ assertParamExists('deleteGitToken', 'gitTokenId', gitTokenId)
43105
+ const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
43106
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
43107
+ .replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
43108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43110
+ let baseOptions;
43111
+ if (configuration) {
43112
+ baseOptions = configuration.baseOptions;
43113
+ }
43114
+
43115
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
43116
+ const localVarHeaderParameter = {} as any;
43117
+ const localVarQueryParameter = {} as any;
43118
+
43119
+ // authentication ApiKeyAuth required
43120
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
43121
+
43122
+ // authentication bearerAuth required
43123
+ // http bearer authentication required
43124
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43125
+
43126
+
43127
+
43128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43131
+
43132
+ return {
43133
+ url: toPathString(localVarUrlObj),
43134
+ options: localVarRequestOptions,
43135
+ };
43136
+ },
42960
43137
  /**
42961
43138
  * To delete an organization you must have the admin permission
42962
43139
  * @summary Delete an organization
@@ -42998,6 +43175,55 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
42998
43175
  options: localVarRequestOptions,
42999
43176
  };
43000
43177
  },
43178
+ /**
43179
+ *
43180
+ * @summary Edit a git token
43181
+ * @param {string} organizationId Organization ID
43182
+ * @param {string} gitTokenId Git Token ID
43183
+ * @param {GitTokenRequest} [gitTokenRequest]
43184
+ * @param {*} [options] Override http request option.
43185
+ * @throws {RequiredError}
43186
+ */
43187
+ editGitToken: async (organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43188
+ // verify required parameter 'organizationId' is not null or undefined
43189
+ assertParamExists('editGitToken', 'organizationId', organizationId)
43190
+ // verify required parameter 'gitTokenId' is not null or undefined
43191
+ assertParamExists('editGitToken', 'gitTokenId', gitTokenId)
43192
+ const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
43193
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
43194
+ .replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
43195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43197
+ let baseOptions;
43198
+ if (configuration) {
43199
+ baseOptions = configuration.baseOptions;
43200
+ }
43201
+
43202
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
43203
+ const localVarHeaderParameter = {} as any;
43204
+ const localVarQueryParameter = {} as any;
43205
+
43206
+ // authentication ApiKeyAuth required
43207
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
43208
+
43209
+ // authentication bearerAuth required
43210
+ // http bearer authentication required
43211
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43212
+
43213
+
43214
+
43215
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43216
+
43217
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43219
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43220
+ localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
43221
+
43222
+ return {
43223
+ url: toPathString(localVarUrlObj),
43224
+ options: localVarRequestOptions,
43225
+ };
43226
+ },
43001
43227
  /**
43002
43228
  * To edit an organization you must have the admin permission
43003
43229
  * @summary Edit an organization
@@ -43213,6 +43439,18 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
43213
43439
  export const OrganizationMainCallsApiFp = function(configuration?: Configuration) {
43214
43440
  const localVarAxiosParamCreator = OrganizationMainCallsApiAxiosParamCreator(configuration)
43215
43441
  return {
43442
+ /**
43443
+ * Create a new git token to be used as a git provider by a service
43444
+ * @summary Create a git token
43445
+ * @param {string} organizationId Organization ID
43446
+ * @param {GitTokenRequest} [gitTokenRequest]
43447
+ * @param {*} [options] Override http request option.
43448
+ * @throws {RequiredError}
43449
+ */
43450
+ async createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
43451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createGitToken(organizationId, gitTokenRequest, options);
43452
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43453
+ },
43216
43454
  /**
43217
43455
  *
43218
43456
  * @summary Create an organization
@@ -43224,6 +43462,18 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
43224
43462
  const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganization(organizationRequest, options);
43225
43463
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43226
43464
  },
43465
+ /**
43466
+ *
43467
+ * @summary Delete a git token
43468
+ * @param {string} organizationId Organization ID
43469
+ * @param {string} gitTokenId Git Token ID
43470
+ * @param {*} [options] Override http request option.
43471
+ * @throws {RequiredError}
43472
+ */
43473
+ async deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
43474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGitToken(organizationId, gitTokenId, options);
43475
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43476
+ },
43227
43477
  /**
43228
43478
  * To delete an organization you must have the admin permission
43229
43479
  * @summary Delete an organization
@@ -43235,6 +43485,19 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
43235
43485
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(organizationId, options);
43236
43486
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43237
43487
  },
43488
+ /**
43489
+ *
43490
+ * @summary Edit a git token
43491
+ * @param {string} organizationId Organization ID
43492
+ * @param {string} gitTokenId Git Token ID
43493
+ * @param {GitTokenRequest} [gitTokenRequest]
43494
+ * @param {*} [options] Override http request option.
43495
+ * @throws {RequiredError}
43496
+ */
43497
+ async editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
43498
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editGitToken(organizationId, gitTokenId, gitTokenRequest, options);
43499
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43500
+ },
43238
43501
  /**
43239
43502
  * To edit an organization you must have the admin permission
43240
43503
  * @summary Edit an organization
@@ -43300,6 +43563,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
43300
43563
  export const OrganizationMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43301
43564
  const localVarFp = OrganizationMainCallsApiFp(configuration)
43302
43565
  return {
43566
+ /**
43567
+ * Create a new git token to be used as a git provider by a service
43568
+ * @summary Create a git token
43569
+ * @param {string} organizationId Organization ID
43570
+ * @param {GitTokenRequest} [gitTokenRequest]
43571
+ * @param {*} [options] Override http request option.
43572
+ * @throws {RequiredError}
43573
+ */
43574
+ createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
43575
+ return localVarFp.createGitToken(organizationId, gitTokenRequest, options).then((request) => request(axios, basePath));
43576
+ },
43303
43577
  /**
43304
43578
  *
43305
43579
  * @summary Create an organization
@@ -43310,6 +43584,17 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
43310
43584
  createOrganization(organizationRequest?: OrganizationRequest, options?: any): AxiosPromise<Organization> {
43311
43585
  return localVarFp.createOrganization(organizationRequest, options).then((request) => request(axios, basePath));
43312
43586
  },
43587
+ /**
43588
+ *
43589
+ * @summary Delete a git token
43590
+ * @param {string} organizationId Organization ID
43591
+ * @param {string} gitTokenId Git Token ID
43592
+ * @param {*} [options] Override http request option.
43593
+ * @throws {RequiredError}
43594
+ */
43595
+ deleteGitToken(organizationId: string, gitTokenId: string, options?: any): AxiosPromise<void> {
43596
+ return localVarFp.deleteGitToken(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
43597
+ },
43313
43598
  /**
43314
43599
  * To delete an organization you must have the admin permission
43315
43600
  * @summary Delete an organization
@@ -43320,6 +43605,18 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
43320
43605
  deleteOrganization(organizationId: string, options?: any): AxiosPromise<void> {
43321
43606
  return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
43322
43607
  },
43608
+ /**
43609
+ *
43610
+ * @summary Edit a git token
43611
+ * @param {string} organizationId Organization ID
43612
+ * @param {string} gitTokenId Git Token ID
43613
+ * @param {GitTokenRequest} [gitTokenRequest]
43614
+ * @param {*} [options] Override http request option.
43615
+ * @throws {RequiredError}
43616
+ */
43617
+ editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
43618
+ return localVarFp.editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(axios, basePath));
43619
+ },
43323
43620
  /**
43324
43621
  * To edit an organization you must have the admin permission
43325
43622
  * @summary Edit an organization
@@ -43380,6 +43677,19 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
43380
43677
  * @extends {BaseAPI}
43381
43678
  */
43382
43679
  export class OrganizationMainCallsApi extends BaseAPI {
43680
+ /**
43681
+ * Create a new git token to be used as a git provider by a service
43682
+ * @summary Create a git token
43683
+ * @param {string} organizationId Organization ID
43684
+ * @param {GitTokenRequest} [gitTokenRequest]
43685
+ * @param {*} [options] Override http request option.
43686
+ * @throws {RequiredError}
43687
+ * @memberof OrganizationMainCallsApi
43688
+ */
43689
+ public createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
43690
+ return OrganizationMainCallsApiFp(this.configuration).createGitToken(organizationId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
43691
+ }
43692
+
43383
43693
  /**
43384
43694
  *
43385
43695
  * @summary Create an organization
@@ -43392,6 +43702,19 @@ export class OrganizationMainCallsApi extends BaseAPI {
43392
43702
  return OrganizationMainCallsApiFp(this.configuration).createOrganization(organizationRequest, options).then((request) => request(this.axios, this.basePath));
43393
43703
  }
43394
43704
 
43705
+ /**
43706
+ *
43707
+ * @summary Delete a git token
43708
+ * @param {string} organizationId Organization ID
43709
+ * @param {string} gitTokenId Git Token ID
43710
+ * @param {*} [options] Override http request option.
43711
+ * @throws {RequiredError}
43712
+ * @memberof OrganizationMainCallsApi
43713
+ */
43714
+ public deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig) {
43715
+ return OrganizationMainCallsApiFp(this.configuration).deleteGitToken(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
43716
+ }
43717
+
43395
43718
  /**
43396
43719
  * To delete an organization you must have the admin permission
43397
43720
  * @summary Delete an organization
@@ -43404,6 +43727,20 @@ export class OrganizationMainCallsApi extends BaseAPI {
43404
43727
  return OrganizationMainCallsApiFp(this.configuration).deleteOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
43405
43728
  }
43406
43729
 
43730
+ /**
43731
+ *
43732
+ * @summary Edit a git token
43733
+ * @param {string} organizationId Organization ID
43734
+ * @param {string} gitTokenId Git Token ID
43735
+ * @param {GitTokenRequest} [gitTokenRequest]
43736
+ * @param {*} [options] Override http request option.
43737
+ * @throws {RequiredError}
43738
+ * @memberof OrganizationMainCallsApi
43739
+ */
43740
+ public editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
43741
+ return OrganizationMainCallsApiFp(this.configuration).editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
43742
+ }
43743
+
43407
43744
  /**
43408
43745
  * To edit an organization you must have the admin permission
43409
43746
  * @summary Edit an organization