qovery-typescript-axios 1.1.88 → 1.1.90

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 +764 -196
  2. package/dist/api.d.ts +397 -34
  3. package/dist/api.js +442 -69
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -5730,6 +5730,174 @@ export interface DeploymentRuleRequest {
5730
5730
  */
5731
5731
  'weekdays'?: Array<WeekdayEnum> | null;
5732
5732
  }
5733
+ /**
5734
+ *
5735
+ * @export
5736
+ * @interface DeploymentStageRequest
5737
+ */
5738
+ export interface DeploymentStageRequest {
5739
+ /**
5740
+ * The name of the deployment stage
5741
+ * @type {string}
5742
+ * @memberof DeploymentStageRequest
5743
+ */
5744
+ 'name'?: string;
5745
+ /**
5746
+ * free test describing this stage
5747
+ * @type {string}
5748
+ * @memberof DeploymentStageRequest
5749
+ */
5750
+ 'description'?: string;
5751
+ }
5752
+ /**
5753
+ *
5754
+ * @export
5755
+ * @interface DeploymentStageResponse
5756
+ */
5757
+ export interface DeploymentStageResponse {
5758
+ /**
5759
+ *
5760
+ * @type {string}
5761
+ * @memberof DeploymentStageResponse
5762
+ */
5763
+ 'id': string;
5764
+ /**
5765
+ *
5766
+ * @type {string}
5767
+ * @memberof DeploymentStageResponse
5768
+ */
5769
+ 'created_at': string;
5770
+ /**
5771
+ *
5772
+ * @type {string}
5773
+ * @memberof DeploymentStageResponse
5774
+ */
5775
+ 'updated_at'?: string;
5776
+ /**
5777
+ *
5778
+ * @type {ReferenceObject}
5779
+ * @memberof DeploymentStageResponse
5780
+ */
5781
+ 'environment': ReferenceObject;
5782
+ /**
5783
+ * name is case insensitive
5784
+ * @type {string}
5785
+ * @memberof DeploymentStageResponse
5786
+ */
5787
+ 'name'?: string;
5788
+ /**
5789
+ *
5790
+ * @type {string}
5791
+ * @memberof DeploymentStageResponse
5792
+ */
5793
+ 'description'?: string;
5794
+ /**
5795
+ * Position of the deployment stage within the environment
5796
+ * @type {number}
5797
+ * @memberof DeploymentStageResponse
5798
+ */
5799
+ 'deployment_order'?: number;
5800
+ /**
5801
+ *
5802
+ * @type {Array<DeploymentStageServiceResponse>}
5803
+ * @memberof DeploymentStageResponse
5804
+ */
5805
+ 'services'?: Array<DeploymentStageServiceResponse>;
5806
+ }
5807
+ /**
5808
+ *
5809
+ * @export
5810
+ * @interface DeploymentStageResponseAllOf
5811
+ */
5812
+ export interface DeploymentStageResponseAllOf {
5813
+ /**
5814
+ *
5815
+ * @type {ReferenceObject}
5816
+ * @memberof DeploymentStageResponseAllOf
5817
+ */
5818
+ 'environment': ReferenceObject;
5819
+ /**
5820
+ * name is case insensitive
5821
+ * @type {string}
5822
+ * @memberof DeploymentStageResponseAllOf
5823
+ */
5824
+ 'name'?: string;
5825
+ /**
5826
+ *
5827
+ * @type {string}
5828
+ * @memberof DeploymentStageResponseAllOf
5829
+ */
5830
+ 'description'?: string;
5831
+ /**
5832
+ * Position of the deployment stage within the environment
5833
+ * @type {number}
5834
+ * @memberof DeploymentStageResponseAllOf
5835
+ */
5836
+ 'deployment_order'?: number;
5837
+ /**
5838
+ *
5839
+ * @type {Array<DeploymentStageServiceResponse>}
5840
+ * @memberof DeploymentStageResponseAllOf
5841
+ */
5842
+ 'services'?: Array<DeploymentStageServiceResponse>;
5843
+ }
5844
+ /**
5845
+ *
5846
+ * @export
5847
+ * @interface DeploymentStageResponseList
5848
+ */
5849
+ export interface DeploymentStageResponseList {
5850
+ /**
5851
+ *
5852
+ * @type {Array<DeploymentStageResponse>}
5853
+ * @memberof DeploymentStageResponseList
5854
+ */
5855
+ 'results'?: Array<DeploymentStageResponse>;
5856
+ }
5857
+ /**
5858
+ *
5859
+ * @export
5860
+ * @interface DeploymentStageServiceResponse
5861
+ */
5862
+ export interface DeploymentStageServiceResponse {
5863
+ /**
5864
+ *
5865
+ * @type {string}
5866
+ * @memberof DeploymentStageServiceResponse
5867
+ */
5868
+ 'id': string;
5869
+ /**
5870
+ *
5871
+ * @type {string}
5872
+ * @memberof DeploymentStageServiceResponse
5873
+ */
5874
+ 'created_at': string;
5875
+ /**
5876
+ *
5877
+ * @type {string}
5878
+ * @memberof DeploymentStageServiceResponse
5879
+ */
5880
+ 'updated_at'?: string;
5881
+ /**
5882
+ * id of the service attached to the stage
5883
+ * @type {string}
5884
+ * @memberof DeploymentStageServiceResponse
5885
+ */
5886
+ 'service_id'?: string;
5887
+ }
5888
+ /**
5889
+ *
5890
+ * @export
5891
+ * @interface DeploymentStageServiceResponseAllOf
5892
+ */
5893
+ export interface DeploymentStageServiceResponseAllOf {
5894
+ /**
5895
+ * id of the service attached to the stage
5896
+ * @type {string}
5897
+ * @memberof DeploymentStageServiceResponseAllOf
5898
+ */
5899
+ 'service_id'?: string;
5900
+ }
5733
5901
  /**
5734
5902
  *
5735
5903
  * @export
@@ -10629,7 +10797,7 @@ export interface PaidUsage {
10629
10797
  * @type {string}
10630
10798
  * @memberof PaidUsage
10631
10799
  */
