qovery-typescript-axios 1.1.418 → 1.1.420

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
@@ -1421,19 +1421,6 @@ export interface BaseJobResponseAllOfSourceOneOf1Docker {
1421
1421
  */
1422
1422
  'git_repository'?: ApplicationGitRepository;
1423
1423
  }
1424
- /**
1425
- *
1426
- * @export
1427
- * @interface BillingEnd
1428
- */
1429
- export interface BillingEnd {
1430
- /**
1431
- *
1432
- * @type {string}
1433
- * @memberof BillingEnd
1434
- */
1435
- 'billing_ended_on'?: string;
1436
- }
1437
1424
  /**
1438
1425
  *
1439
1426
  * @export
@@ -1581,38 +1568,6 @@ export interface BillingInfoRequest {
1581
1568
  */
1582
1569
  'vat_number'?: string;
1583
1570
  }
1584
- /**
1585
- *
1586
- * @export
1587
- * @interface BillingPeriod
1588
- */
1589
- export interface BillingPeriod {
1590
- /**
1591
- *
1592
- * @type {string}
1593
- * @memberof BillingPeriod
1594
- */
1595
- 'billing_started_on'?: string;
1596
- /**
1597
- *
1598
- * @type {string}
1599
- * @memberof BillingPeriod
1600
- */
1601
- 'billing_ended_on'?: string;
1602
- }
1603
- /**
1604
- *
1605
- * @export
1606
- * @interface BillingStart
1607
- */
1608
- export interface BillingStart {
1609
- /**
1610
- *
1611
- * @type {string}
1612
- * @memberof BillingStart
1613
- */
1614
- 'billing_started_on'?: string;
1615
- }
1616
1571
  /**
1617
1572
  *
1618
1573
  * @export
@@ -1657,31 +1612,6 @@ export interface Budget {
1657
1612
  */
1658
1613
  'currency_code'?: string;
1659
1614
  }
1660
- /**
1661
- *
1662
- * @export
1663
- * @interface BudgetThreshold
1664
- */
1665
- export interface BudgetThreshold {
1666
- /**
1667
- *
1668
- * @type {number}
1669
- * @memberof BudgetThreshold
1670
- */
1671
- 'total_in_cents'?: number;
1672
- /**
1673
- *
1674
- * @type {number}
1675
- * @memberof BudgetThreshold
1676
- */
1677
- 'total'?: number;
1678
- /**
1679
- *
1680
- * @type {string}
1681
- * @memberof BudgetThreshold
1682
- */
1683
- 'currency_code'?: string;
1684
- }
1685
1615
  /**
1686
1616
  * `DOCKER` requires `dockerfile_path` `BUILDPACKS` does not require any `dockerfile_path`
1687
1617
  * @export
@@ -3330,31 +3260,6 @@ export interface Commit {
3330
3260
  */
3331
3261
  'commit_page_url'?: string;
3332
3262
  }
3333
- /**
3334
- *
3335
- * @export
3336
- * @interface CommitPaginatedResponseList
3337
- */
3338
- export interface CommitPaginatedResponseList {
3339
- /**
3340
- *
3341
- * @type {number}
3342
- * @memberof CommitPaginatedResponseList
3343
- */
3344
- 'page': number;
3345
- /**
3346
- *
3347
- * @type {number}
3348
- * @memberof CommitPaginatedResponseList
3349
- */
3350
- 'page_size': number;
3351
- /**
3352
- *
3353
- * @type {Array<Commit>}
3354
- * @memberof CommitPaginatedResponseList
3355
- */
3356
- 'results'?: Array<Commit>;
3357
- }
3358
3263
  /**
3359
3264
  *
3360
3265
  * @export
@@ -3368,19 +3273,6 @@ export interface CommitResponseList {
3368
3273
  */
3369
3274
  'results'?: Array<Commit>;
3370
3275
  }
