qovery-typescript-axios 1.1.165 → 1.1.166

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.
Files changed (4) hide show
  1. package/api.ts +388 -0
  2. package/dist/api.d.ts +224 -0
  3. package/dist/api.js +288 -0
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -1789,6 +1789,82 @@ export enum BuildPackLanguageEnum {
1789
1789
  SCALA = 'SCALA'
1790
1790
  }
1791
1791
 
1792
+ /**
1793
+ *
1794
+ * @export
1795
+ * @interface CloneApplicationRequest
1796
+ */
1797
+ export interface CloneApplicationRequest {
1798
+ /**
1799
+ *
1800
+ * @type {string}
1801
+ * @memberof CloneApplicationRequest
1802
+ */
1803
+ 'name': string;
1804
+ /**
1805
+ *
1806
+ * @type {string}
1807
+ * @memberof CloneApplicationRequest
1808
+ */
1809
+ 'environment_id': string;
1810
+ }
1811
+ /**
1812
+ *
1813
+ * @export
1814
+ * @interface CloneContainerRequest
1815
+ */
1816
+ export interface CloneContainerRequest {
1817
+ /**
1818
+ *
1819
+ * @type {string}
1820
+ * @memberof CloneContainerRequest
1821
+ */
1822
+ 'name': string;
1823
+ /**
1824
+ *
1825
+ * @type {string}
1826
+ * @memberof CloneContainerRequest
1827
+ */
1828
+ 'environment_id': string;
1829
+ }
1830
+ /**
1831
+ *
1832
+ * @export
1833
+ * @interface CloneDatabaseRequest
1834
+ */
1835
+ export interface CloneDatabaseRequest {
1836
+ /**
1837
+ *
1838
+ * @type {string}
1839
+ * @memberof CloneDatabaseRequest
1840
+ */
1841
+ 'name': string;
1842
+ /**
1843
+ *
1844
+ * @type {string}
1845
+ * @memberof CloneDatabaseRequest
1846
+ */
1847
+ 'environment_id': string;
1848
+ }
1849
+ /**
1850
+ *
1851
+ * @export
1852
+ * @interface CloneJobRequest
1853
+ */
1854
+ export interface CloneJobRequest {
1855
+ /**
1856
+ *
1857
+ * @type {string}
1858
+ * @memberof CloneJobRequest
1859
+ */
1860
+ 'name': string;
1861
+ /**
1862
+ *
1863
+ * @type {string}
1864
+ * @memberof CloneJobRequest
1865
+ */
1866
+ 'environment_id': string;
1867
+ }
1792
1868
  /**
1793
1869
  *
1794
1870
  * @export
@@ -17495,6 +17571,48 @@ export class ApplicationSecretApi extends BaseAPI {
17495
17571
  */