10632
- 'renewal_at'?: string;
10800
+ 'renewal_at'?: string | null;
10633
10801
  }
10634
10802
  /**
10635
10803
  * BUSINESS & PROFESSIONAL are deprecated
@@ -29636,24 +29804,23 @@ export class DependencyApi extends BaseAPI {
29636
29804
 
29637
29805
 
29638
29806
  /**
29639
- * EnvironmentApi - axios parameter creator
29807
+ * DeploymentStageMainCallsApi - axios parameter creator
29640
29808
  * @export
29641
29809
  */
29642
- export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
29810
+ export const DeploymentStageMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
29643
29811
  return {
29644
29812
  /**
29645
- * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
29646
- * @summary Deploy applications
29647
- * @param {string} environmentId Environment ID
29648
- * @param {DeployAllRequest} [deployAllRequest]
29813
+ *
29814
+ * @summary Attach service to deployment stage
29815
+ * @param {string} serviceId Service ID of an application/job/container/database
29649
29816
  * @param {*} [options] Override http request option.
29650
29817
  * @throws {RequiredError}
29651
29818
  */
29652
- deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29653
- // verify required parameter 'environmentId' is not null or undefined
29654
- assertParamExists('deployAllApplications', 'environmentId', environmentId)
29655
- const localVarPath = `/environment/{environmentId}/application/deploy`
29656
- .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
29819
+ attachServiceToDeploymentStage: async (serviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29820
+ // verify required parameter 'serviceId' is not null or undefined
29821
+ assertParamExists('attachServiceToDeploymentStage', 'serviceId', serviceId)
29822
+ const localVarPath = `/deploymentStage/{deploymentStageId}/service/{serviceId}`
29823
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
29657
29824
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29658
29825
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29659
29826
  let baseOptions;
@@ -29661,7 +29828,7 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
29661
29828
  baseOptions = configuration.baseOptions;
29662
29829
  }
29663
29830
 
29664
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29831
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
29665
29832
  const localVarHeaderParameter = {} as any;
29666
29833
  const localVarQueryParameter = {} as any;
29667
29834
 
@@ -29671,103 +29838,27 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
29671
29838
 
29672
29839
 
29673
29840
 
29674
- localVarHeaderParameter['Content-Type'] = 'application/json';
29675
-
29676
29841
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29677
29842
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29678
29843
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29679
- localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
29680
29844
 
29681
29845
  return {
29682
29846
  url: toPathString(localVarUrlObj),
29683
29847
  options: localVarRequestOptions,
29684
29848
  };
29685
29849
  },
29686
- }
29687
- };
29688
-
29689
- /**
29690
- * EnvironmentApi - functional programming interface
29691
- * @export
29692
- */
29693
- export const EnvironmentApiFp = function(configuration?: Configuration) {
29694
- const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
29695
- return {
29696
- /**
29697
- * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
29698
- * @summary Deploy applications
29699
- * @param {string} environmentId Environment ID
29700
- * @param {DeployAllRequest} [deployAllRequest]
29701
- * @param {*} [options] Override http request option.
29702
- * @throws {RequiredError}
29703
- */
29704
- async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
29705
- const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
29706
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29707
- },
29708
- }
29709
- };
29710
-
29711
- /**
29712
- * EnvironmentApi - factory interface
29713
- * @export
29714
- */
29715
- export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29716
- const localVarFp = EnvironmentApiFp(configuration)
29717
- return {
29718
- /**
29719
- * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
29720
- * @summary Deploy applications
29721
- * @param {string} environmentId Environment ID
29722
- * @param {DeployAllRequest} [deployAllRequest]
29723
- * @param {*} [options] Override http request option.
29724
- * @throws {RequiredError}
29725
- */
29726
- deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
29727
- return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
29728
- },
29729
- };
29730
- };
29731
-
29732
- /**
29733
- * EnvironmentApi - object-oriented interface
29734
- * @export
29735
- * @class EnvironmentApi
29736
- * @extends {BaseAPI}
29737
- */
29738
- export class EnvironmentApi extends BaseAPI {
29739
- /**
29740
- * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
29741
- * @summary Deploy applications
29742
- * @param {string} environmentId Environment ID
29743
- * @param {DeployAllRequest} [deployAllRequest]
29744
- * @param {*} [options] Override http request option.
29745
- * @throws {RequiredError}
29746
- * @memberof EnvironmentApi
29747
- */
29748
- public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
29749
- return EnvironmentApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
29750
- }
29751
- }
29752
-
29753
-
29754
- /**
29755
- * EnvironmentActionsApi - axios parameter creator
29756
- * @export
29757
- */
29758
- export const EnvironmentActionsApiAxiosParamCreator = function (configuration?: Configuration) {
29759
- return {
29760
29850
  /**
29761
- * Cancel the current deployment of your environment.
29762
- * @summary Cancel environment deployment
29851
+ *
29852
+ * @summary Create environment deployment stage
29763
29853
  * @param {string} environmentId Environment ID
29854
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
29764
29855
  * @param {*} [options] Override http request option.
29765
29856
  * @throws {RequiredError}
29766
29857
  */
29767
- cancelEnvironmentDeployment: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29858
+ createEnvironmentDeploymentStage: async (environmentId: string, deploymentStageRequest?: DeploymentStageRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29768
29859
  // verify required parameter 'environmentId' is not null or undefined
29769
- assertParamExists('cancelEnvironmentDeployment', 'environmentId', environmentId)
29770
- const localVarPath = `/environment/{environmentId}/cancelDeployment`
29860
+ assertParamExists('createEnvironmentDeploymentStage', 'environmentId', environmentId)
29861
+ const localVarPath = `/environment/{environmentId}/deploymentStage`
29771
29862
  .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
29772
29863
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29773
29864
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29786,9 +29877,12 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29786
29877
 
29787
29878
 
29788
29879
 
29880
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29881
+
29789
29882
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29790
29883
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29791
29884
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29885
+ localVarRequestOptions.data = serializeDataIfNeeded(deploymentStageRequest, localVarRequestOptions, configuration)
29792
29886
 
29793
29887
  return {
29794
29888
  url: toPathString(localVarUrlObj),
@@ -29796,18 +29890,13 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29796
29890
  };
29797
29891
  },
29798
29892
  /**
29799
- * You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
29800
- * @summary Clone environment
29801
- * @param {string} environmentId Environment ID
29802
- * @param {CloneRequest} [cloneRequest]
29893
+ *
29894
+ * @summary Delete deployment stage
29803
29895
  * @param {*} [options] Override http request option.
29804
29896
  * @throws {RequiredError}
29805
29897
  */
29806
- cloneEnvironment: async (environmentId: string, cloneRequest?: CloneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29807
- // verify required parameter 'environmentId' is not null or undefined
29808
- assertParamExists('cloneEnvironment', 'environmentId', environmentId)
29809
- const localVarPath = `/environment/{environmentId}/clone`
29810
- .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
29898
+ deleteDeploymentStage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29899
+ const localVarPath = `/deploymentStage/{deploymentStageId}`;
29811
29900
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29812
29901
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29813
29902
  let baseOptions;
@@ -29815,7 +29904,7 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29815
29904
  baseOptions = configuration.baseOptions;
29816
29905
  }
29817
29906
 
29818
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29907
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
29819
29908
  const localVarHeaderParameter = {} as any;
29820
29909
  const localVarQueryParameter = {} as any;
29821
29910
 
@@ -29825,12 +29914,9 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29825
29914
 
29826
29915
 
29827
29916
 
29828
- localVarHeaderParameter['Content-Type'] = 'application/json';
29829
-
29830
29917
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29831
29918
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29832
29919
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29833
- localVarRequestOptions.data = serializeDataIfNeeded(cloneRequest, localVarRequestOptions, configuration)
29834
29920
 
29835
29921
  return {
29836
29922
  url: toPathString(localVarUrlObj),
@@ -29838,18 +29924,18 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29838
29924
  };
29839
29925
  },
29840
29926
  /**
29841
- * Update and deploy the selected services
29842
- * @summary Deploy services
29843
- * @param {string} environmentId Environment ID
29844
- * @param {DeployAllRequest} [deployAllRequest]
29927
+ *
29928
+ * @summary Edit deployment stage
29929
+ * @param {string} deploymentStageId Deployment Stage ID
29930
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
29845
29931
  * @param {*} [options] Override http request option.
29846
29932
  * @throws {RequiredError}
29847
29933
  */
29848
- deployAllServices: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29849
- // verify required parameter 'environmentId' is not null or undefined
29850
- assertParamExists('deployAllServices', 'environmentId', environmentId)
29851
- const localVarPath = `/environment/{environmentId}/service/deploy`
29852
- .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
29934
+ editDeploymentStage: async (deploymentStageId: string, deploymentStageRequest?: DeploymentStageRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29935
+ // verify required parameter 'deploymentStageId' is not null or undefined
29936
+ assertParamExists('editDeploymentStage', 'deploymentStageId', deploymentStageId)
29937
+ const localVarPath = `/deploymentStage/{deploymentStageId}`
29938
+ .replace(`{${"deploymentStageId"}}`, encodeURIComponent(String(deploymentStageId)));
29853
29939
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29854
29940
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29855
29941
  let baseOptions;
@@ -29857,7 +29943,7 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29857
29943
  baseOptions = configuration.baseOptions;
29858
29944
  }
29859
29945
 
29860
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29946
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
29861
29947
  const localVarHeaderParameter = {} as any;
29862
29948
  const localVarQueryParameter = {} as any;
29863
29949
 
@@ -29872,7 +29958,7 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29872
29958
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29873
29959
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29874
29960
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29875
- localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
29961
+ localVarRequestOptions.data = serializeDataIfNeeded(deploymentStageRequest, localVarRequestOptions, configuration)
29876
29962
 
29877
29963
  return {
29878
29964
  url: toPathString(localVarUrlObj),
@@ -29880,16 +29966,16 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29880
29966
  };
29881
29967
  },
29882
29968
  /**
29883
- * This will deploy all the services of this environment to their latest version.
29884
- * @summary Deploy environment
29969
+ *
29970
+ * @summary List environment deployment stage
29885
29971
  * @param {string} environmentId Environment ID
29886
29972
  * @param {*} [options] Override http request option.
29887
29973
  * @throws {RequiredError}
29888
29974
  */
29889
- deployEnvironment: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29975
+ listEnvironmentDeploymentStage: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29890
29976
  // verify required parameter 'environmentId' is not null or undefined
29891
- assertParamExists('deployEnvironment', 'environmentId', environmentId)
29892
- const localVarPath = `/environment/{environmentId}/deploy`
29977
+ assertParamExists('listEnvironmentDeploymentStage', 'environmentId', environmentId)
29978
+ const localVarPath = `/environment/{environmentId}/deploymentStage`
29893
29979
  .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
29894
29980
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29895
29981
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29898,7 +29984,560 @@ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?:
29898
29984
  baseOptions = configuration.baseOptions;
29899
29985
  }
29900
29986
 
29901
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29987
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29988
+ const localVarHeaderParameter = {} as any;
29989
+ const localVarQueryParameter = {} as any;
29990
+
29991
+ // authentication bearerAuth required
29992
+ // http bearer authentication required
29993
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29994
+
29995
+
29996
+
29997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29999
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30000
+
30001
+ return {
30002
+ url: toPathString(localVarUrlObj),
30003
+ options: localVarRequestOptions,
30004
+ };
30005
+ },
30006
+ /**
30007
+ *
30008
+ * @summary Move deployment stage before requested stage
30009
+ * @param {string} stageId Deployment Stage ID
30010
+ * @param {*} [options] Override http request option.
30011
+ * @throws {RequiredError}
30012
+ */
30013
+ moveDeploymentStage: async (stageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30014
+ // verify required parameter 'stageId' is not null or undefined
30015
+ assertParamExists('moveDeploymentStage', 'stageId', stageId)
30016
+ const localVarPath = `/deploymentStage/{deploymentStageId}/moveBefore/{stageId}`
30017
+ .replace(`{${"stageId"}}`, encodeURIComponent(String(stageId)));
30018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30019
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30020
+ let baseOptions;
30021
+ if (configuration) {
30022
+ baseOptions = configuration.baseOptions;
30023
+ }
30024
+
30025
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30026
+ const localVarHeaderParameter = {} as any;
30027
+ const localVarQueryParameter = {} as any;
30028
+
30029
+ // authentication bearerAuth required
30030
+ // http bearer authentication required
30031
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30032
+
30033
+
30034
+
30035
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30036
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30037
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30038
+
30039
+ return {
30040
+ url: toPathString(localVarUrlObj),
30041
+ options: localVarRequestOptions,
30042
+ };
30043
+ },
30044
+ }
30045
+ };
30046
+
30047
+ /**
30048
+ * DeploymentStageMainCallsApi - functional programming interface
30049
+ * @export
30050
+ */
30051
+ export const DeploymentStageMainCallsApiFp = function(configuration?: Configuration) {
30052
+ const localVarAxiosParamCreator = DeploymentStageMainCallsApiAxiosParamCreator(configuration)
30053
+ return {
30054
+ /**
30055
+ *
30056
+ * @summary Attach service to deployment stage
30057
+ * @param {string} serviceId Service ID of an application/job/container/database
30058
+ * @param {*} [options] Override http request option.
30059
+ * @throws {RequiredError}
30060
+ */
30061
+ async attachServiceToDeploymentStage(serviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachServiceToDeploymentStage(serviceId, options);
30063
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30064
+ },
30065
+ /**
30066
+ *
30067
+ * @summary Create environment deployment stage
30068
+ * @param {string} environmentId Environment ID
30069
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30070
+ * @param {*} [options] Override http request option.
30071
+ * @throws {RequiredError}
30072
+ */
30073
+ async createEnvironmentDeploymentStage(environmentId: string, deploymentStageRequest?: DeploymentStageRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentStageResponse>> {
30074
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironmentDeploymentStage(environmentId, deploymentStageRequest, options);
30075
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30076
+ },
30077
+ /**
30078
+ *
30079
+ * @summary Delete deployment stage
30080
+ * @param {*} [options] Override http request option.
30081
+ * @throws {RequiredError}
30082
+ */
30083
+ async deleteDeploymentStage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeploymentStage(options);
30085
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30086
+ },
30087
+ /**
30088
+ *
30089
+ * @summary Edit deployment stage
30090
+ * @param {string} deploymentStageId Deployment Stage ID
30091
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30092
+ * @param {*} [options] Override http request option.
30093
+ * @throws {RequiredError}
30094
+ */
30095
+ async editDeploymentStage(deploymentStageId: string, deploymentStageRequest?: DeploymentStageRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentStageResponse>> {
30096
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editDeploymentStage(deploymentStageId, deploymentStageRequest, options);
30097
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30098
+ },
30099
+ /**
30100
+ *
30101
+ * @summary List environment deployment stage
30102
+ * @param {string} environmentId Environment ID
30103
+ * @param {*} [options] Override http request option.
30104
+ * @throws {RequiredError}
30105
+ */
30106
+ async listEnvironmentDeploymentStage(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentStageResponseList>> {
30107
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentDeploymentStage(environmentId, options);
30108
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30109
+ },
30110
+ /**
30111
+ *
30112
+ * @summary Move deployment stage before requested stage
30113
+ * @param {string} stageId Deployment Stage ID
30114
+ * @param {*} [options] Override http request option.
30115
+ * @throws {RequiredError}
30116
+ */
30117
+ async moveDeploymentStage(stageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentStageResponseList>> {
30118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveDeploymentStage(stageId, options);
30119
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30120
+ },
30121
+ }
30122
+ };
30123
+
30124
+ /**
30125
+ * DeploymentStageMainCallsApi - factory interface
30126
+ * @export
30127
+ */
30128
+ export const DeploymentStageMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30129
+ const localVarFp = DeploymentStageMainCallsApiFp(configuration)
30130
+ return {
30131
+ /**
30132
+ *
30133
+ * @summary Attach service to deployment stage
30134
+ * @param {string} serviceId Service ID of an application/job/container/database
30135
+ * @param {*} [options] Override http request option.
30136
+ * @throws {RequiredError}
30137
+ */
30138
+ attachServiceToDeploymentStage(serviceId: string, options?: any): AxiosPromise<void> {
30139
+ return localVarFp.attachServiceToDeploymentStage(serviceId, options).then((request) => request(axios, basePath));
30140
+ },
30141
+ /**
30142
+ *
30143
+ * @summary Create environment deployment stage
30144
+ * @param {string} environmentId Environment ID
30145
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30146
+ * @param {*} [options] Override http request option.
30147
+ * @throws {RequiredError}
30148
+ */
30149
+ createEnvironmentDeploymentStage(environmentId: string, deploymentStageRequest?: DeploymentStageRequest, options?: any): AxiosPromise<DeploymentStageResponse> {
30150
+ return localVarFp.createEnvironmentDeploymentStage(environmentId, deploymentStageRequest, options).then((request) => request(axios, basePath));
30151
+ },
30152
+ /**
30153
+ *
30154
+ * @summary Delete deployment stage
30155
+ * @param {*} [options] Override http request option.
30156
+ * @throws {RequiredError}
30157
+ */
30158
+ deleteDeploymentStage(options?: any): AxiosPromise<void> {
30159
+ return localVarFp.deleteDeploymentStage(options).then((request) => request(axios, basePath));
30160
+ },
30161
+ /**
30162
+ *
30163
+ * @summary Edit deployment stage
30164
+ * @param {string} deploymentStageId Deployment Stage ID
30165
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30166
+ * @param {*} [options] Override http request option.
30167
+ * @throws {RequiredError}
30168
+ */
30169
+ editDeploymentStage(deploymentStageId: string, deploymentStageRequest?: DeploymentStageRequest, options?: any): AxiosPromise<DeploymentStageResponse> {
30170
+ return localVarFp.editDeploymentStage(deploymentStageId, deploymentStageRequest, options).then((request) => request(axios, basePath));
30171
+ },
30172
+ /**
30173
+ *
30174
+ * @summary List environment deployment stage
30175
+ * @param {string} environmentId Environment ID
30176
+ * @param {*} [options] Override http request option.
30177
+ * @throws {RequiredError}
30178
+ */
30179
+ listEnvironmentDeploymentStage(environmentId: string, options?: any): AxiosPromise<DeploymentStageResponseList> {
30180
+ return localVarFp.listEnvironmentDeploymentStage(environmentId, options).then((request) => request(axios, basePath));
30181
+ },
30182
+ /**
30183
+ *
30184
+ * @summary Move deployment stage before requested stage
30185
+ * @param {string} stageId Deployment Stage ID
30186
+ * @param {*} [options] Override http request option.
30187
+ * @throws {RequiredError}
30188
+ */
30189
+ moveDeploymentStage(stageId: string, options?: any): AxiosPromise<DeploymentStageResponseList> {
30190
+ return localVarFp.moveDeploymentStage(stageId, options).then((request) => request(axios, basePath));
30191
+ },
30192
+ };
30193
+ };
30194
+
30195
+ /**
30196
+ * DeploymentStageMainCallsApi - object-oriented interface
30197
+ * @export
30198
+ * @class DeploymentStageMainCallsApi
30199
+ * @extends {BaseAPI}
30200
+ */
30201
+ export class DeploymentStageMainCallsApi extends BaseAPI {
30202
+ /**
30203
+ *
30204
+ * @summary Attach service to deployment stage
30205
+ * @param {string} serviceId Service ID of an application/job/container/database
30206
+ * @param {*} [options] Override http request option.
30207
+ * @throws {RequiredError}
30208
+ * @memberof DeploymentStageMainCallsApi
30209
+ */
30210
+ public attachServiceToDeploymentStage(serviceId: string, options?: AxiosRequestConfig) {
30211
+ return DeploymentStageMainCallsApiFp(this.configuration).attachServiceToDeploymentStage(serviceId, options).then((request) => request(this.axios, this.basePath));
30212
+ }
30213
+
30214
+ /**
30215
+ *
30216
+ * @summary Create environment deployment stage
30217
+ * @param {string} environmentId Environment ID
30218
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30219
+ * @param {*} [options] Override http request option.
30220
+ * @throws {RequiredError}
30221
+ * @memberof DeploymentStageMainCallsApi
30222
+ */
30223
+ public createEnvironmentDeploymentStage(environmentId: string, deploymentStageRequest?: DeploymentStageRequest, options?: AxiosRequestConfig) {
30224
+ return DeploymentStageMainCallsApiFp(this.configuration).createEnvironmentDeploymentStage(environmentId, deploymentStageRequest, options).then((request) => request(this.axios, this.basePath));
30225
+ }
30226
+
30227
+ /**
30228
+ *
30229
+ * @summary Delete deployment stage
30230
+ * @param {*} [options] Override http request option.
30231
+ * @throws {RequiredError}
30232
+ * @memberof DeploymentStageMainCallsApi
30233
+ */
30234
+ public deleteDeploymentStage(options?: AxiosRequestConfig) {
30235
+ return DeploymentStageMainCallsApiFp(this.configuration).deleteDeploymentStage(options).then((request) => request(this.axios, this.basePath));
30236
+ }
30237
+
30238
+ /**
30239
+ *
30240
+ * @summary Edit deployment stage
30241
+ * @param {string} deploymentStageId Deployment Stage ID
30242
+ * @param {DeploymentStageRequest} [deploymentStageRequest]
30243
+ * @param {*} [options] Override http request option.
30244
+ * @throws {RequiredError}
30245
+ * @memberof DeploymentStageMainCallsApi
30246
+ */
30247
+ public editDeploymentStage(deploymentStageId: string, deploymentStageRequest?: DeploymentStageRequest, options?: AxiosRequestConfig) {
30248
+ return DeploymentStageMainCallsApiFp(this.configuration).editDeploymentStage(deploymentStageId, deploymentStageRequest, options).then((request) => request(this.axios, this.basePath));
30249
+ }
30250
+
30251
+ /**
30252
+ *
30253
+ * @summary List environment deployment stage
30254
+ * @param {string} environmentId Environment ID
30255
+ * @param {*} [options] Override http request option.
30256
+ * @throws {RequiredError}
30257
+ * @memberof DeploymentStageMainCallsApi
30258
+ */
30259
+ public listEnvironmentDeploymentStage(environmentId: string, options?: AxiosRequestConfig) {
30260
+ return DeploymentStageMainCallsApiFp(this.configuration).listEnvironmentDeploymentStage(environmentId, options).then((request) => request(this.axios, this.basePath));
30261
+ }
30262
+
30263
+ /**
30264
+ *
30265
+ * @summary Move deployment stage before requested stage
30266
+ * @param {string} stageId Deployment Stage ID
30267
+ * @param {*} [options] Override http request option.
30268
+ * @throws {RequiredError}
30269
+ * @memberof DeploymentStageMainCallsApi
30270
+ */
30271
+ public moveDeploymentStage(stageId: string, options?: AxiosRequestConfig) {
30272
+ return DeploymentStageMainCallsApiFp(this.configuration).moveDeploymentStage(stageId, options).then((request) => request(this.axios, this.basePath));
30273
+ }
30274
+ }
30275
+
30276
+
30277
+ /**
30278
+ * EnvironmentApi - axios parameter creator
30279
+ * @export
30280
+ */
30281
+ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
30282
+ return {
30283
+ /**
30284
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
30285
+ * @summary Deploy applications
30286
+ * @param {string} environmentId Environment ID
30287
+ * @param {DeployAllRequest} [deployAllRequest]
30288
+ * @param {*} [options] Override http request option.
30289
+ * @throws {RequiredError}
30290
+ */
30291
+ deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30292
+ // verify required parameter 'environmentId' is not null or undefined
30293
+ assertParamExists('deployAllApplications', 'environmentId', environmentId)
30294
+ const localVarPath = `/environment/{environmentId}/application/deploy`
30295
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30297
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30298
+ let baseOptions;
30299
+ if (configuration) {
30300
+ baseOptions = configuration.baseOptions;
30301
+ }
30302
+
30303
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30304
+ const localVarHeaderParameter = {} as any;
30305
+ const localVarQueryParameter = {} as any;
30306
+
30307
+ // authentication bearerAuth required
30308
+ // http bearer authentication required
30309
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30310
+
30311
+
30312
+
30313
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30314
+
30315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30317
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30318
+ localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
30319
+
30320
+ return {
30321
+ url: toPathString(localVarUrlObj),
30322
+ options: localVarRequestOptions,
30323
+ };
30324
+ },
30325
+ }
30326
+ };
30327
+
30328
+ /**
30329
+ * EnvironmentApi - functional programming interface
30330
+ * @export
30331
+ */
30332
+ export const EnvironmentApiFp = function(configuration?: Configuration) {
30333
+ const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
30334
+ return {
30335
+ /**
30336
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
30337
+ * @summary Deploy applications
30338
+ * @param {string} environmentId Environment ID
30339
+ * @param {DeployAllRequest} [deployAllRequest]
30340
+ * @param {*} [options] Override http request option.
30341
+ * @throws {RequiredError}
30342
+ */
30343
+ async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
30344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
30345
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30346
+ },
30347
+ }
30348
+ };
30349
+
30350
+ /**
30351
+ * EnvironmentApi - factory interface
30352
+ * @export
30353
+ */
30354
+ export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30355
+ const localVarFp = EnvironmentApiFp(configuration)
30356
+ return {
30357
+ /**
30358
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
30359
+ * @summary Deploy applications
30360
+ * @param {string} environmentId Environment ID
30361
+ * @param {DeployAllRequest} [deployAllRequest]
30362
+ * @param {*} [options] Override http request option.
30363
+ * @throws {RequiredError}
30364
+ */
30365
+ deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
30366
+ return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
30367
+ },
30368
+ };
30369
+ };
30370
+
30371
+ /**
30372
+ * EnvironmentApi - object-oriented interface
30373
+ * @export
30374
+ * @class EnvironmentApi
30375
+ * @extends {BaseAPI}
30376
+ */
30377
+ export class EnvironmentApi extends BaseAPI {
30378
+ /**
30379
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
30380
+ * @summary Deploy applications
30381
+ * @param {string} environmentId Environment ID
30382
+ * @param {DeployAllRequest} [deployAllRequest]
30383
+ * @param {*} [options] Override http request option.
30384
+ * @throws {RequiredError}
30385
+ * @memberof EnvironmentApi
30386
+ */
30387
+ public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
30388
+ return EnvironmentApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
30389
+ }
30390
+ }
30391
+
30392
+
30393
+ /**
30394
+ * EnvironmentActionsApi - axios parameter creator
30395
+ * @export
30396
+ */
30397
+ export const EnvironmentActionsApiAxiosParamCreator = function (configuration?: Configuration) {
30398
+ return {
30399
+ /**
30400
+ * Cancel the current deployment of your environment.
30401
+ * @summary Cancel environment deployment
30402
+ * @param {string} environmentId Environment ID
30403
+ * @param {*} [options] Override http request option.
30404
+ * @throws {RequiredError}
30405
+ */
30406
+ cancelEnvironmentDeployment: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30407
+ // verify required parameter 'environmentId' is not null or undefined
30408
+ assertParamExists('cancelEnvironmentDeployment', 'environmentId', environmentId)
30409
+ const localVarPath = `/environment/{environmentId}/cancelDeployment`
30410
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30413
+ let baseOptions;
30414
+ if (configuration) {
30415
+ baseOptions = configuration.baseOptions;
30416
+ }
30417
+
30418
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30419
+ const localVarHeaderParameter = {} as any;
30420
+ const localVarQueryParameter = {} as any;
30421
+
30422
+ // authentication bearerAuth required
30423
+ // http bearer authentication required
30424
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30425
+
30426
+
30427
+
30428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30430
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30431
+
30432
+ return {
30433
+ url: toPathString(localVarUrlObj),
30434
+ options: localVarRequestOptions,
30435
+ };
30436
+ },
30437
+ /**
30438
+ * You must provide a name. This will create a new environment, with the same configuration, and same applications and databases. Database data is not cloned.
30439
+ * @summary Clone environment
30440
+ * @param {string} environmentId Environment ID
30441
+ * @param {CloneRequest} [cloneRequest]
30442
+ * @param {*} [options] Override http request option.
30443
+ * @throws {RequiredError}
30444
+ */
30445
+ cloneEnvironment: async (environmentId: string, cloneRequest?: CloneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30446
+ // verify required parameter 'environmentId' is not null or undefined
30447
+ assertParamExists('cloneEnvironment', 'environmentId', environmentId)
30448
+ const localVarPath = `/environment/{environmentId}/clone`
30449
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30452
+ let baseOptions;
30453
+ if (configuration) {
30454
+ baseOptions = configuration.baseOptions;
30455
+ }
30456
+
30457
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30458
+ const localVarHeaderParameter = {} as any;
30459
+ const localVarQueryParameter = {} as any;
30460
+
30461
+ // authentication bearerAuth required
30462
+ // http bearer authentication required
30463
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30464
+
30465
+
30466
+
30467
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30468
+
30469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30472
+ localVarRequestOptions.data = serializeDataIfNeeded(cloneRequest, localVarRequestOptions, configuration)
30473
+
30474
+ return {
30475
+ url: toPathString(localVarUrlObj),
30476
+ options: localVarRequestOptions,
30477
+ };
30478
+ },
30479
+ /**
30480
+ * Update and deploy the selected services
30481
+ * @summary Deploy services
30482
+ * @param {string} environmentId Environment ID
30483
+ * @param {DeployAllRequest} [deployAllRequest]
30484
+ * @param {*} [options] Override http request option.
30485
+ * @throws {RequiredError}
30486
+ */
30487
+ deployAllServices: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30488
+ // verify required parameter 'environmentId' is not null or undefined
30489
+ assertParamExists('deployAllServices', 'environmentId', environmentId)
30490
+ const localVarPath = `/environment/{environmentId}/service/deploy`
30491
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30492
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30493
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30494
+ let baseOptions;
30495
+ if (configuration) {
30496
+ baseOptions = configuration.baseOptions;
30497
+ }
30498
+
30499
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30500
+ const localVarHeaderParameter = {} as any;
30501
+ const localVarQueryParameter = {} as any;
30502
+
30503
+ // authentication bearerAuth required
30504
+ // http bearer authentication required
30505
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30506
+
30507
+
30508
+
30509
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30510
+
30511
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30513
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30514
+ localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
30515
+
30516
+ return {
30517
+ url: toPathString(localVarUrlObj),
30518
+ options: localVarRequestOptions,
30519
+ };
30520
+ },
30521
+ /**
30522
+ * This will deploy all the services of this environment to their latest version.
30523
+ * @summary Deploy environment
30524
+ * @param {string} environmentId Environment ID
30525
+ * @param {*} [options] Override http request option.
30526
+ * @throws {RequiredError}
30527
+ */
30528
+ deployEnvironment: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30529
+ // verify required parameter 'environmentId' is not null or undefined
30530
+ assertParamExists('deployEnvironment', 'environmentId', environmentId)
30531
+ const localVarPath = `/environment/{environmentId}/deploy`
30532
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30533
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30534
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30535
+ let baseOptions;
30536
+ if (configuration) {
30537
+ baseOptions = configuration.baseOptions;
30538
+ }
30539
+
30540
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29902
30541
  const localVarHeaderParameter = {} as any;