3371
- /**
3372
- *
3373
- * @export
3374
- * @interface CommunityUsage
3375
- */
3376
- export interface CommunityUsage {
3377
- /**
3378
- *
3379
- * @type {Array<ProjectCurrentCost>}
3380
- * @memberof CommunityUsage
3381
- */
3382
- 'projects'?: Array<ProjectCurrentCost>;
3383
- }
3384
3276
  /**
3385
3277
  *
3386
3278
  * @export
@@ -4215,6 +4107,38 @@ export interface ContainerSource {
4215
4107
  */
4216
4108
  'registry': ContainerRegistryProviderDetailsResponse;
4217
4109
  }
4110
+ /**
4111
+ *
4112
+ * @export
4113
+ * @interface ContainerVersionResponse
4114
+ */
4115
+ export interface ContainerVersionResponse {
4116
+ /**
4117
+ *
4118
+ * @type {string}
4119
+ * @memberof ContainerVersionResponse
4120
+ */
4121
+ 'image_name'?: string;
4122
+ /**
4123
+ *
4124
+ * @type {Array<string>}
4125
+ * @memberof ContainerVersionResponse
4126
+ */
4127
+ 'versions'?: Array<string>;
4128
+ }
4129
+ /**
4130
+ *
4131
+ * @export
4132
+ * @interface ContainerVersionResponseList
4133
+ */
4134
+ export interface ContainerVersionResponseList {
4135
+ /**
4136
+ *
4137
+ * @type {Array<ContainerVersionResponse>}
4138
+ * @memberof ContainerVersionResponseList
4139
+ */
4140
+ 'results'?: Array<ContainerVersionResponse>;
4141
+ }
4218
4142
  /**
4219
4143
  *
4220
4144
  * @export
@@ -5806,19 +5730,6 @@ export interface DeploymentHistoryPaginatedResponseList {
5806
5730
  */
5807
5731
  'results'?: Array<DeploymentHistory>;
5808
5732
  }
5809
- /**
5810
- *
5811
- * @export
5812
- * @interface DeploymentHistoryResponseList
5813
- */
5814
- export interface DeploymentHistoryResponseList {
5815
- /**
5816
- *
5817
- * @type {Array<DeploymentHistory>}
5818
- * @memberof DeploymentHistoryResponseList
5819
- */
5820
- 'results'?: Array<DeploymentHistory>;
5821
- }
5822
5733
  /**
5823
5734
  *
5824
5735
  * @export
@@ -5860,69 +5771,6 @@ export const DeploymentRestrictionTypeEnum = {
5860
5771
  export type DeploymentRestrictionTypeEnum = typeof DeploymentRestrictionTypeEnum[keyof typeof DeploymentRestrictionTypeEnum];
5861
5772
 
5862
5773
 
5863
- /**
5864
- *
5865
- * @export
5866
- * @interface DeploymentRuleRequest
5867
- */
5868
- export interface DeploymentRuleRequest {
5869
- /**
5870
- * name is case insensitive
5871
- * @type {string}
5872
- * @memberof DeploymentRuleRequest
5873
- */
5874
- 'name': string;
5875
- /**
5876
- *
5877
- * @type {string}
5878
- * @memberof DeploymentRuleRequest
5879
- */
5880
- 'description'?: string;
5881
- /**
5882
- *
5883
- * @type {EnvironmentModeEnum}
5884
- * @memberof DeploymentRuleRequest
5885
- */
5886
- 'mode': EnvironmentModeEnum;
5887
- /**
5888
- *
5889
- * @type {string}
5890
- * @memberof DeploymentRuleRequest
5891
- */
5892
- 'cluster': string;
5893
- /**
5894
- *
5895
- * @type {boolean}
5896
- * @memberof DeploymentRuleRequest
5897
- */
5898
- 'auto_stop': boolean;
5899
- /**
5900
- * specify value only if auto_stop = false
5901
- * @type {string}
5902
- * @memberof DeploymentRuleRequest
5903
- */
5904
- 'timezone'?: string;
5905
- /**
5906
- * specify value only if auto_stop = false
5907
- * @type {string}
5908
- * @memberof DeploymentRuleRequest
5909
- */
5910
- 'start_time'?: string | null;
5911
- /**
5912
- * specify value only if auto_stop = false
5913
- * @type {string}
5914
- * @memberof DeploymentRuleRequest
5915
- */
5916
- 'stop_time'?: string | null;
5917
- /**
5918
- * specify value only if auto_stop = false
5919
- * @type {Array<WeekdayEnum>}
5920
- * @memberof DeploymentRuleRequest
5921
- */
5922
- 'weekdays'?: Array<WeekdayEnum> | null;
5923
- }
5924
-
5925
-
5926
5774
  /**
5927
5775
  *
5928
5776
  * @export
@@ -6090,37 +5938,6 @@ export interface DeploymentStageWithServicesStatuses {
6090
5938
  */
