qovery-typescript-axios 1.1.287 → 1.1.289

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -1238,6 +1238,166 @@ export interface Base {
1238
1238
  */
1239
1239
  'updated_at'?: string;
1240
1240
  }
1241
+ /**
1242
+ *
1243
+ * @export
1244
+ * @interface BaseJobResponse
1245
+ */
1246
+ export interface BaseJobResponse {
1247
+ /**
1248
+ *
1249
+ * @type {string}
1250
+ * @memberof BaseJobResponse
1251
+ */
1252
+ 'id': string;
1253
+ /**
1254
+ *
1255
+ * @type {string}
1256
+ * @memberof BaseJobResponse
1257
+ */
1258
+ 'created_at': string;
1259
+ /**
1260
+ *
1261
+ * @type {string}
1262
+ * @memberof BaseJobResponse
1263
+ */
1264
+ 'updated_at'?: string;
1265
+ /**
1266
+ *
1267
+ * @type {ReferenceObject}
1268
+ * @memberof BaseJobResponse
1269
+ */
1270
+ 'environment': ReferenceObject;
1271
+ /**
1272
+ * Maximum cpu that can be allocated to the job based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu
1273
+ * @type {number}
1274
+ * @memberof BaseJobResponse
1275
+ */
1276
+ 'maximum_cpu': number;
1277
+ /**
1278
+ * Maximum memory that can be allocated to the job based on organization cluster configuration. unit is MB. 1024 MB = 1GB
1279
+ * @type {number}
1280
+ * @memberof BaseJobResponse
1281
+ */
1282
+ 'maximum_memory': number;
1283
+ /**
1284
+ * name is case insensitive
1285
+ * @type {string}
1286
+ * @memberof BaseJobResponse
1287
+ */
1288
+ 'name': string;
1289
+ /**
1290
+ *
1291
+ * @type {string}
1292
+ * @memberof BaseJobResponse
1293
+ */
1294
+ 'description'?: string;
1295
+ /**
1296
+ * unit is millicores (m). 1000m = 1 cpu
1297
+ * @type {number}
1298
+ * @memberof BaseJobResponse
1299
+ */
1300
+ 'cpu': number;
1301
+ /**
1302
+ * unit is MB. 1024 MB = 1GB
1303
+ * @type {number}
1304
+ * @memberof BaseJobResponse
1305
+ */
1306
+ 'memory': number;
1307
+ /**
1308
+ * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
1309
+ * @type {number}
1310
+ * @memberof BaseJobResponse
1311
+ */
1312
+ 'max_nb_restart'?: number;
1313
+ /**
1314
+ * Maximum number of seconds allowed for the job to run before killing it and mark it as failed
1315
+ * @type {number}
1316
+ * @memberof BaseJobResponse
1317
+ */
1318
+ 'max_duration_seconds'?: number;
1319
+ /**
1320
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
1321
+ * @type {boolean}
1322
+ * @memberof BaseJobResponse
1323
+ */
1324
+ 'auto_preview': boolean;
1325
+ /**
1326
+ * Port where to run readiness and liveliness probes checks. The port will not be exposed externally
1327
+ * @type {number}
1328
+ * @memberof BaseJobResponse
1329
+ */
1330
+ 'port'?: number | null;
1331
+ /**
1332
+ *
1333
+ * @type {BaseJobResponseAllOfSource}
1334
+ * @memberof BaseJobResponse
1335
+ */
1336
+ 'source': BaseJobResponseAllOfSource;
1337
+ /**
1338
+ *
1339
+ * @type {Healthcheck}
1340
+ * @memberof BaseJobResponse
1341
+ */
1342
+ 'healthchecks': Healthcheck;
1343
+ /**
1344
+ * 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
1345
+ * @type {boolean}
1346
+ * @memberof BaseJobResponse
1347
+ */
1348
+ 'auto_deploy'?: boolean;
1349
+ }
1350
+ /**
1351
+ * @type BaseJobResponseAllOfSource
1352
+ * @export
1353
+ */
1354
+ export type BaseJobResponseAllOfSource = BaseJobResponseAllOfSourceOneOf | BaseJobResponseAllOfSourceOneOf1;
1355
+
1356
+ /**
1357
+ *
1358
+ * @export
1359
+ * @interface BaseJobResponseAllOfSourceOneOf
1360
+ */
1361
+ export interface BaseJobResponseAllOfSourceOneOf {
1362
+ /**
1363
+ *
1364
+ * @type {ContainerSource}
1365
+ * @memberof BaseJobResponseAllOfSourceOneOf
1366
+ */
1367
+ 'image'?: ContainerSource;
1368
+ }
1369
+ /**
1370
+ *
1371
+ * @export
1372
+ * @interface BaseJobResponseAllOfSourceOneOf1
1373
+ */
1374
+ export interface BaseJobResponseAllOfSourceOneOf1 {
1375
+ /**
1376
+ *
1377
+ * @type {BaseJobResponseAllOfSourceOneOf1Docker}
1378
+ * @memberof BaseJobResponseAllOfSourceOneOf1
1379
+ */
1380
+ 'docker'?: BaseJobResponseAllOfSourceOneOf1Docker;
1381
+ }
1382
+ /**
1383
+ *
1384
+ * @export
1385
+ * @interface BaseJobResponseAllOfSourceOneOf1Docker
1386
+ */
1387
+ export interface BaseJobResponseAllOfSourceOneOf1Docker {
1388
+ /**
1389
+ * The path of the associated Dockerfile. Only if you are using build_mode = DOCKER
1390
+ * @type {string}
1391
+ * @memberof BaseJobResponseAllOfSourceOneOf1Docker
1392
+ */
1393
+ 'dockerfile_path'?: string | null;
1394
+ /**
1395
+ *
1396
+ * @type {ApplicationGitRepository}
1397
+ * @memberof BaseJobResponseAllOfSourceOneOf1Docker
1398
+ */
1399
+ 'git_repository'?: ApplicationGitRepository;
1400
+ }
1241
1401
  /**
1242
1402
  *
1243
1403
  * @export
@@ -4082,6 +4242,172 @@ export interface CreditCardResponseList {
4082
4242
  */