29903
30542
  const localVarQueryParameter = {} as any;
29904
30543
 
@@ -30542,44 +31181,6 @@ export const EnvironmentDeploymentRuleApiAxiosParamCreator = function (configura
30542
31181
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30543
31182
  localVarRequestOptions.data = serializeDataIfNeeded(environmentDeploymentRuleEditRequest, localVarRequestOptions, configuration)
30544
31183
 
30545
- return {
30546
- url: toPathString(localVarUrlObj),
30547
- options: localVarRequestOptions,
30548
- };
30549
- },
30550
- /**
30551
- *
30552
- * @summary Get environment deployment rule
30553
- * @param {string} environmentId Environment ID
30554
- * @param {*} [options] Override http request option.
30555
- * @throws {RequiredError}
30556
- */
30557
- getEnvironmentDeploymentRule: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30558
- // verify required parameter 'environmentId' is not null or undefined
30559
- assertParamExists('getEnvironmentDeploymentRule', 'environmentId', environmentId)
30560
- const localVarPath = `/environment/{environmentId}/deploymentRule`
30561
- .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
30562
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30563
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30564
- let baseOptions;
30565
- if (configuration) {
30566
- baseOptions = configuration.baseOptions;
30567
- }
30568
-
30569
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30570
- const localVarHeaderParameter = {} as any;
30571
- const localVarQueryParameter = {} as any;
30572
-
30573
- // authentication bearerAuth required
30574
- // http bearer authentication required
30575
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30576
-
30577
-
30578
-
30579
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30580
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30581
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30582
-
30583
31184
  return {
30584
31185
  url: toPathString(localVarUrlObj),
30585
31186
  options: localVarRequestOptions,
@@ -30608,17 +31209,6 @@ export const EnvironmentDeploymentRuleApiFp = function(configuration?: Configura
30608
31209
  const localVarAxiosArgs = await localVarAxiosParamCreator.editEnvironmentDeploymentRule(environmentId, deploymentRuleId, environmentDeploymentRuleEditRequest, options);
30609
31210
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30610
31211
  },
30611
- /**
30612
- *
30613
- * @summary Get environment deployment rule
30614
- * @param {string} environmentId Environment ID
30615
- * @param {*} [options] Override http request option.
30616
- * @throws {RequiredError}
30617
- */
30618
- async getEnvironmentDeploymentRule(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentDeploymentRule>> {
30619
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentDeploymentRule(environmentId, options);
30620
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30621
- },
30622
31212
  }
30623
31213
  };