6091
5939
  'stage'?: Stage;
6092
5940
  }
6093
- /**
6094
- *
6095
- * @export
6096
- * @interface DoCredentialsRequest
6097
- */
6098
- export interface DoCredentialsRequest {
6099
- /**
6100
- *
6101
- * @type {string}
6102
- * @memberof DoCredentialsRequest
6103
- */
6104
- 'name': string;
6105
- /**
6106
- *
6107
- * @type {string}
6108
- * @memberof DoCredentialsRequest
6109
- */
6110
- 'token'?: string;
6111
- /**
6112
- *
6113
- * @type {string}
6114
- * @memberof DoCredentialsRequest
6115
- */
6116
- 'spaces_access_id'?: string;
6117
- /**
6118
- *
6119
- * @type {string}
6120
- * @memberof DoCredentialsRequest
6121
- */
6122
- 'spaces_secret_key'?: string;
6123
- }
6124
5941
  /**
6125
5942
  *
6126
5943
  * @export
@@ -6473,31 +6290,6 @@ export interface EnvironmentLog {
6473
6290
  }
6474
6291
 
6475
6292
 
6476
- /**
6477
- *
6478
- * @export
6479
- * @interface EnvironmentLogPaginatedResponseList
6480
- */
6481
- export interface EnvironmentLogPaginatedResponseList {
6482
- /**
6483
- *
6484
- * @type {number}
6485
- * @memberof EnvironmentLogPaginatedResponseList
6486
- */
6487
- 'page': number;
6488
- /**
6489
- *
6490
- * @type {number}
6491
- * @memberof EnvironmentLogPaginatedResponseList
6492
- */
6493
- 'page_size': number;
6494
- /**
6495
- *
6496
- * @type {Array<EnvironmentLog>}
6497
- * @memberof EnvironmentLogPaginatedResponseList
6498
- */
6499
- 'results'?: Array<EnvironmentLog>;
6500
- }
6501
6293
  /**
6502
6294
  *
6503
6295
  * @export
@@ -9986,31 +9778,6 @@ export interface Log {
9986
9778
  */
9987
9779
  'version'?: string;
9988
9780
  }
9989
- /**
9990
- *
9991
- * @export
9992
- * @interface LogPaginatedResponseList
9993
- */
9994
- export interface LogPaginatedResponseList {
9995
- /**
9996
- *
9997
- * @type {number}
9998
- * @memberof LogPaginatedResponseList
9999
- */
10000
- 'page': number;
10001
- /**
10002
- *
10003
- * @type {number}
10004
- * @memberof LogPaginatedResponseList
10005
- */
10006
- 'page_size': number;
10007
- /**
10008
- *
10009
- * @type {Array<Log>}
10010
- * @memberof LogPaginatedResponseList
10011
- */
10012
- 'results'?: Array<Log>;
10013
- }
10014
9781
  /**
10015
9782
  *
10016
9783
  * @export
@@ -10183,19 +9950,6 @@ export interface MemberRoleUpdateRequest {
10183
9950
  */
10184
9951
  'role_id': string;
10185
9952
  }
