qovery-typescript-axios 1.1.217 → 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 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
@@ -38922,6 +39025,51 @@ export class JobSecretApi extends BaseAPI {
38922
39025
  */
38923
39026
  export const JobsApiAxiosParamCreator = function (configuration?: Configuration) {
38924
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
+ },
38925
39073
  /**
38926
39074
  * This will create a new job with the same configuration on the targeted environment Id.
38927
39075
  * @summary Clone job
@@ -39146,6 +39294,18 @@ export const JobsApiAxiosParamCreator = function (configuration?: Configuration)
39146
39294
  export const JobsApiFp = function(configuration?: Configuration) {
39147
39295
  const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration)
39148
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
+ },
39149
39309
  /**
39150
39310
  * This will create a new job with the same configuration on the targeted environment Id.
39151
39311
  * @summary Clone job
@@ -39213,6 +39373,17 @@ export const JobsApiFp = function(configuration?: Configuration) {
39213
39373
  export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
39214
39374
  const localVarFp = JobsApiFp(configuration)
39215
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
+ },
39216
39387
  /**
39217
39388
  * This will create a new job with the same configuration on the targeted environment Id.
39218
39389
  * @summary Clone job
@@ -39275,6 +39446,19 @@ export const JobsApiFactory = function (configuration?: Configuration, basePath?
39275
39446
  * @extends {BaseAPI}
39276
39447
  */
39277
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
+
39278
39462
  /**
39279
39463
  * This will create a new job with the same configuration on the targeted environment Id.
39280
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
@@ -25617,6 +25720,15 @@ export declare class JobSecretApi extends BaseAPI {
25617
25720
  * @export
25618
25721
  */
25619
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>;
25620
25732
  /**
25621
25733
  * This will create a new job with the same configuration on the targeted environment Id.
25622
25734
  * @summary Clone job
@@ -25665,6 +25777,15 @@ export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) =
25665
25777
  * @export
25666
25778
  */
25667
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>>;
25668
25789
  /**
25669
25790
  * This will create a new job with the same configuration on the targeted environment Id.
25670
25791
  * @summary Clone job
@@ -25713,6 +25834,15 @@ export declare const JobsApiFp: (configuration?: Configuration) => {
25713
25834
  * @export
25714
25835
  */
25715
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>;
25716
25846
  /**
25717
25847
  * This will create a new job with the same configuration on the targeted environment Id.
25718
25848
  * @summary Clone job
@@ -25763,6 +25893,16 @@ export declare const JobsApiFactory: (configuration?: Configuration, basePath?:
25763
25893
  * @extends {BaseAPI}
25764
25894
  */
25765
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>>;
25766
25906
  /**
25767
25907
  * This will create a new job with the same configuration on the targeted environment Id.
25768
25908
  * @summary Clone job
package/dist/api.js CHANGED
@@ -23883,6 +23883,43 @@ exports.JobSecretApi = JobSecretApi;
23883
23883
  */
23884
23884
  const JobsApiAxiosParamCreator = function (configuration) {
23885
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
+ }),
23886
23923
  /**
23887
23924
  * This will create a new job with the same configuration on the targeted environment Id.
23888
23925
  * @summary Clone job
@@ -24069,6 +24106,20 @@ exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
24069
24106
  const JobsApiFp = function (configuration) {
24070
24107
  const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
24071
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
+ },
24072
24123
  /**
24073
24124
  * This will create a new job with the same configuration on the targeted environment Id.
24074
24125
  * @summary Clone job
@@ -24146,6 +24197,17 @@ exports.JobsApiFp = JobsApiFp;
24146
24197
  const JobsApiFactory = function (configuration, basePath, axios) {
24147
24198
  const localVarFp = (0, exports.JobsApiFp)(configuration);
24148
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
+ },
24149
24211
  /**
24150
24212
  * This will create a new job with the same configuration on the targeted environment Id.
24151
24213
  * @summary Clone job
@@ -24208,6 +24270,18 @@ exports.JobsApiFactory = JobsApiFactory;
24208
24270
  * @extends {BaseAPI}
24209
24271
  */
24210
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
+ }
24211
24285
  /**
24212
24286
  * This will create a new job with the same configuration on the targeted environment Id.
24213
24287
  * @summary Clone job
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.217",
3
+ "version": "v1.1.219",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [