qovery-typescript-axios 1.1.216 → 1.1.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +328 -1
- package/dist/api.d.ts +278 -1
- package/dist/api.js +115 -7
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -250,6 +250,12 @@ export interface Application {
|
|
|
250
250
|
* @memberof Application
|
|
251
251
|
*/
|
|
252
252
|
'entrypoint'?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
255
|
+
* @type {boolean}
|
|
256
|
+
* @memberof Application
|
|
257
|
+
*/
|
|
258
|
+
'auto_deploy'?: boolean;
|
|
253
259
|
}
|
|
254
260
|
/**
|
|
255
261
|
*
|
|
@@ -594,6 +600,12 @@ export interface ApplicationAllOf {
|
|
|
594
600
|
* @memberof ApplicationAllOf
|
|
595
601
|
*/
|
|
596
602
|
'entrypoint'?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
605
|
+
* @type {boolean}
|
|
606
|
+
* @memberof ApplicationAllOf
|
|
607
|
+
*/
|
|
608
|
+
'auto_deploy'?: boolean;
|
|
597
609
|
}
|
|
598
610
|
/**
|
|
599
611
|
*
|
|
@@ -833,6 +845,12 @@ export interface ApplicationEditRequest {
|
|
|
833
845
|
* @memberof ApplicationEditRequest
|
|
834
846
|
*/
|
|
835
847
|
'entrypoint'?: string;
|
|
848
|
+
/**
|
|
849
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
850
|
+
* @type {boolean}
|
|
851
|
+
* @memberof ApplicationEditRequest
|
|
852
|
+
*/
|
|
853
|
+
'auto_deploy'?: boolean | null;
|
|
836
854
|
}
|
|
837
855
|
/**
|
|
838
856
|
*
|
|
@@ -930,6 +948,12 @@ export interface ApplicationEditRequestAllOf {
|
|
|
930
948
|
* @memberof ApplicationEditRequestAllOf
|
|
931
949
|
*/
|
|
932
950
|
'entrypoint'?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
953
|
+
* @type {boolean}
|
|
954
|
+
* @memberof ApplicationEditRequestAllOf
|
|
955
|
+
*/
|
|
956
|
+
'auto_deploy'?: boolean | null;
|
|
933
957
|
}
|
|
934
958
|
/**
|
|
935
959
|
*
|
|
@@ -1157,6 +1181,12 @@ export interface ApplicationRequest {
|
|
|
1157
1181
|
* @memberof ApplicationRequest
|
|
1158
1182
|
*/
|
|
1159
1183
|
'entrypoint'?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
1186
|
+
* @type {boolean}
|
|
1187
|
+
* @memberof ApplicationRequest
|
|
1188
|
+
*/
|
|
1189
|
+
'auto_deploy'?: boolean | null;
|
|
1160
1190
|
}
|
|
1161
1191
|
/**
|
|
1162
1192
|
*
|
|
@@ -1248,6 +1278,12 @@ export interface ApplicationRequestAllOf {
|
|
|
1248
1278
|
* @memberof ApplicationRequestAllOf
|
|
1249
1279
|
*/
|
|
1250
1280
|
'entrypoint'?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
1283
|
+
* @type {boolean}
|
|
1284
|
+
* @memberof ApplicationRequestAllOf
|
|
1285
|
+
*/
|
|
1286
|
+
'auto_deploy'?: boolean | null;
|
|
1251
1287
|
}
|
|
1252
1288
|
/**
|
|
1253
1289
|
*
|
|
@@ -3590,7 +3626,7 @@ export interface ContainerRegistryRequest {
|
|
|
3590
3626
|
'config': ContainerRegistryRequestConfig;
|
|
3591
3627
|
}
|
|
3592
3628
|
/**
|
|
3593
|
-
* This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config (optional): username, password * `GITHUB_CR` needs in the config: username, password * `GITLAB_CR` needs in the config: username, password * `PUBLIC_ECR` doesn\'t need credentials info * `GENERIC_CR` needs in the config: username, password * `DOCR` is not supported anymore
|
|
3629
|
+
* This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config (optional): username, password * `GITHUB_CR` needs in the config (optional): username, password * `GITLAB_CR` needs in the config (optional): username, password * `PUBLIC_ECR` doesn\'t need credentials info * `GENERIC_CR` needs in the config (optional): username, password * `DOCR` is not supported anymore
|
|
3594
3630
|
* @export
|
|
3595
3631
|
* @interface ContainerRegistryRequestConfig
|
|
3596
3632
|
*/
|
|
@@ -3839,6 +3875,12 @@ export interface ContainerRequest {
|
|
|
3839
3875
|
* @memberof ContainerRequest
|
|
3840
3876
|
*/
|
|
3841
3877
|
'auto_preview'?: boolean;
|
|
3878
|
+
/**
|
|
3879
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
3880
|
+
* @type {boolean}
|
|
3881
|
+
* @memberof ContainerRequest
|
|
3882
|
+
*/
|
|
3883
|
+
'auto_deploy'?: boolean | null;
|
|
3842
3884
|
}
|
|
3843
3885
|
/**
|
|
3844
3886
|
*
|
|
@@ -3924,6 +3966,12 @@ export interface ContainerRequestAllOf {
|
|
|
3924
3966
|
* @memberof ContainerRequestAllOf
|
|
3925
3967
|
*/
|
|
3926
3968
|
'auto_preview'?: boolean;
|
|
3969
|
+
/**
|
|
3970
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
3971
|
+
* @type {boolean}
|
|
3972
|
+
* @memberof ContainerRequestAllOf
|
|
3973
|
+
*/
|
|
3974
|
+
'auto_deploy'?: boolean | null;
|
|
3927
3975
|
}
|
|
3928
3976
|
/**
|
|
3929
3977
|
*
|
|
@@ -4057,6 +4105,12 @@ export interface ContainerResponse {
|
|
|
4057
4105
|
* @memberof ContainerResponse
|
|
4058
4106
|
*/
|
|
4059
4107
|
'ports'?: Array<ServicePort>;
|
|
4108
|
+
/**
|
|
4109
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
4110
|
+
* @type {boolean}
|
|
4111
|
+
* @memberof ContainerResponse
|
|
4112
|
+
*/
|
|
4113
|
+
'auto_deploy'?: boolean;
|
|
4060
4114
|
}
|
|
4061
4115
|
/**
|
|
4062
4116
|
*
|
|
@@ -4166,6 +4220,12 @@ export interface ContainerResponseAllOf {
|
|
|
4166
4220
|
* @memberof ContainerResponseAllOf
|
|
4167
4221
|
*/
|
|
4168
4222
|
'ports'?: Array<ServicePort>;
|
|
4223
|
+
/**
|
|
4224
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
4225
|
+
* @type {boolean}
|
|
4226
|
+
* @memberof ContainerResponseAllOf
|
|
4227
|
+
*/
|
|
4228
|
+
'auto_deploy'?: boolean;
|
|
4169
4229
|
}
|
|
4170
4230
|
/**
|
|
4171
4231
|
*
|
|
@@ -8745,6 +8805,12 @@ export interface JobRequest {
|
|
|
8745
8805
|
* @memberof JobRequest
|
|
8746
8806
|
*/
|
|
8747
8807
|
'schedule'?: JobRequestAllOfSchedule;
|
|
8808
|
+
/**
|
|
8809
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
8810
|
+
* @type {boolean}
|
|
8811
|
+
* @memberof JobRequest
|
|
8812
|
+
*/
|
|
8813
|
+
'auto_deploy'?: boolean | null;
|
|
8748
8814
|
}
|
|
8749
8815
|
/**
|
|
8750
8816
|
*
|
|
@@ -8818,6 +8884,12 @@ export interface JobRequestAllOf {
|
|
|
8818
8884
|
* @memberof JobRequestAllOf
|
|
8819
8885
|
*/
|
|
8820
8886
|
'schedule'?: JobRequestAllOfSchedule;
|
|
8887
|
+
/**
|
|
8888
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
8889
|
+
* @type {boolean}
|
|
8890
|
+
* @memberof JobRequestAllOf
|
|
8891
|
+
*/
|
|
8892
|
+
'auto_deploy'?: boolean | null;
|
|
8821
8893
|
}
|
|
8822
8894
|
/**
|
|
8823
8895
|
* If you want to define a Cron job, only the `cronjob` property must be filled A Lifecycle job should contain at least one property `on_XXX` among the 3 properties: `on_start`, `on_stop`, `on_delete`
|
|
@@ -9071,6 +9143,12 @@ export interface JobResponse {
|
|
|
9071
9143
|
* @memberof JobResponse
|
|
9072
9144
|
*/
|
|
9073
9145
|
'schedule'?: JobResponseAllOfSchedule;
|
|
9146
|
+
/**
|
|
9147
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
9148
|
+
* @type {boolean}
|
|
9149
|
+
* @memberof JobResponse
|
|
9150
|
+
*/
|
|
9151
|
+
'auto_deploy'?: boolean;
|
|
9074
9152
|
}
|
|
9075
9153
|
/**
|
|
9076
9154
|
*
|
|
@@ -9168,6 +9246,12 @@ export interface JobResponseAllOf {
|
|
|
9168
9246
|
* @memberof JobResponseAllOf
|
|
9169
9247
|
*/
|
|
9170
9248
|
'schedule'?: JobResponseAllOfSchedule;
|
|
9249
|
+
/**
|
|
9250
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
9251
|
+
* @type {boolean}
|
|
9252
|
+
* @memberof JobResponseAllOf
|
|
9253
|
+
*/
|
|
9254
|
+
'auto_deploy'?: boolean;
|
|
9171
9255
|
}
|
|
9172
9256
|
/**
|
|
9173
9257
|
* If you want to define a Cron job, only the `cronjob` property must be filled A Lifecycle job should contain at least one property `on_XXX` among the 3 properties: `on_start`, `on_stop`, `on_delete`
|
|
@@ -10942,6 +11026,25 @@ export interface OrganizationGithubAppConnectRequest {
|
|
|
10942
11026
|
*/
|
|
10943
11027
|
'code': string;
|
|
10944
11028
|
}
|
|
11029
|
+
/**
|
|
11030
|
+
*
|
|
11031
|
+
* @export
|
|
11032
|
+
* @interface OrganizationJobAutoDeployRequest
|
|
11033
|
+
*/
|
|
11034
|
+
export interface OrganizationJobAutoDeployRequest {
|
|
11035
|
+
/**
|
|
11036
|
+
* the job image name to deploy
|
|
11037
|
+
* @type {string}
|
|
11038
|
+
* @memberof OrganizationJobAutoDeployRequest
|
|
11039
|
+
*/
|
|
11040
|
+
'image_name'?: string;
|
|
11041
|
+
/**
|
|
11042
|
+
* the new tag to deploy
|
|
11043
|
+
* @type {string}
|
|
11044
|
+
* @memberof OrganizationJobAutoDeployRequest
|
|
11045
|
+
*/
|
|
11046
|
+
'tag'?: string;
|
|
11047
|
+
}
|
|
10945
11048
|
/**
|
|
10946
11049
|
*
|
|
10947
11050
|
* @export
|
|
@@ -12034,6 +12137,12 @@ export interface ReferenceObjectStatus {
|
|
|
12034
12137
|
* @memberof ReferenceObjectStatus
|
|
12035
12138
|
*/
|
|
12036
12139
|
'is_part_last_deployment'?: boolean;
|
|
12140
|
+
/**
|
|
12141
|
+
*
|
|
12142
|
+
* @type {ServiceStepMetrics}
|
|
12143
|
+
* @memberof ReferenceObjectStatus
|
|
12144
|
+
*/
|
|
12145
|
+
'metrics'?: ServiceStepMetrics;
|
|
12037
12146
|
}
|
|
12038
12147
|
/**
|
|
12039
12148
|
*
|
|
@@ -12686,6 +12795,64 @@ export interface ServiceResponseList {
|
|
|
12686
12795
|
*/
|
|
12687
12796
|
'results'?: Array<Service>;
|
|
12688
12797
|
}
|
|
12798
|
+
/**
|
|
12799
|
+
*
|
|
12800
|
+
* @export
|
|
12801
|
+
* @interface ServiceStepMetric
|
|
12802
|
+
*/
|
|
12803
|
+
export interface ServiceStepMetric {
|
|
12804
|
+
/**
|
|
12805
|
+
*
|
|
12806
|
+
* @type {ServiceStepMetricNameEnum}
|
|
12807
|
+
* @memberof ServiceStepMetric
|
|
12808
|
+
*/
|
|
12809
|
+
'step_name'?: ServiceStepMetricNameEnum;
|
|
12810
|
+
/**
|
|
12811
|
+
*
|
|
12812
|
+
* @type {StepMetricStatusEnum}
|
|
12813
|
+
* @memberof ServiceStepMetric
|
|
12814
|
+
*/
|
|
12815
|
+
'status'?: StepMetricStatusEnum;
|
|
12816
|
+
/**
|
|
12817
|
+
* The duration of the step in seconds.
|
|
12818
|
+
* @type {number}
|
|
12819
|
+
* @memberof ServiceStepMetric
|
|
12820
|
+
*/
|
|
12821
|
+
'duration_sec'?: number;
|
|
12822
|
+
}
|
|
12823
|
+
/**
|
|
12824
|
+
* The name of the deployment step at the service level: - REGISTRY_CREATE_REPOSITORY: The step to create the repository in the registry. - GIT_CLONE: The step to clone the source code repository. - BUILD: The step to build the source code. - DEPLOYMENT: The step to deploy the service. - ROUTER_DEPLOYMENT: The step to deploy the router.
|
|
12825
|
+
* @export
|
|
12826
|
+
* @enum {string}
|
|
12827
|
+
*/
|
|
12828
|
+
|
|
12829
|
+
export enum ServiceStepMetricNameEnum {
|
|
12830
|
+
REGISTRY_CREATE_REPOSITORY = 'REGISTRY_CREATE_REPOSITORY',
|
|
12831
|
+
GIT_CLONE = 'GIT_CLONE',
|
|
12832
|
+
BUILD = 'BUILD',
|
|
12833
|
+
DEPLOYMENT = 'DEPLOYMENT',
|
|
12834
|
+
ROUTER_DEPLOYMENT = 'ROUTER_DEPLOYMENT'
|
|
12835
|
+
}
|
|
12836
|
+
|
|
12837
|
+
/**
|
|
12838
|
+
*
|
|
12839
|
+
* @export
|
|
12840
|
+
* @interface ServiceStepMetrics
|
|
12841
|
+
*/
|
|
12842
|
+
export interface ServiceStepMetrics {
|
|
12843
|
+
/**
|
|
12844
|
+
* The total duration in seconds of the service deployment or null if the deployment is not completed.
|
|
12845
|
+
* @type {number}
|
|
12846
|
+
* @memberof ServiceStepMetrics
|
|
12847
|
+
*/
|
|
12848
|
+
'total_duration_sec'?: number | null;
|
|
12849
|
+
/**
|
|
12850
|
+
* A list of metrics for deployment steps of the service.
|
|
12851
|
+
* @type {Array<ServiceStepMetric>}
|
|
12852
|
+
* @memberof ServiceStepMetrics
|
|
12853
|
+
*/
|
|
12854
|
+
'details'?: Array<ServiceStepMetric>;
|
|
12855
|
+
}
|
|
12689
12856
|
/**
|
|
12690
12857
|
*
|
|
12691
12858
|
* @export
|
|
@@ -12992,6 +13159,66 @@ export interface Stage {
|
|
|
12992
13159
|
* @memberof Stage
|
|
12993
13160
|
*/
|
|
12994
13161
|
'name': string;
|
|
13162
|
+
/**
|
|
13163
|
+
*
|
|
13164
|
+
* @type {StageStepMetrics}
|
|
13165
|
+
* @memberof Stage
|
|
13166
|
+
*/
|
|
13167
|
+
'metrics'?: StageStepMetrics;
|
|
13168
|
+
}
|
|
13169
|
+
/**
|
|
13170
|
+
*
|
|
13171
|
+
* @export
|
|
13172
|
+
* @interface StageStepMetric
|
|
13173
|
+
*/
|
|
13174
|
+
export interface StageStepMetric {
|
|
13175
|
+
/**
|
|
13176
|
+
*
|
|
13177
|
+
* @type {StageStepMetricNameEnum}
|
|
13178
|
+
* @memberof StageStepMetric
|
|
13179
|
+
*/
|
|
13180
|
+
'step_name'?: StageStepMetricNameEnum;
|
|
13181
|
+
/**
|
|
13182
|
+
*
|
|
13183
|
+
* @type {StepMetricStatusEnum}
|
|
13184
|
+
* @memberof StageStepMetric
|
|
13185
|
+
*/
|
|
13186
|
+
'status'?: StepMetricStatusEnum;
|
|
13187
|
+
/**
|
|
13188
|
+
* The duration of the step in seconds.
|
|
13189
|
+
* @type {number}
|
|
13190
|
+
* @memberof StageStepMetric
|
|
13191
|
+
*/
|
|
13192
|
+
'duration_sec'?: number;
|
|
13193
|
+
}
|
|
13194
|
+
/**
|
|
13195
|
+
* The name of the deployment step at the stage level: - PROVISION_BUILDER: The step to provision builders before the actual build
|
|
13196
|
+
* @export
|
|
13197
|
+
* @enum {string}
|
|
13198
|
+
*/
|
|
13199
|
+
|
|
13200
|
+
export enum StageStepMetricNameEnum {
|
|
13201
|
+
PROVISION_BUILDER = 'PROVISION_BUILDER'
|
|
13202
|
+
}
|
|
13203
|
+
|
|
13204
|
+
/**
|
|
13205
|
+
*
|
|
13206
|
+
* @export
|
|
13207
|
+
* @interface StageStepMetrics
|
|
13208
|
+
*/
|
|
13209
|
+
export interface StageStepMetrics {
|
|
13210
|
+
/**
|
|
13211
|
+
* The total duration in seconds of the stage deployment or null if the deployment is not completed
|
|
13212
|
+
* @type {number}
|
|
13213
|
+
* @memberof StageStepMetrics
|
|
13214
|
+
*/
|
|
13215
|
+
'total_duration_sec'?: number | null;
|
|
13216
|
+
/**
|
|
13217
|
+
* A list of metrics for deployment steps of the stage.
|
|
13218
|
+
* @type {Array<StageStepMetric>}
|
|
13219
|
+
* @memberof StageStepMetrics
|
|
13220
|
+
*/
|
|
13221
|
+
'details'?: Array<StageStepMetric>;
|
|
12995
13222
|
}
|
|
12996
13223
|
/**
|
|
12997
13224
|
*
|
|
@@ -13060,6 +13287,12 @@ export interface Status {
|
|
|
13060
13287
|
* @memberof Status
|
|
13061
13288
|
*/
|
|
13062
13289
|
'is_part_last_deployment'?: boolean;
|
|
13290
|
+
/**
|
|
13291
|
+
*
|
|
13292
|
+
* @type {ServiceStepMetrics}
|
|
13293
|
+
* @memberof Status
|
|
13294
|
+
*/
|
|
13295
|
+
'metrics'?: ServiceStepMetrics;
|
|
13063
13296
|
}
|
|
13064
13297
|
/**
|
|
13065
13298
|
*
|
|
@@ -13083,6 +13316,19 @@ export enum StatusKindEnum {
|
|
|
13083
13316
|
WAITING = 'WAITING'
|
|
13084
13317
|
}
|
|
13085
13318
|
|
|
13319
|
+
/**
|
|
13320
|
+
* The status of completion for the step: - SUCCESS: The step completed successfully. - ERROR: The step completed with an error. - CANCEL: The step was canceled. - SKIP: The step was skipped because it was not necessary.
|
|
13321
|
+
* @export
|
|
13322
|
+
* @enum {string}
|
|
13323
|
+
*/
|
|
13324
|
+
|
|
13325
|
+
export enum StepMetricStatusEnum {
|
|
13326
|
+
SUCCESS = 'SUCCESS',
|
|
13327
|
+
ERROR = 'ERROR',
|
|
13328
|
+
CANCEL = 'CANCEL',
|
|
13329
|
+
SKIP = 'SKIP'
|
|
13330
|
+
}
|
|
13331
|
+
|
|
13086
13332
|
/**
|
|
13087
13333
|
*
|
|
13088
13334
|
* @export
|
|
@@ -38779,6 +39025,51 @@ export class JobSecretApi extends BaseAPI {
|
|
|
38779
39025
|
*/
|
|
38780
39026
|
export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38781
39027
|
return {
|
|
39028
|
+
/**
|
|
39029
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
39030
|
+
* @summary Auto deploy jobs
|
|
39031
|
+
* @param {string} organizationId Organization ID
|
|
39032
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
39033
|
+
* @param {*} [options] Override http request option.
|
|
39034
|
+
* @throws {RequiredError}
|
|
39035
|
+
*/
|
|
39036
|
+
autoDeployJobEnvironments: async (organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39037
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
39038
|
+
assertParamExists('autoDeployJobEnvironments', 'organizationId', organizationId)
|
|
39039
|
+
const localVarPath = `/organization/{organizationId}/job/deploy`
|
|
39040
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
39041
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39042
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39043
|
+
let baseOptions;
|
|
39044
|
+
if (configuration) {
|
|
39045
|
+
baseOptions = configuration.baseOptions;
|
|
39046
|
+
}
|
|
39047
|
+
|
|
39048
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
39049
|
+
const localVarHeaderParameter = {} as any;
|
|
39050
|
+
const localVarQueryParameter = {} as any;
|
|
39051
|
+
|
|
39052
|
+
// authentication ApiKeyAuth required
|
|
39053
|
+
await setApiKeyToObject(localVarHeaderParameter, "Token", configuration)
|
|
39054
|
+
|
|
39055
|
+
// authentication bearerAuth required
|
|
39056
|
+
// http bearer authentication required
|
|
39057
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
39058
|
+
|
|
39059
|
+
|
|
39060
|
+
|
|
39061
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39062
|
+
|
|
39063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39065
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39066
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationJobAutoDeployRequest, localVarRequestOptions, configuration)
|
|
39067
|
+
|
|
39068
|
+
return {
|
|
39069
|
+
url: toPathString(localVarUrlObj),
|
|
39070
|
+
options: localVarRequestOptions,
|
|
39071
|
+
};
|
|
39072
|
+
},
|
|
38782
39073
|
/**
|
|
38783
39074
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
38784
39075
|
* @summary Clone job
|
|
@@ -39003,6 +39294,18 @@ export const JobsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
39003
39294
|
export const JobsApiFp = function(configuration?: Configuration) {
|
|
39004
39295
|
const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
|
|
39005
39296
|
return {
|
|
39297
|
+
/**
|
|
39298
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
39299
|
+
* @summary Auto deploy jobs
|
|
39300
|
+
* @param {string} organizationId Organization ID
|
|
39301
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
39302
|
+
* @param {*} [options] Override http request option.
|
|
39303
|
+
* @throws {RequiredError}
|
|
39304
|
+
*/
|
|
39305
|
+
async autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
|
|
39306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options);
|
|
39307
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39308
|
+
},
|
|
39006
39309
|
/**
|
|
39007
39310
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
39008
39311
|
* @summary Clone job
|
|
@@ -39070,6 +39373,17 @@ export const JobsApiFp = function(configuration?: Configuration) {
|
|
|
39070
39373
|
export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
39071
39374
|
const localVarFp = JobsApiFp(configuration)
|
|
39072
39375
|
return {
|
|
39376
|
+
/**
|
|
39377
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
39378
|
+
* @summary Auto deploy jobs
|
|
39379
|
+
* @param {string} organizationId Organization ID
|
|
39380
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
39381
|
+
* @param {*} [options] Override http request option.
|
|
39382
|
+
* @throws {RequiredError}
|
|
39383
|
+
*/
|
|
39384
|
+
autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: any): AxiosPromise<Status> {
|
|
39385
|
+
return localVarFp.autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options).then((request) => request(axios, basePath));
|
|
39386
|
+
},
|
|
39073
39387
|
/**
|
|
39074
39388
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
39075
39389
|
* @summary Clone job
|
|
@@ -39132,6 +39446,19 @@ export const JobsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
39132
39446
|
* @extends {BaseAPI}
|
|
39133
39447
|
*/
|
|
39134
39448
|
export class JobsApi extends BaseAPI {
|
|
39449
|
+
/**
|
|
39450
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
39451
|
+
* @summary Auto deploy jobs
|
|
39452
|
+
* @param {string} organizationId Organization ID
|
|
39453
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
39454
|
+
* @param {*} [options] Override http request option.
|
|
39455
|
+
* @throws {RequiredError}
|
|
39456
|
+
* @memberof JobsApi
|
|
39457
|
+
*/
|
|
39458
|
+
public autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: AxiosRequestConfig) {
|
|
39459
|
+
return JobsApiFp(this.configuration).autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
39460
|
+
}
|
|
39461
|
+
|
|
39135
39462
|
/**
|
|
39136
39463
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
39137
39464
|
* @summary Clone job
|
package/dist/api.d.ts
CHANGED
|
@@ -237,6 +237,12 @@ export interface Application {
|
|
|
237
237
|
* @memberof Application
|
|
238
238
|
*/
|
|
239
239
|
'entrypoint'?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
242
|
+
* @type {boolean}
|
|
243
|
+
* @memberof Application
|
|
244
|
+
*/
|
|
245
|
+
'auto_deploy'?: boolean;
|
|
240
246
|
}
|
|
241
247
|
/**
|
|
242
248
|
*
|
|
@@ -581,6 +587,12 @@ export interface ApplicationAllOf {
|
|
|
581
587
|
* @memberof ApplicationAllOf
|
|
582
588
|
*/
|
|
583
589
|
'entrypoint'?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
592
|
+
* @type {boolean}
|
|
593
|
+
* @memberof ApplicationAllOf
|
|
594
|
+
*/
|
|
595
|
+
'auto_deploy'?: boolean;
|
|
584
596
|
}
|
|
585
597
|
/**
|
|
586
598
|
*
|
|
@@ -820,6 +832,12 @@ export interface ApplicationEditRequest {
|
|
|
820
832
|
* @memberof ApplicationEditRequest
|
|
821
833
|
*/
|
|
822
834
|
'entrypoint'?: string;
|
|
835
|
+
/**
|
|
836
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
837
|
+
* @type {boolean}
|
|
838
|
+
* @memberof ApplicationEditRequest
|
|
839
|
+
*/
|
|
840
|
+
'auto_deploy'?: boolean | null;
|
|
823
841
|
}
|
|
824
842
|
/**
|
|
825
843
|
*
|
|
@@ -917,6 +935,12 @@ export interface ApplicationEditRequestAllOf {
|
|
|
917
935
|
* @memberof ApplicationEditRequestAllOf
|
|
918
936
|
*/
|
|
919
937
|
'entrypoint'?: string;
|
|
938
|
+
/**
|
|
939
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
940
|
+
* @type {boolean}
|
|
941
|
+
* @memberof ApplicationEditRequestAllOf
|
|
942
|
+
*/
|
|
943
|
+
'auto_deploy'?: boolean | null;
|
|
920
944
|
}
|
|
921
945
|
/**
|
|
922
946
|
*
|
|
@@ -1144,6 +1168,12 @@ export interface ApplicationRequest {
|
|
|
1144
1168
|
* @memberof ApplicationRequest
|
|
1145
1169
|
*/
|
|
1146
1170
|
'entrypoint'?: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
1173
|
+
* @type {boolean}
|
|
1174
|
+
* @memberof ApplicationRequest
|
|
1175
|
+
*/
|
|
1176
|
+
'auto_deploy'?: boolean | null;
|
|
1147
1177
|
}
|
|
1148
1178
|
/**
|
|
1149
1179
|
*
|
|
@@ -1235,6 +1265,12 @@ export interface ApplicationRequestAllOf {
|
|
|
1235
1265
|
* @memberof ApplicationRequestAllOf
|
|
1236
1266
|
*/
|
|
1237
1267
|
'entrypoint'?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* Specify if the application will be automatically updated after receiving a new commit.
|
|
1270
|
+
* @type {boolean}
|
|
1271
|
+
* @memberof ApplicationRequestAllOf
|
|
1272
|
+
*/
|
|
1273
|
+
'auto_deploy'?: boolean | null;
|
|
1238
1274
|
}
|
|
1239
1275
|
/**
|
|
1240
1276
|
*
|
|
@@ -3563,7 +3599,7 @@ export interface ContainerRegistryRequest {
|
|
|
3563
3599
|
'config': ContainerRegistryRequestConfig;
|
|
3564
3600
|
}
|
|
3565
3601
|
/**
|
|
3566
|
-
* This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config (optional): username, password * `GITHUB_CR` needs in the config: username, password * `GITLAB_CR` needs in the config: username, password * `PUBLIC_ECR` doesn\'t need credentials info * `GENERIC_CR` needs in the config: username, password * `DOCR` is not supported anymore
|
|
3602
|
+
* This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config (optional): username, password * `GITHUB_CR` needs in the config (optional): username, password * `GITLAB_CR` needs in the config (optional): username, password * `PUBLIC_ECR` doesn\'t need credentials info * `GENERIC_CR` needs in the config (optional): username, password * `DOCR` is not supported anymore
|
|
3567
3603
|
* @export
|
|
3568
3604
|
* @interface ContainerRegistryRequestConfig
|
|
3569
3605
|
*/
|
|
@@ -3812,6 +3848,12 @@ export interface ContainerRequest {
|
|
|
3812
3848
|
* @memberof ContainerRequest
|
|
3813
3849
|
*/
|
|
3814
3850
|
'auto_preview'?: boolean;
|
|
3851
|
+
/**
|
|
3852
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
3853
|
+
* @type {boolean}
|
|
3854
|
+
* @memberof ContainerRequest
|
|
3855
|
+
*/
|
|
3856
|
+
'auto_deploy'?: boolean | null;
|
|
3815
3857
|
}
|
|
3816
3858
|
/**
|
|
3817
3859
|
*
|
|
@@ -3897,6 +3939,12 @@ export interface ContainerRequestAllOf {
|
|
|
3897
3939
|
* @memberof ContainerRequestAllOf
|
|
3898
3940
|
*/
|
|
3899
3941
|
'auto_preview'?: boolean;
|
|
3942
|
+
/**
|
|
3943
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
3944
|
+
* @type {boolean}
|
|
3945
|
+
* @memberof ContainerRequestAllOf
|
|
3946
|
+
*/
|
|
3947
|
+
'auto_deploy'?: boolean | null;
|
|
3900
3948
|
}
|
|
3901
3949
|
/**
|
|
3902
3950
|
*
|
|
@@ -4030,6 +4078,12 @@ export interface ContainerResponse {
|
|
|
4030
4078
|
* @memberof ContainerResponse
|
|
4031
4079
|
*/
|
|
4032
4080
|
'ports'?: Array<ServicePort>;
|
|
4081
|
+
/**
|
|
4082
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
4083
|
+
* @type {boolean}
|
|
4084
|
+
* @memberof ContainerResponse
|
|
4085
|
+
*/
|
|
4086
|
+
'auto_deploy'?: boolean;
|
|
4033
4087
|
}
|
|
4034
4088
|
/**
|
|
4035
4089
|
*
|
|
@@ -4139,6 +4193,12 @@ export interface ContainerResponseAllOf {
|
|
|
4139
4193
|
* @memberof ContainerResponseAllOf
|
|
4140
4194
|
*/
|
|
4141
4195
|
'ports'?: Array<ServicePort>;
|
|
4196
|
+
/**
|
|
4197
|
+
* Specify if the container will be automatically updated after receiving a new image tag. The new image tag shall be communicated via the \"Auto Deploy container\" endpoint https://api-doc.qovery.com/#tag/Containers/operation/autoDeployContainerEnvironments
|
|
4198
|
+
* @type {boolean}
|
|
4199
|
+
* @memberof ContainerResponseAllOf
|
|
4200
|
+
*/
|
|
4201
|
+
'auto_deploy'?: boolean;
|
|
4142
4202
|
}
|
|
4143
4203
|
/**
|
|
4144
4204
|
*
|
|
@@ -8690,6 +8750,12 @@ export interface JobRequest {
|
|
|
8690
8750
|
* @memberof JobRequest
|
|
8691
8751
|
*/
|
|
8692
8752
|
'schedule'?: JobRequestAllOfSchedule;
|
|
8753
|
+
/**
|
|
8754
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
8755
|
+
* @type {boolean}
|
|
8756
|
+
* @memberof JobRequest
|
|
8757
|
+
*/
|
|
8758
|
+
'auto_deploy'?: boolean | null;
|
|
8693
8759
|
}
|
|
8694
8760
|
/**
|
|
8695
8761
|
*
|
|
@@ -8763,6 +8829,12 @@ export interface JobRequestAllOf {
|
|
|
8763
8829
|
* @memberof JobRequestAllOf
|
|
8764
8830
|
*/
|
|
8765
8831
|
'schedule'?: JobRequestAllOfSchedule;
|
|
8832
|
+
/**
|
|
8833
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
8834
|
+
* @type {boolean}
|
|
8835
|
+
* @memberof JobRequestAllOf
|
|
8836
|
+
*/
|
|
8837
|
+
'auto_deploy'?: boolean | null;
|
|
8766
8838
|
}
|
|
8767
8839
|
/**
|
|
8768
8840
|
* If you want to define a Cron job, only the `cronjob` property must be filled A Lifecycle job should contain at least one property `on_XXX` among the 3 properties: `on_start`, `on_stop`, `on_delete`
|
|
@@ -9016,6 +9088,12 @@ export interface JobResponse {
|
|
|
9016
9088
|
* @memberof JobResponse
|
|
9017
9089
|
*/
|
|
9018
9090
|
'schedule'?: JobResponseAllOfSchedule;
|
|
9091
|
+
/**
|
|
9092
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
9093
|
+
* @type {boolean}
|
|
9094
|
+
* @memberof JobResponse
|
|
9095
|
+
*/
|
|
9096
|
+
'auto_deploy'?: boolean;
|
|
9019
9097
|
}
|
|
9020
9098
|
/**
|
|
9021
9099
|
*
|
|
@@ -9113,6 +9191,12 @@ export interface JobResponseAllOf {
|
|
|
9113
9191
|
* @memberof JobResponseAllOf
|
|
9114
9192
|
*/
|
|
9115
9193
|
'schedule'?: JobResponseAllOfSchedule;
|
|
9194
|
+
/**
|
|
9195
|
+
* Specify if the job will be automatically updated after receiving a new image tag or a new commit according to the source type. The new image tag shall be communicated via the \"Auto Deploy job\" endpoint https://api-doc.qovery.com/#tag/Jobs/operation/autoDeployJobEnvironments
|
|
9196
|
+
* @type {boolean}
|
|
9197
|
+
* @memberof JobResponseAllOf
|
|
9198
|
+
*/
|
|
9199
|
+
'auto_deploy'?: boolean;
|
|
9116
9200
|
}
|
|
9117
9201
|
/**
|
|
9118
9202
|
* If you want to define a Cron job, only the `cronjob` property must be filled A Lifecycle job should contain at least one property `on_XXX` among the 3 properties: `on_start`, `on_stop`, `on_delete`
|
|
@@ -10867,6 +10951,25 @@ export interface OrganizationGithubAppConnectRequest {
|
|
|
10867
10951
|
*/
|
|
10868
10952
|
'code': string;
|
|
10869
10953
|
}
|
|
10954
|
+
/**
|
|
10955
|
+
*
|
|
10956
|
+
* @export
|
|
10957
|
+
* @interface OrganizationJobAutoDeployRequest
|
|
10958
|
+
*/
|
|
10959
|
+
export interface OrganizationJobAutoDeployRequest {
|
|
10960
|
+
/**
|
|
10961
|
+
* the job image name to deploy
|
|
10962
|
+
* @type {string}
|
|
10963
|
+
* @memberof OrganizationJobAutoDeployRequest
|
|
10964
|
+
*/
|
|
10965
|
+
'image_name'?: string;
|
|
10966
|
+
/**
|
|
10967
|
+
* the new tag to deploy
|
|
10968
|
+
* @type {string}
|
|
10969
|
+
* @memberof OrganizationJobAutoDeployRequest
|
|
10970
|
+
*/
|
|
10971
|
+
'tag'?: string;
|
|
10972
|
+
}
|
|
10870
10973
|
/**
|
|
10871
10974
|
*
|
|
10872
10975
|
* @export
|
|
@@ -11951,6 +12054,12 @@ export interface ReferenceObjectStatus {
|
|
|
11951
12054
|
* @memberof ReferenceObjectStatus
|
|
11952
12055
|
*/
|
|
11953
12056
|
'is_part_last_deployment'?: boolean;
|
|
12057
|
+
/**
|
|
12058
|
+
*
|
|
12059
|
+
* @type {ServiceStepMetrics}
|
|
12060
|
+
* @memberof ReferenceObjectStatus
|
|
12061
|
+
*/
|
|
12062
|
+
'metrics'?: ServiceStepMetrics;
|
|
11954
12063
|
}
|
|
11955
12064
|
/**
|
|
11956
12065
|
*
|
|
@@ -12599,6 +12708,62 @@ export interface ServiceResponseList {
|
|
|
12599
12708
|
*/
|
|
12600
12709
|
'results'?: Array<Service>;
|
|
12601
12710
|
}
|
|
12711
|
+
/**
|
|
12712
|
+
*
|
|
12713
|
+
* @export
|
|
12714
|
+
* @interface ServiceStepMetric
|
|
12715
|
+
*/
|
|
12716
|
+
export interface ServiceStepMetric {
|
|
12717
|
+
/**
|
|
12718
|
+
*
|
|
12719
|
+
* @type {ServiceStepMetricNameEnum}
|
|
12720
|
+
* @memberof ServiceStepMetric
|
|
12721
|
+
*/
|
|
12722
|
+
'step_name'?: ServiceStepMetricNameEnum;
|
|
12723
|
+
/**
|
|
12724
|
+
*
|
|
12725
|
+
* @type {StepMetricStatusEnum}
|
|
12726
|
+
* @memberof ServiceStepMetric
|
|
12727
|
+
*/
|
|
12728
|
+
'status'?: StepMetricStatusEnum;
|
|
12729
|
+
/**
|
|
12730
|
+
* The duration of the step in seconds.
|
|
12731
|
+
* @type {number}
|
|
12732
|
+
* @memberof ServiceStepMetric
|
|
12733
|
+
*/
|
|
12734
|
+
'duration_sec'?: number;
|
|
12735
|
+
}
|
|
12736
|
+
/**
|
|
12737
|
+
* The name of the deployment step at the service level: - REGISTRY_CREATE_REPOSITORY: The step to create the repository in the registry. - GIT_CLONE: The step to clone the source code repository. - BUILD: The step to build the source code. - DEPLOYMENT: The step to deploy the service. - ROUTER_DEPLOYMENT: The step to deploy the router.
|
|
12738
|
+
* @export
|
|
12739
|
+
* @enum {string}
|
|
12740
|
+
*/
|
|
12741
|
+
export declare enum ServiceStepMetricNameEnum {
|
|
12742
|
+
REGISTRY_CREATE_REPOSITORY = "REGISTRY_CREATE_REPOSITORY",
|
|
12743
|
+
GIT_CLONE = "GIT_CLONE",
|
|
12744
|
+
BUILD = "BUILD",
|
|
12745
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
12746
|
+
ROUTER_DEPLOYMENT = "ROUTER_DEPLOYMENT"
|
|
12747
|
+
}
|
|
12748
|
+
/**
|
|
12749
|
+
*
|
|
12750
|
+
* @export
|
|
12751
|
+
* @interface ServiceStepMetrics
|
|
12752
|
+
*/
|
|
12753
|
+
export interface ServiceStepMetrics {
|
|
12754
|
+
/**
|
|
12755
|
+
* The total duration in seconds of the service deployment or null if the deployment is not completed.
|
|
12756
|
+
* @type {number}
|
|
12757
|
+
* @memberof ServiceStepMetrics
|
|
12758
|
+
*/
|
|
12759
|
+
'total_duration_sec'?: number | null;
|
|
12760
|
+
/**
|
|
12761
|
+
* A list of metrics for deployment steps of the service.
|
|
12762
|
+
* @type {Array<ServiceStepMetric>}
|
|
12763
|
+
* @memberof ServiceStepMetrics
|
|
12764
|
+
*/
|
|
12765
|
+
'details'?: Array<ServiceStepMetric>;
|
|
12766
|
+
}
|
|
12602
12767
|
/**
|
|
12603
12768
|
*
|
|
12604
12769
|
* @export
|
|
@@ -12903,6 +13068,64 @@ export interface Stage {
|
|
|
12903
13068
|
* @memberof Stage
|
|
12904
13069
|
*/
|
|
12905
13070
|
'name': string;
|
|
13071
|
+
/**
|
|
13072
|
+
*
|
|
13073
|
+
* @type {StageStepMetrics}
|
|
13074
|
+
* @memberof Stage
|
|
13075
|
+
*/
|
|
13076
|
+
'metrics'?: StageStepMetrics;
|
|
13077
|
+
}
|
|
13078
|
+
/**
|
|
13079
|
+
*
|
|
13080
|
+
* @export
|
|
13081
|
+
* @interface StageStepMetric
|
|
13082
|
+
*/
|
|
13083
|
+
export interface StageStepMetric {
|
|
13084
|
+
/**
|
|
13085
|
+
*
|
|
13086
|
+
* @type {StageStepMetricNameEnum}
|
|
13087
|
+
* @memberof StageStepMetric
|
|
13088
|
+
*/
|
|
13089
|
+
'step_name'?: StageStepMetricNameEnum;
|
|
13090
|
+
/**
|
|
13091
|
+
*
|
|
13092
|
+
* @type {StepMetricStatusEnum}
|
|
13093
|
+
* @memberof StageStepMetric
|
|
13094
|
+
*/
|
|
13095
|
+
'status'?: StepMetricStatusEnum;
|
|
13096
|
+
/**
|
|
13097
|
+
* The duration of the step in seconds.
|
|
13098
|
+
* @type {number}
|
|
13099
|
+
* @memberof StageStepMetric
|
|
13100
|
+
*/
|
|
13101
|
+
'duration_sec'?: number;
|
|
13102
|
+
}
|
|
13103
|
+
/**
|
|
13104
|
+
* The name of the deployment step at the stage level: - PROVISION_BUILDER: The step to provision builders before the actual build
|
|
13105
|
+
* @export
|
|
13106
|
+
* @enum {string}
|
|
13107
|
+
*/
|
|
13108
|
+
export declare enum StageStepMetricNameEnum {
|
|
13109
|
+
PROVISION_BUILDER = "PROVISION_BUILDER"
|
|
13110
|
+
}
|
|
13111
|
+
/**
|
|
13112
|
+
*
|
|
13113
|
+
* @export
|
|
13114
|
+
* @interface StageStepMetrics
|
|
13115
|
+
*/
|
|
13116
|
+
export interface StageStepMetrics {
|
|
13117
|
+
/**
|
|
13118
|
+
* The total duration in seconds of the stage deployment or null if the deployment is not completed
|
|
13119
|
+
* @type {number}
|
|
13120
|
+
* @memberof StageStepMetrics
|
|
13121
|
+
*/
|
|
13122
|
+
'total_duration_sec'?: number | null;
|
|
13123
|
+
/**
|
|
13124
|
+
* A list of metrics for deployment steps of the stage.
|
|
13125
|
+
* @type {Array<StageStepMetric>}
|
|
13126
|
+
* @memberof StageStepMetrics
|
|
13127
|
+
*/
|
|
13128
|
+
'details'?: Array<StageStepMetric>;
|
|
12906
13129
|
}
|
|
12907
13130
|
/**
|
|
12908
13131
|
*
|
|
@@ -12969,6 +13192,12 @@ export interface Status {
|
|
|
12969
13192
|
* @memberof Status
|
|
12970
13193
|
*/
|
|
12971
13194
|
'is_part_last_deployment'?: boolean;
|
|
13195
|
+
/**
|
|
13196
|
+
*
|
|
13197
|
+
* @type {ServiceStepMetrics}
|
|
13198
|
+
* @memberof Status
|
|
13199
|
+
*/
|
|
13200
|
+
'metrics'?: ServiceStepMetrics;
|
|
12972
13201
|
}
|
|
12973
13202
|
/**
|
|
12974
13203
|
*
|
|
@@ -12990,6 +13219,17 @@ export declare enum StatusKindEnum {
|
|
|
12990
13219
|
PAUSE_IN_PROGRESS = "PAUSE_IN_PROGRESS",
|
|
12991
13220
|
WAITING = "WAITING"
|
|
12992
13221
|
}
|
|
13222
|
+
/**
|
|
13223
|
+
* The status of completion for the step: - SUCCESS: The step completed successfully. - ERROR: The step completed with an error. - CANCEL: The step was canceled. - SKIP: The step was skipped because it was not necessary.
|
|
13224
|
+
* @export
|
|
13225
|
+
* @enum {string}
|
|
13226
|
+
*/
|
|
13227
|
+
export declare enum StepMetricStatusEnum {
|
|
13228
|
+
SUCCESS = "SUCCESS",
|
|
13229
|
+
ERROR = "ERROR",
|
|
13230
|
+
CANCEL = "CANCEL",
|
|
13231
|
+
SKIP = "SKIP"
|
|
13232
|
+
}
|
|
12993
13233
|
/**
|
|
12994
13234
|
*
|
|
12995
13235
|
* @export
|
|
@@ -25480,6 +25720,15 @@ export declare class JobSecretApi extends BaseAPI {
|
|
|
25480
25720
|
* @export
|
|
25481
25721
|
*/
|
|
25482
25722
|
export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25723
|
+
/**
|
|
25724
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
25725
|
+
* @summary Auto deploy jobs
|
|
25726
|
+
* @param {string} organizationId Organization ID
|
|
25727
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
25728
|
+
* @param {*} [options] Override http request option.
|
|
25729
|
+
* @throws {RequiredError}
|
|
25730
|
+
*/
|
|
25731
|
+
autoDeployJobEnvironments: (organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25483
25732
|
/**
|
|
25484
25733
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
25485
25734
|
* @summary Clone job
|
|
@@ -25528,6 +25777,15 @@ export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
25528
25777
|
* @export
|
|
25529
25778
|
*/
|
|
25530
25779
|
export declare const JobsApiFp: (configuration?: Configuration) => {
|
|
25780
|
+
/**
|
|
25781
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
25782
|
+
* @summary Auto deploy jobs
|
|
25783
|
+
* @param {string} organizationId Organization ID
|
|
25784
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
25785
|
+
* @param {*} [options] Override http request option.
|
|
25786
|
+
* @throws {RequiredError}
|
|
25787
|
+
*/
|
|
25788
|
+
autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>>;
|
|
25531
25789
|
/**
|
|
25532
25790
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
25533
25791
|
* @summary Clone job
|
|
@@ -25576,6 +25834,15 @@ export declare const JobsApiFp: (configuration?: Configuration) => {
|
|
|
25576
25834
|
* @export
|
|
25577
25835
|
*/
|
|
25578
25836
|
export declare const JobsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25837
|
+
/**
|
|
25838
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
25839
|
+
* @summary Auto deploy jobs
|
|
25840
|
+
* @param {string} organizationId Organization ID
|
|
25841
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
25842
|
+
* @param {*} [options] Override http request option.
|
|
25843
|
+
* @throws {RequiredError}
|
|
25844
|
+
*/
|
|
25845
|
+
autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: any): AxiosPromise<Status>;
|
|
25579
25846
|
/**
|
|
25580
25847
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
25581
25848
|
* @summary Clone job
|
|
@@ -25626,6 +25893,16 @@ export declare const JobsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
25626
25893
|
* @extends {BaseAPI}
|
|
25627
25894
|
*/
|
|
25628
25895
|
export declare class JobsApi extends BaseAPI {
|
|
25896
|
+
/**
|
|
25897
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
25898
|
+
* @summary Auto deploy jobs
|
|
25899
|
+
* @param {string} organizationId Organization ID
|
|
25900
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
25901
|
+
* @param {*} [options] Override http request option.
|
|
25902
|
+
* @throws {RequiredError}
|
|
25903
|
+
* @memberof JobsApi
|
|
25904
|
+
*/
|
|
25905
|
+
autoDeployJobEnvironments(organizationId: string, organizationJobAutoDeployRequest?: OrganizationJobAutoDeployRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Status>>;
|
|
25629
25906
|
/**
|
|
25630
25907
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
25631
25908
|
* @summary Clone job
|
package/dist/api.js
CHANGED
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = void 0;
|
|
25
|
+
exports.StateEnum = exports.StageStepMetricNameEnum = exports.ServiceTypeEnum = exports.ServiceStepMetricNameEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationEventType = exports.OrganizationEventTargetType = exports.OrganizationEventSubTargetType = exports.OrganizationEventOrigin = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.JobScheduleEvent = exports.JobForceEvent = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ContainerAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.CompanySizeEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.ClusterDeploymentStatusEnum = exports.ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ApplicationAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.APIVariableTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
+
exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StepMetricStatusEnum = exports.StatusKindEnum = void 0;
|
|
27
|
+
exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = void 0;
|
|
29
|
+
exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentRestrictionApi = exports.JobDeploymentRestrictionApiFactory = exports.JobDeploymentRestrictionApiFp = exports.JobDeploymentRestrictionApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = void 0;
|
|
31
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -597,6 +597,19 @@ var ServiceDeploymentStatusEnum;
|
|
|
597
597
|
ServiceDeploymentStatusEnum["OUT_OF_DATE"] = "OUT_OF_DATE";
|
|
598
598
|
ServiceDeploymentStatusEnum["UP_TO_DATE"] = "UP_TO_DATE";
|
|
599
599
|
})(ServiceDeploymentStatusEnum = exports.ServiceDeploymentStatusEnum || (exports.ServiceDeploymentStatusEnum = {}));
|
|
600
|
+
/**
|
|
601
|
+
* The name of the deployment step at the service level: - REGISTRY_CREATE_REPOSITORY: The step to create the repository in the registry. - GIT_CLONE: The step to clone the source code repository. - BUILD: The step to build the source code. - DEPLOYMENT: The step to deploy the service. - ROUTER_DEPLOYMENT: The step to deploy the router.
|
|
602
|
+
* @export
|
|
603
|
+
* @enum {string}
|
|
604
|
+
*/
|
|
605
|
+
var ServiceStepMetricNameEnum;
|
|
606
|
+
(function (ServiceStepMetricNameEnum) {
|
|
607
|
+
ServiceStepMetricNameEnum["REGISTRY_CREATE_REPOSITORY"] = "REGISTRY_CREATE_REPOSITORY";
|
|
608
|
+
ServiceStepMetricNameEnum["GIT_CLONE"] = "GIT_CLONE";
|
|
609
|
+
ServiceStepMetricNameEnum["BUILD"] = "BUILD";
|
|
610
|
+
ServiceStepMetricNameEnum["DEPLOYMENT"] = "DEPLOYMENT";
|
|
611
|
+
ServiceStepMetricNameEnum["ROUTER_DEPLOYMENT"] = "ROUTER_DEPLOYMENT";
|
|
612
|
+
})(ServiceStepMetricNameEnum = exports.ServiceStepMetricNameEnum || (exports.ServiceStepMetricNameEnum = {}));
|
|
600
613
|
/**
|
|
601
614
|
* type of the service (application, database, job, gateway...)
|
|
602
615
|
* @export
|
|
@@ -607,6 +620,15 @@ var ServiceTypeEnum;
|
|
|
607
620
|
ServiceTypeEnum["APPLICATION"] = "APPLICATION";
|
|
608
621
|
ServiceTypeEnum["DATABASE"] = "DATABASE";
|
|
609
622
|
})(ServiceTypeEnum = exports.ServiceTypeEnum || (exports.ServiceTypeEnum = {}));
|
|
623
|
+
/**
|
|
624
|
+
* The name of the deployment step at the stage level: - PROVISION_BUILDER: The step to provision builders before the actual build
|
|
625
|
+
* @export
|
|
626
|
+
* @enum {string}
|
|
627
|
+
*/
|
|
628
|
+
var StageStepMetricNameEnum;
|
|
629
|
+
(function (StageStepMetricNameEnum) {
|
|
630
|
+
StageStepMetricNameEnum["PROVISION_BUILDER"] = "PROVISION_BUILDER";
|
|
631
|
+
})(StageStepMetricNameEnum = exports.StageStepMetricNameEnum || (exports.StageStepMetricNameEnum = {}));
|
|
610
632
|
/**
|
|
611
633
|
*
|
|
612
634
|
* @export
|
|
@@ -658,6 +680,18 @@ var StatusKindEnum;
|
|
|
658
680
|
StatusKindEnum["PAUSE_IN_PROGRESS"] = "PAUSE_IN_PROGRESS";
|
|
659
681
|
StatusKindEnum["WAITING"] = "WAITING";
|
|
660
682
|
})(StatusKindEnum = exports.StatusKindEnum || (exports.StatusKindEnum = {}));
|
|
683
|
+
/**
|
|
684
|
+
* The status of completion for the step: - SUCCESS: The step completed successfully. - ERROR: The step completed with an error. - CANCEL: The step was canceled. - SKIP: The step was skipped because it was not necessary.
|
|
685
|
+
* @export
|
|
686
|
+
* @enum {string}
|
|
687
|
+
*/
|
|
688
|
+
var StepMetricStatusEnum;
|
|
689
|
+
(function (StepMetricStatusEnum) {
|
|
690
|
+
StepMetricStatusEnum["SUCCESS"] = "SUCCESS";
|
|
691
|
+
StepMetricStatusEnum["ERROR"] = "ERROR";
|
|
692
|
+
StepMetricStatusEnum["CANCEL"] = "CANCEL";
|
|
693
|
+
StepMetricStatusEnum["SKIP"] = "SKIP";
|
|
694
|
+
})(StepMetricStatusEnum = exports.StepMetricStatusEnum || (exports.StepMetricStatusEnum = {}));
|
|
661
695
|
/**
|
|
662
696
|
*
|
|
663
697
|
* @export
|
|
@@ -23849,6 +23883,43 @@ exports.JobSecretApi = JobSecretApi;
|
|
|
23849
23883
|
*/
|
|
23850
23884
|
const JobsApiAxiosParamCreator = function (configuration) {
|
|
23851
23885
|
return {
|
|
23886
|
+
/**
|
|
23887
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
23888
|
+
* @summary Auto deploy jobs
|
|
23889
|
+
* @param {string} organizationId Organization ID
|
|
23890
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
23891
|
+
* @param {*} [options] Override http request option.
|
|
23892
|
+
* @throws {RequiredError}
|
|
23893
|
+
*/
|
|
23894
|
+
autoDeployJobEnvironments: (organizationId, organizationJobAutoDeployRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
23895
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
23896
|
+
(0, common_1.assertParamExists)('autoDeployJobEnvironments', 'organizationId', organizationId);
|
|
23897
|
+
const localVarPath = `/organization/{organizationId}/job/deploy`
|
|
23898
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
23899
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23900
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23901
|
+
let baseOptions;
|
|
23902
|
+
if (configuration) {
|
|
23903
|
+
baseOptions = configuration.baseOptions;
|
|
23904
|
+
}
|
|
23905
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23906
|
+
const localVarHeaderParameter = {};
|
|
23907
|
+
const localVarQueryParameter = {};
|
|
23908
|
+
// authentication ApiKeyAuth required
|
|
23909
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Token", configuration);
|
|
23910
|
+
// authentication bearerAuth required
|
|
23911
|
+
// http bearer authentication required
|
|
23912
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
23913
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23914
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23916
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23917
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationJobAutoDeployRequest, localVarRequestOptions, configuration);
|
|
23918
|
+
return {
|
|
23919
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23920
|
+
options: localVarRequestOptions,
|
|
23921
|
+
};
|
|
23922
|
+
}),
|
|
23852
23923
|
/**
|
|
23853
23924
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
23854
23925
|
* @summary Clone job
|
|
@@ -24035,6 +24106,20 @@ exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
|
|
|
24035
24106
|
const JobsApiFp = function (configuration) {
|
|
24036
24107
|
const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
|
|
24037
24108
|
return {
|
|
24109
|
+
/**
|
|
24110
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
24111
|
+
* @summary Auto deploy jobs
|
|
24112
|
+
* @param {string} organizationId Organization ID
|
|
24113
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
24114
|
+
* @param {*} [options] Override http request option.
|
|
24115
|
+
* @throws {RequiredError}
|
|
24116
|
+
*/
|
|
24117
|
+
autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options) {
|
|
24118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options);
|
|
24120
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
24121
|
+
});
|
|
24122
|
+
},
|
|
24038
24123
|
/**
|
|
24039
24124
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
24040
24125
|
* @summary Clone job
|
|
@@ -24112,6 +24197,17 @@ exports.JobsApiFp = JobsApiFp;
|
|
|
24112
24197
|
const JobsApiFactory = function (configuration, basePath, axios) {
|
|
24113
24198
|
const localVarFp = (0, exports.JobsApiFp)(configuration);
|
|
24114
24199
|
return {
|
|
24200
|
+
/**
|
|
24201
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
24202
|
+
* @summary Auto deploy jobs
|
|
24203
|
+
* @param {string} organizationId Organization ID
|
|
24204
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
24205
|
+
* @param {*} [options] Override http request option.
|
|
24206
|
+
* @throws {RequiredError}
|
|
24207
|
+
*/
|
|
24208
|
+
autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options) {
|
|
24209
|
+
return localVarFp.autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options).then((request) => request(axios, basePath));
|
|
24210
|
+
},
|
|
24115
24211
|
/**
|
|
24116
24212
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
24117
24213
|
* @summary Clone job
|
|
@@ -24174,6 +24270,18 @@ exports.JobsApiFactory = JobsApiFactory;
|
|
|
24174
24270
|
* @extends {BaseAPI}
|
|
24175
24271
|
*/
|
|
24176
24272
|
class JobsApi extends base_1.BaseAPI {
|
|
24273
|
+
/**
|
|
24274
|
+
* Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
|
|
24275
|
+
* @summary Auto deploy jobs
|
|
24276
|
+
* @param {string} organizationId Organization ID
|
|
24277
|
+
* @param {OrganizationJobAutoDeployRequest} [organizationJobAutoDeployRequest]
|
|
24278
|
+
* @param {*} [options] Override http request option.
|
|
24279
|
+
* @throws {RequiredError}
|
|
24280
|
+
* @memberof JobsApi
|
|
24281
|
+
*/
|
|
24282
|
+
autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options) {
|
|
24283
|
+
return (0, exports.JobsApiFp)(this.configuration).autoDeployJobEnvironments(organizationId, organizationJobAutoDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24284
|
+
}
|
|
24177
24285
|
/**
|
|
24178
24286
|
* This will create a new job with the same configuration on the targeted environment Id.
|
|
24179
24287
|
* @summary Clone job
|