qovery-typescript-axios 1.1.1048 → 1.1.1049
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 +1404 -36
- package/dist/api.d.ts +914 -36
- package/dist/api.js +873 -48
- package/dist/esm/api.d.ts +914 -36
- package/dist/esm/api.js +857 -36
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -12271,6 +12271,38 @@ export interface CustomDomain {
|
|
|
12271
12271
|
}
|
|
12272
12272
|
|
|
12273
12273
|
|
|
12274
|
+
/**
|
|
12275
|
+
* A domain name to delete in an environment.
|
|
12276
|
+
* @export
|
|
12277
|
+
* @interface CustomDomainBulkDeleteItemRequest
|
|
12278
|
+
*/
|
|
12279
|
+
export interface CustomDomainBulkDeleteItemRequest {
|
|
12280
|
+
/**
|
|
12281
|
+
* Id of the environment of the domain. It must belong to the organization of the call.
|
|
12282
|
+
* @type {string}
|
|
12283
|
+
* @memberof CustomDomainBulkDeleteItemRequest
|
|
12284
|
+
*/
|
|
12285
|
+
'environment_id': string;
|
|
12286
|
+
/**
|
|
12287
|
+
* The domain name. Every row of this name in the environment is deleted.
|
|
12288
|
+
* @type {string}
|
|
12289
|
+
* @memberof CustomDomainBulkDeleteItemRequest
|
|
12290
|
+
*/
|
|
12291
|
+
'domain': string;
|
|
12292
|
+
}
|
|
12293
|
+
/**
|
|
12294
|
+
*
|
|
12295
|
+
* @export
|
|
12296
|
+
* @interface CustomDomainDeletionResponse
|
|
12297
|
+
*/
|
|
12298
|
+
export interface CustomDomainDeletionResponse {
|
|
12299
|
+
/**
|
|
12300
|
+
* The services that lost a custom domain. They need a redeploy to stop serving it.
|
|
12301
|
+
* @type {Array<ImpactedServiceResponse>}
|
|
12302
|
+
* @memberof CustomDomainDeletionResponse
|
|
12303
|
+
*/
|
|
12304
|
+
'impacted_services': Array<ImpactedServiceResponse>;
|
|
12305
|
+
}
|
|
12274
12306
|
/**
|
|
12275
12307
|
*
|
|
12276
12308
|
* @export
|
|
@@ -12298,6 +12330,82 @@ export interface CustomDomainEnvironmentResponse {
|
|
|
12298
12330
|
}
|
|
12299
12331
|
|
|
12300
12332
|
|
|
12333
|
+
/**
|
|
12334
|
+
* Why a service cannot hold the custom domain. * `PATH_ALREADY_ROUTED`: another service already routes this path on the domain. * `GRPC_HOSTNAME_SHARED`: a gRPC port would share the hostname; gRPC has no path selection. * `SETTINGS_MISMATCH`: `generate_certificate` or `use_cdn` differs from the other services on the domain. * `DOMAIN_IN_OTHER_ENVIRONMENT`: the name, or a hostname it serves, is already used in another environment of the organization. * `DOMAIN_ALREADY_ON_SERVICE`: the service already has this domain. * `ROUTING_MODE_NOT_SHAREABLE`: the domain is already used and the routing mode of the environment cannot share it.
|
|
12335
|
+
* @export
|
|
12336
|
+
* @enum {string}
|
|
12337
|
+
*/
|
|
12338
|
+
|
|
12339
|
+
export const CustomDomainErrorCodeEnum = {
|
|
12340
|
+
PATH_ALREADY_ROUTED: 'PATH_ALREADY_ROUTED',
|
|
12341
|
+
GRPC_HOSTNAME_SHARED: 'GRPC_HOSTNAME_SHARED',
|
|
12342
|
+
SETTINGS_MISMATCH: 'SETTINGS_MISMATCH',
|
|
12343
|
+
DOMAIN_IN_OTHER_ENVIRONMENT: 'DOMAIN_IN_OTHER_ENVIRONMENT',
|
|
12344
|
+
DOMAIN_ALREADY_ON_SERVICE: 'DOMAIN_ALREADY_ON_SERVICE',
|
|
12345
|
+
ROUTING_MODE_NOT_SHAREABLE: 'ROUTING_MODE_NOT_SHAREABLE'
|
|
12346
|
+
} as const;
|
|
12347
|
+
|
|
12348
|
+
export type CustomDomainErrorCodeEnum = typeof CustomDomainErrorCodeEnum[keyof typeof CustomDomainErrorCodeEnum];
|
|
12349
|
+
|
|
12350
|
+
|
|
12351
|
+
/**
|
|
12352
|
+
* One reason a service cannot hold the custom domain, to show under the request field it blames.
|
|
12353
|
+
* @export
|
|
12354
|
+
* @interface CustomDomainErrorResponse
|
|
12355
|
+
*/
|
|
12356
|
+
export interface CustomDomainErrorResponse {
|
|
12357
|
+
/**
|
|
12358
|
+
*
|
|
12359
|
+
* @type {CustomDomainErrorCodeEnum}
|
|
12360
|
+
* @memberof CustomDomainErrorResponse
|
|
12361
|
+
*/
|
|
12362
|
+
'code': CustomDomainErrorCodeEnum;
|
|
12363
|
+
/**
|
|
12364
|
+
* The request field to blame, named as on the wire, such as `domain`, `path`, `port_id`, `generate_certificate` or `use_cdn`.
|
|
12365
|
+
* @type {string}
|
|
12366
|
+
* @memberof CustomDomainErrorResponse
|
|
12367
|
+
*/
|
|
12368
|
+
'field': string;
|
|
12369
|
+
/**
|
|
12370
|
+
* The path in conflict. Null when the error is not about a path.
|
|
12371
|
+
* @type {string}
|
|
12372
|
+
* @memberof CustomDomainErrorResponse
|
|
12373
|
+
*/
|
|
12374
|
+
'path': string | null;
|
|
12375
|
+
/**
|
|
12376
|
+
* Id of the service of the request that cannot hold the domain.
|
|
12377
|
+
* @type {string}
|
|
12378
|
+
* @memberof CustomDomainErrorResponse
|
|
12379
|
+
*/
|
|
12380
|
+
'service_id': string;
|
|
12381
|
+
/**
|
|
12382
|
+
* The service of the same environment the domain conflicts with. Null when the conflict is with another environment, which the caller may not have access to.
|
|
12383
|
+
* @type {CustomDomainServiceResponse}
|
|
12384
|
+
* @memberof CustomDomainErrorResponse
|
|
12385
|
+
*/
|
|
12386
|
+
'conflicting_service': CustomDomainServiceResponse | null;
|
|
12387
|
+
/**
|
|
12388
|
+
* A message to show to the user.
|
|
12389
|
+
* @type {string}
|
|
12390
|
+
* @memberof CustomDomainErrorResponse
|
|
12391
|
+
*/
|
|
12392
|
+
'message': string;
|
|
12393
|
+
}
|
|
12394
|
+
|
|
12395
|
+
|
|
12396
|
+
/**
|
|
12397
|
+
*
|
|
12398
|
+
* @export
|
|
12399
|
+
* @interface CustomDomainErrorsResponse
|
|
12400
|
+
*/
|
|
12401
|
+
export interface CustomDomainErrorsResponse {
|
|
12402
|
+
/**
|
|
12403
|
+
* Every conflict of the request. Empty when the domain can be saved.
|
|
12404
|
+
* @type {Array<CustomDomainErrorResponse>}
|
|
12405
|
+
* @memberof CustomDomainErrorsResponse
|
|
12406
|
+
*/
|
|
12407
|
+
'errors': Array<CustomDomainErrorResponse>;
|
|
12408
|
+
}
|
|
12301
12409
|
/**
|
|
12302
12410
|
*
|
|
12303
12411
|
* @export
|
|
@@ -12323,6 +12431,49 @@ export interface CustomDomainPortResponse {
|
|
|
12323
12431
|
*/
|
|
12324
12432
|
'internal_port': number;
|
|
12325
12433
|
}
|
|
12434
|
+
/**
|
|
12435
|
+
* A problem detail (RFC 9457). `errors` is set when the custom domain conflicts with other domains.
|
|
12436
|
+
* @export
|
|
12437
|
+
* @interface CustomDomainProblemResponse
|
|
12438
|
+
*/
|
|
12439
|
+
export interface CustomDomainProblemResponse {
|
|
12440
|
+
/**
|
|
12441
|
+
*
|
|
12442
|
+
* @type {string}
|
|
12443
|
+
* @memberof CustomDomainProblemResponse
|
|
12444
|
+
*/
|
|
12445
|
+
'type'?: string;
|
|
12446
|
+
/**
|
|
12447
|
+
*
|
|
12448
|
+
* @type {string}
|
|
12449
|
+
* @memberof CustomDomainProblemResponse
|
|
12450
|
+
*/
|
|
12451
|
+
'title'?: string;
|
|
12452
|
+
/**
|
|
12453
|
+
*
|
|
12454
|
+
* @type {number}
|
|
12455
|
+
* @memberof CustomDomainProblemResponse
|
|
12456
|
+
*/
|
|
12457
|
+
'status'?: number;
|
|
12458
|
+
/**
|
|
12459
|
+
* All the error messages, joined.
|
|
12460
|
+
* @type {string}
|
|
12461
|
+
* @memberof CustomDomainProblemResponse
|
|
12462
|
+
*/
|
|
12463
|
+
'detail'?: string;
|
|
12464
|
+
/**
|
|
12465
|
+
* The path of the request.
|
|
12466
|
+
* @type {string}
|
|
12467
|
+
* @memberof CustomDomainProblemResponse
|
|
12468
|
+
*/
|
|
12469
|
+
'instance'?: string;
|
|
12470
|
+
/**
|
|
12471
|
+
*
|
|
12472
|
+
* @type {Array<CustomDomainErrorResponse>}
|
|
12473
|
+
* @memberof CustomDomainProblemResponse
|
|
12474
|
+
*/
|
|
12475
|
+
'errors'?: Array<CustomDomainErrorResponse>;
|
|
12476
|
+
}
|
|
12326
12477
|
/**
|
|
12327
12478
|
*
|
|
12328
12479
|
* @export
|
|
@@ -12423,6 +12574,27 @@ export interface CustomDomainRouteResponse {
|
|
|
12423
12574
|
*/
|
|
12424
12575
|
'path_rewrite': string | null;
|
|
12425
12576
|
}
|
|
12577
|
+
/**
|
|
12578
|
+
*
|
|
12579
|
+
* @export
|
|
12580
|
+
* @interface CustomDomainServiceRequest
|
|
12581
|
+
*/
|
|
12582
|
+
export interface CustomDomainServiceRequest {
|
|
12583
|
+
/**
|
|
12584
|
+
* Id of the service. It must belong to the environment.
|
|
12585
|
+
* @type {string}
|
|
12586
|
+
* @memberof CustomDomainServiceRequest
|
|
12587
|
+
*/
|
|
12588
|
+
'id': string;
|
|
12589
|
+
/**
|
|
12590
|
+
* Type of the service. Only `APPLICATION`, `CONTAINER` and `HELM` services have custom domains.
|
|
12591
|
+
* @type {ServiceTypeEnum}
|
|
12592
|
+
* @memberof CustomDomainServiceRequest
|
|
12593
|
+
*/
|
|
12594
|
+
'type': ServiceTypeEnum;
|
|
12595
|
+
}
|
|
12596
|
+
|
|
12597
|
+
|
|
12426
12598
|
/**
|
|
12427
12599
|
*
|
|
12428
12600
|
* @export
|
|
@@ -12463,6 +12635,43 @@ export const CustomDomainStatusEnum = {
|
|
|
12463
12635
|
export type CustomDomainStatusEnum = typeof CustomDomainStatusEnum[keyof typeof CustomDomainStatusEnum];
|
|
12464
12636
|
|
|
12465
12637
|
|
|
12638
|
+
/**
|
|
12639
|
+
*
|
|
12640
|
+
* @export
|
|
12641
|
+
* @interface CustomDomainValidationRequest
|
|
12642
|
+
*/
|
|
12643
|
+
export interface CustomDomainValidationRequest {
|
|
12644
|
+
/**
|
|
12645
|
+
* The domain name.
|
|
12646
|
+
* @type {string}
|
|
12647
|
+
* @memberof CustomDomainValidationRequest
|
|
12648
|
+
*/
|
|
12649
|
+
'domain': string;
|
|
12650
|
+
/**
|
|
12651
|
+
* Whether Qovery generates a certificate for the domain. Set it to `false` when a CDN or another party manages the certificate.
|
|
12652
|
+
* @type {boolean}
|
|
12653
|
+
* @memberof CustomDomainValidationRequest
|
|
12654
|
+
*/
|
|
12655
|
+
'generate_certificate'?: boolean;
|
|
12656
|
+
/**
|
|
12657
|
+
* Whether the domain is behind a CDN. If `true`, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.
|
|
12658
|
+
* @type {boolean}
|
|
12659
|
+
* @memberof CustomDomainValidationRequest
|
|
12660
|
+
*/
|
|
12661
|
+
'use_cdn'?: boolean;
|
|
12662
|
+
/**
|
|
12663
|
+
* Every service the domain routes to, each with one `/` route served by its default port. Between 1 and 50 services; more than one only when the environment `routing_capabilities.can_share` is `true`.
|
|
12664
|
+
* @type {Array<CustomDomainServiceRequest>}
|
|
12665
|
+
* @memberof CustomDomainValidationRequest
|
|
12666
|
+
*/
|
|
12667
|
+
'services': Array<CustomDomainServiceRequest>;
|
|
12668
|
+
/**
|
|
12669
|
+
* The current name of a domain being edited, so the rows the services hold for it are ignored. Null or absent for a new domain.
|
|
12670
|
+
* @type {string}
|
|
12671
|
+
* @memberof CustomDomainValidationRequest
|
|
12672
|
+
*/
|
|
12673
|
+
'original_domain'?: string | null;
|
|
12674
|
+
}
|
|
12466
12675
|
/**
|
|
12467
12676
|
*
|
|
12468
12677
|
* @export
|
|
@@ -15212,6 +15421,12 @@ export interface Environment {
|
|
|
15212
15421
|
* @memberof Environment
|
|
15213
15422
|
*/
|
|
15214
15423
|
'expires_at'?: string | null;
|
|
15424
|
+
/**
|
|
15425
|
+
*
|
|
15426
|
+
* @type {RoutingCapabilitiesResponse}
|
|
15427
|
+
* @memberof Environment
|
|
15428
|
+
*/
|
|
15429
|
+
'routing_capabilities'?: RoutingCapabilitiesResponse;
|
|
15215
15430
|
}
|
|
15216
15431
|
|
|
15217
15432
|
|
|
@@ -15234,6 +15449,81 @@ export interface EnvironmentAllOfCloudProvider {
|
|
|
15234
15449
|
*/
|
|
15235
15450
|
'cluster'?: string;
|
|
15236
15451
|
}
|
|
15452
|
+
/**
|
|
15453
|
+
*
|
|
15454
|
+
* @export
|
|
15455
|
+
* @interface EnvironmentCnameTargetResponse
|
|
15456
|
+
*/
|
|
15457
|
+
export interface EnvironmentCnameTargetResponse {
|
|
15458
|
+
/**
|
|
15459
|
+
* The hostname a custom domain of the environment must point to with a CNAME record.
|
|
15460
|
+
* @type {string}
|
|
15461
|
+
* @memberof EnvironmentCnameTargetResponse
|
|
15462
|
+
*/
|
|
15463
|
+
'cname_target': string;
|
|
15464
|
+
}
|
|
15465
|
+
/**
|
|
15466
|
+
* The full state of a custom domain name of an environment.
|
|
15467
|
+
* @export
|
|
15468
|
+
* @interface EnvironmentCustomDomainRequest
|
|
15469
|
+
*/
|
|
15470
|
+
export interface EnvironmentCustomDomainRequest {
|
|
15471
|
+
/**
|
|
15472
|
+
* The domain name.
|
|
15473
|
+
* @type {string}
|
|
15474
|
+
* @memberof EnvironmentCustomDomainRequest
|
|
15475
|
+
*/
|
|
15476
|
+
'domain': string;
|
|
15477
|
+
/**
|
|
15478
|
+
* Whether Qovery generates a certificate for the domain. Set it to `false` when a CDN or another party manages the certificate.
|
|
15479
|
+
* @type {boolean}
|
|
15480
|
+
* @memberof EnvironmentCustomDomainRequest
|
|
15481
|
+
*/
|
|
15482
|
+
'generate_certificate'?: boolean;
|
|
15483
|
+
/**
|
|
15484
|
+
* Whether the domain is behind a CDN. If `true`, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.
|
|
15485
|
+
* @type {boolean}
|
|
15486
|
+
* @memberof EnvironmentCustomDomainRequest
|
|
15487
|
+
*/
|
|
15488
|
+
'use_cdn'?: boolean;
|
|
15489
|
+
/**
|
|
15490
|
+
* Every service the domain routes to, each with one `/` route served by its default port. Between 1 and 50 services; more than one only when the environment `routing_capabilities.can_share` is `true`.
|
|
15491
|
+
* @type {Array<CustomDomainServiceRequest>}
|
|
15492
|
+
* @memberof EnvironmentCustomDomainRequest
|
|
15493
|
+
*/
|
|
15494
|
+
'services': Array<CustomDomainServiceRequest>;
|
|
15495
|
+
}
|
|
15496
|
+
/**
|
|
15497
|
+
*
|
|
15498
|
+
* @export
|
|
15499
|
+
* @interface EnvironmentCustomDomainResponse
|
|
15500
|
+
*/
|
|
15501
|
+
export interface EnvironmentCustomDomainResponse {
|
|
15502
|
+
/**
|
|
15503
|
+
* The domain name.
|
|
15504
|
+
* @type {string}
|
|
15505
|
+
* @memberof EnvironmentCustomDomainResponse
|
|
15506
|
+
*/
|
|
15507
|
+
'domain': string;
|
|
15508
|
+
/**
|
|
15509
|
+
* Whether Qovery generates a certificate for the domain.
|
|
15510
|
+
* @type {boolean}
|
|
15511
|
+
* @memberof EnvironmentCustomDomainResponse
|
|
15512
|
+
*/
|
|
15513
|
+
'generate_certificate': boolean;
|
|
15514
|
+
/**
|
|
15515
|
+
* Whether the domain is behind a CDN.
|
|
15516
|
+
* @type {boolean}
|
|
15517
|
+
* @memberof EnvironmentCustomDomainResponse
|
|
15518
|
+
*/
|
|
15519
|
+
'use_cdn': boolean;
|
|
15520
|
+
/**
|
|
15521
|
+
* The services whose custom domains changed, removed services included. They need a redeploy to serve the change.
|
|
15522
|
+
* @type {Array<ImpactedServiceResponse>}
|
|
15523
|
+
* @memberof EnvironmentCustomDomainResponse
|
|
15524
|
+
*/
|
|
15525
|
+
'impacted_services': Array<ImpactedServiceResponse>;
|
|
15526
|
+
}
|
|
15237
15527
|
/**
|
|
15238
15528
|
*
|
|
15239
15529
|
* @export
|
|
@@ -16893,6 +17183,59 @@ export const GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum =
|
|
|
16893
17183
|
|
|
16894
17184
|
export type GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum = typeof GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum[keyof typeof GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum];
|
|
16895
17185
|
|
|
17186
|
+
/**
|
|
17187
|
+
* * `ROOT`: the domain itself (and the parent of a wildcard). It follows the route port, path and rewrite. * `PORT_SUBDOMAIN`: `<port name>.<domain>`, always served by that port at its own public path.
|
|
17188
|
+
* @export
|
|
17189
|
+
* @enum {string}
|
|
17190
|
+
*/
|
|
17191
|
+
|
|
17192
|
+
export const GeneratedHostnameKindEnum = {
|
|
17193
|
+
ROOT: 'ROOT',
|
|
17194
|
+
PORT_SUBDOMAIN: 'PORT_SUBDOMAIN'
|
|
17195
|
+
} as const;
|
|
17196
|
+
|
|
17197
|
+
export type GeneratedHostnameKindEnum = typeof GeneratedHostnameKindEnum[keyof typeof GeneratedHostnameKindEnum];
|
|
17198
|
+
|
|
17199
|
+
|
|
17200
|
+
/**
|
|
17201
|
+
* A hostname Qovery serves for a domain, and the port it reaches.
|
|
17202
|
+
* @export
|
|
17203
|
+
* @interface GeneratedHostnameResponse
|
|
17204
|
+
*/
|
|
17205
|
+
export interface GeneratedHostnameResponse {
|
|
17206
|
+
/**
|
|
17207
|
+
*
|
|
17208
|
+
* @type {string}
|
|
17209
|
+
* @memberof GeneratedHostnameResponse
|
|
17210
|
+
*/
|
|
17211
|
+
'hostname': string;
|
|
17212
|
+
/**
|
|
17213
|
+
* Id of the port the hostname reaches.
|
|
17214
|
+
* @type {string}
|
|
17215
|
+
* @memberof GeneratedHostnameResponse
|
|
17216
|
+
*/
|
|
17217
|
+
'port_id': string;
|
|
17218
|
+
/**
|
|
17219
|
+
*
|
|
17220
|
+
* @type {string}
|
|
17221
|
+
* @memberof GeneratedHostnameResponse
|
|
17222
|
+
*/
|
|
17223
|
+
'port_name': string;
|
|
17224
|
+
/**
|
|
17225
|
+
* The public path of the hostname.
|
|
17226
|
+
* @type {string}
|
|
17227
|
+
* @memberof GeneratedHostnameResponse
|
|
17228
|
+
*/
|
|
17229
|
+
'path': string;
|
|
17230
|
+
/**
|
|
17231
|
+
*
|
|
17232
|
+
* @type {GeneratedHostnameKindEnum}
|
|
17233
|
+
* @memberof GeneratedHostnameResponse
|
|
17234
|
+
*/
|
|
17235
|
+
'kind': GeneratedHostnameKindEnum;
|
|
17236
|
+
}
|
|
17237
|
+
|
|
17238
|
+
|
|
16896
17239
|
/**
|
|
16897
17240
|
*
|
|
16898
17241
|
* @export
|
|
@@ -19239,6 +19582,27 @@ export interface HelmVersionResponseList {
|
|
|
19239
19582
|
*/
|
|
19240
19583
|
'results'?: Array<HelmVersionResponse>;
|
|
19241
19584
|
}
|
|
19585
|
+
/**
|
|
19586
|
+
* A service a custom domain write changed. Nothing is deployed; the service needs a redeploy to serve the change.
|
|
19587
|
+
* @export
|
|
19588
|
+
* @interface ImpactedServiceResponse
|
|
19589
|
+
*/
|
|
19590
|
+
export interface ImpactedServiceResponse {
|
|
19591
|
+
/**
|
|
19592
|
+
*
|
|
19593
|
+
* @type {string}
|
|
19594
|
+
* @memberof ImpactedServiceResponse
|
|
19595
|
+
*/
|
|
19596
|
+
'id': string;
|
|
19597
|
+
/**
|
|
19598
|
+
*
|
|
19599
|
+
* @type {ServiceTypeEnum}
|
|
19600
|
+
* @memberof ImpactedServiceResponse
|
|
19601
|
+
*/
|
|
19602
|
+
'type': ServiceTypeEnum;
|
|
19603
|
+
}
|
|
19604
|
+
|
|
19605
|
+
|
|
19242
19606
|
/**
|
|
19243
19607
|
* @type InfrastructureOutputs
|
|
19244
19608
|
* @export
|
|
@@ -23320,6 +23684,31 @@ export interface OrganizationCustomDomainResponse {
|
|
|
23320
23684
|
* @memberof OrganizationCustomDomainResponse
|
|
23321
23685
|
*/
|
|
23322
23686
|
'use_cdn': boolean;
|
|
23687
|
+
/**
|
|
23688
|
+
* The hostnames the domain must point to with a CNAME record. One value, except for a legacy domain spread over several service routers.
|
|
23689
|
+
* @type {Array<string>}
|
|
23690
|
+
* @memberof OrganizationCustomDomainResponse
|
|
23691
|
+
*/
|
|
23692
|
+
'cname_targets'?: Array<string>;
|
|
23693
|
+
/**
|
|
23694
|
+
* Every hostname served for the domain by its routes.
|
|
23695
|
+
* @type {Array<GeneratedHostnameResponse>}
|
|
23696
|
+
* @memberof OrganizationCustomDomainResponse
|
|
23697
|
+
*/
|
|
23698
|
+
'generated_hostnames'?: Array<GeneratedHostnameResponse>;
|
|
23699
|
+
}
|
|
23700
|
+
/**
|
|
23701
|
+
*
|
|
23702
|
+
* @export
|
|
23703
|
+
* @interface OrganizationCustomDomainResponseList
|
|
23704
|
+
*/
|
|
23705
|
+
export interface OrganizationCustomDomainResponseList {
|
|
23706
|
+
/**
|
|
23707
|
+
*
|
|
23708
|
+
* @type {Array<OrganizationCustomDomainResponse>}
|
|
23709
|
+
* @memberof OrganizationCustomDomainResponseList
|
|
23710
|
+
*/
|
|
23711
|
+
'results': Array<OrganizationCustomDomainResponse>;
|
|
23323
23712
|
}
|
|
23324
23713
|
/**
|
|
23325
23714
|
*
|
|
@@ -26775,6 +27164,19 @@ export const Route53StaticCredentialsResponseTypeEnum = {
|
|
|
26775
27164
|
|
|
26776
27165
|
export type Route53StaticCredentialsResponseTypeEnum = typeof Route53StaticCredentialsResponseTypeEnum[keyof typeof Route53StaticCredentialsResponseTypeEnum];
|
|
26777
27166
|
|
|
27167
|
+
/**
|
|
27168
|
+
* What the routing mode of the environment allows on its custom domains.
|
|
27169
|
+
* @export
|
|
27170
|
+
* @interface RoutingCapabilitiesResponse
|
|
27171
|
+
*/
|
|
27172
|
+
export interface RoutingCapabilitiesResponse {
|
|
27173
|
+
/**
|
|
27174
|
+
* Whether several services can route the same custom domain. `false` on a `PER_ROUTER_LISTENER_SET` environment, where a domain belongs to one service.
|
|
27175
|
+
* @type {boolean}
|
|
27176
|
+
* @memberof RoutingCapabilitiesResponse
|
|
27177
|
+
*/
|
|
27178
|
+
'can_share': boolean;
|
|
27179
|
+
}
|
|
26778
27180
|
/**
|
|
26779
27181
|
*
|
|
26780
27182
|
* @export
|
|
@@ -27734,6 +28136,123 @@ export const ServiceDeploymentStatusEnum = {
|
|
|
27734
28136
|
export type ServiceDeploymentStatusEnum = typeof ServiceDeploymentStatusEnum[keyof typeof ServiceDeploymentStatusEnum];
|
|
27735
28137
|
|
|
27736
28138
|
|
|
28139
|
+
/**
|
|
28140
|
+
* A custom domain the service routes, possibly shared with other services of the environment.
|
|
28141
|
+
* @export
|
|
28142
|
+
* @interface ServiceDomainCustomResponse
|
|
28143
|
+
*/
|
|
28144
|
+
export interface ServiceDomainCustomResponse {
|
|
28145
|
+
/**
|
|
28146
|
+
*
|
|
28147
|
+
* @type {ServiceDomainKindEnum}
|
|
28148
|
+
* @memberof ServiceDomainCustomResponse
|
|
28149
|
+
*/
|
|
28150
|
+
'kind': ServiceDomainKindEnum;
|
|
28151
|
+
/**
|
|
28152
|
+
*
|
|
28153
|
+
* @type {string}
|
|
28154
|
+
* @memberof ServiceDomainCustomResponse
|
|
28155
|
+
*/
|
|
28156
|
+
'domain': string;
|
|
28157
|
+
/**
|
|
28158
|
+
* Whether Qovery generates a certificate for the domain.
|
|
28159
|
+
* @type {boolean}
|
|
28160
|
+
* @memberof ServiceDomainCustomResponse
|
|
28161
|
+
*/
|
|
28162
|
+
'generate_certificate': boolean;
|
|
28163
|
+
/**
|
|
28164
|
+
* Whether the domain is behind a CDN.
|
|
28165
|
+
* @type {boolean}
|
|
28166
|
+
* @memberof ServiceDomainCustomResponse
|
|
28167
|
+
*/
|
|
28168
|
+
'use_cdn': boolean;
|
|
28169
|
+
/**
|
|
28170
|
+
* The hostnames the domain must point to with a CNAME record. One value, except for a legacy domain spread over several service routers.
|
|
28171
|
+
* @type {Array<string>}
|
|
28172
|
+
* @memberof ServiceDomainCustomResponse
|
|
28173
|
+
*/
|
|
28174
|
+
'cname_targets': Array<string>;
|
|
28175
|
+
/**
|
|
28176
|
+
* The hostnames served by the routes of this service only.
|
|
28177
|
+
* @type {Array<GeneratedHostnameResponse>}
|
|
28178
|
+
* @memberof ServiceDomainCustomResponse
|
|
28179
|
+
*/
|
|
28180
|
+
'generated_hostnames': Array<GeneratedHostnameResponse>;
|
|
28181
|
+
/**
|
|
28182
|
+
* Every route of the domain, the routes of the other services included.
|
|
28183
|
+
* @type {Array<CustomDomainRouteResponse>}
|
|
28184
|
+
* @memberof ServiceDomainCustomResponse
|
|
28185
|
+
*/
|
|
28186
|
+
'routes': Array<CustomDomainRouteResponse>;
|
|
28187
|
+
/**
|
|
28188
|
+
* The other services routing the domain. When it is not empty, removing this service\'s route keeps the domain for them.
|
|
28189
|
+
* @type {Array<CustomDomainServiceResponse>}
|
|
28190
|
+
* @memberof ServiceDomainCustomResponse
|
|
28191
|
+
*/
|
|
28192
|
+
'other_services': Array<CustomDomainServiceResponse>;
|
|
28193
|
+
}
|
|
28194
|
+
|
|
28195
|
+
|
|
28196
|
+
/**
|
|
28197
|
+
* * `QOVERY`: the domain Qovery generates for the service. It cannot be edited or deleted. * `CUSTOM`: a custom domain the service routes.
|
|
28198
|
+
* @export
|
|
28199
|
+
* @enum {string}
|
|
28200
|
+
*/
|
|
28201
|
+
|
|
28202
|
+
export const ServiceDomainKindEnum = {
|
|
28203
|
+
QOVERY: 'QOVERY',
|
|
28204
|
+
CUSTOM: 'CUSTOM'
|
|
28205
|
+
} as const;
|
|
28206
|
+
|
|
28207
|
+
export type ServiceDomainKindEnum = typeof ServiceDomainKindEnum[keyof typeof ServiceDomainKindEnum];
|
|
28208
|
+
|
|
28209
|
+
|
|
28210
|
+
/**
|
|
28211
|
+
* The read-only domain Qovery generates for the service.
|
|
28212
|
+
* @export
|
|
28213
|
+
* @interface ServiceDomainQoveryResponse
|
|
28214
|
+
*/
|
|
28215
|
+
export interface ServiceDomainQoveryResponse {
|
|
28216
|
+
/**
|
|
28217
|
+
*
|
|
28218
|
+
* @type {ServiceDomainKindEnum}
|
|
28219
|
+
* @memberof ServiceDomainQoveryResponse
|
|
28220
|
+
*/
|
|
28221
|
+
'kind': ServiceDomainKindEnum;
|
|
28222
|
+
/**
|
|
28223
|
+
*
|
|
28224
|
+
* @type {string}
|
|
28225
|
+
* @memberof ServiceDomainQoveryResponse
|
|
28226
|
+
*/
|
|
28227
|
+
'domain': string;
|
|
28228
|
+
/**
|
|
28229
|
+
*
|
|
28230
|
+
* @type {Array<GeneratedHostnameResponse>}
|
|
28231
|
+
* @memberof ServiceDomainQoveryResponse
|
|
28232
|
+
*/
|
|
28233
|
+
'generated_hostnames': Array<GeneratedHostnameResponse>;
|
|
28234
|
+
}
|
|
28235
|
+
|
|
28236
|
+
|
|
28237
|
+
/**
|
|
28238
|
+
* @type ServiceDomainResponse
|
|
28239
|
+
* @export
|
|
28240
|
+
*/
|
|
28241
|
+
export type ServiceDomainResponse = { kind: 'CUSTOM' } & ServiceDomainCustomResponse | { kind: 'QOVERY' } & ServiceDomainQoveryResponse;
|
|
28242
|
+
|
|
28243
|
+
/**
|
|
28244
|
+
*
|
|
28245
|
+
* @export
|
|
28246
|
+
* @interface ServiceDomainResponseList
|
|
28247
|
+
*/
|
|
28248
|
+
export interface ServiceDomainResponseList {
|
|
28249
|
+
/**
|
|
28250
|
+
*
|
|
28251
|
+
* @type {Array<ServiceDomainResponse>}
|
|
28252
|
+
* @memberof ServiceDomainResponseList
|
|
28253
|
+
*/
|
|
28254
|
+
'results': Array<ServiceDomainResponse>;
|
|
28255
|
+
}
|
|
27737
28256
|
/**
|
|
27738
28257
|
*
|
|
27739
28258
|
* @export
|
|
@@ -34401,7 +34920,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
|
|
|
34401
34920
|
};
|
|
34402
34921
|
},
|
|
34403
34922
|
/**
|
|
34404
|
-
* Add a custom domain to this application in order not to use qovery autogenerated domain
|
|
34923
|
+
* Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
34405
34924
|
* @summary Add custom domain to the application.
|
|
34406
34925
|
* @param {string} applicationId Application ID
|
|
34407
34926
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -34446,7 +34965,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
|
|
|
34446
34965
|
};
|
|
34447
34966
|
},
|
|
34448
34967
|
/**
|
|
34449
|
-
* To delete
|
|
34968
|
+
* Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
34450
34969
|
* @summary Delete a Custom Domain
|
|
34451
34970
|
* @param {string} applicationId Application ID
|
|
34452
34971
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34491,7 +35010,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
|
|
|
34491
35010
|
};
|
|
34492
35011
|
},
|
|
34493
35012
|
/**
|
|
34494
|
-
*
|
|
35013
|
+
* Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
34495
35014
|
* @summary Edit a Custom Domain
|
|
34496
35015
|
* @param {string} applicationId Application ID
|
|
34497
35016
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34616,6 +35135,47 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
|
|
|
34616
35135
|
|
|
34617
35136
|
|
|
34618
35137
|
|
|
35138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35140
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35141
|
+
|
|
35142
|
+
return {
|
|
35143
|
+
url: toPathString(localVarUrlObj),
|
|
35144
|
+
options: localVarRequestOptions,
|
|
35145
|
+
};
|
|
35146
|
+
},
|
|
35147
|
+
/**
|
|
35148
|
+
* List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
|
|
35149
|
+
* @summary List the domains of the application
|
|
35150
|
+
* @param {string} applicationId Application ID
|
|
35151
|
+
* @param {*} [options] Override http request option.
|
|
35152
|
+
* @throws {RequiredError}
|
|
35153
|
+
*/
|
|
35154
|
+
listApplicationCustomDomainView: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35155
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
35156
|
+
assertParamExists('listApplicationCustomDomainView', 'applicationId', applicationId)
|
|
35157
|
+
const localVarPath = `/application/{applicationId}/customDomainView`
|
|
35158
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
35159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35160
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35161
|
+
let baseOptions;
|
|
35162
|
+
if (configuration) {
|
|
35163
|
+
baseOptions = configuration.baseOptions;
|
|
35164
|
+
}
|
|
35165
|
+
|
|
35166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35167
|
+
const localVarHeaderParameter = {} as any;
|
|
35168
|
+
const localVarQueryParameter = {} as any;
|
|
35169
|
+
|
|
35170
|
+
// authentication ApiKeyAuth required
|
|
35171
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
35172
|
+
|
|
35173
|
+
// authentication bearerAuth required
|
|
35174
|
+
// http bearer authentication required
|
|
35175
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
35176
|
+
|
|
35177
|
+
|
|
35178
|
+
|
|
34619
35179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34620
35180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34621
35181
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -34649,7 +35209,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
|
|
|
34649
35209
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34650
35210
|
},
|
|
34651
35211
|
/**
|
|
34652
|
-
* Add a custom domain to this application in order not to use qovery autogenerated domain
|
|
35212
|
+
* Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
34653
35213
|
* @summary Add custom domain to the application.
|
|
34654
35214
|
* @param {string} applicationId Application ID
|
|
34655
35215
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -34663,7 +35223,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
|
|
|
34663
35223
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34664
35224
|
},
|
|
34665
35225
|
/**
|
|
34666
|
-
* To delete
|
|
35226
|
+
* Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
34667
35227
|
* @summary Delete a Custom Domain
|
|
34668
35228
|
* @param {string} applicationId Application ID
|
|
34669
35229
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34677,7 +35237,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
|
|
|
34677
35237
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34678
35238
|
},
|
|
34679
35239
|
/**
|
|
34680
|
-
*
|
|
35240
|
+
* Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
34681
35241
|
* @summary Edit a Custom Domain
|
|
34682
35242
|
* @param {string} applicationId Application ID
|
|
34683
35243
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34718,6 +35278,19 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
|
|
|
34718
35278
|
const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
34719
35279
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34720
35280
|
},
|
|
35281
|
+
/**
|
|
35282
|
+
* List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
|
|
35283
|
+
* @summary List the domains of the application
|
|
35284
|
+
* @param {string} applicationId Application ID
|
|
35285
|
+
* @param {*} [options] Override http request option.
|
|
35286
|
+
* @throws {RequiredError}
|
|
35287
|
+
*/
|
|
35288
|
+
async listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
|
|
35289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationCustomDomainView(applicationId, options);
|
|
35290
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
35291
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomainView']?.[localVarOperationServerIndex]?.url;
|
|
35292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35293
|
+
},
|
|
34721
35294
|
}
|
|
34722
35295
|
};
|
|
34723
35296
|
|
|
@@ -34739,7 +35312,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
|
|
|
34739
35312
|
return localVarFp.checkApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
|
|
34740
35313
|
},
|
|
34741
35314
|
/**
|
|
34742
|
-
* Add a custom domain to this application in order not to use qovery autogenerated domain
|
|
35315
|
+
* Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
34743
35316
|
* @summary Add custom domain to the application.
|
|
34744
35317
|
* @param {string} applicationId Application ID
|
|
34745
35318
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -34750,7 +35323,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
|
|
|
34750
35323
|
return localVarFp.createApplicationCustomDomain(applicationId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
34751
35324
|
},
|
|
34752
35325
|
/**
|
|
34753
|
-
* To delete
|
|
35326
|
+
* Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
34754
35327
|
* @summary Delete a Custom Domain
|
|
34755
35328
|
* @param {string} applicationId Application ID
|
|
34756
35329
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34761,7 +35334,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
|
|
|
34761
35334
|
return localVarFp.deleteCustomDomain(applicationId, customDomainId, options).then((request) => request(axios, basePath));
|
|
34762
35335
|
},
|
|
34763
35336
|
/**
|
|
34764
|
-
*
|
|
35337
|
+
* Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
34765
35338
|
* @summary Edit a Custom Domain
|
|
34766
35339
|
* @param {string} applicationId Application ID
|
|
34767
35340
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34793,6 +35366,16 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
|
|
|
34793
35366
|
listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
|
|
34794
35367
|
return localVarFp.listApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
|
|
34795
35368
|
},
|
|
35369
|
+
/**
|
|
35370
|
+
* List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
|
|
35371
|
+
* @summary List the domains of the application
|
|
35372
|
+
* @param {string} applicationId Application ID
|
|
35373
|
+
* @param {*} [options] Override http request option.
|
|
35374
|
+
* @throws {RequiredError}
|
|
35375
|
+
*/
|
|
35376
|
+
listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
|
|
35377
|
+
return localVarFp.listApplicationCustomDomainView(applicationId, options).then((request) => request(axios, basePath));
|
|
35378
|
+
},
|
|
34796
35379
|
};
|
|
34797
35380
|
};
|
|
34798
35381
|
|
|
@@ -34816,7 +35399,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
|
|
|
34816
35399
|
}
|
|
34817
35400
|
|
|
34818
35401
|
/**
|
|
34819
|
-
* Add a custom domain to this application in order not to use qovery autogenerated domain
|
|
35402
|
+
* Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
34820
35403
|
* @summary Add custom domain to the application.
|
|
34821
35404
|
* @param {string} applicationId Application ID
|
|
34822
35405
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -34829,7 +35412,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
|
|
|
34829
35412
|
}
|
|
34830
35413
|
|
|
34831
35414
|
/**
|
|
34832
|
-
* To delete
|
|
35415
|
+
* Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
34833
35416
|
* @summary Delete a Custom Domain
|
|
34834
35417
|
* @param {string} applicationId Application ID
|
|
34835
35418
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34842,7 +35425,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
|
|
|
34842
35425
|
}
|
|
34843
35426
|
|
|
34844
35427
|
/**
|
|
34845
|
-
*
|
|
35428
|
+
* Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
34846
35429
|
* @summary Edit a Custom Domain
|
|
34847
35430
|
* @param {string} applicationId Application ID
|
|
34848
35431
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -34879,6 +35462,18 @@ export class ApplicationCustomDomainApi extends BaseAPI {
|
|
|
34879
35462
|
public listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig) {
|
|
34880
35463
|
return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomain(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
34881
35464
|
}
|
|
35465
|
+
|
|
35466
|
+
/**
|
|
35467
|
+
* List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
|
|
35468
|
+
* @summary List the domains of the application
|
|
35469
|
+
* @param {string} applicationId Application ID
|
|
35470
|
+
* @param {*} [options] Override http request option.
|
|
35471
|
+
* @throws {RequiredError}
|
|
35472
|
+
* @memberof ApplicationCustomDomainApi
|
|
35473
|
+
*/
|
|
35474
|
+
public listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig) {
|
|
35475
|
+
return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomainView(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
35476
|
+
}
|
|
34882
35477
|
}
|
|
34883
35478
|
|
|
34884
35479
|
|
|
@@ -49120,7 +49715,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
|
|
|
49120
49715
|
};
|
|
49121
49716
|
},
|
|
49122
49717
|
/**
|
|
49123
|
-
* Add a custom domain to this container in order not to use qovery autogenerated domain
|
|
49718
|
+
* Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
49124
49719
|
* @summary Add custom domain to the container.
|
|
49125
49720
|
* @param {string} containerId Container ID
|
|
49126
49721
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -49165,7 +49760,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
|
|
|
49165
49760
|
};
|
|
49166
49761
|
},
|
|
49167
49762
|
/**
|
|
49168
|
-
* To delete
|
|
49763
|
+
* Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
49169
49764
|
* @summary Delete a Custom Domain
|
|
49170
49765
|
* @param {string} containerId Container ID
|
|
49171
49766
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49210,7 +49805,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
|
|
|
49210
49805
|
};
|
|
49211
49806
|
},
|
|
49212
49807
|
/**
|
|
49213
|
-
*
|
|
49808
|
+
* Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
49214
49809
|
* @summary Edit a Custom Domain
|
|
49215
49810
|
* @param {string} containerId Container ID
|
|
49216
49811
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49335,6 +49930,47 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
|
|
|
49335
49930
|
|
|
49336
49931
|
|
|
49337
49932
|
|
|
49933
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49935
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
49936
|
+
|
|
49937
|
+
return {
|
|
49938
|
+
url: toPathString(localVarUrlObj),
|
|
49939
|
+
options: localVarRequestOptions,
|
|
49940
|
+
};
|
|
49941
|
+
},
|
|
49942
|
+
/**
|
|
49943
|
+
* List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
|
|
49944
|
+
* @summary List the domains of the container
|
|
49945
|
+
* @param {string} containerId Container ID
|
|
49946
|
+
* @param {*} [options] Override http request option.
|
|
49947
|
+
* @throws {RequiredError}
|
|
49948
|
+
*/
|
|
49949
|
+
listContainerCustomDomainView: async (containerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49950
|
+
// verify required parameter 'containerId' is not null or undefined
|
|
49951
|
+
assertParamExists('listContainerCustomDomainView', 'containerId', containerId)
|
|
49952
|
+
const localVarPath = `/container/{containerId}/customDomainView`
|
|
49953
|
+
.replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
|
|
49954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49955
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49956
|
+
let baseOptions;
|
|
49957
|
+
if (configuration) {
|
|
49958
|
+
baseOptions = configuration.baseOptions;
|
|
49959
|
+
}
|
|
49960
|
+
|
|
49961
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
49962
|
+
const localVarHeaderParameter = {} as any;
|
|
49963
|
+
const localVarQueryParameter = {} as any;
|
|
49964
|
+
|
|
49965
|
+
// authentication ApiKeyAuth required
|
|
49966
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
49967
|
+
|
|
49968
|
+
// authentication bearerAuth required
|
|
49969
|
+
// http bearer authentication required
|
|
49970
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
49971
|
+
|
|
49972
|
+
|
|
49973
|
+
|
|
49338
49974
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49339
49975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49340
49976
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -49368,7 +50004,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
|
|
|
49368
50004
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49369
50005
|
},
|
|
49370
50006
|
/**
|
|
49371
|
-
* Add a custom domain to this container in order not to use qovery autogenerated domain
|
|
50007
|
+
* Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
49372
50008
|
* @summary Add custom domain to the container.
|
|
49373
50009
|
* @param {string} containerId Container ID
|
|
49374
50010
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -49382,7 +50018,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
|
|
|
49382
50018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49383
50019
|
},
|
|
49384
50020
|
/**
|
|
49385
|
-
* To delete
|
|
50021
|
+
* Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
49386
50022
|
* @summary Delete a Custom Domain
|
|
49387
50023
|
* @param {string} containerId Container ID
|
|
49388
50024
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49396,7 +50032,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
|
|
|
49396
50032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49397
50033
|
},
|
|
49398
50034
|
/**
|
|
49399
|
-
*
|
|
50035
|
+
* Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
49400
50036
|
* @summary Edit a Custom Domain
|
|
49401
50037
|
* @param {string} containerId Container ID
|
|
49402
50038
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49437,6 +50073,19 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
|
|
|
49437
50073
|
const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
49438
50074
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49439
50075
|
},
|
|
50076
|
+
/**
|
|
50077
|
+
* List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
|
|
50078
|
+
* @summary List the domains of the container
|
|
50079
|
+
* @param {string} containerId Container ID
|
|
50080
|
+
* @param {*} [options] Override http request option.
|
|
50081
|
+
* @throws {RequiredError}
|
|
50082
|
+
*/
|
|
50083
|
+
async listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
|
|
50084
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContainerCustomDomainView(containerId, options);
|
|
50085
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
50086
|
+
const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomainView']?.[localVarOperationServerIndex]?.url;
|
|
50087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50088
|
+
},
|
|
49440
50089
|
}
|
|
49441
50090
|
};
|
|
49442
50091
|
|
|
@@ -49458,7 +50107,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
|
|
|
49458
50107
|
return localVarFp.checkContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
|
|
49459
50108
|
},
|
|
49460
50109
|
/**
|
|
49461
|
-
* Add a custom domain to this container in order not to use qovery autogenerated domain
|
|
50110
|
+
* Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
49462
50111
|
* @summary Add custom domain to the container.
|
|
49463
50112
|
* @param {string} containerId Container ID
|
|
49464
50113
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -49469,7 +50118,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
|
|
|
49469
50118
|
return localVarFp.createContainerCustomDomain(containerId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
49470
50119
|
},
|
|
49471
50120
|
/**
|
|
49472
|
-
* To delete
|
|
50121
|
+
* Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
49473
50122
|
* @summary Delete a Custom Domain
|
|
49474
50123
|
* @param {string} containerId Container ID
|
|
49475
50124
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49480,7 +50129,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
|
|
|
49480
50129
|
return localVarFp.deleteContainerCustomDomain(containerId, customDomainId, options).then((request) => request(axios, basePath));
|
|
49481
50130
|
},
|
|
49482
50131
|
/**
|
|
49483
|
-
*
|
|
50132
|
+
* Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
49484
50133
|
* @summary Edit a Custom Domain
|
|
49485
50134
|
* @param {string} containerId Container ID
|
|
49486
50135
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49512,6 +50161,16 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
|
|
|
49512
50161
|
listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
|
|
49513
50162
|
return localVarFp.listContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
|
|
49514
50163
|
},
|
|
50164
|
+
/**
|
|
50165
|
+
* List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
|
|
50166
|
+
* @summary List the domains of the container
|
|
50167
|
+
* @param {string} containerId Container ID
|
|
50168
|
+
* @param {*} [options] Override http request option.
|
|
50169
|
+
* @throws {RequiredError}
|
|
50170
|
+
*/
|
|
50171
|
+
listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
|
|
50172
|
+
return localVarFp.listContainerCustomDomainView(containerId, options).then((request) => request(axios, basePath));
|
|
50173
|
+
},
|
|
49515
50174
|
};
|
|
49516
50175
|
};
|
|
49517
50176
|
|
|
@@ -49535,7 +50194,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
|
|
|
49535
50194
|
}
|
|
49536
50195
|
|
|
49537
50196
|
/**
|
|
49538
|
-
* Add a custom domain to this container in order not to use qovery autogenerated domain
|
|
50197
|
+
* Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
49539
50198
|
* @summary Add custom domain to the container.
|
|
49540
50199
|
* @param {string} containerId Container ID
|
|
49541
50200
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -49548,7 +50207,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
|
|
|
49548
50207
|
}
|
|
49549
50208
|
|
|
49550
50209
|
/**
|
|
49551
|
-
* To delete
|
|
50210
|
+
* Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
49552
50211
|
* @summary Delete a Custom Domain
|
|
49553
50212
|
* @param {string} containerId Container ID
|
|
49554
50213
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49561,7 +50220,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
|
|
|
49561
50220
|
}
|
|
49562
50221
|
|
|
49563
50222
|
/**
|
|
49564
|
-
*
|
|
50223
|
+
* Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
49565
50224
|
* @summary Edit a Custom Domain
|
|
49566
50225
|
* @param {string} containerId Container ID
|
|
49567
50226
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -49598,6 +50257,18 @@ export class ContainerCustomDomainApi extends BaseAPI {
|
|
|
49598
50257
|
public listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig) {
|
|
49599
50258
|
return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomain(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
49600
50259
|
}
|
|
50260
|
+
|
|
50261
|
+
/**
|
|
50262
|
+
* List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
|
|
50263
|
+
* @summary List the domains of the container
|
|
50264
|
+
* @param {string} containerId Container ID
|
|
50265
|
+
* @param {*} [options] Override http request option.
|
|
50266
|
+
* @throws {RequiredError}
|
|
50267
|
+
* @memberof ContainerCustomDomainApi
|
|
50268
|
+
*/
|
|
50269
|
+
public listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig) {
|
|
50270
|
+
return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomainView(containerId, options).then((request) => request(this.axios, this.basePath));
|
|
50271
|
+
}
|
|
49601
50272
|
}
|
|
49602
50273
|
|
|
49603
50274
|
|
|
@@ -57115,6 +57786,542 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
57115
57786
|
|
|
57116
57787
|
|
|
57117
57788
|
|
|
57789
|
+
/**
|
|
57790
|
+
* EnvironmentCustomDomainApi - axios parameter creator
|
|
57791
|
+
* @export
|
|
57792
|
+
*/
|
|
57793
|
+
export const EnvironmentCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57794
|
+
return {
|
|
57795
|
+
/**
|
|
57796
|
+
* Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
|
|
57797
|
+
* @summary Create a custom domain for several services
|
|
57798
|
+
* @param {string} environmentId Environment ID
|
|
57799
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
57800
|
+
* @param {*} [options] Override http request option.
|
|
57801
|
+
* @throws {RequiredError}
|
|
57802
|
+
*/
|
|
57803
|
+
createEnvironmentCustomDomain: async (environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57804
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
57805
|
+
assertParamExists('createEnvironmentCustomDomain', 'environmentId', environmentId)
|
|
57806
|
+
// verify required parameter 'environmentCustomDomainRequest' is not null or undefined
|
|
57807
|
+
assertParamExists('createEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
|
|
57808
|
+
const localVarPath = `/environment/{environmentId}/customDomain`
|
|
57809
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
57810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57812
|
+
let baseOptions;
|
|
57813
|
+
if (configuration) {
|
|
57814
|
+
baseOptions = configuration.baseOptions;
|
|
57815
|
+
}
|
|
57816
|
+
|
|
57817
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57818
|
+
const localVarHeaderParameter = {} as any;
|
|
57819
|
+
const localVarQueryParameter = {} as any;
|
|
57820
|
+
|
|
57821
|
+
// authentication ApiKeyAuth required
|
|
57822
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57823
|
+
|
|
57824
|
+
// authentication bearerAuth required
|
|
57825
|
+
// http bearer authentication required
|
|
57826
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57827
|
+
|
|
57828
|
+
|
|
57829
|
+
|
|
57830
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57831
|
+
|
|
57832
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57834
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57835
|
+
localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
|
|
57836
|
+
|
|
57837
|
+
return {
|
|
57838
|
+
url: toPathString(localVarUrlObj),
|
|
57839
|
+
options: localVarRequestOptions,
|
|
57840
|
+
};
|
|
57841
|
+
},
|
|
57842
|
+
/**
|
|
57843
|
+
* Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
57844
|
+
* @summary Delete a custom domain of several services
|
|
57845
|
+
* @param {string} environmentId Environment ID
|
|
57846
|
+
* @param {string} domainName The current name of the custom domain.
|
|
57847
|
+
* @param {*} [options] Override http request option.
|
|
57848
|
+
* @throws {RequiredError}
|
|
57849
|
+
*/
|
|
57850
|
+
deleteEnvironmentCustomDomain: async (environmentId: string, domainName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57851
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
57852
|
+
assertParamExists('deleteEnvironmentCustomDomain', 'environmentId', environmentId)
|
|
57853
|
+
// verify required parameter 'domainName' is not null or undefined
|
|
57854
|
+
assertParamExists('deleteEnvironmentCustomDomain', 'domainName', domainName)
|
|
57855
|
+
const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
|
|
57856
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
|
|
57857
|
+
.replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
|
|
57858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57860
|
+
let baseOptions;
|
|
57861
|
+
if (configuration) {
|
|
57862
|
+
baseOptions = configuration.baseOptions;
|
|
57863
|
+
}
|
|
57864
|
+
|
|
57865
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
57866
|
+
const localVarHeaderParameter = {} as any;
|
|
57867
|
+
const localVarQueryParameter = {} as any;
|
|
57868
|
+
|
|
57869
|
+
// authentication ApiKeyAuth required
|
|
57870
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57871
|
+
|
|
57872
|
+
// authentication bearerAuth required
|
|
57873
|
+
// http bearer authentication required
|
|
57874
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57875
|
+
|
|
57876
|
+
|
|
57877
|
+
|
|
57878
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57880
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57881
|
+
|
|
57882
|
+
return {
|
|
57883
|
+
url: toPathString(localVarUrlObj),
|
|
57884
|
+
options: localVarRequestOptions,
|
|
57885
|
+
};
|
|
57886
|
+
},
|
|
57887
|
+
/**
|
|
57888
|
+
* Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
57889
|
+
* @summary Edit a custom domain of several services
|
|
57890
|
+
* @param {string} environmentId Environment ID
|
|
57891
|
+
* @param {string} domainName The current name of the custom domain.
|
|
57892
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
57893
|
+
* @param {*} [options] Override http request option.
|
|
57894
|
+
* @throws {RequiredError}
|
|
57895
|
+
*/
|
|
57896
|
+
editEnvironmentCustomDomain: async (environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57897
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
57898
|
+
assertParamExists('editEnvironmentCustomDomain', 'environmentId', environmentId)
|
|
57899
|
+
// verify required parameter 'domainName' is not null or undefined
|
|
57900
|
+
assertParamExists('editEnvironmentCustomDomain', 'domainName', domainName)
|
|
57901
|
+
// verify required parameter 'environmentCustomDomainRequest' is not null or undefined
|
|
57902
|
+
assertParamExists('editEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
|
|
57903
|
+
const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
|
|
57904
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
|
|
57905
|
+
.replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
|
|
57906
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57907
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57908
|
+
let baseOptions;
|
|
57909
|
+
if (configuration) {
|
|
57910
|
+
baseOptions = configuration.baseOptions;
|
|
57911
|
+
}
|
|
57912
|
+
|
|
57913
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
57914
|
+
const localVarHeaderParameter = {} as any;
|
|
57915
|
+
const localVarQueryParameter = {} as any;
|
|
57916
|
+
|
|
57917
|
+
// authentication ApiKeyAuth required
|
|
57918
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57919
|
+
|
|
57920
|
+
// authentication bearerAuth required
|
|
57921
|
+
// http bearer authentication required
|
|
57922
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57923
|
+
|
|
57924
|
+
|
|
57925
|
+
|
|
57926
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57927
|
+
|
|
57928
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57930
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57931
|
+
localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
|
|
57932
|
+
|
|
57933
|
+
return {
|
|
57934
|
+
url: toPathString(localVarUrlObj),
|
|
57935
|
+
options: localVarRequestOptions,
|
|
57936
|
+
};
|
|
57937
|
+
},
|
|
57938
|
+
/**
|
|
57939
|
+
* The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
|
|
57940
|
+
* @summary Get the CNAME target of the environment
|
|
57941
|
+
* @param {string} environmentId Environment ID
|
|
57942
|
+
* @param {*} [options] Override http request option.
|
|
57943
|
+
* @throws {RequiredError}
|
|
57944
|
+
*/
|
|
57945
|
+
getEnvironmentCustomDomainCnameTarget: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57946
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
57947
|
+
assertParamExists('getEnvironmentCustomDomainCnameTarget', 'environmentId', environmentId)
|
|
57948
|
+
const localVarPath = `/environment/{environmentId}/customDomain/cnameTarget`
|
|
57949
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
57950
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57951
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57952
|
+
let baseOptions;
|
|
57953
|
+
if (configuration) {
|
|
57954
|
+
baseOptions = configuration.baseOptions;
|
|
57955
|
+
}
|
|
57956
|
+
|
|
57957
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57958
|
+
const localVarHeaderParameter = {} as any;
|
|
57959
|
+
const localVarQueryParameter = {} as any;
|
|
57960
|
+
|
|
57961
|
+
// authentication ApiKeyAuth required
|
|
57962
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57963
|
+
|
|
57964
|
+
// authentication bearerAuth required
|
|
57965
|
+
// http bearer authentication required
|
|
57966
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57967
|
+
|
|
57968
|
+
|
|
57969
|
+
|
|
57970
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57972
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57973
|
+
|
|
57974
|
+
return {
|
|
57975
|
+
url: toPathString(localVarUrlObj),
|
|
57976
|
+
options: localVarRequestOptions,
|
|
57977
|
+
};
|
|
57978
|
+
},
|
|
57979
|
+
/**
|
|
57980
|
+
* List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
|
|
57981
|
+
* @summary List environment custom domains
|
|
57982
|
+
* @param {string} environmentId Environment ID
|
|
57983
|
+
* @param {*} [options] Override http request option.
|
|
57984
|
+
* @throws {RequiredError}
|
|
57985
|
+
*/
|
|
57986
|
+
listEnvironmentCustomDomain: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57987
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
57988
|
+
assertParamExists('listEnvironmentCustomDomain', 'environmentId', environmentId)
|
|
57989
|
+
const localVarPath = `/environment/{environmentId}/customDomain`
|
|
57990
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
57991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57992
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57993
|
+
let baseOptions;
|
|
57994
|
+
if (configuration) {
|
|
57995
|
+
baseOptions = configuration.baseOptions;
|
|
57996
|
+
}
|
|
57997
|
+
|
|
57998
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57999
|
+
const localVarHeaderParameter = {} as any;
|
|
58000
|
+
const localVarQueryParameter = {} as any;
|
|
58001
|
+
|
|
58002
|
+
// authentication ApiKeyAuth required
|
|
58003
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
58004
|
+
|
|
58005
|
+
// authentication bearerAuth required
|
|
58006
|
+
// http bearer authentication required
|
|
58007
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58008
|
+
|
|
58009
|
+
|
|
58010
|
+
|
|
58011
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58013
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58014
|
+
|
|
58015
|
+
return {
|
|
58016
|
+
url: toPathString(localVarUrlObj),
|
|
58017
|
+
options: localVarRequestOptions,
|
|
58018
|
+
};
|
|
58019
|
+
},
|
|
58020
|
+
/**
|
|
58021
|
+
* Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
|
|
58022
|
+
* @summary Validate a custom domain for several services
|
|
58023
|
+
* @param {string} environmentId Environment ID
|
|
58024
|
+
* @param {CustomDomainValidationRequest} customDomainValidationRequest
|
|
58025
|
+
* @param {*} [options] Override http request option.
|
|
58026
|
+
* @throws {RequiredError}
|
|
58027
|
+
*/
|
|
58028
|
+
validateEnvironmentCustomDomain: async (environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58029
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
58030
|
+
assertParamExists('validateEnvironmentCustomDomain', 'environmentId', environmentId)
|
|
58031
|
+
// verify required parameter 'customDomainValidationRequest' is not null or undefined
|
|
58032
|
+
assertParamExists('validateEnvironmentCustomDomain', 'customDomainValidationRequest', customDomainValidationRequest)
|
|
58033
|
+
const localVarPath = `/environment/{environmentId}/customDomain/validate`
|
|
58034
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
58035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58037
|
+
let baseOptions;
|
|
58038
|
+
if (configuration) {
|
|
58039
|
+
baseOptions = configuration.baseOptions;
|
|
58040
|
+
}
|
|
58041
|
+
|
|
58042
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
58043
|
+
const localVarHeaderParameter = {} as any;
|
|
58044
|
+
const localVarQueryParameter = {} as any;
|
|
58045
|
+
|
|
58046
|
+
// authentication ApiKeyAuth required
|
|
58047
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
58048
|
+
|
|
58049
|
+
// authentication bearerAuth required
|
|
58050
|
+
// http bearer authentication required
|
|
58051
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58052
|
+
|
|
58053
|
+
|
|
58054
|
+
|
|
58055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58056
|
+
|
|
58057
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58058
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58059
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58060
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDomainValidationRequest, localVarRequestOptions, configuration)
|
|
58061
|
+
|
|
58062
|
+
return {
|
|
58063
|
+
url: toPathString(localVarUrlObj),
|
|
58064
|
+
options: localVarRequestOptions,
|
|
58065
|
+
};
|
|
58066
|
+
},
|
|
58067
|
+
}
|
|
58068
|
+
};
|
|
58069
|
+
|
|
58070
|
+
/**
|
|
58071
|
+
* EnvironmentCustomDomainApi - functional programming interface
|
|
58072
|
+
* @export
|
|
58073
|
+
*/
|
|
58074
|
+
export const EnvironmentCustomDomainApiFp = function(configuration?: Configuration) {
|
|
58075
|
+
const localVarAxiosParamCreator = EnvironmentCustomDomainApiAxiosParamCreator(configuration)
|
|
58076
|
+
return {
|
|
58077
|
+
/**
|
|
58078
|
+
* Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
|
|
58079
|
+
* @summary Create a custom domain for several services
|
|
58080
|
+
* @param {string} environmentId Environment ID
|
|
58081
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58082
|
+
* @param {*} [options] Override http request option.
|
|
58083
|
+
* @throws {RequiredError}
|
|
58084
|
+
*/
|
|
58085
|
+
async createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
|
|
58086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options);
|
|
58087
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58088
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.createEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
58089
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58090
|
+
},
|
|
58091
|
+
/**
|
|
58092
|
+
* Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58093
|
+
* @summary Delete a custom domain of several services
|
|
58094
|
+
* @param {string} environmentId Environment ID
|
|
58095
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58096
|
+
* @param {*} [options] Override http request option.
|
|
58097
|
+
* @throws {RequiredError}
|
|
58098
|
+
*/
|
|
58099
|
+
async deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
|
|
58100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentCustomDomain(environmentId, domainName, options);
|
|
58101
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58102
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.deleteEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
58103
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58104
|
+
},
|
|
58105
|
+
/**
|
|
58106
|
+
* Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58107
|
+
* @summary Edit a custom domain of several services
|
|
58108
|
+
* @param {string} environmentId Environment ID
|
|
58109
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58110
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58111
|
+
* @param {*} [options] Override http request option.
|
|
58112
|
+
* @throws {RequiredError}
|
|
58113
|
+
*/
|
|
58114
|
+
async editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
|
|
58115
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options);
|
|
58116
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58117
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.editEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
58118
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58119
|
+
},
|
|
58120
|
+
/**
|
|
58121
|
+
* The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
|
|
58122
|
+
* @summary Get the CNAME target of the environment
|
|
58123
|
+
* @param {string} environmentId Environment ID
|
|
58124
|
+
* @param {*} [options] Override http request option.
|
|
58125
|
+
* @throws {RequiredError}
|
|
58126
|
+
*/
|
|
58127
|
+
async getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCnameTargetResponse>> {
|
|
58128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentCustomDomainCnameTarget(environmentId, options);
|
|
58129
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58130
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.getEnvironmentCustomDomainCnameTarget']?.[localVarOperationServerIndex]?.url;
|
|
58131
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58132
|
+
},
|
|
58133
|
+
/**
|
|
58134
|
+
* List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
|
|
58135
|
+
* @summary List environment custom domains
|
|
58136
|
+
* @param {string} environmentId Environment ID
|
|
58137
|
+
* @param {*} [options] Override http request option.
|
|
58138
|
+
* @throws {RequiredError}
|
|
58139
|
+
*/
|
|
58140
|
+
async listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomDomainResponseList>> {
|
|
58141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentCustomDomain(environmentId, options);
|
|
58142
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58143
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.listEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
58144
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58145
|
+
},
|
|
58146
|
+
/**
|
|
58147
|
+
* Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
|
|
58148
|
+
* @summary Validate a custom domain for several services
|
|
58149
|
+
* @param {string} environmentId Environment ID
|
|
58150
|
+
* @param {CustomDomainValidationRequest} customDomainValidationRequest
|
|
58151
|
+
* @param {*} [options] Override http request option.
|
|
58152
|
+
* @throws {RequiredError}
|
|
58153
|
+
*/
|
|
58154
|
+
async validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainErrorsResponse>> {
|
|
58155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options);
|
|
58156
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58157
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.validateEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
58158
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58159
|
+
},
|
|
58160
|
+
}
|
|
58161
|
+
};
|
|
58162
|
+
|
|
58163
|
+
/**
|
|
58164
|
+
* EnvironmentCustomDomainApi - factory interface
|
|
58165
|
+
* @export
|
|
58166
|
+
*/
|
|
58167
|
+
export const EnvironmentCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
58168
|
+
const localVarFp = EnvironmentCustomDomainApiFp(configuration)
|
|
58169
|
+
return {
|
|
58170
|
+
/**
|
|
58171
|
+
* Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
|
|
58172
|
+
* @summary Create a custom domain for several services
|
|
58173
|
+
* @param {string} environmentId Environment ID
|
|
58174
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58175
|
+
* @param {*} [options] Override http request option.
|
|
58176
|
+
* @throws {RequiredError}
|
|
58177
|
+
*/
|
|
58178
|
+
createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
|
|
58179
|
+
return localVarFp.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
|
|
58180
|
+
},
|
|
58181
|
+
/**
|
|
58182
|
+
* Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58183
|
+
* @summary Delete a custom domain of several services
|
|
58184
|
+
* @param {string} environmentId Environment ID
|
|
58185
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58186
|
+
* @param {*} [options] Override http request option.
|
|
58187
|
+
* @throws {RequiredError}
|
|
58188
|
+
*/
|
|
58189
|
+
deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
|
|
58190
|
+
return localVarFp.deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(axios, basePath));
|
|
58191
|
+
},
|
|
58192
|
+
/**
|
|
58193
|
+
* Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58194
|
+
* @summary Edit a custom domain of several services
|
|
58195
|
+
* @param {string} environmentId Environment ID
|
|
58196
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58197
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58198
|
+
* @param {*} [options] Override http request option.
|
|
58199
|
+
* @throws {RequiredError}
|
|
58200
|
+
*/
|
|
58201
|
+
editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
|
|
58202
|
+
return localVarFp.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
|
|
58203
|
+
},
|
|
58204
|
+
/**
|
|
58205
|
+
* The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
|
|
58206
|
+
* @summary Get the CNAME target of the environment
|
|
58207
|
+
* @param {string} environmentId Environment ID
|
|
58208
|
+
* @param {*} [options] Override http request option.
|
|
58209
|
+
* @throws {RequiredError}
|
|
58210
|
+
*/
|
|
58211
|
+
getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCnameTargetResponse> {
|
|
58212
|
+
return localVarFp.getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(axios, basePath));
|
|
58213
|
+
},
|
|
58214
|
+
/**
|
|
58215
|
+
* List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
|
|
58216
|
+
* @summary List environment custom domains
|
|
58217
|
+
* @param {string} environmentId Environment ID
|
|
58218
|
+
* @param {*} [options] Override http request option.
|
|
58219
|
+
* @throws {RequiredError}
|
|
58220
|
+
*/
|
|
58221
|
+
listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationCustomDomainResponseList> {
|
|
58222
|
+
return localVarFp.listEnvironmentCustomDomain(environmentId, options).then((request) => request(axios, basePath));
|
|
58223
|
+
},
|
|
58224
|
+
/**
|
|
58225
|
+
* Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
|
|
58226
|
+
* @summary Validate a custom domain for several services
|
|
58227
|
+
* @param {string} environmentId Environment ID
|
|
58228
|
+
* @param {CustomDomainValidationRequest} customDomainValidationRequest
|
|
58229
|
+
* @param {*} [options] Override http request option.
|
|
58230
|
+
* @throws {RequiredError}
|
|
58231
|
+
*/
|
|
58232
|
+
validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainErrorsResponse> {
|
|
58233
|
+
return localVarFp.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(axios, basePath));
|
|
58234
|
+
},
|
|
58235
|
+
};
|
|
58236
|
+
};
|
|
58237
|
+
|
|
58238
|
+
/**
|
|
58239
|
+
* EnvironmentCustomDomainApi - object-oriented interface
|
|
58240
|
+
* @export
|
|
58241
|
+
* @class EnvironmentCustomDomainApi
|
|
58242
|
+
* @extends {BaseAPI}
|
|
58243
|
+
*/
|
|
58244
|
+
export class EnvironmentCustomDomainApi extends BaseAPI {
|
|
58245
|
+
/**
|
|
58246
|
+
* Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
|
|
58247
|
+
* @summary Create a custom domain for several services
|
|
58248
|
+
* @param {string} environmentId Environment ID
|
|
58249
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58250
|
+
* @param {*} [options] Override http request option.
|
|
58251
|
+
* @throws {RequiredError}
|
|
58252
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58253
|
+
*/
|
|
58254
|
+
public createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
|
|
58255
|
+
return EnvironmentCustomDomainApiFp(this.configuration).createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58256
|
+
}
|
|
58257
|
+
|
|
58258
|
+
/**
|
|
58259
|
+
* Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58260
|
+
* @summary Delete a custom domain of several services
|
|
58261
|
+
* @param {string} environmentId Environment ID
|
|
58262
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58263
|
+
* @param {*} [options] Override http request option.
|
|
58264
|
+
* @throws {RequiredError}
|
|
58265
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58266
|
+
*/
|
|
58267
|
+
public deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig) {
|
|
58268
|
+
return EnvironmentCustomDomainApiFp(this.configuration).deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(this.axios, this.basePath));
|
|
58269
|
+
}
|
|
58270
|
+
|
|
58271
|
+
/**
|
|
58272
|
+
* Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
58273
|
+
* @summary Edit a custom domain of several services
|
|
58274
|
+
* @param {string} environmentId Environment ID
|
|
58275
|
+
* @param {string} domainName The current name of the custom domain.
|
|
58276
|
+
* @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
|
|
58277
|
+
* @param {*} [options] Override http request option.
|
|
58278
|
+
* @throws {RequiredError}
|
|
58279
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58280
|
+
*/
|
|
58281
|
+
public editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
|
|
58282
|
+
return EnvironmentCustomDomainApiFp(this.configuration).editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58283
|
+
}
|
|
58284
|
+
|
|
58285
|
+
/**
|
|
58286
|
+
* The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
|
|
58287
|
+
* @summary Get the CNAME target of the environment
|
|
58288
|
+
* @param {string} environmentId Environment ID
|
|
58289
|
+
* @param {*} [options] Override http request option.
|
|
58290
|
+
* @throws {RequiredError}
|
|
58291
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58292
|
+
*/
|
|
58293
|
+
public getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig) {
|
|
58294
|
+
return EnvironmentCustomDomainApiFp(this.configuration).getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(this.axios, this.basePath));
|
|
58295
|
+
}
|
|
58296
|
+
|
|
58297
|
+
/**
|
|
58298
|
+
* List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
|
|
58299
|
+
* @summary List environment custom domains
|
|
58300
|
+
* @param {string} environmentId Environment ID
|
|
58301
|
+
* @param {*} [options] Override http request option.
|
|
58302
|
+
* @throws {RequiredError}
|
|
58303
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58304
|
+
*/
|
|
58305
|
+
public listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig) {
|
|
58306
|
+
return EnvironmentCustomDomainApiFp(this.configuration).listEnvironmentCustomDomain(environmentId, options).then((request) => request(this.axios, this.basePath));
|
|
58307
|
+
}
|
|
58308
|
+
|
|
58309
|
+
/**
|
|
58310
|
+
* Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
|
|
58311
|
+
* @summary Validate a custom domain for several services
|
|
58312
|
+
* @param {string} environmentId Environment ID
|
|
58313
|
+
* @param {CustomDomainValidationRequest} customDomainValidationRequest
|
|
58314
|
+
* @param {*} [options] Override http request option.
|
|
58315
|
+
* @throws {RequiredError}
|
|
58316
|
+
* @memberof EnvironmentCustomDomainApi
|
|
58317
|
+
*/
|
|
58318
|
+
public validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig) {
|
|
58319
|
+
return EnvironmentCustomDomainApiFp(this.configuration).validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58320
|
+
}
|
|
58321
|
+
}
|
|
58322
|
+
|
|
58323
|
+
|
|
58324
|
+
|
|
57118
58325
|
/**
|
|
57119
58326
|
* EnvironmentDeploymentHistoryApi - axios parameter creator
|
|
57120
58327
|
* @export
|
|
@@ -61141,7 +62348,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
|
|
|
61141
62348
|
};
|
|
61142
62349
|
},
|
|
61143
62350
|
/**
|
|
61144
|
-
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
62351
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
61145
62352
|
* @summary Add custom domain to the helm.
|
|
61146
62353
|
* @param {string} helmId Helm ID
|
|
61147
62354
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -61186,7 +62393,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
|
|
|
61186
62393
|
};
|
|
61187
62394
|
},
|
|
61188
62395
|
/**
|
|
61189
|
-
* To delete
|
|
62396
|
+
* Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
61190
62397
|
* @summary Delete a Custom Domain
|
|
61191
62398
|
* @param {string} helmId Helm ID
|
|
61192
62399
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61231,7 +62438,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
|
|
|
61231
62438
|
};
|
|
61232
62439
|
},
|
|
61233
62440
|
/**
|
|
61234
|
-
*
|
|
62441
|
+
* Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
61235
62442
|
* @summary Edit a Custom Domain
|
|
61236
62443
|
* @param {string} helmId Helm ID
|
|
61237
62444
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61356,6 +62563,47 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
|
|
|
61356
62563
|
|
|
61357
62564
|
|
|
61358
62565
|
|
|
62566
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62567
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62568
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62569
|
+
|
|
62570
|
+
return {
|
|
62571
|
+
url: toPathString(localVarUrlObj),
|
|
62572
|
+
options: localVarRequestOptions,
|
|
62573
|
+
};
|
|
62574
|
+
},
|
|
62575
|
+
/**
|
|
62576
|
+
* List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
|
|
62577
|
+
* @summary List the domains of the helm
|
|
62578
|
+
* @param {string} helmId Helm ID
|
|
62579
|
+
* @param {*} [options] Override http request option.
|
|
62580
|
+
* @throws {RequiredError}
|
|
62581
|
+
*/
|
|
62582
|
+
listHelmCustomDomainView: async (helmId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62583
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
62584
|
+
assertParamExists('listHelmCustomDomainView', 'helmId', helmId)
|
|
62585
|
+
const localVarPath = `/helm/{helmId}/customDomainView`
|
|
62586
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
|
|
62587
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62588
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62589
|
+
let baseOptions;
|
|
62590
|
+
if (configuration) {
|
|
62591
|
+
baseOptions = configuration.baseOptions;
|
|
62592
|
+
}
|
|
62593
|
+
|
|
62594
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
62595
|
+
const localVarHeaderParameter = {} as any;
|
|
62596
|
+
const localVarQueryParameter = {} as any;
|
|
62597
|
+
|
|
62598
|
+
// authentication ApiKeyAuth required
|
|
62599
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
62600
|
+
|
|
62601
|
+
// authentication bearerAuth required
|
|
62602
|
+
// http bearer authentication required
|
|
62603
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62604
|
+
|
|
62605
|
+
|
|
62606
|
+
|
|
61359
62607
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61360
62608
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61361
62609
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -61389,7 +62637,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
61389
62637
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61390
62638
|
},
|
|
61391
62639
|
/**
|
|
61392
|
-
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
62640
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
61393
62641
|
* @summary Add custom domain to the helm.
|
|
61394
62642
|
* @param {string} helmId Helm ID
|
|
61395
62643
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -61403,7 +62651,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
61403
62651
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61404
62652
|
},
|
|
61405
62653
|
/**
|
|
61406
|
-
* To delete
|
|
62654
|
+
* Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
61407
62655
|
* @summary Delete a Custom Domain
|
|
61408
62656
|
* @param {string} helmId Helm ID
|
|
61409
62657
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61417,7 +62665,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
61417
62665
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61418
62666
|
},
|
|
61419
62667
|
/**
|
|
61420
|
-
*
|
|
62668
|
+
* Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
61421
62669
|
* @summary Edit a Custom Domain
|
|
61422
62670
|
* @param {string} helmId Helm ID
|
|
61423
62671
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61458,6 +62706,19 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
61458
62706
|
const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
61459
62707
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
61460
62708
|
},
|
|
62709
|
+
/**
|
|
62710
|
+
* List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
|
|
62711
|
+
* @summary List the domains of the helm
|
|
62712
|
+
* @param {string} helmId Helm ID
|
|
62713
|
+
* @param {*} [options] Override http request option.
|
|
62714
|
+
* @throws {RequiredError}
|
|
62715
|
+
*/
|
|
62716
|
+
async listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
|
|
62717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listHelmCustomDomainView(helmId, options);
|
|
62718
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62719
|
+
const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomainView']?.[localVarOperationServerIndex]?.url;
|
|
62720
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62721
|
+
},
|
|
61461
62722
|
}
|
|
61462
62723
|
};
|
|
61463
62724
|
|
|
@@ -61479,7 +62740,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
|
|
|
61479
62740
|
return localVarFp.checkHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
|
|
61480
62741
|
},
|
|
61481
62742
|
/**
|
|
61482
|
-
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
62743
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
61483
62744
|
* @summary Add custom domain to the helm.
|
|
61484
62745
|
* @param {string} helmId Helm ID
|
|
61485
62746
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -61490,7 +62751,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
|
|
|
61490
62751
|
return localVarFp.createHelmCustomDomain(helmId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
61491
62752
|
},
|
|
61492
62753
|
/**
|
|
61493
|
-
* To delete
|
|
62754
|
+
* Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
61494
62755
|
* @summary Delete a Custom Domain
|
|
61495
62756
|
* @param {string} helmId Helm ID
|
|
61496
62757
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61501,7 +62762,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
|
|
|
61501
62762
|
return localVarFp.deleteHelmCustomDomain(helmId, customDomainId, options).then((request) => request(axios, basePath));
|
|
61502
62763
|
},
|
|
61503
62764
|
/**
|
|
61504
|
-
*
|
|
62765
|
+
* Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
61505
62766
|
* @summary Edit a Custom Domain
|
|
61506
62767
|
* @param {string} helmId Helm ID
|
|
61507
62768
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61533,6 +62794,16 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
|
|
|
61533
62794
|
listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
|
|
61534
62795
|
return localVarFp.listHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
|
|
61535
62796
|
},
|
|
62797
|
+
/**
|
|
62798
|
+
* List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
|
|
62799
|
+
* @summary List the domains of the helm
|
|
62800
|
+
* @param {string} helmId Helm ID
|
|
62801
|
+
* @param {*} [options] Override http request option.
|
|
62802
|
+
* @throws {RequiredError}
|
|
62803
|
+
*/
|
|
62804
|
+
listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
|
|
62805
|
+
return localVarFp.listHelmCustomDomainView(helmId, options).then((request) => request(axios, basePath));
|
|
62806
|
+
},
|
|
61536
62807
|
};
|
|
61537
62808
|
};
|
|
61538
62809
|
|
|
@@ -61556,7 +62827,7 @@ export class HelmCustomDomainApi extends BaseAPI {
|
|
|
61556
62827
|
}
|
|
61557
62828
|
|
|
61558
62829
|
/**
|
|
61559
|
-
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
62830
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
|
|
61560
62831
|
* @summary Add custom domain to the helm.
|
|
61561
62832
|
* @param {string} helmId Helm ID
|
|
61562
62833
|
* @param {CustomDomainRequest} [customDomainRequest]
|
|
@@ -61569,7 +62840,7 @@ export class HelmCustomDomainApi extends BaseAPI {
|
|
|
61569
62840
|
}
|
|
61570
62841
|
|
|
61571
62842
|
/**
|
|
61572
|
-
* To delete
|
|
62843
|
+
* Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
|
|
61573
62844
|
* @summary Delete a Custom Domain
|
|
61574
62845
|
* @param {string} helmId Helm ID
|
|
61575
62846
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61582,7 +62853,7 @@ export class HelmCustomDomainApi extends BaseAPI {
|
|
|
61582
62853
|
}
|
|
61583
62854
|
|
|
61584
62855
|
/**
|
|
61585
|
-
*
|
|
62856
|
+
* Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
|
|
61586
62857
|
* @summary Edit a Custom Domain
|
|
61587
62858
|
* @param {string} helmId Helm ID
|
|
61588
62859
|
* @param {string} customDomainId Custom Domain ID
|
|
@@ -61619,6 +62890,18 @@ export class HelmCustomDomainApi extends BaseAPI {
|
|
|
61619
62890
|
public listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig) {
|
|
61620
62891
|
return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomain(helmId, options).then((request) => request(this.axios, this.basePath));
|
|
61621
62892
|
}
|
|
62893
|
+
|
|
62894
|
+
/**
|
|
62895
|
+
* List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
|
|
62896
|
+
* @summary List the domains of the helm
|
|
62897
|
+
* @param {string} helmId Helm ID
|
|
62898
|
+
* @param {*} [options] Override http request option.
|
|
62899
|
+
* @throws {RequiredError}
|
|
62900
|
+
* @memberof HelmCustomDomainApi
|
|
62901
|
+
*/
|
|
62902
|
+
public listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig) {
|
|
62903
|
+
return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomainView(helmId, options).then((request) => request(this.axios, this.basePath));
|
|
62904
|
+
}
|
|
61622
62905
|
}
|
|
61623
62906
|
|
|
61624
62907
|
|
|
@@ -71434,6 +72717,53 @@ export class OrganizationClusterLockApi extends BaseAPI {
|
|
|
71434
72717
|
*/
|
|
71435
72718
|
export const OrganizationCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
71436
72719
|
return {
|
|
72720
|
+
/**
|
|
72721
|
+
* Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
72722
|
+
* @summary Delete custom domains of several environments
|
|
72723
|
+
* @param {string} organizationId Organization ID
|
|
72724
|
+
* @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
|
|
72725
|
+
* @param {*} [options] Override http request option.
|
|
72726
|
+
* @throws {RequiredError}
|
|
72727
|
+
*/
|
|
72728
|
+
bulkDeleteOrganizationCustomDomain: async (organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
72729
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
72730
|
+
assertParamExists('bulkDeleteOrganizationCustomDomain', 'organizationId', organizationId)
|
|
72731
|
+
// verify required parameter 'customDomainBulkDeleteItemRequest' is not null or undefined
|
|
72732
|
+
assertParamExists('bulkDeleteOrganizationCustomDomain', 'customDomainBulkDeleteItemRequest', customDomainBulkDeleteItemRequest)
|
|
72733
|
+
const localVarPath = `/organization/{organizationId}/customDomain/bulkDelete`
|
|
72734
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
72735
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72736
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72737
|
+
let baseOptions;
|
|
72738
|
+
if (configuration) {
|
|
72739
|
+
baseOptions = configuration.baseOptions;
|
|
72740
|
+
}
|
|
72741
|
+
|
|
72742
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
72743
|
+
const localVarHeaderParameter = {} as any;
|
|
72744
|
+
const localVarQueryParameter = {} as any;
|
|
72745
|
+
|
|
72746
|
+
// authentication ApiKeyAuth required
|
|
72747
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
72748
|
+
|
|
72749
|
+
// authentication bearerAuth required
|
|
72750
|
+
// http bearer authentication required
|
|
72751
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72752
|
+
|
|
72753
|
+
|
|
72754
|
+
|
|
72755
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72756
|
+
|
|
72757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72759
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDomainBulkDeleteItemRequest, localVarRequestOptions, configuration)
|
|
72761
|
+
|
|
72762
|
+
return {
|
|
72763
|
+
url: toPathString(localVarUrlObj),
|
|
72764
|
+
options: localVarRequestOptions,
|
|
72765
|
+
};
|
|
72766
|
+
},
|
|
71437
72767
|
/**
|
|
71438
72768
|
* List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
|
|
71439
72769
|
* @summary List organization custom domains
|
|
@@ -71510,6 +72840,20 @@ export const OrganizationCustomDomainApiAxiosParamCreator = function (configurat
|
|
|
71510
72840
|
export const OrganizationCustomDomainApiFp = function(configuration?: Configuration) {
|
|
71511
72841
|
const localVarAxiosParamCreator = OrganizationCustomDomainApiAxiosParamCreator(configuration)
|
|
71512
72842
|
return {
|
|
72843
|
+
/**
|
|
72844
|
+
* Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
72845
|
+
* @summary Delete custom domains of several environments
|
|
72846
|
+
* @param {string} organizationId Organization ID
|
|
72847
|
+
* @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
|
|
72848
|
+
* @param {*} [options] Override http request option.
|
|
72849
|
+
* @throws {RequiredError}
|
|
72850
|
+
*/
|
|
72851
|
+
async bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
|
|
72852
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options);
|
|
72853
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
72854
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationCustomDomainApi.bulkDeleteOrganizationCustomDomain']?.[localVarOperationServerIndex]?.url;
|
|
72855
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
72856
|
+
},
|
|
71513
72857
|
/**
|
|
71514
72858
|
* List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
|
|
71515
72859
|
* @summary List organization custom domains
|
|
@@ -71538,6 +72882,17 @@ export const OrganizationCustomDomainApiFp = function(configuration?: Configurat
|
|
|
71538
72882
|
export const OrganizationCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
71539
72883
|
const localVarFp = OrganizationCustomDomainApiFp(configuration)
|
|
71540
72884
|
return {
|
|
72885
|
+
/**
|
|
72886
|
+
* Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
72887
|
+
* @summary Delete custom domains of several environments
|
|
72888
|
+
* @param {string} organizationId Organization ID
|
|
72889
|
+
* @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
|
|
72890
|
+
* @param {*} [options] Override http request option.
|
|
72891
|
+
* @throws {RequiredError}
|
|
72892
|
+
*/
|
|
72893
|
+
bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
|
|
72894
|
+
return localVarFp.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(axios, basePath));
|
|
72895
|
+
},
|
|
71541
72896
|
/**
|
|
71542
72897
|
* List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
|
|
71543
72898
|
* @summary List organization custom domains
|
|
@@ -71563,6 +72918,19 @@ export const OrganizationCustomDomainApiFactory = function (configuration?: Conf
|
|
|
71563
72918
|
* @extends {BaseAPI}
|
|
71564
72919
|
*/
|
|
71565
72920
|
export class OrganizationCustomDomainApi extends BaseAPI {
|
|
72921
|
+
/**
|
|
72922
|
+
* Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
|
|
72923
|
+
* @summary Delete custom domains of several environments
|
|
72924
|
+
* @param {string} organizationId Organization ID
|
|
72925
|
+
* @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
|
|
72926
|
+
* @param {*} [options] Override http request option.
|
|
72927
|
+
* @throws {RequiredError}
|
|
72928
|
+
* @memberof OrganizationCustomDomainApi
|
|
72929
|
+
*/
|
|
72930
|
+
public bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig) {
|
|
72931
|
+
return OrganizationCustomDomainApiFp(this.configuration).bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
72932
|
+
}
|
|
72933
|
+
|
|
71566
72934
|
/**
|
|
71567
72935
|
* List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
|
|
71568
72936
|
* @summary List organization custom domains
|