17496
17572
  export const ApplicationsApiAxiosParamCreator = function (configuration?: Configuration) {
17497
17573
  return {
17574
+ /**
17575
+ * This will create a new application with the same configuration on the targeted environment Id.
17576
+ * @summary Clone application
17577
+ * @param {string} applicationId Application ID
17578
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
17579
+ * @param {*} [options] Override http request option.
17580
+ * @throws {RequiredError}
17581
+ */
17582
+ cloneApplication: async (applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
17583
+ // verify required parameter 'applicationId' is not null or undefined
17584
+ assertParamExists('cloneApplication', 'applicationId', applicationId)
17585
+ const localVarPath = `/application/{applicationId}/clone`
17586
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
17587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17589
+ let baseOptions;
17590
+ if (configuration) {
17591
+ baseOptions = configuration.baseOptions;
17592
+ }
17593
+
17594
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17595
+ const localVarHeaderParameter = {} as any;
17596
+ const localVarQueryParameter = {} as any;
17597
+
17598
+ // authentication bearerAuth required
17599
+ // http bearer authentication required
17600
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17601
+
17602
+
17603
+
17604
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17605
+
17606
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17608
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17609
+ localVarRequestOptions.data = serializeDataIfNeeded(cloneApplicationRequest, localVarRequestOptions, configuration)
17610
+
17611
+ return {
17612
+ url: toPathString(localVarUrlObj),
17613
+ options: localVarRequestOptions,
17614
+ };
17615
+ },
17498
17616
  /**
17499
17617
  *
17500
17618
  * @summary Create an application
@@ -17771,6 +17889,18 @@ export const ApplicationsApiAxiosParamCreator = function (configuration?: Config
17771
17889
  export const ApplicationsApiFp = function(configuration?: Configuration) {
17772
17890
  const localVarAxiosParamCreator = ApplicationsApiAxiosParamCreator(configuration)
17773
17891
  return {
17892
+ /**
17893
+ * This will create a new application with the same configuration on the targeted environment Id.
17894
+ * @summary Clone application
17895
+ * @param {string} applicationId Application ID
17896
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
17897
+ * @param {*} [options] Override http request option.
17898
+ * @throws {RequiredError}
17899
+ */
17900
+ async cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>> {
17901
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneApplication(applicationId, cloneApplicationRequest, options);
17902
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
17903
+ },
17774
17904
  /**
17775
17905
  *
17776
17906
  * @summary Create an application
@@ -17858,6 +17988,17 @@ export const ApplicationsApiFp = function(configuration?: Configuration) {
17858
17988
  export const ApplicationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17859
17989
  const localVarFp = ApplicationsApiFp(configuration)
17860
17990
  return {
17991
+ /**
17992
+ * This will create a new application with the same configuration on the targeted environment Id.
17993
+ * @summary Clone application
17994
+ * @param {string} applicationId Application ID
17995
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
17996
+ * @param {*} [options] Override http request option.
17997
+ * @throws {RequiredError}
17998
+ */
17999
+ cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: any): AxiosPromise<Application> {
18000
+ return localVarFp.cloneApplication(applicationId, cloneApplicationRequest, options).then((request) => request(axios, basePath));
18001
+ },
17861
18002
  /**
17862
18003
  *
17863
18004
  * @summary Create an application
@@ -17938,6 +18079,19 @@ export const ApplicationsApiFactory = function (configuration?: Configuration, b
17938
18079
  * @extends {BaseAPI}
17939
18080
  */
17940
18081
  export class ApplicationsApi extends BaseAPI {
18082
+ /**
18083
+ * This will create a new application with the same configuration on the targeted environment Id.
18084
+ * @summary Clone application
18085
+ * @param {string} applicationId Application ID
18086
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
18087
+ * @param {*} [options] Override http request option.
18088
+ * @throws {RequiredError}
18089
+ * @memberof ApplicationsApi
18090
+ */
18091
+ public cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: AxiosRequestConfig) {
18092
+ return ApplicationsApiFp(this.configuration).cloneApplication(applicationId, cloneApplicationRequest, options).then((request) => request(this.axios, this.basePath));
18093
+ }
18094
+
17941
18095
  /**
17942
18096
  *
17943
18097
  * @summary Create an application
@@ -26962,6 +27116,48 @@ export const ContainersApiAxiosParamCreator = function (configuration?: Configur
26962
27116
  options: localVarRequestOptions,
26963
27117
  };
26964
27118
  },
27119
+ /**
27120
+ * This will create a new container with the same configuration on the targeted environment Id.
27121
+ * @summary Clone container
27122
+ * @param {string} containerId Container ID
27123
+ * @param {CloneContainerRequest} [cloneContainerRequest]
27124
+ * @param {*} [options] Override http request option.
27125
+ * @throws {RequiredError}
27126
+ */
27127
+ cloneContainer: async (containerId: string, cloneContainerRequest?: CloneContainerRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27128
+ // verify required parameter 'containerId' is not null or undefined
27129
+ assertParamExists('cloneContainer', 'containerId', containerId)
27130
+ const localVarPath = `/container/{containerId}/clone`
27131
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
27132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27134
+ let baseOptions;
27135
+ if (configuration) {
27136
+ baseOptions = configuration.baseOptions;
27137
+ }
27138
+
27139
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27140
+ const localVarHeaderParameter = {} as any;
27141
+ const localVarQueryParameter = {} as any;
27142
+
27143
+ // authentication bearerAuth required
27144
+ // http bearer authentication required
27145
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27146
+
27147
+
27148
+
27149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27150
+
27151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27153
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27154
+ localVarRequestOptions.data = serializeDataIfNeeded(cloneContainerRequest, localVarRequestOptions, configuration)
27155
+
27156
+ return {
27157
+ url: toPathString(localVarUrlObj),
27158
+ options: localVarRequestOptions,
27159
+ };
27160
+ },
26965
27161
  /**
26966
27162
  *
26967
27163
  * @summary Create a container
@@ -27296,6 +27492,18 @@ export const ContainersApiFp = function(configuration?: Configuration) {
27296
27492
  const localVarAxiosArgs = await localVarAxiosParamCreator.autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options);
27297
27493
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27298
27494
  },
27495
+ /**
27496
+ * This will create a new container with the same configuration on the targeted environment Id.
27497
+ * @summary Clone container
27498
+ * @param {string} containerId Container ID
27499
+ * @param {CloneContainerRequest} [cloneContainerRequest]
27500
+ * @param {*} [options] Override http request option.
27501
+ * @throws {RequiredError}
27502
+ */
27503
+ async cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerResponse>> {
27504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneContainer(containerId, cloneContainerRequest, options);
27505
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27506
+ },
27299
27507
  /**
27300
27508
  *
27301
27509
  * @summary Create a container
@@ -27407,6 +27615,17 @@ export const ContainersApiFactory = function (configuration?: Configuration, bas
27407
27615
  autoDeployContainerEnvironments(organizationId: string, organizationContainerAutoDeployRequest?: OrganizationContainerAutoDeployRequest, options?: any): AxiosPromise<Status> {
27408
27616
  return localVarFp.autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options).then((request) => request(axios, basePath));
27409
27617
  },
27618
+ /**
27619
+ * This will create a new container with the same configuration on the targeted environment Id.
27620
+ * @summary Clone container
27621
+ * @param {string} containerId Container ID
27622
+ * @param {CloneContainerRequest} [cloneContainerRequest]
27623
+ * @param {*} [options] Override http request option.
27624
+ * @throws {RequiredError}
27625
+ */
27626
+ cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: any): AxiosPromise<ContainerResponse> {
27627
+ return localVarFp.cloneContainer(containerId, cloneContainerRequest, options).then((request) => request(axios, basePath));
27628
+ },
27410
27629
  /**
27411
27630
  *
27412
27631
  * @summary Create a container
@@ -27512,6 +27731,19 @@ export class ContainersApi extends BaseAPI {
27512
27731
  return ContainersApiFp(this.configuration).autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options).then((request) => request(this.axios, this.basePath));
27513
27732
  }
27514
27733
 
27734
+ /**
27735
+ * This will create a new container with the same configuration on the targeted environment Id.
27736
+ * @summary Clone container
27737
+ * @param {string} containerId Container ID
27738
+ * @param {CloneContainerRequest} [cloneContainerRequest]
27739
+ * @param {*} [options] Override http request option.
27740
+ * @throws {RequiredError}
27741
+ * @memberof ContainersApi
27742
+ */
27743
+ public cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: AxiosRequestConfig) {
27744
+ return ContainersApiFp(this.configuration).cloneContainer(containerId, cloneContainerRequest, options).then((request) => request(this.axios, this.basePath));
27745
+ }
27746
+
27515
27747
  /**
27516
27748
  *
27517
27749
  * @summary Create a container
@@ -29842,6 +30074,48 @@ export class DatabaseMetricsApi extends BaseAPI {
29842
30074
  */