4083
4243
  'results'?: Array<CreditCard>;
4084
4244
  }
4245
+ /**
4246
+ *
4247
+ * @export
4248
+ * @interface CronJobResponse
4249
+ */
4250
+ export interface CronJobResponse {
4251
+ /**
4252
+ *
4253
+ * @type {string}
4254
+ * @memberof CronJobResponse
4255
+ */
4256
+ 'id': string;
4257
+ /**
4258
+ *
4259
+ * @type {string}
4260
+ * @memberof CronJobResponse
4261
+ */
4262
+ 'created_at': string;
4263
+ /**
4264
+ *
4265
+ * @type {string}
4266
+ * @memberof CronJobResponse
4267
+ */
4268
+ 'updated_at'?: string;
4269
+ /**
4270
+ *
4271
+ * @type {ReferenceObject}
4272
+ * @memberof CronJobResponse
4273
+ */
4274
+ 'environment': ReferenceObject;
4275
+ /**
4276
+ * Maximum cpu that can be allocated to the job based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu
4277
+ * @type {number}
4278
+ * @memberof CronJobResponse
4279
+ */
4280
+ 'maximum_cpu': number;
4281
+ /**
4282
+ * Maximum memory that can be allocated to the job based on organization cluster configuration. unit is MB. 1024 MB = 1GB
4283
+ * @type {number}
4284
+ * @memberof CronJobResponse
4285
+ */
4286
+ 'maximum_memory': number;
4287
+ /**
4288
+ * name is case insensitive
4289
+ * @type {string}
4290
+ * @memberof CronJobResponse
4291
+ */
4292
+ 'name': string;
4293
+ /**
4294
+ *
4295
+ * @type {string}
4296
+ * @memberof CronJobResponse
4297
+ */
4298
+ 'description'?: string;
4299
+ /**
4300
+ * unit is millicores (m). 1000m = 1 cpu
4301
+ * @type {number}
4302
+ * @memberof CronJobResponse
4303
+ */
4304
+ 'cpu': number;
4305
+ /**
4306
+ * unit is MB. 1024 MB = 1GB
4307
+ * @type {number}
4308
+ * @memberof CronJobResponse
4309
+ */
4310
+ 'memory': number;
4311
+ /**
4312
+ * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
4313
+ * @type {number}
4314
+ * @memberof CronJobResponse
4315
+ */
4316
+ 'max_nb_restart'?: number;
4317
+ /**
4318
+ * Maximum number of seconds allowed for the job to run before killing it and mark it as failed
4319
+ * @type {number}
4320
+ * @memberof CronJobResponse
4321
+ */
4322
+ 'max_duration_seconds'?: number;
4323
+ /**
4324
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
4325
+ * @type {boolean}
4326
+ * @memberof CronJobResponse
4327
+ */
4328
+ 'auto_preview': boolean;
4329
+ /**
4330
+ * Port where to run readiness and liveliness probes checks. The port will not be exposed externally
4331
+ * @type {number}
4332
+ * @memberof CronJobResponse
4333
+ */
4334
+ 'port'?: number | null;
4335
+ /**
4336
+ *
4337
+ * @type {BaseJobResponseAllOfSource}
4338
+ * @memberof CronJobResponse
4339
+ */
4340
+ 'source': BaseJobResponseAllOfSource;
4341
+ /**
4342
+ *
4343
+ * @type {Healthcheck}
4344
+ * @memberof CronJobResponse
4345
+ */
4346
+ 'healthchecks': Healthcheck;
4347
+ /**
4348
+ * 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
4349
+ * @type {boolean}
4350
+ * @memberof CronJobResponse
4351
+ */
4352
+ 'auto_deploy'?: boolean;
4353
+ /**
4354
+ *
4355
+ * @type {string}
4356
+ * @memberof CronJobResponse
4357
+ */
4358
+ 'job_type': CronJobResponseJobTypeEnum;
4359
+ /**
4360
+ *
4361
+ * @type {CronJobResponseAllOfSchedule}
4362
+ * @memberof CronJobResponse
4363
+ */
4364
+ 'schedule': CronJobResponseAllOfSchedule;
4365
+ }
4366
+
4367
+ export const CronJobResponseJobTypeEnum = {
4368
+ CRON: 'CRON'
4369
+ } as const;
4370
+
4371
+ export type CronJobResponseJobTypeEnum = typeof CronJobResponseJobTypeEnum[keyof typeof CronJobResponseJobTypeEnum];
4372
+
4373
+ /**
4374
+ *
4375
+ * @export
4376
+ * @interface CronJobResponseAllOfSchedule
4377
+ */
4378
+ export interface CronJobResponseAllOfSchedule {
4379
+ /**
4380
+ *
4381
+ * @type {CronJobResponseAllOfScheduleCronjob}
4382
+ * @memberof CronJobResponseAllOfSchedule
4383
+ */
4384
+ 'cronjob'?: CronJobResponseAllOfScheduleCronjob;
4385
+ }
4386
+ /**
4387
+ *
4388
+ * @export
4389
+ * @interface CronJobResponseAllOfScheduleCronjob
4390
+ */
4391
+ export interface CronJobResponseAllOfScheduleCronjob {
4392
+ /**
4393
+ *
4394
+ * @type {Array<string>}
4395
+ * @memberof CronJobResponseAllOfScheduleCronjob
4396
+ */
4397
+ 'arguments'?: Array<string>;
4398
+ /**
4399
+ * optional entrypoint when launching container
4400
+ * @type {string}
4401
+ * @memberof CronJobResponseAllOfScheduleCronjob
4402
+ */
4403
+ 'entrypoint'?: string;
4404
+ /**
4405
+ * Can only be set if the event is CRON. Represent the cron format for the job schedule without seconds. For example: `* * * * *` represent the cron to launch the job every minute. See https://crontab.guru/ to WISIWIG interface. Timezone is UT
4406
+ * @type {string}
4407
+ * @memberof CronJobResponseAllOfScheduleCronjob
4408
+ */
4409
+ 'scheduled_at': string;
4410
+ }
4085
4411
  /**
4086
4412
  *
4087
4413
  * @export
@@ -7643,12 +7969,84 @@ export type HelmForceEvent = typeof HelmForceEvent[keyof typeof HelmForceEvent];
7643
7969
 
7644
7970
 
7645
7971
  /**
7646
- * The type of your helm repository
7972
+ *
7647
7973
  * @export
7648
7974
  * @enum {string}
7649
7975
  */