10186
- /**
10187
- *
10188
- * @export
10189
- * @interface Name
10190
- */
10191
- export interface Name {
10192
- /**
10193
- *
10194
- * @type {string}
10195
- * @memberof Name
10196
- */
10197
- 'name': string;
10198
- }
10199
9953
  /**
10200
9954
  *
10201
9955
  * @export
@@ -12606,31 +12360,6 @@ export const RegistryMirroringModeEnum = {
12606
12360
  export type RegistryMirroringModeEnum = typeof RegistryMirroringModeEnum[keyof typeof RegistryMirroringModeEnum];
12607
12361
 
12608
12362
 
12609
- /**
12610
- *
12611
- * @export
12612
- * @interface RemainingCredits
12613
- */
12614
- export interface RemainingCredits {
12615
- /**
12616
- *
12617
- * @type {number}
12618
- * @memberof RemainingCredits
12619
- */
12620
- 'total_in_cents': number;
12621
- /**
12622
- *
12623
- * @type {number}
12624
- * @memberof RemainingCredits
12625
- */
12626
- 'total': number;
12627
- /**
12628
- *
12629
- * @type {string}
12630
- * @memberof RemainingCredits
12631
- */
12632
- 'currency_code': string;
12633
- }
12634
12363
  /**
12635
12364
  *
12636
12365
  * @export
@@ -13141,19 +12870,6 @@ export interface ServicePortRequestPortsInner {
13141
12870
  }
13142
12871
 
13143
12872
 
13144
- /**
13145
- *
13146
- * @export
13147
- * @interface ServiceResponseList
13148
- */
13149
- export interface ServiceResponseList {
13150
- /**
13151
- *
13152
- * @type {Array<Service>}
13153
- * @memberof ServiceResponseList
13154
- */
13155
- 'results'?: Array<Service>;
13156
- }
13157
12873
  /**
13158
12874
  *
13159
12875
  * @export
@@ -13804,19 +13520,6 @@ export const TypeOfUseEnum = {
13804
13520
  export type TypeOfUseEnum = typeof TypeOfUseEnum[keyof typeof TypeOfUseEnum];
13805
13521
 
13806
13522
 
13807
- /**
13808
- *
13809
- * @export
13810
- * @interface UnexpectedError
13811
- */
13812
- export interface UnexpectedError {
13813
- /**
13814
- *
13815
- * @type {string}
13816
- * @memberof UnexpectedError
13817
- */
13818
- 'message': string;
13819
- }
13820
13523
  /**
13821
13524
  *
13822
13525
  * @export
@@ -26772,6 +26475,58 @@ export const ContainerRegistriesApiAxiosParamCreator = function (configuration?:
26772
26475
 
26773
26476
 
26774
26477
 
26478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26480
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26481
+
26482
+ return {
26483
+ url: toPathString(localVarUrlObj),
26484
+ options: localVarRequestOptions,
26485
+ };
26486
+ },
26487
+ /**
26488
+ *
26489
+ * @summary List image version for a container registry
26490
+ * @param {string} organizationId Organization ID
26491
+ * @param {string} containerRegistryId Container Registry ID
26492
+ * @param {string} imageName container image name
26493
+ * @param {*} [options] Override http request option.
26494
+ * @throws {RequiredError}
26495
+ */
26496
+ getContainerVersions: async (organizationId: string, containerRegistryId: string, imageName: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26497
+ // verify required parameter 'organizationId' is not null or undefined
26498
+ assertParamExists('getContainerVersions', 'organizationId', organizationId)
26499
+ // verify required parameter 'containerRegistryId' is not null or undefined
26500
+ assertParamExists('getContainerVersions', 'containerRegistryId', containerRegistryId)
26501
+ // verify required parameter 'imageName' is not null or undefined
26502
+ assertParamExists('getContainerVersions', 'imageName', imageName)
26503
+ const localVarPath = `/organization/{organizationId}/containerRegistry/{containerRegistryId}/images`
26504
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
26505
+ .replace(`{${"containerRegistryId"}}`, encodeURIComponent(String(containerRegistryId)));
26506
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26507
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26508
+ let baseOptions;
26509
+ if (configuration) {
26510
+ baseOptions = configuration.baseOptions;
26511
+ }
26512
+
26513
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26514
+ const localVarHeaderParameter = {} as any;
26515
+ const localVarQueryParameter = {} as any;
26516
+
26517
+ // authentication ApiKeyAuth required
26518
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26519
+
26520
+ // authentication bearerAuth required
26521
+ // http bearer authentication required
26522
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26523
+
26524
+ if (imageName !== undefined) {
26525
+ localVarQueryParameter['imageName'] = imageName;
26526
+ }
26527
+
26528
+
26529
+
26775
26530
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26776
26531
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26777
26532
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26918,6 +26673,19 @@ export const ContainerRegistriesApiFp = function(configuration?: Configuration)
26918
26673
  const localVarAxiosArgs = await localVarAxiosParamCreator.getContainerRegistry(organizationId, containerRegistryId, options);
26919
26674
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26920
26675
  },
