qovery-typescript-axios 1.1.165 → 1.1.167

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 +439 -51
  2. package/dist/api.d.ts +278 -54
  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
@@ -2276,10 +2352,10 @@ export interface ClusterCloudProviderInfo {
2276
2352
  'cloud_provider'?: CloudProviderEnum;
2277
2353
  /**
2278
2354
  *
2279
- * @type {InlineResponse200Targets}
2355
+ * @type {ClusterCloudProviderInfoCredentials}
2280
2356
  * @memberof ClusterCloudProviderInfo
2281
2357
  */
2282
- 'credentials'?: InlineResponse200Targets;
2358
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2283
2359
  /**
2284
2360
  *
2285
2361
  * @type {string}
@@ -2287,6 +2363,25 @@ export interface ClusterCloudProviderInfo {
2287
2363
  */
2288
2364
  'region'?: string;
2289
2365
  }
2366
+ /**
2367
+ *
2368
+ * @export
2369
+ * @interface ClusterCloudProviderInfoCredentials
2370
+ */
2371
+ export interface ClusterCloudProviderInfoCredentials {
2372
+ /**
2373
+ *
2374
+ * @type {string}
2375
+ * @memberof ClusterCloudProviderInfoCredentials
2376
+ */
2377
+ 'id'?: string;
2378
+ /**
2379
+ *
2380
+ * @type {string}
2381
+ * @memberof ClusterCloudProviderInfoCredentials
2382
+ */
2383
+ 'name'?: string;
2384
+ }
2290
2385
  /**
2291
2386
  *
2292
2387
  * @export
@@ -2301,10 +2396,10 @@ export interface ClusterCloudProviderInfoRequest {
2301
2396
  'cloud_provider'?: CloudProviderEnum;
2302
2397
  /**
2303
2398
  *
2304
- * @type {InlineResponse200Targets}
2399
+ * @type {ClusterCloudProviderInfoCredentials}
2305
2400
  * @memberof ClusterCloudProviderInfoRequest
2306
2401
  */
2307
- 'credentials'?: InlineResponse200Targets;
2402
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2308
2403
  /**
2309
2404
  *
2310
2405
  * @type {string}
@@ -8040,88 +8135,56 @@ export interface InlineObject {
8040
8135
  * @interface InlineResponse200
8041
8136
  */
8042
8137
  export interface InlineResponse200 {
8043
- /**
8044
- *
8045
- * @type {Array<InlineResponse200Targets>}
8046
- * @memberof InlineResponse200
8047
- */
8048
- 'targets'?: Array<InlineResponse200Targets>;
8049
- }
8050
- /**
8051
- *
8052
- * @export
8053
- * @interface InlineResponse2001
8054
- */
8055
- export interface InlineResponse2001 {
8056
8138
  /**
8057
8139
  *
8058
8140
  * @type {EnvironmentStatus}
8059
- * @memberof InlineResponse2001
8141
+ * @memberof InlineResponse200
8060
8142
  */
8061
8143
  'environment'?: EnvironmentStatus;
8062
8144
  /**
8063
8145
  *
8064
8146
  * @type {Array<Status>}
8065
- * @memberof InlineResponse2001
8147
+ * @memberof InlineResponse200
8066
8148
  */
8067
8149
  'applications'?: Array<Status>;
8068
8150
  /**
8069
8151
  *
8070
8152
  * @type {Array<Status>}
8071
- * @memberof InlineResponse2001
8153
+ * @memberof InlineResponse200
8072
8154
  */
8073
8155
  'containers'?: Array<Status>;
8074
8156
  /**
8075
8157
  *
8076
8158
  * @type {Array<Status>}
8077
- * @memberof InlineResponse2001
8159
+ * @memberof InlineResponse200
8078
8160
  */
8079
8161
  'jobs'?: Array<Status>;
8080
8162
  /**
8081
8163
  *
8082
8164
  * @type {Array<Status>}
8083
- * @memberof InlineResponse2001
8165
+ * @memberof InlineResponse200
8084
8166
  */
8085
8167
  'databases'?: Array<Status>;
8086
8168
  }
8087
8169
  /**
8088
8170
  *
8089
8171
  * @export
8090
- * @interface InlineResponse2002
8172
+ * @interface InlineResponse2001
8091
8173
  */