30624
31214
 
@@ -30641,16 +31231,6 @@ export const EnvironmentDeploymentRuleApiFactory = function (configuration?: Con
30641
31231
  editEnvironmentDeploymentRule(environmentId: string, deploymentRuleId: string, environmentDeploymentRuleEditRequest?: EnvironmentDeploymentRuleEditRequest, options?: any): AxiosPromise<EnvironmentDeploymentRule> {
30642
31232
  return localVarFp.editEnvironmentDeploymentRule(environmentId, deploymentRuleId, environmentDeploymentRuleEditRequest, options).then((request) => request(axios, basePath));
30643
31233
  },
30644
- /**
30645
- *
30646
- * @summary Get environment deployment rule
30647
- * @param {string} environmentId Environment ID
30648
- * @param {*} [options] Override http request option.
30649
- * @throws {RequiredError}
30650
- */
30651
- getEnvironmentDeploymentRule(environmentId: string, options?: any): AxiosPromise<EnvironmentDeploymentRule> {
30652
- return localVarFp.getEnvironmentDeploymentRule(environmentId, options).then((request) => request(axios, basePath));
30653
- },
30654
31234
  };
30655
31235
  };
30656
31236
 
@@ -30674,18 +31254,6 @@ export class EnvironmentDeploymentRuleApi extends BaseAPI {
30674
31254
  public editEnvironmentDeploymentRule(environmentId: string, deploymentRuleId: string, environmentDeploymentRuleEditRequest?: EnvironmentDeploymentRuleEditRequest, options?: AxiosRequestConfig) {
30675
31255
  return EnvironmentDeploymentRuleApiFp(this.configuration).editEnvironmentDeploymentRule(environmentId, deploymentRuleId, environmentDeploymentRuleEditRequest, options).then((request) => request(this.axios, this.basePath));
30676
31256
  }
30677
-
30678
- /**
30679
- *
30680
- * @summary Get environment deployment rule
30681
- * @param {string} environmentId Environment ID
30682
- * @param {*} [options] Override http request option.
30683
- * @throws {RequiredError}
30684
- * @memberof EnvironmentDeploymentRuleApi
30685
- */
30686
- public getEnvironmentDeploymentRule(environmentId: string, options?: AxiosRequestConfig) {
30687
- return EnvironmentDeploymentRuleApiFp(this.configuration).getEnvironmentDeploymentRule(environmentId, options).then((request) => request(this.axios, this.basePath));
30688
- }
30689
31257
  }
30690
31258
 
30691
31259