26676
+ /**
26677
+ *
26678
+ * @summary List image version for a container registry
26679
+ * @param {string} organizationId Organization ID
26680
+ * @param {string} containerRegistryId Container Registry ID
26681
+ * @param {string} imageName container image name
26682
+ * @param {*} [options] Override http request option.
26683
+ * @throws {RequiredError}
26684
+ */
26685
+ async getContainerVersions(organizationId: string, containerRegistryId: string, imageName: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContainerVersionResponseList>> {
26686
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContainerVersions(organizationId, containerRegistryId, imageName, options);
26687
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26688
+ },
26921
26689
  /**
26922
26690
  * List supported container registries by Qovery and get the mandatory authentification configuration.
26923
26691
  * @summary List supported container registries
@@ -26994,6 +26762,18 @@ export const ContainerRegistriesApiFactory = function (configuration?: Configura
26994
26762
  getContainerRegistry(organizationId: string, containerRegistryId: string, options?: any): AxiosPromise<ContainerRegistryResponse> {
26995
26763
  return localVarFp.getContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(axios, basePath));
26996
26764
  },
26765
+ /**
26766
+ *
26767
+ * @summary List image version for a container registry
26768
+ * @param {string} organizationId Organization ID
26769
+ * @param {string} containerRegistryId Container Registry ID
26770
+ * @param {string} imageName container image name
26771
+ * @param {*} [options] Override http request option.
26772
+ * @throws {RequiredError}
26773
+ */
26774
+ getContainerVersions(organizationId: string, containerRegistryId: string, imageName: string, options?: any): AxiosPromise<ContainerVersionResponseList> {
26775
+ return localVarFp.getContainerVersions(organizationId, containerRegistryId, imageName, options).then((request) => request(axios, basePath));
26776
+ },
26997
26777
  /**
26998
26778
  * List supported container registries by Qovery and get the mandatory authentification configuration.
26999
26779
  * @summary List supported container registries
@@ -27076,6 +26856,20 @@ export class ContainerRegistriesApi extends BaseAPI {
27076
26856
  return ContainerRegistriesApiFp(this.configuration).getContainerRegistry(organizationId, containerRegistryId, options).then((request) => request(this.axios, this.basePath));
27077
26857
  }
27078
26858
 
26859
+ /**
26860
+ *
26861
+ * @summary List image version for a container registry
26862
+ * @param {string} organizationId Organization ID
26863
+ * @param {string} containerRegistryId Container Registry ID
26864
+ * @param {string} imageName container image name
26865
+ * @param {*} [options] Override http request option.
26866
+ * @throws {RequiredError}
26867
+ * @memberof ContainerRegistriesApi
26868
+ */
26869
+ public getContainerVersions(organizationId: string, containerRegistryId: string, imageName: string, options?: AxiosRequestConfig) {
26870
+ return ContainerRegistriesApiFp(this.configuration).getContainerVersions(organizationId, containerRegistryId, imageName, options).then((request) => request(this.axios, this.basePath));
26871
+ }
26872
+
27079
26873
  /**
27080
26874
  * List supported container registries by Qovery and get the mandatory authentification configuration.
27081
26875
  * @summary List supported container registries