7650
7976
 
7651
- export const HelmRepositoryKindEnum = {
7977
+ export const HelmPortProtocolEnum = {
7978
+ HTTP: 'HTTP',
7979
+ GRPC: 'GRPC'
7980
+ } as const;
7981
+
7982
+ export type HelmPortProtocolEnum = typeof HelmPortProtocolEnum[keyof typeof HelmPortProtocolEnum];
7983
+
7984
+
7985
+ /**
7986
+ *
7987
+ * @export
7988
+ * @interface HelmPortRequest
7989
+ */
7990
+ export interface HelmPortRequest {
7991
+ /**
7992
+ *
7993
+ * @type {Array<HelmPortRequestPortsInner>}
7994
+ * @memberof HelmPortRequest
7995
+ */
7996
+ 'ports'?: Array<HelmPortRequestPortsInner>;
7997
+ }
7998
+ /**
7999
+ *
8000
+ * @export
8001
+ * @interface HelmPortRequestPortsInner
8002
+ */
8003
+ export interface HelmPortRequestPortsInner {
8004
+ /**
8005
+ *
8006
+ * @type {string}
8007
+ * @memberof HelmPortRequestPortsInner
8008
+ */
8009
+ 'name'?: string;
8010
+ /**
8011
+ * The listening port of your service.
8012
+ * @type {number}
8013
+ * @memberof HelmPortRequestPortsInner
8014
+ */
8015
+ 'internal_port': number;
8016
+ /**
8017
+ * The exposed port for your service. This is optional. If not set a default port will be used.
8018
+ * @type {number}
8019
+ * @memberof HelmPortRequestPortsInner
8020
+ */
8021
+ 'external_port'?: number;
8022
+ /**
8023
+ *
8024
+ * @type {string}
8025
+ * @memberof HelmPortRequestPortsInner
8026
+ */
8027
+ 'service_name': string;
8028
+ /**
8029
+ *
8030
+ * @type {string}
8031
+ * @memberof HelmPortRequestPortsInner
8032
+ */
8033
+ 'namespace'?: string;
8034
+ /**
8035
+ *
8036
+ * @type {HelmPortProtocolEnum}
8037
+ * @memberof HelmPortRequestPortsInner
8038
+ */
8039
+ 'protocol'?: HelmPortProtocolEnum;
8040
+ }
8041
+
8042
+
8043
+ /**
8044
+ * The type of your helm repository
8045
+ * @export
8046
+ * @enum {string}
8047
+ */
8048
+
8049
+ export const HelmRepositoryKindEnum = {
7652
8050
  HTTPS: 'HTTPS',
7653
8051
  OCI: 'OCI'
7654
8052
  } as const;
@@ -7790,6 +8188,12 @@ export interface HelmRepositoryResponseList {
7790
8188
  * @interface HelmRequest
7791
8189
  */
7792
8190
  export interface HelmRequest {
8191
+ /**
8192
+ *
8193
+ * @type {Array<HelmPortRequestPortsInner>}
8194
+ * @memberof HelmRequest
8195
+ */
8196
+ 'ports'?: Array<HelmPortRequestPortsInner>;
7793
8197
  /**
7794
8198
  * name is case insensitive
7795
8199
  * @type {string}
@@ -8052,11 +8456,17 @@ export interface HelmResponse {
8052
8456
  */
8053
8457
  'auto_preview': boolean;
8054
8458
  /**
8055
- * Specify if the service will be automatically updated after receiving a new image tag or a new commit according to the source type.
8459
+ * Specify if the service will be automatically updated after receiving a new image tag or a new commit according to the source type.
8056
8460
  * @type {boolean}
8057
8461
  * @memberof HelmResponse
8058
8462
  */
8059
8463
  'auto_deploy': boolean;
8464
+ /**
8465
+ *
8466
+ * @type {Array<HelmResponseAllOfPorts>}
8467
+ * @memberof HelmResponse
8468
+ */
8469
+ 'ports'?: Array<HelmResponseAllOfPorts>;
8060
8470
  /**
8061
8471
  *
8062
8472
  * @type {HelmResponseAllOfSource}
@@ -8082,6 +8492,57 @@ export interface HelmResponse {
8082
8492
  */
8083
8493
  'values_override': HelmRequestAllOfValuesOverride;
8084
8494
  }
8495
+ /**
8496
+ *
8497
+ * @export
8498
+ * @interface HelmResponseAllOfPorts
8499
+ */
8500
+ export interface HelmResponseAllOfPorts {
8501
+ /**
8502
+ *
8503
+ * @type {string}
8504
+ * @memberof HelmResponseAllOfPorts
8505
+ */
8506
+ 'id': string;
8507
+ /**
8508
+ *
8509
+ * @type {string}
8510
+ * @memberof HelmResponseAllOfPorts
8511
+ */
8512
+ 'name'?: string;
8513
+ /**
8514
+ * The listening port of your service.
8515
+ * @type {number}
8516
+ * @memberof HelmResponseAllOfPorts
8517
+ */
8518
+ 'internal_port': number;
8519
+ /**
8520
+ * The exposed port for your service. This is optional. If not set a default port will be used.
8521
+ * @type {number}
8522
+ * @memberof HelmResponseAllOfPorts
8523
+ */
8524
+ 'external_port'?: number;
8525
+ /**
8526
+ *
8527
+ * @type {string}
8528
+ * @memberof HelmResponseAllOfPorts
8529
+ */
8530
+ 'service_name': string;
8531
+ /**
8532
+ *
8533
+ * @type {string}
8534
+ * @memberof HelmResponseAllOfPorts
8535
+ */
8536
+ 'namespace'?: string;
8537
+ /**
8538
+ *
8539
+ * @type {HelmPortProtocolEnum}
8540
+ * @memberof HelmResponseAllOfPorts
8541
+ */
8542
+ 'protocol': HelmPortProtocolEnum;
8543
+ }
8544
+
8545
+
8085
8546
  /**
8086
8547
  * @type HelmResponseAllOfSource
8087
8548
  * @export
@@ -8917,284 +9378,221 @@ export interface JobRequestAllOfSourceImage {
8917
9378
  */
8918
9379
  'registry_id'?: string;
8919
9380
  }
9381
+ /**
9382
+ * @type JobResponse
9383
+ * @export
9384
+ */
9385
+ export type JobResponse = { job_type: 'CRON' } & CronJobResponse | { job_type: 'LIFECYCLE' } & LifecycleJobResponse;
9386
+
9387
+ /**
9388
+ *
9389
+ * @export
9390
+ * @interface JobResponseList
9391
+ */
9392
+ export interface JobResponseList {
9393
+ /**
9394
+ *
9395
+ * @type {Array<JobResponse>}
9396
+ * @memberof JobResponseList
9397
+ */
9398
+ 'results'?: Array<JobResponse>;
9399
+ }
9400
+ /**
9401
+ * On which event the job is going to run. ON_START means when a deployment is requested for the environment ON_STOP means when a stop of the environment is requested ON_DELETE means when an environment delete is requested CRON means at a scheduled interval
9402
+ * @export
9403
+ * @enum {string}
9404
+ */
9405
+
9406
+ export const JobScheduleEvent = {
9407
+ ON_START: 'ON_START',
9408
+ ON_STOP: 'ON_STOP',
9409
+ ON_DELETE: 'ON_DELETE',
9410
+ CRON: 'CRON'
9411
+ } as const;
9412
+
9413
+ export type JobScheduleEvent = typeof JobScheduleEvent[keyof typeof JobScheduleEvent];
9414
+
9415
+
8920
9416
  /**
8921
9417
  *
8922
9418
  * @export
8923
- * @interface JobResponse
9419
+ * @interface Key
8924
9420
  */
8925
- export interface JobResponse {
9421
+ export interface Key {
8926
9422
  /**
8927
9423
  *
8928
9424
  * @type {string}
8929
- * @memberof JobResponse
9425
+ * @memberof Key
9426
+ */
9427
+ 'key': string;
9428
+ }
9429
+ /**
9430
+ *
9431
+ * @export
9432
+ * @enum {string}
9433
+ */
9434
+
9435
+ export const KubernetesEnum = {
9436
+ K3_S: 'K3S',
9437
+ MANAGED: 'MANAGED'
9438
+ } as const;
9439
+
9440
+ export type KubernetesEnum = typeof KubernetesEnum[keyof typeof KubernetesEnum];
9441
+
9442
+
9443
+ /**
9444
+ *
9445
+ * @export
9446
+ * @interface LifecycleJobResponse
9447
+ */
9448
+ export interface LifecycleJobResponse {
9449
+ /**
9450
+ *
9451
+ * @type {string}
9452
+ * @memberof LifecycleJobResponse
8930
9453
  */
8931
9454
  'id': string;
8932
9455
  /**
8933
9456
  *
8934
9457
  * @type {string}
8935
- * @memberof JobResponse
9458
+ * @memberof LifecycleJobResponse
8936
9459
  */
8937
9460
  'created_at': string;
8938
9461
  /**
8939
9462
  *
8940
9463
  * @type {string}
8941
- * @memberof JobResponse
9464
+ * @memberof LifecycleJobResponse
8942
9465
  */
8943
9466
  'updated_at'?: string;
8944
9467
  /**
8945
9468
  *
8946
9469
  * @type {ReferenceObject}
8947
- * @memberof JobResponse
9470
+ * @memberof LifecycleJobResponse
8948
9471
  */
8949
9472
  'environment': ReferenceObject;
8950
9473
  /**
8951
9474
  * Maximum cpu that can be allocated to the job based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu
8952
9475
  * @type {number}
8953
- * @memberof JobResponse
9476
+ * @memberof LifecycleJobResponse
8954
9477
  */
8955
9478
  'maximum_cpu': number;
8956
9479
  /**
8957
9480
  * Maximum memory that can be allocated to the job based on organization cluster configuration. unit is MB. 1024 MB = 1GB
8958
9481
  * @type {number}
8959
- * @memberof JobResponse
9482
+ * @memberof LifecycleJobResponse
8960
9483
  */
8961
9484
  'maximum_memory': number;
8962
9485
  /**
8963
9486
  * name is case insensitive
8964
9487
  * @type {string}
8965
- * @memberof JobResponse
9488
+ * @memberof LifecycleJobResponse
8966
9489
  */
8967
9490
  'name': string;
8968
9491
  /**
8969
9492
  *
8970
9493
  * @type {string}
8971
- * @memberof JobResponse
9494
+ * @memberof LifecycleJobResponse
8972
9495
  */
8973
9496
  'description'?: string;
8974
9497
  /**
8975
9498
  * unit is millicores (m). 1000m = 1 cpu
8976
9499
  * @type {number}
8977
- * @memberof JobResponse
9500
+ * @memberof LifecycleJobResponse
8978
9501
  */
8979
9502
  'cpu': number;
8980
9503
  /**
8981
9504
  * unit is MB. 1024 MB = 1GB
8982
9505
  * @type {number}
8983
- * @memberof JobResponse
9506
+ * @memberof LifecycleJobResponse
8984
9507
  */
8985
9508
  'memory': number;
8986
9509
  /**
8987
9510
  * Maximum number of restart allowed before the job is considered as failed 0 means that no restart/crash of the job is allowed
8988
9511
  * @type {number}
8989
- * @memberof JobResponse
9512
+ * @memberof LifecycleJobResponse
8990
9513
  */
8991
9514
  'max_nb_restart'?: number;
8992
9515
  /**
8993
9516
  * Maximum number of seconds allowed for the job to run before killing it and mark it as failed
8994
9517
  * @type {number}
8995
- * @memberof JobResponse
9518
+ * @memberof LifecycleJobResponse
8996
9519
  */
8997
9520
  'max_duration_seconds'?: number;
8998
9521
  /**
8999
9522
  * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
9000
9523
  * @type {boolean}
9001
- * @memberof JobResponse
9524
+ * @memberof LifecycleJobResponse
9002
9525
  */
9003
9526
  'auto_preview': boolean;
9004
9527
  /**
9005
9528
  * Port where to run readiness and liveliness probes checks. The port will not be exposed externally
9006
9529
  * @type {number}
9007
- * @memberof JobResponse
9530
+ * @memberof LifecycleJobResponse
9008
9531
  */
9009
9532
  'port'?: number | null;
9010
9533
  /**
9011
9534
  *
9012
- * @type {JobResponseAllOfSource}
9013
- * @memberof JobResponse
9535
+ * @type {BaseJobResponseAllOfSource}
9536
+ * @memberof LifecycleJobResponse
9014
9537
  */
9015
- 'source': JobResponseAllOfSource;
9538
+ 'source': BaseJobResponseAllOfSource;
9016
9539
  /**
9017
9540
  *
9018
9541
  * @type {Healthcheck}
9019
- * @memberof JobResponse
9542
+ * @memberof LifecycleJobResponse
9020
9543
  */
9021
9544
  'healthchecks': Healthcheck;
9022
- /**
9023
- *
9024
- * @type {JobResponseAllOfSchedule}
9025
- * @memberof JobResponse
9026
- */
9027
- 'schedule'?: JobResponseAllOfSchedule;
9028
9545
  /**
9029
9546
  * 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
9030
9547
  * @type {boolean}
9031
- * @memberof JobResponse
9548
+ * @memberof LifecycleJobResponse
9032
9549
  */
9033
9550
  'auto_deploy'?: boolean;
9034
- }
9035
- /**
9036
- * 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`
9037
- * @export
9038
- * @interface JobResponseAllOfSchedule
9039
- */
9040
- export interface JobResponseAllOfSchedule {
9041
- /**
9042
- *
9043
- * @type {JobRequestAllOfScheduleOnStart}
9044
- * @memberof JobResponseAllOfSchedule
9045
- */
9046
- 'on_start'?: JobRequestAllOfScheduleOnStart;
9047
- /**
9048
- *
9049
- * @type {JobRequestAllOfScheduleOnStart}
9050
- * @memberof JobResponseAllOfSchedule
9051
- */
9052
- 'on_stop'?: JobRequestAllOfScheduleOnStart;
9053
- /**
9054
- *
9055
- * @type {JobRequestAllOfScheduleOnStart}
9056
- * @memberof JobResponseAllOfSchedule
9057
- */
9058
- 'on_delete'?: JobRequestAllOfScheduleOnStart;
9059
- /**
9060
- *
9061
- * @type {JobResponseAllOfScheduleCronjob}
9062
- * @memberof JobResponseAllOfSchedule
9063
- */
9064
- 'cronjob'?: JobResponseAllOfScheduleCronjob;
9065
- }
9066
- /**
9067
- *
9068
- * @export
9069
- * @interface JobResponseAllOfScheduleCronjob
9070
- */
9071
- export interface JobResponseAllOfScheduleCronjob {
9072
9551
  /**
9073
9552
  *
9074
- * @type {Array<string>}
9075
- * @memberof JobResponseAllOfScheduleCronjob
9076
- */
9077
- 'arguments'?: Array<string>;
9078
- /**
9079
- * optional entrypoint when launching container
9080
- * @type {string}
9081
- * @memberof JobResponseAllOfScheduleCronjob
9082
- */
9083
- 'entrypoint'?: string;
9084
- /**
9085
- * Can only be set if the event is CRON. Represent the cron format for the job schedule without seconds. For example: `* * * * *` represent the cron to launch the job every minute. See https://crontab.guru/ to WISIWIG interface. Timezone is UT
9086
9553
  * @type {string}
9087
- * @memberof JobResponseAllOfScheduleCronjob
9088
- */
9089
- 'scheduled_at': string;
9090
- }
9091
- /**
9092
- * @type JobResponseAllOfSource
9093
- * @export
9094
- */
9095
- export type JobResponseAllOfSource = JobResponseAllOfSourceOneOf | JobResponseAllOfSourceOneOf1;
9096
-
9097
- /**
9098
- *
9099
- * @export
9100
- * @interface JobResponseAllOfSourceOneOf
9101
- */
9102
- export interface JobResponseAllOfSourceOneOf {
9103
- /**
9104
- *
9105
- * @type {ContainerSource}
9106
- * @memberof JobResponseAllOfSourceOneOf
9554
+ * @memberof LifecycleJobResponse
9107
9555
  */
9108
- 'image'?: ContainerSource;
9109
- }
9110
- /**
9111
- *
9112
- * @export
9113
- * @interface JobResponseAllOfSourceOneOf1
9114
- */
9115
- export interface JobResponseAllOfSourceOneOf1 {
9556
+ 'job_type': LifecycleJobResponseJobTypeEnum;
9116
9557
  /**
9117
9558
  *
9118
- * @type {JobResponseAllOfSourceOneOf1Docker}
9119
- * @memberof JobResponseAllOfSourceOneOf1
9559
+ * @type {LifecycleJobResponseAllOfSchedule}
9560
+ * @memberof LifecycleJobResponse
9120
9561
  */
9121
- 'docker'?: JobResponseAllOfSourceOneOf1Docker;
9562
+ 'schedule': LifecycleJobResponseAllOfSchedule;
9122
9563
  }
9564
+
9565
+ export const LifecycleJobResponseJobTypeEnum = {
9566
+ LIFECYCLE: 'LIFECYCLE'
9567
+ } as const;
9568
+
9569
+ export type LifecycleJobResponseJobTypeEnum = typeof LifecycleJobResponseJobTypeEnum[keyof typeof LifecycleJobResponseJobTypeEnum];
9570
+
9123
9571
  /**
9124
9572
  *
9125
9573
  * @export
9126
- * @interface JobResponseAllOfSourceOneOf1Docker
9574
+ * @interface LifecycleJobResponseAllOfSchedule
9127
9575
  */
9128
- export interface JobResponseAllOfSourceOneOf1Docker {
9129
- /**
9130
- * The path of the associated Dockerfile. Only if you are using build_mode = DOCKER
9131
- * @type {string}
9132
- * @memberof JobResponseAllOfSourceOneOf1Docker
9133
- */
9134
- 'dockerfile_path'?: string | null;
9576
+ export interface LifecycleJobResponseAllOfSchedule {
9135
9577
  /**
9136
9578
  *
9137
- * @type {ApplicationGitRepository}
9138
- * @memberof JobResponseAllOfSourceOneOf1Docker
9579
+ * @type {JobRequestAllOfScheduleOnStart}
9580
+ * @memberof LifecycleJobResponseAllOfSchedule
9139
9581
  */
9140
- 'git_repository'?: ApplicationGitRepository;
9141
- }
9142
- /**
9143
- *
9144
- * @export
9145
- * @interface JobResponseList
9146
- */
9147
- export interface JobResponseList {
9582
+ 'on_start'?: JobRequestAllOfScheduleOnStart;
9148
9583
  /**
9149
9584
  *
9150
- * @type {Array<JobResponse>}
9151
- * @memberof JobResponseList
9585
+ * @type {JobRequestAllOfScheduleOnStart}
9586
+ * @memberof LifecycleJobResponseAllOfSchedule
9152
9587
  */
9153
- 'results'?: Array<JobResponse>;
9154
- }
9155
- /**
9156
- * On which event the job is going to run. ON_START means when a deployment is requested for the environment ON_STOP means when a stop of the environment is requested ON_DELETE means when an environment delete is requested CRON means at a scheduled interval
9157
- * @export
9158
- * @enum {string}
9159
- */
9160
-
9161
- export const JobScheduleEvent = {
9162
- ON_START: 'ON_START',
9163
- ON_STOP: 'ON_STOP',
9164
- ON_DELETE: 'ON_DELETE',
9165
- CRON: 'CRON'
9166
- } as const;
9167
-
9168
- export type JobScheduleEvent = typeof JobScheduleEvent[keyof typeof JobScheduleEvent];
9169
-
9170
-
9171
- /**
9172
- *
9173
- * @export
9174
- * @interface Key
9175
- */
9176
- export interface Key {
9588
+ 'on_stop'?: JobRequestAllOfScheduleOnStart;
9177
9589
  /**
9178
9590
  *
9179
- * @type {string}
9180
- * @memberof Key
9591
+ * @type {JobRequestAllOfScheduleOnStart}
9592
+ * @memberof LifecycleJobResponseAllOfSchedule
9181
9593
  */
9182
- 'key': string;
9594
+ 'on_delete'?: JobRequestAllOfScheduleOnStart;
9183
9595
  }
9184
- /**
9185
- *
9186
- * @export
9187
- * @enum {string}
9188
- */
9189
-
9190
- export const KubernetesEnum = {
9191
- K3_S: 'K3S',
9192
- MANAGED: 'MANAGED'
9193
- } as const;
9194
-
9195
- export type KubernetesEnum = typeof KubernetesEnum[keyof typeof KubernetesEnum];
9196
-
9197
-
9198
9596
  /**
9199
9597
  *
9200
9598
  * @export