8092
- export interface InlineResponse2002 {
8174
+ export interface InlineResponse2001 {
8093
8175
  /**
8094
8176
  *
8095
8177
  * @type {EnvironmentStatus}
8096
- * @memberof InlineResponse2002
8178
+ * @memberof InlineResponse2001
8097
8179
  */
8098
8180
  'environment'?: EnvironmentStatus;
8099
8181
  /**
8100
8182
  *
8101
8183
  * @type {DeploymentStageWithServiceStatusesList}
8102
- * @memberof InlineResponse2002
8184
+ * @memberof InlineResponse2001
8103
8185
  */
8104
8186
  'stages'?: DeploymentStageWithServiceStatusesList;
8105
8187
  }
8106
- /**
8107
- *
8108
- * @export
8109
- * @interface InlineResponse200Targets
8110
- */
8111
- export interface InlineResponse200Targets {
8112
- /**
8113
- *
8114
- * @type {string}
8115
- * @memberof InlineResponse200Targets
8116
- */
8117
- 'id'?: string;
8118
- /**
8119
- *
8120
- * @type {string}
8121
- * @memberof InlineResponse200Targets
8122
- */
8123
- 'name'?: string;
8124
- }
8125
8188
  /**
8126
8189
  *
8127
8190
  * @export
@@ -10883,6 +10946,19 @@ export enum OrganizationEventSubTargetType {
10883
10946
  VARIABLE = 'VARIABLE'
10884
10947
  }
10885
10948
 
10949
+ /**
10950
+ *
10951
+ * @export
10952
+ * @interface OrganizationEventTargetResponseList
10953
+ */
10954
+ export interface OrganizationEventTargetResponseList {
10955
+ /**
10956
+ *
10957
+ * @type {Array<ClusterCloudProviderInfoCredentials>}
10958
+ * @memberof OrganizationEventTargetResponseList
10959
+ */
10960
+ 'targets'?: Array<ClusterCloudProviderInfoCredentials>;
10961
+ }
10886
10962
  /**
10887
10963
  * Type of the organization event
10888
10964
  * @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
@@ -32607,7 +32917,7 @@ export const EnvironmentMainCallsApiFp = function(configuration?: Configuration)
32607
32917
  * @param {*} [options] Override http request option.
32608
32918
  * @throws {RequiredError}
32609
32919
  */
32610
- async getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>> {
32920
+ async getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
32611
32921
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentStatuses(environmentId, options);
32612
32922
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32613
32923
  },
@@ -32618,7 +32928,7 @@ export const EnvironmentMainCallsApiFp = function(configuration?: Configuration)
32618
32928
  * @param {*} [options] Override http request option.
32619
32929
  * @throws {RequiredError}
32620
32930
  */
32621
- async getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>> {
32931
+ async getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>> {
32622
32932
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentStatusesWithStages(environmentId, options);
32623
32933
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32624
32934
  },
@@ -32680,7 +32990,7 @@ export const EnvironmentMainCallsApiFactory = function (configuration?: Configur
32680
32990
  * @param {*} [options] Override http request option.
32681
32991
  * @throws {RequiredError}
32682
32992
  */
32683
- getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse2001> {
32993
+ getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse200> {
32684
32994
  return localVarFp.getEnvironmentStatuses(environmentId, options).then((request) => request(axios, basePath));
32685
32995
  },
32686
32996
  /**
@@ -32690,7 +33000,7 @@ export const EnvironmentMainCallsApiFactory = function (configuration?: Configur
32690
33000
  * @param {*} [options] Override http request option.
32691
33001
  * @throws {RequiredError}
32692
33002
  */
32693
- getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2002> {
33003
+ getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2001> {
32694
33004
  return localVarFp.getEnvironmentStatusesWithStages(environmentId, options).then((request) => request(axios, basePath));
32695
33005
  },
32696
33006
  };
@@ -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
@@ -39690,7 +40078,7 @@ export const OrganizationEventApiFp = function(configuration?: Configuration) {
39690
40078
  * @param {*} [options] Override http request option.
39691
40079
  * @throws {RequiredError}
39692
40080
  */
39693
- async getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
40081
+ async getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationEventTargetResponseList>> {
39694
40082
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEventTargets(organizationId, fromTimestamp, toTimestamp, eventType, targetType, triggeredBy, origin, projectId, environmentId, options);
39695
40083
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39696
40084
  },
@@ -39741,7 +40129,7 @@ export const OrganizationEventApiFactory = function (configuration?: Configurati
39741
40129
  * @param {*} [options] Override http request option.
39742
40130
  * @throws {RequiredError}
39743
40131
  */
39744
- getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<InlineResponse200> {
40132
+ getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<OrganizationEventTargetResponseList> {
39745
40133
  return localVarFp.getOrganizationEventTargets(organizationId, fromTimestamp, toTimestamp, eventType, targetType, triggeredBy, origin, projectId, environmentId, options).then((request) => request(axios, basePath));
39746
40134
  },
39747
40135
  /**