29843
30075
  export const DatabasesApiAxiosParamCreator = function (configuration?: Configuration) {
29844
30076
  return {
30077
+ /**
30078
+ * This will create a new database with the same configuration on the targeted environment Id.
30079
+ * @summary Clone database
30080
+ * @param {string} databaseId Database ID
30081
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
30082
+ * @param {*} [options] Override http request option.
30083
+ * @throws {RequiredError}
30084
+ */
30085
+ cloneDatabase: async (databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30086
+ // verify required parameter 'databaseId' is not null or undefined
30087
+ assertParamExists('cloneDatabase', 'databaseId', databaseId)
30088
+ const localVarPath = `/database/{databaseId}/clone`
30089
+ .replace(`{${"databaseId"}}`, encodeURIComponent(String(databaseId)));
30090
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30091
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30092
+ let baseOptions;
30093
+ if (configuration) {
30094
+ baseOptions = configuration.baseOptions;
30095
+ }
30096
+
30097
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30098
+ const localVarHeaderParameter = {} as any;
30099
+ const localVarQueryParameter = {} as any;
30100
+
30101
+ // authentication bearerAuth required
30102
+ // http bearer authentication required
30103
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30104
+
30105
+
30106
+
30107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30108
+
30109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30111
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30112
+ localVarRequestOptions.data = serializeDataIfNeeded(cloneDatabaseRequest, localVarRequestOptions, configuration)
30113
+
30114
+ return {
30115
+ url: toPathString(localVarUrlObj),
30116
+ options: localVarRequestOptions,
30117
+ };
30118
+ },
29845
30119
  /**
29846
30120
  *
29847
30121
  * @summary Create a database
@@ -30046,6 +30320,18 @@ export const DatabasesApiAxiosParamCreator = function (configuration?: Configura
30046
30320
  export const DatabasesApiFp = function(configuration?: Configuration) {
30047
30321
  const localVarAxiosParamCreator = DatabasesApiAxiosParamCreator(configuration)
30048
30322
  return {
30323
+ /**
30324
+ * This will create a new database with the same configuration on the targeted environment Id.
30325
+ * @summary Clone database
30326
+ * @param {string} databaseId Database ID
30327
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
30328
+ * @param {*} [options] Override http request option.
30329
+ * @throws {RequiredError}
30330
+ */
30331
+ async cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Database>> {
30332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneDatabase(databaseId, cloneDatabaseRequest, options);
30333
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30334
+ },
30049
30335
  /**
30050
30336
  *
30051
30337
  * @summary Create a database
@@ -30112,6 +30398,17 @@ export const DatabasesApiFp = function(configuration?: Configuration) {
30112
30398
  export const DatabasesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30113
30399
  const localVarFp = DatabasesApiFp(configuration)
30114
30400
  return {
30401
+ /**
30402
+ * This will create a new database with the same configuration on the targeted environment Id.
30403
+ * @summary Clone database
30404
+ * @param {string} databaseId Database ID
30405
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
30406
+ * @param {*} [options] Override http request option.
30407
+ * @throws {RequiredError}
30408
+ */
30409
+ cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: any): AxiosPromise<Database> {
30410
+ return localVarFp.cloneDatabase(databaseId, cloneDatabaseRequest, options).then((request) => request(axios, basePath));
30411
+ },
30115
30412
  /**
30116
30413
  *
30117
30414
  * @summary Create a database
@@ -30173,6 +30470,19 @@ export const DatabasesApiFactory = function (configuration?: Configuration, base
30173
30470
  * @extends {BaseAPI}
30174
30471
  */
30175
30472
  export class DatabasesApi extends BaseAPI {
30473
+ /**
30474
+ * This will create a new database with the same configuration on the targeted environment Id.
30475
+ * @summary Clone database
30476
+ * @param {string} databaseId Database ID
30477
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
30478
+ * @param {*} [options] Override http request option.
30479
+ * @throws {RequiredError}
30480
+ * @memberof DatabasesApi
30481
+ */
30482
+ public cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: AxiosRequestConfig) {
30483
+ return DatabasesApiFp(this.configuration).cloneDatabase(databaseId, cloneDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
30484
+ }
30485
+
30176
30486
  /**
30177
30487
  *
30178
30488
  * @summary Create a database
@@ -37186,6 +37496,48 @@ export class JobSecretApi extends BaseAPI {
37186
37496
  */
37187
37497
  export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
37188
37498
  return {
37499
+ /**
37500
+ * This will create a new job with the same configuration on the targeted environment Id.
37501
+ * @summary Clone job
37502
+ * @param {string} jobId Job ID
37503
+ * @param {CloneJobRequest} [cloneJobRequest]
37504
+ * @param {*} [options] Override http request option.
37505
+ * @throws {RequiredError}
37506
+ */
37507
+ cloneJob: async (jobId: string, cloneJobRequest?: CloneJobRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37508
+ // verify required parameter 'jobId' is not null or undefined
37509
+ assertParamExists('cloneJob', 'jobId', jobId)
37510
+ const localVarPath = `/job/{jobId}/clone`
37511
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
37512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37514
+ let baseOptions;
37515
+ if (configuration) {
37516
+ baseOptions = configuration.baseOptions;
37517
+ }
37518
+
37519
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
37520
+ const localVarHeaderParameter = {} as any;
37521
+ const localVarQueryParameter = {} as any;
37522
+
37523
+ // authentication bearerAuth required
37524
+ // http bearer authentication required
37525
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
37526
+
37527
+
37528
+
37529
+ localVarHeaderParameter['Content-Type'] = 'application/json';
37530
+
37531
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37532
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37533
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
37534
+ localVarRequestOptions.data = serializeDataIfNeeded(cloneJobRequest, localVarRequestOptions, configuration)
37535
+
37536
+ return {
37537
+ url: toPathString(localVarUrlObj),
37538
+ options: localVarRequestOptions,
37539
+ };
37540
+ },
37189
37541
  /**
37190
37542
  *
37191
37543
  * @summary Create a job
@@ -37353,6 +37705,18 @@ export const JobsApiAxiosParamCreator = function (configuration?: Configuration)
37353
37705
  export const JobsApiFp = function(configuration?: Configuration) {
37354
37706
  const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
37355
37707
  return {
37708
+ /**
37709
+ * This will create a new job with the same configuration on the targeted environment Id.
37710
+ * @summary Clone job
37711
+ * @param {string} jobId Job ID
37712
+ * @param {CloneJobRequest} [cloneJobRequest]
37713
+ * @param {*} [options] Override http request option.
37714
+ * @throws {RequiredError}
37715
+ */
37716
+ async cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResponse>> {
37717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneJob(jobId, cloneJobRequest, options);
37718
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
37719
+ },
37356
37720
  /**
37357
37721
  *
37358
37722
  * @summary Create a job
@@ -37408,6 +37772,17 @@ export const JobsApiFp = function(configuration?: Configuration) {
37408
37772
  export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
37409
37773
  const localVarFp = JobsApiFp(configuration)
37410
37774
  return {
37775
+ /**
37776
+ * This will create a new job with the same configuration on the targeted environment Id.
37777
+ * @summary Clone job
37778
+ * @param {string} jobId Job ID
37779
+ * @param {CloneJobRequest} [cloneJobRequest]
37780
+ * @param {*} [options] Override http request option.
37781
+ * @throws {RequiredError}
37782
+ */
37783
+ cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: any): AxiosPromise<JobResponse> {
37784
+ return localVarFp.cloneJob(jobId, cloneJobRequest, options).then((request) => request(axios, basePath));
37785
+ },
37411
37786
  /**
37412
37787
  *
37413
37788
  * @summary Create a job
@@ -37459,6 +37834,19 @@ export const JobsApiFactory = function (configuration?: Configuration, basePath?
37459
37834
  * @extends {BaseAPI}
37460
37835
  */
37461
37836
  export class JobsApi extends BaseAPI {
37837
+ /**
37838
+ * This will create a new job with the same configuration on the targeted environment Id.
37839
+ * @summary Clone job
37840
+ * @param {string} jobId Job ID
37841
+ * @param {CloneJobRequest} [cloneJobRequest]
37842
+ * @param {*} [options] Override http request option.
37843
+ * @throws {RequiredError}
37844
+ * @memberof JobsApi
37845
+ */
37846
+ public cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: AxiosRequestConfig) {
37847
+ return JobsApiFp(this.configuration).cloneJob(jobId, cloneJobRequest, options).then((request) => request(this.axios, this.basePath));
37848
+ }
37849
+
37462
37850
  /**
37463
37851
  *
37464
37852
  * @summary Create a job
package/dist/api.d.ts CHANGED
@@ -1772,6 +1772,82 @@ export declare enum BuildPackLanguageEnum {
1772
1772
  PYTHON = "PYTHON",
1773
1773
  SCALA = "SCALA"
1774
1774
  }
1775
+ /**
1776
+ *
1777
+ * @export
1778
+ * @interface CloneApplicationRequest
1779
+ */
1780
+ export interface CloneApplicationRequest {
1781
+ /**
1782
+ *
1783
+ * @type {string}
1784
+ * @memberof CloneApplicationRequest
1785
+ */
1786
+ 'name': string;
1787
+ /**
1788
+ *
1789
+ * @type {string}
1790
+ * @memberof CloneApplicationRequest
1791
+ */
1792
+ 'environment_id': string;
1793
+ }
1794
+ /**
1795
+ *
1796
+ * @export
1797
+ * @interface CloneContainerRequest
1798
+ */
1799
+ export interface CloneContainerRequest {
1800
+ /**
1801
+ *
1802
+ * @type {string}
1803
+ * @memberof CloneContainerRequest
1804
+ */
1805
+ 'name': string;
1806
+ /**
1807
+ *
1808
+ * @type {string}
1809
+ * @memberof CloneContainerRequest
1810
+ */
1811
+ 'environment_id': string;
1812
+ }
1813
+ /**
1814
+ *
1815
+ * @export
1816
+ * @interface CloneDatabaseRequest
1817
+ */
1818
+ export interface CloneDatabaseRequest {
1819
+ /**
1820
+ *
1821
+ * @type {string}
1822
+ * @memberof CloneDatabaseRequest
1823
+ */
1824
+ 'name': string;
1825
+ /**
1826
+ *
1827
+ * @type {string}
1828
+ * @memberof CloneDatabaseRequest
1829
+ */
1830
+ 'environment_id': string;
1831
+ }
1832
+ /**
1833
+ *
1834
+ * @export
1835
+ * @interface CloneJobRequest
1836
+ */
1837
+ export interface CloneJobRequest {
1838
+ /**
1839
+ *
1840
+ * @type {string}
1841
+ * @memberof CloneJobRequest
1842
+ */
1843
+ 'name': string;
1844
+ /**
1845
+ *
1846
+ * @type {string}
1847
+ * @memberof CloneJobRequest
1848
+ */
1849
+ 'environment_id': string;
1850
+ }
1775
1851
  /**
1776
1852
  *
1777
1853
  * @export
@@ -15349,6 +15425,15 @@ export declare class ApplicationSecretApi extends BaseAPI {
15349
15425
  * @export
15350
15426
  */
15351
15427
  export declare const ApplicationsApiAxiosParamCreator: (configuration?: Configuration) => {
15428
+ /**
15429
+ * This will create a new application with the same configuration on the targeted environment Id.
15430
+ * @summary Clone application
15431
+ * @param {string} applicationId Application ID
15432
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
15433
+ * @param {*} [options] Override http request option.
15434
+ * @throws {RequiredError}
15435
+ */
15436
+ cloneApplication: (applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
15352
15437
  /**
15353
15438
  *
15354
15439
  * @summary Create an application
@@ -15411,6 +15496,15 @@ export declare const ApplicationsApiAxiosParamCreator: (configuration?: Configur
15411
15496
  * @export
15412
15497
  */
15413
15498
  export declare const ApplicationsApiFp: (configuration?: Configuration) => {
15499
+ /**
15500
+ * This will create a new application with the same configuration on the targeted environment Id.
15501
+ * @summary Clone application
15502
+ * @param {string} applicationId Application ID
15503
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
15504
+ * @param {*} [options] Override http request option.
15505
+ * @throws {RequiredError}
15506
+ */
15507
+ cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
15414
15508
  /**
15415
15509
  *
15416
15510
  * @summary Create an application
@@ -15473,6 +15567,15 @@ export declare const ApplicationsApiFp: (configuration?: Configuration) => {
15473
15567
  * @export
15474
15568
  */
15475
15569
  export declare const ApplicationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
15570
+ /**
15571
+ * This will create a new application with the same configuration on the targeted environment Id.
15572
+ * @summary Clone application
15573
+ * @param {string} applicationId Application ID
15574
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
15575
+ * @param {*} [options] Override http request option.
15576
+ * @throws {RequiredError}
15577
+ */
15578
+ cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: any): AxiosPromise<Application>;
15476
15579
  /**
15477
15580
  *
15478
15581
  * @summary Create an application
@@ -15537,6 +15640,16 @@ export declare const ApplicationsApiFactory: (configuration?: Configuration, bas
15537
15640
  * @extends {BaseAPI}
15538
15641
  */
15539
15642
  export declare class ApplicationsApi extends BaseAPI {
15643
+ /**
15644
+ * This will create a new application with the same configuration on the targeted environment Id.
15645
+ * @summary Clone application
15646
+ * @param {string} applicationId Application ID
15647
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
15648
+ * @param {*} [options] Override http request option.
15649
+ * @throws {RequiredError}
15650
+ * @memberof ApplicationsApi
15651
+ */
15652
+ cloneApplication(applicationId: string, cloneApplicationRequest?: CloneApplicationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Application>>;
15540
15653
  /**
15541
15654
  *
15542
15655
  * @summary Create an application
@@ -19916,6 +20029,15 @@ export declare const ContainersApiAxiosParamCreator: (configuration?: Configurat
19916
20029
  * @throws {RequiredError}
19917
20030
  */
19918
20031
  autoDeployContainerEnvironments: (organizationId: string, organizationContainerAutoDeployRequest?: OrganizationContainerAutoDeployRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
20032
+ /**
20033
+ * This will create a new container with the same configuration on the targeted environment Id.
20034
+ * @summary Clone container
20035
+ * @param {string} containerId Container ID
20036
+ * @param {CloneContainerRequest} [cloneContainerRequest]
20037
+ * @param {*} [options] Override http request option.
20038
+ * @throws {RequiredError}
20039
+ */
20040
+ cloneContainer: (containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
19919
20041
  /**
19920
20042
  *
19921
20043
  * @summary Create a container
@@ -19997,6 +20119,15 @@ export declare const ContainersApiFp: (configuration?: Configuration) => {
19997
20119
  * @throws {RequiredError}
19998
20120
  */
19999
20121
  autoDeployContainerEnvironments(organizationId: string, organizationContainerAutoDeployRequest?: OrganizationContainerAutoDeployRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
20122
+ /**
20123
+ * This will create a new container with the same configuration on the targeted environment Id.
20124
+ * @summary Clone container
20125
+ * @param {string} containerId Container ID
20126
+ * @param {CloneContainerRequest} [cloneContainerRequest]
20127
+ * @param {*} [options] Override http request option.
20128
+ * @throws {RequiredError}
20129
+ */
20130
+ cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerResponse>>;
20000
20131
  /**
20001
20132
  *
20002
20133
  * @summary Create a container
@@ -20078,6 +20209,15 @@ export declare const ContainersApiFactory: (configuration?: Configuration, baseP
20078
20209
  * @throws {RequiredError}
20079
20210
  */
20080
20211
  autoDeployContainerEnvironments(organizationId: string, organizationContainerAutoDeployRequest?: OrganizationContainerAutoDeployRequest, options?: any): AxiosPromise<Status>;
20212
+ /**
20213
+ * This will create a new container with the same configuration on the targeted environment Id.
20214
+ * @summary Clone container
20215
+ * @param {string} containerId Container ID
20216
+ * @param {CloneContainerRequest} [cloneContainerRequest]
20217
+ * @param {*} [options] Override http request option.
20218
+ * @throws {RequiredError}
20219
+ */
20220
+ cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: any): AxiosPromise<ContainerResponse>;
20081
20221
  /**
20082
20222
  *
20083
20223
  * @summary Create a container
@@ -20162,6 +20302,16 @@ export declare class ContainersApi extends BaseAPI {
20162
20302
  * @memberof ContainersApi
20163
20303
  */
20164
20304
  autoDeployContainerEnvironments(organizationId: string, organizationContainerAutoDeployRequest?: OrganizationContainerAutoDeployRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Status>>;
20305
+ /**
20306
+ * This will create a new container with the same configuration on the targeted environment Id.
20307
+ * @summary Clone container
20308
+ * @param {string} containerId Container ID
20309
+ * @param {CloneContainerRequest} [cloneContainerRequest]
20310
+ * @param {*} [options] Override http request option.
20311
+ * @throws {RequiredError}
20312
+ * @memberof ContainersApi
20313
+ */
20314
+ cloneContainer(containerId: string, cloneContainerRequest?: CloneContainerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ContainerResponse>>;
20165
20315
  /**
20166
20316
  *
20167
20317
  * @summary Create a container
@@ -21338,6 +21488,15 @@ export declare class DatabaseMetricsApi extends BaseAPI {
21338
21488
  * @export
21339
21489
  */
21340
21490
  export declare const DatabasesApiAxiosParamCreator: (configuration?: Configuration) => {
21491
+ /**
21492
+ * This will create a new database with the same configuration on the targeted environment Id.
21493
+ * @summary Clone database
21494
+ * @param {string} databaseId Database ID
21495
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
21496
+ * @param {*} [options] Override http request option.
21497
+ * @throws {RequiredError}
21498
+ */
21499
+ cloneDatabase: (databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
21341
21500
  /**
21342
21501
  *
21343
21502
  * @summary Create a database
@@ -21385,6 +21544,15 @@ export declare const DatabasesApiAxiosParamCreator: (configuration?: Configurati
21385
21544
  * @export
21386
21545
  */
21387
21546
  export declare const DatabasesApiFp: (configuration?: Configuration) => {
21547
+ /**
21548
+ * This will create a new database with the same configuration on the targeted environment Id.
21549
+ * @summary Clone database
21550
+ * @param {string} databaseId Database ID
21551
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
21552
+ * @param {*} [options] Override http request option.
21553
+ * @throws {RequiredError}
21554
+ */
21555
+ cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Database>>;
21388
21556
  /**
21389
21557
  *
21390
21558
  * @summary Create a database
@@ -21432,6 +21600,15 @@ export declare const DatabasesApiFp: (configuration?: Configuration) => {
21432
21600
  * @export
21433
21601
  */
21434
21602
  export declare const DatabasesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
21603
+ /**
21604
+ * This will create a new database with the same configuration on the targeted environment Id.
21605
+ * @summary Clone database
21606
+ * @param {string} databaseId Database ID
21607
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
21608
+ * @param {*} [options] Override http request option.
21609
+ * @throws {RequiredError}
21610
+ */
21611
+ cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: any): AxiosPromise<Database>;
21435
21612
  /**
21436
21613
  *
21437
21614
  * @summary Create a database
@@ -21481,6 +21658,16 @@ export declare const DatabasesApiFactory: (configuration?: Configuration, basePa
21481
21658
  * @extends {BaseAPI}
21482
21659
  */
21483
21660
  export declare class DatabasesApi extends BaseAPI {
21661
+ /**
21662
+ * This will create a new database with the same configuration on the targeted environment Id.
21663
+ * @summary Clone database
21664
+ * @param {string} databaseId Database ID
21665
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
21666
+ * @param {*} [options] Override http request option.
21667
+ * @throws {RequiredError}
21668
+ * @memberof DatabasesApi
21669
+ */
21670
+ cloneDatabase(databaseId: string, cloneDatabaseRequest?: CloneDatabaseRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Database>>;
21484
21671
  /**
21485
21672
  *
21486
21673
  * @summary Create a database
@@ -24974,6 +25161,15 @@ export declare class JobSecretApi extends BaseAPI {
24974
25161
  * @export
24975
25162
  */
24976
25163
  export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) => {
25164
+ /**
25165
+ * This will create a new job with the same configuration on the targeted environment Id.
25166
+ * @summary Clone job
25167
+ * @param {string} jobId Job ID
25168
+ * @param {CloneJobRequest} [cloneJobRequest]
25169
+ * @param {*} [options] Override http request option.
25170
+ * @throws {RequiredError}
25171
+ */
25172
+ cloneJob: (jobId: string, cloneJobRequest?: CloneJobRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
24977
25173
  /**
24978
25174
  *
24979
25175
  * @summary Create a job
@@ -25013,6 +25209,15 @@ export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) =
25013
25209
  * @export
25014
25210
  */
25015
25211
  export declare const JobsApiFp: (configuration?: Configuration) => {
25212
+ /**
25213
+ * This will create a new job with the same configuration on the targeted environment Id.
25214
+ * @summary Clone job
25215
+ * @param {string} jobId Job ID
25216
+ * @param {CloneJobRequest} [cloneJobRequest]
25217
+ * @param {*} [options] Override http request option.
25218
+ * @throws {RequiredError}
25219
+ */
25220
+ cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobResponse>>;
25016
25221
  /**
25017
25222
  *
25018
25223
  * @summary Create a job
@@ -25052,6 +25257,15 @@ export declare const JobsApiFp: (configuration?: Configuration) => {
25052
25257
  * @export
25053
25258
  */
25054
25259
  export declare const JobsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25260
+ /**
25261
+ * This will create a new job with the same configuration on the targeted environment Id.
25262
+ * @summary Clone job
25263
+ * @param {string} jobId Job ID
25264
+ * @param {CloneJobRequest} [cloneJobRequest]
25265
+ * @param {*} [options] Override http request option.
25266
+ * @throws {RequiredError}
25267
+ */
25268
+ cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: any): AxiosPromise<JobResponse>;
25055
25269
  /**
25056
25270
  *
25057
25271
  * @summary Create a job
@@ -25093,6 +25307,16 @@ export declare const JobsApiFactory: (configuration?: Configuration, basePath?:
25093
25307
  * @extends {BaseAPI}
25094
25308
  */
25095
25309
  export declare class JobsApi extends BaseAPI {
25310
+ /**
25311
+ * This will create a new job with the same configuration on the targeted environment Id.
25312
+ * @summary Clone job
25313
+ * @param {string} jobId Job ID
25314
+ * @param {CloneJobRequest} [cloneJobRequest]
25315
+ * @param {*} [options] Override http request option.
25316
+ * @throws {RequiredError}
25317
+ * @memberof JobsApi
25318
+ */
25319
+ cloneJob(jobId: string, cloneJobRequest?: CloneJobRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<JobResponse>>;
25096
25320
  /**
25097
25321
  *
25098
25322
  * @summary Create a job
package/dist/api.js CHANGED
@@ -4481,6 +4481,41 @@ exports.ApplicationSecretApi = ApplicationSecretApi;
4481
4481
  */
4482
4482
  const ApplicationsApiAxiosParamCreator = function (configuration) {
4483
4483
  return {
4484
+ /**
4485
+ * This will create a new application with the same configuration on the targeted environment Id.
4486
+ * @summary Clone application
4487
+ * @param {string} applicationId Application ID
4488
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
4489
+ * @param {*} [options] Override http request option.
4490
+ * @throws {RequiredError}
4491
+ */
4492
+ cloneApplication: (applicationId, cloneApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4493
+ // verify required parameter 'applicationId' is not null or undefined
4494
+ (0, common_1.assertParamExists)('cloneApplication', 'applicationId', applicationId);
4495
+ const localVarPath = `/application/{applicationId}/clone`
4496
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
4497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4498
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4499
+ let baseOptions;
4500
+ if (configuration) {
4501
+ baseOptions = configuration.baseOptions;
4502
+ }
4503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4504
+ const localVarHeaderParameter = {};
4505
+ const localVarQueryParameter = {};
4506
+ // authentication bearerAuth required
4507
+ // http bearer authentication required
4508
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4509
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4510
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4512
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4513
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneApplicationRequest, localVarRequestOptions, configuration);
4514
+ return {
4515
+ url: (0, common_1.toPathString)(localVarUrlObj),
4516
+ options: localVarRequestOptions,
4517
+ };
4518
+ }),
4484
4519
  /**
4485
4520
  *
4486
4521
  * @summary Create an application
@@ -4714,6 +4749,20 @@ exports.ApplicationsApiAxiosParamCreator = ApplicationsApiAxiosParamCreator;
4714
4749
  const ApplicationsApiFp = function (configuration) {
4715
4750
  const localVarAxiosParamCreator = (0, exports.ApplicationsApiAxiosParamCreator)(configuration);
4716
4751
  return {
4752
+ /**
4753
+ * This will create a new application with the same configuration on the targeted environment Id.
4754
+ * @summary Clone application
4755
+ * @param {string} applicationId Application ID
4756
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
4757
+ * @param {*} [options] Override http request option.
4758
+ * @throws {RequiredError}
4759
+ */
4760
+ cloneApplication(applicationId, cloneApplicationRequest, options) {
4761
+ return __awaiter(this, void 0, void 0, function* () {
4762
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneApplication(applicationId, cloneApplicationRequest, options);
4763
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4764
+ });
4765
+ },
4717
4766
  /**
4718
4767
  *
4719
4768
  * @summary Create an application
@@ -4815,6 +4864,17 @@ exports.ApplicationsApiFp = ApplicationsApiFp;
4815
4864
  const ApplicationsApiFactory = function (configuration, basePath, axios) {
4816
4865
  const localVarFp = (0, exports.ApplicationsApiFp)(configuration);
4817
4866
  return {
4867
+ /**
4868
+ * This will create a new application with the same configuration on the targeted environment Id.
4869
+ * @summary Clone application
4870
+ * @param {string} applicationId Application ID
4871
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
4872
+ * @param {*} [options] Override http request option.
4873
+ * @throws {RequiredError}
4874
+ */
4875
+ cloneApplication(applicationId, cloneApplicationRequest, options) {
4876
+ return localVarFp.cloneApplication(applicationId, cloneApplicationRequest, options).then((request) => request(axios, basePath));
4877
+ },
4818
4878
  /**
4819
4879
  *
4820
4880
  * @summary Create an application
@@ -4895,6 +4955,18 @@ exports.ApplicationsApiFactory = ApplicationsApiFactory;
4895
4955
  * @extends {BaseAPI}
4896
4956
  */
4897
4957
  class ApplicationsApi extends base_1.BaseAPI {
4958
+ /**
4959
+ * This will create a new application with the same configuration on the targeted environment Id.
4960
+ * @summary Clone application
4961
+ * @param {string} applicationId Application ID
4962
+ * @param {CloneApplicationRequest} [cloneApplicationRequest]
4963
+ * @param {*} [options] Override http request option.
4964
+ * @throws {RequiredError}
4965
+ * @memberof ApplicationsApi
4966
+ */
4967
+ cloneApplication(applicationId, cloneApplicationRequest, options) {
4968
+ return (0, exports.ApplicationsApiFp)(this.configuration).cloneApplication(applicationId, cloneApplicationRequest, options).then((request) => request(this.axios, this.basePath));
4969
+ }
4898
4970
  /**
4899
4971
  *
4900
4972
  * @summary Create an application
@@ -13316,6 +13388,41 @@ const ContainersApiAxiosParamCreator = function (configuration) {
13316
13388
  options: localVarRequestOptions,
13317
13389
  };
13318
13390
  }),
13391
+ /**
13392
+ * This will create a new container with the same configuration on the targeted environment Id.
13393
+ * @summary Clone container
13394
+ * @param {string} containerId Container ID
13395
+ * @param {CloneContainerRequest} [cloneContainerRequest]
13396
+ * @param {*} [options] Override http request option.
13397
+ * @throws {RequiredError}
13398
+ */
13399
+ cloneContainer: (containerId, cloneContainerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
13400
+ // verify required parameter 'containerId' is not null or undefined
13401
+ (0, common_1.assertParamExists)('cloneContainer', 'containerId', containerId);
13402
+ const localVarPath = `/container/{containerId}/clone`
13403
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
13404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13405
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13406
+ let baseOptions;
13407
+ if (configuration) {
13408
+ baseOptions = configuration.baseOptions;
13409
+ }
13410
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13411
+ const localVarHeaderParameter = {};
13412
+ const localVarQueryParameter = {};
13413
+ // authentication bearerAuth required
13414
+ // http bearer authentication required
13415
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13416
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13417
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13419
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13420
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneContainerRequest, localVarRequestOptions, configuration);
13421
+ return {
13422
+ url: (0, common_1.toPathString)(localVarUrlObj),
13423
+ options: localVarRequestOptions,
13424
+ };
13425
+ }),
13319
13426
  /**
13320
13427
  *
13321
13428
  * @summary Create a container
@@ -13602,6 +13709,20 @@ const ContainersApiFp = function (configuration) {
13602
13709
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
13603
13710
  });
13604
13711
  },
13712
+ /**
13713
+ * This will create a new container with the same configuration on the targeted environment Id.
13714
+ * @summary Clone container
13715
+ * @param {string} containerId Container ID
13716
+ * @param {CloneContainerRequest} [cloneContainerRequest]
13717
+ * @param {*} [options] Override http request option.
13718
+ * @throws {RequiredError}
13719
+ */
13720
+ cloneContainer(containerId, cloneContainerRequest, options) {
13721
+ return __awaiter(this, void 0, void 0, function* () {
13722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneContainer(containerId, cloneContainerRequest, options);
13723
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
13724
+ });
13725
+ },
13605
13726
  /**
13606
13727
  *
13607
13728
  * @summary Create a container
@@ -13729,6 +13850,17 @@ const ContainersApiFactory = function (configuration, basePath, axios) {
13729
13850
  autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options) {
13730
13851
  return localVarFp.autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options).then((request) => request(axios, basePath));
13731
13852
  },
13853
+ /**
13854
+ * This will create a new container with the same configuration on the targeted environment Id.
13855
+ * @summary Clone container
13856
+ * @param {string} containerId Container ID
13857
+ * @param {CloneContainerRequest} [cloneContainerRequest]
13858
+ * @param {*} [options] Override http request option.
13859
+ * @throws {RequiredError}
13860
+ */
13861
+ cloneContainer(containerId, cloneContainerRequest, options) {
13862
+ return localVarFp.cloneContainer(containerId, cloneContainerRequest, options).then((request) => request(axios, basePath));
13863
+ },
13732
13864
  /**
13733
13865
  *
13734
13866
  * @summary Create a container
@@ -13833,6 +13965,18 @@ class ContainersApi extends base_1.BaseAPI {
13833
13965
  autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options) {
13834
13966
  return (0, exports.ContainersApiFp)(this.configuration).autoDeployContainerEnvironments(organizationId, organizationContainerAutoDeployRequest, options).then((request) => request(this.axios, this.basePath));
13835
13967
  }
13968
+ /**
13969
+ * This will create a new container with the same configuration on the targeted environment Id.
13970
+ * @summary Clone container
13971
+ * @param {string} containerId Container ID
13972
+ * @param {CloneContainerRequest} [cloneContainerRequest]
13973
+ * @param {*} [options] Override http request option.
13974
+ * @throws {RequiredError}
13975
+ * @memberof ContainersApi
13976
+ */
13977
+ cloneContainer(containerId, cloneContainerRequest, options) {
13978
+ return (0, exports.ContainersApiFp)(this.configuration).cloneContainer(containerId, cloneContainerRequest, options).then((request) => request(this.axios, this.basePath));
13979
+ }
13836
13980
  /**
13837
13981
  *
13838
13982
  * @summary Create a container
@@ -16015,6 +16159,41 @@ exports.DatabaseMetricsApi = DatabaseMetricsApi;
16015
16159
  */
16016
16160
  const DatabasesApiAxiosParamCreator = function (configuration) {
16017
16161
  return {
16162
+ /**
16163
+ * This will create a new database with the same configuration on the targeted environment Id.
16164
+ * @summary Clone database
16165
+ * @param {string} databaseId Database ID
16166
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
16167
+ * @param {*} [options] Override http request option.
16168
+ * @throws {RequiredError}
16169
+ */
16170
+ cloneDatabase: (databaseId, cloneDatabaseRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
16171
+ // verify required parameter 'databaseId' is not null or undefined
16172
+ (0, common_1.assertParamExists)('cloneDatabase', 'databaseId', databaseId);
16173
+ const localVarPath = `/database/{databaseId}/clone`
16174
+ .replace(`{${"databaseId"}}`, encodeURIComponent(String(databaseId)));
16175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16176
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16177
+ let baseOptions;
16178
+ if (configuration) {
16179
+ baseOptions = configuration.baseOptions;
16180
+ }
16181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16182
+ const localVarHeaderParameter = {};
16183
+ const localVarQueryParameter = {};
16184
+ // authentication bearerAuth required
16185
+ // http bearer authentication required
16186
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16187
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16188
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16190
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16191
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneDatabaseRequest, localVarRequestOptions, configuration);
16192
+ return {
16193
+ url: (0, common_1.toPathString)(localVarUrlObj),
16194
+ options: localVarRequestOptions,
16195
+ };
16196
+ }),
16018
16197
  /**
16019
16198
  *
16020
16199
  * @summary Create a database
@@ -16188,6 +16367,20 @@ exports.DatabasesApiAxiosParamCreator = DatabasesApiAxiosParamCreator;
16188
16367
  const DatabasesApiFp = function (configuration) {
16189
16368
  const localVarAxiosParamCreator = (0, exports.DatabasesApiAxiosParamCreator)(configuration);
16190
16369
  return {
16370
+ /**
16371
+ * This will create a new database with the same configuration on the targeted environment Id.
16372
+ * @summary Clone database
16373
+ * @param {string} databaseId Database ID
16374
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
16375
+ * @param {*} [options] Override http request option.
16376
+ * @throws {RequiredError}
16377
+ */
16378
+ cloneDatabase(databaseId, cloneDatabaseRequest, options) {
16379
+ return __awaiter(this, void 0, void 0, function* () {
16380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneDatabase(databaseId, cloneDatabaseRequest, options);
16381
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
16382
+ });
16383
+ },
16191
16384
  /**
16192
16385
  *
16193
16386
  * @summary Create a database
@@ -16264,6 +16457,17 @@ exports.DatabasesApiFp = DatabasesApiFp;
16264
16457
  const DatabasesApiFactory = function (configuration, basePath, axios) {
16265
16458
  const localVarFp = (0, exports.DatabasesApiFp)(configuration);
16266
16459
  return {
16460
+ /**
16461
+ * This will create a new database with the same configuration on the targeted environment Id.
16462
+ * @summary Clone database
16463
+ * @param {string} databaseId Database ID
16464
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
16465
+ * @param {*} [options] Override http request option.
16466
+ * @throws {RequiredError}
16467
+ */
16468
+ cloneDatabase(databaseId, cloneDatabaseRequest, options) {
16469
+ return localVarFp.cloneDatabase(databaseId, cloneDatabaseRequest, options).then((request) => request(axios, basePath));
16470
+ },
16267
16471
  /**
16268
16472
  *
16269
16473
  * @summary Create a database
@@ -16325,6 +16529,18 @@ exports.DatabasesApiFactory = DatabasesApiFactory;
16325
16529
  * @extends {BaseAPI}
16326
16530
  */
16327
16531
  class DatabasesApi extends base_1.BaseAPI {
16532
+ /**
16533
+ * This will create a new database with the same configuration on the targeted environment Id.
16534
+ * @summary Clone database
16535
+ * @param {string} databaseId Database ID
16536
+ * @param {CloneDatabaseRequest} [cloneDatabaseRequest]
16537
+ * @param {*} [options] Override http request option.
16538
+ * @throws {RequiredError}
16539
+ * @memberof DatabasesApi
16540
+ */
16541
+ cloneDatabase(databaseId, cloneDatabaseRequest, options) {
16542
+ return (0, exports.DatabasesApiFp)(this.configuration).cloneDatabase(databaseId, cloneDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
16543
+ }
16328
16544
  /**
16329
16545
  *
16330
16546
  * @summary Create a database
@@ -22886,6 +23102,41 @@ exports.JobSecretApi = JobSecretApi;
22886
23102
  */
22887
23103
  const JobsApiAxiosParamCreator = function (configuration) {
22888
23104
  return {
23105
+ /**
23106
+ * This will create a new job with the same configuration on the targeted environment Id.
23107
+ * @summary Clone job
23108
+ * @param {string} jobId Job ID
23109
+ * @param {CloneJobRequest} [cloneJobRequest]
23110
+ * @param {*} [options] Override http request option.
23111
+ * @throws {RequiredError}
23112
+ */
23113
+ cloneJob: (jobId, cloneJobRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
23114
+ // verify required parameter 'jobId' is not null or undefined
23115
+ (0, common_1.assertParamExists)('cloneJob', 'jobId', jobId);
23116
+ const localVarPath = `/job/{jobId}/clone`
23117
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
23118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23119
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23120
+ let baseOptions;
23121
+ if (configuration) {
23122
+ baseOptions = configuration.baseOptions;
23123
+ }
23124
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
23125
+ const localVarHeaderParameter = {};
23126
+ const localVarQueryParameter = {};
23127
+ // authentication bearerAuth required
23128
+ // http bearer authentication required
23129
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
23130
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23133
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneJobRequest, localVarRequestOptions, configuration);
23135
+ return {
23136
+ url: (0, common_1.toPathString)(localVarUrlObj),
23137
+ options: localVarRequestOptions,
23138
+ };
23139
+ }),
22889
23140
  /**
22890
23141
  *
22891
23142
  * @summary Create a job
@@ -23027,6 +23278,20 @@ exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
23027
23278
  const JobsApiFp = function (configuration) {
23028
23279
  const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
23029
23280
  return {
23281
+ /**
23282
+ * This will create a new job with the same configuration on the targeted environment Id.
23283
+ * @summary Clone job
23284
+ * @param {string} jobId Job ID
23285
+ * @param {CloneJobRequest} [cloneJobRequest]
23286
+ * @param {*} [options] Override http request option.
23287
+ * @throws {RequiredError}
23288
+ */
23289
+ cloneJob(jobId, cloneJobRequest, options) {
23290
+ return __awaiter(this, void 0, void 0, function* () {
23291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneJob(jobId, cloneJobRequest, options);
23292
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
23293
+ });
23294
+ },
23030
23295
  /**
23031
23296
  *
23032
23297
  * @summary Create a job
@@ -23090,6 +23355,17 @@ exports.JobsApiFp = JobsApiFp;
23090
23355
  const JobsApiFactory = function (configuration, basePath, axios) {
23091
23356
  const localVarFp = (0, exports.JobsApiFp)(configuration);
23092
23357
  return {
23358
+ /**
23359
+ * This will create a new job with the same configuration on the targeted environment Id.
23360
+ * @summary Clone job
23361
+ * @param {string} jobId Job ID
23362
+ * @param {CloneJobRequest} [cloneJobRequest]
23363
+ * @param {*} [options] Override http request option.
23364
+ * @throws {RequiredError}
23365
+ */
23366
+ cloneJob(jobId, cloneJobRequest, options) {
23367
+ return localVarFp.cloneJob(jobId, cloneJobRequest, options).then((request) => request(axios, basePath));
23368
+ },
23093
23369
  /**
23094
23370
  *
23095
23371
  * @summary Create a job
@@ -23141,6 +23417,18 @@ exports.JobsApiFactory = JobsApiFactory;
23141
23417
  * @extends {BaseAPI}
23142
23418
  */
23143
23419
  class JobsApi extends base_1.BaseAPI {
23420
+ /**
23421
+ * This will create a new job with the same configuration on the targeted environment Id.
23422
+ * @summary Clone job
23423
+ * @param {string} jobId Job ID
23424
+ * @param {CloneJobRequest} [cloneJobRequest]
23425
+ * @param {*} [options] Override http request option.
23426
+ * @throws {RequiredError}
23427
+ * @memberof JobsApi
23428
+ */
23429
+ cloneJob(jobId, cloneJobRequest, options) {
23430
+ return (0, exports.JobsApiFp)(this.configuration).cloneJob(jobId, cloneJobRequest, options).then((request) => request(this.axios, this.basePath));
23431
+ }
23144
23432
  /**
23145
23433
  *
23146
23434
  * @summary Create a job
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.165",
3
+ "version": "v1.1.166",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [