@quantcdn/quant-client 4.3.0 → 4.4.0
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 +522 -20
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +373 -20
- package/dist/api.js +558 -288
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +373 -20
- package/dist/esm/api.js +555 -285
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -3
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1712,25 +1712,6 @@ export interface CreateCommandRequest {
|
|
|
1712
1712
|
*/
|
|
1713
1713
|
'command'?: string;
|
|
1714
1714
|
}
|
|
1715
|
-
/**
|
|
1716
|
-
*
|
|
1717
|
-
* @export
|
|
1718
|
-
* @interface CreateCronJob422Response
|
|
1719
|
-
*/
|
|
1720
|
-
export interface CreateCronJob422Response {
|
|
1721
|
-
/**
|
|
1722
|
-
*
|
|
1723
|
-
* @type {string}
|
|
1724
|
-
* @memberof CreateCronJob422Response
|
|
1725
|
-
*/
|
|
1726
|
-
'message'?: string;
|
|
1727
|
-
/**
|
|
1728
|
-
*
|
|
1729
|
-
* @type {object}
|
|
1730
|
-
* @memberof CreateCronJob422Response
|
|
1731
|
-
*/
|
|
1732
|
-
'errors'?: object;
|
|
1733
|
-
}
|
|
1734
1715
|
/**
|
|
1735
1716
|
*
|
|
1736
1717
|
* @export
|
|
@@ -3626,6 +3607,189 @@ export interface OrganizationsList200ResponseInner {
|
|
|
3626
3607
|
*/
|
|
3627
3608
|
'machine_name'?: string;
|
|
3628
3609
|
}
|
|
3610
|
+
/**
|
|
3611
|
+
*
|
|
3612
|
+
* @export
|
|
3613
|
+
* @interface PatchEnvironmentCompose202Response
|
|
3614
|
+
*/
|
|
3615
|
+
export interface PatchEnvironmentCompose202Response {
|
|
3616
|
+
/**
|
|
3617
|
+
*
|
|
3618
|
+
* @type {string}
|
|
3619
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3620
|
+
*/
|
|
3621
|
+
'architecture'?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @type {string}
|
|
3625
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3626
|
+
*/
|
|
3627
|
+
'taskCpu'?: string;
|
|
3628
|
+
/**
|
|
3629
|
+
*
|
|
3630
|
+
* @type {string}
|
|
3631
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3632
|
+
*/
|
|
3633
|
+
'taskMemory'?: string;
|
|
3634
|
+
/**
|
|
3635
|
+
*
|
|
3636
|
+
* @type {number}
|
|
3637
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3638
|
+
*/
|
|
3639
|
+
'minCapacity'?: number;
|
|
3640
|
+
/**
|
|
3641
|
+
*
|
|
3642
|
+
* @type {number}
|
|
3643
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3644
|
+
*/
|
|
3645
|
+
'maxCapacity'?: number;
|
|
3646
|
+
/**
|
|
3647
|
+
*
|
|
3648
|
+
* @type {Array<object>}
|
|
3649
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3650
|
+
*/
|
|
3651
|
+
'containers'?: Array<object>;
|
|
3652
|
+
/**
|
|
3653
|
+
*
|
|
3654
|
+
* @type {PatchEnvironmentCompose202ResponseSpotConfiguration}
|
|
3655
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3656
|
+
*/
|
|
3657
|
+
'spotConfiguration'?: PatchEnvironmentCompose202ResponseSpotConfiguration;
|
|
3658
|
+
/**
|
|
3659
|
+
*
|
|
3660
|
+
* @type {boolean}
|
|
3661
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3662
|
+
*/
|
|
3663
|
+
'enableCrossEnvNetworking'?: boolean;
|
|
3664
|
+
/**
|
|
3665
|
+
*
|
|
3666
|
+
* @type {boolean}
|
|
3667
|
+
* @memberof PatchEnvironmentCompose202Response
|
|
3668
|
+
*/
|
|
3669
|
+
'enableCrossAppNetworking'?: boolean;
|
|
3670
|
+
}
|
|
3671
|
+
/**
|
|
3672
|
+
*
|
|
3673
|
+
* @export
|
|
3674
|
+
* @interface PatchEnvironmentCompose202ResponseSpotConfiguration
|
|
3675
|
+
*/
|
|
3676
|
+
export interface PatchEnvironmentCompose202ResponseSpotConfiguration {
|
|
3677
|
+
/**
|
|
3678
|
+
*
|
|
3679
|
+
* @type {string}
|
|
3680
|
+
* @memberof PatchEnvironmentCompose202ResponseSpotConfiguration
|
|
3681
|
+
*/
|
|
3682
|
+
'strategy'?: string;
|
|
3683
|
+
/**
|
|
3684
|
+
*
|
|
3685
|
+
* @type {boolean}
|
|
3686
|
+
* @memberof PatchEnvironmentCompose202ResponseSpotConfiguration
|
|
3687
|
+
*/
|
|
3688
|
+
'tolerateDowntime'?: boolean;
|
|
3689
|
+
}
|
|
3690
|
+
/**
|
|
3691
|
+
*
|
|
3692
|
+
* @export
|
|
3693
|
+
* @interface PatchEnvironmentCompose400Response
|
|
3694
|
+
*/
|
|
3695
|
+
export interface PatchEnvironmentCompose400Response {
|
|
3696
|
+
/**
|
|
3697
|
+
*
|
|
3698
|
+
* @type {string}
|
|
3699
|
+
* @memberof PatchEnvironmentCompose400Response
|
|
3700
|
+
*/
|
|
3701
|
+
'message'?: string;
|
|
3702
|
+
/**
|
|
3703
|
+
*
|
|
3704
|
+
* @type {object}
|
|
3705
|
+
* @memberof PatchEnvironmentCompose400Response
|
|
3706
|
+
*/
|
|
3707
|
+
'errors'?: object;
|
|
3708
|
+
}
|
|
3709
|
+
/**
|
|
3710
|
+
*
|
|
3711
|
+
* @export
|
|
3712
|
+
* @interface PatchEnvironmentComposeRequest
|
|
3713
|
+
*/
|
|
3714
|
+
export interface PatchEnvironmentComposeRequest {
|
|
3715
|
+
/**
|
|
3716
|
+
*
|
|
3717
|
+
* @type {string}
|
|
3718
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3719
|
+
*/
|
|
3720
|
+
'architecture'?: string | null;
|
|
3721
|
+
/**
|
|
3722
|
+
*
|
|
3723
|
+
* @type {string}
|
|
3724
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3725
|
+
*/
|
|
3726
|
+
'taskCpu'?: string | null;
|
|
3727
|
+
/**
|
|
3728
|
+
*
|
|
3729
|
+
* @type {string}
|
|
3730
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3731
|
+
*/
|
|
3732
|
+
'taskMemory'?: string | null;
|
|
3733
|
+
/**
|
|
3734
|
+
*
|
|
3735
|
+
* @type {number}
|
|
3736
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3737
|
+
*/
|
|
3738
|
+
'minCapacity'?: number | null;
|
|
3739
|
+
/**
|
|
3740
|
+
*
|
|
3741
|
+
* @type {number}
|
|
3742
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3743
|
+
*/
|
|
3744
|
+
'maxCapacity'?: number | null;
|
|
3745
|
+
/**
|
|
3746
|
+
*
|
|
3747
|
+
* @type {Array<object>}
|
|
3748
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3749
|
+
*/
|
|
3750
|
+
'containers'?: Array<object> | null;
|
|
3751
|
+
/**
|
|
3752
|
+
*
|
|
3753
|
+
* @type {PatchEnvironmentComposeRequestSpotConfiguration}
|
|
3754
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3755
|
+
*/
|
|
3756
|
+
'spotConfiguration'?: PatchEnvironmentComposeRequestSpotConfiguration | null;
|
|
3757
|
+
/**
|
|
3758
|
+
*
|
|
3759
|
+
* @type {boolean}
|
|
3760
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3761
|
+
*/
|
|
3762
|
+
'enableCrossEnvNetworking'?: boolean | null;
|
|
3763
|
+
/**
|
|
3764
|
+
*
|
|
3765
|
+
* @type {boolean}
|
|
3766
|
+
* @memberof PatchEnvironmentComposeRequest
|
|
3767
|
+
*/
|
|
3768
|
+
'enableCrossAppNetworking'?: boolean | null;
|
|
3769
|
+
}
|
|
3770
|
+
/**
|
|
3771
|
+
*
|
|
3772
|
+
* @export
|
|
3773
|
+
* @interface PatchEnvironmentComposeRequestSpotConfiguration
|
|
3774
|
+
*/
|
|
3775
|
+
export interface PatchEnvironmentComposeRequestSpotConfiguration {
|
|
3776
|
+
/**
|
|
3777
|
+
*
|
|
3778
|
+
* @type {string}
|
|
3779
|
+
* @memberof PatchEnvironmentComposeRequestSpotConfiguration
|
|
3780
|
+
*/
|
|
3781
|
+
'strategy'?: PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum;
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
3785
|
+
Off: 'off',
|
|
3786
|
+
SpotOnly: 'spot-only',
|
|
3787
|
+
MixedSafe: 'mixed-safe',
|
|
3788
|
+
MixedAggressive: 'mixed-aggressive'
|
|
3789
|
+
} as const;
|
|
3790
|
+
|
|
3791
|
+
export type PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum[keyof typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum];
|
|
3792
|
+
|
|
3629
3793
|
/**
|
|
3630
3794
|
*
|
|
3631
3795
|
* @export
|
|
@@ -5620,6 +5784,67 @@ export interface V2CrawlerRequest {
|
|
|
5620
5784
|
*/
|
|
5621
5785
|
'max_errors'?: number;
|
|
5622
5786
|
}
|
|
5787
|
+
/**
|
|
5788
|
+
*
|
|
5789
|
+
* @export
|
|
5790
|
+
* @interface V2CrawlerRun
|
|
5791
|
+
*/
|
|
5792
|
+
export interface V2CrawlerRun {
|
|
5793
|
+
/**
|
|
5794
|
+
* Run ID
|
|
5795
|
+
* @type {number}
|
|
5796
|
+
* @memberof V2CrawlerRun
|
|
5797
|
+
*/
|
|
5798
|
+
'id': number;
|
|
5799
|
+
/**
|
|
5800
|
+
* Crawler config ID
|
|
5801
|
+
* @type {number}
|
|
5802
|
+
* @memberof V2CrawlerRun
|
|
5803
|
+
*/
|
|
5804
|
+
'crawler_config_id': number;
|
|
5805
|
+
/**
|
|
5806
|
+
* Project ID
|
|
5807
|
+
* @type {number}
|
|
5808
|
+
* @memberof V2CrawlerRun
|
|
5809
|
+
*/
|
|
5810
|
+
'project_id': number;
|
|
5811
|
+
/**
|
|
5812
|
+
* Run status
|
|
5813
|
+
* @type {string}
|
|
5814
|
+
* @memberof V2CrawlerRun
|
|
5815
|
+
*/
|
|
5816
|
+
'last_status': string;
|
|
5817
|
+
/**
|
|
5818
|
+
* Task ID
|
|
5819
|
+
* @type {string}
|
|
5820
|
+
* @memberof V2CrawlerRun
|
|
5821
|
+
*/
|
|
5822
|
+
'task_id': string;
|
|
5823
|
+
/**
|
|
5824
|
+
* Start time (Unix timestamp)
|
|
5825
|
+
* @type {number}
|
|
5826
|
+
* @memberof V2CrawlerRun
|
|
5827
|
+
*/
|
|
5828
|
+
'started_at'?: number | null;
|
|
5829
|
+
/**
|
|
5830
|
+
* Completion time (Unix timestamp)
|
|
5831
|
+
* @type {number}
|
|
5832
|
+
* @memberof V2CrawlerRun
|
|
5833
|
+
*/
|
|
5834
|
+
'completed_at'?: number | null;
|
|
5835
|
+
/**
|
|
5836
|
+
* Creation timestamp
|
|
5837
|
+
* @type {string}
|
|
5838
|
+
* @memberof V2CrawlerRun
|
|
5839
|
+
*/
|
|
5840
|
+
'created_at'?: string;
|
|
5841
|
+
/**
|
|
5842
|
+
* Last update timestamp
|
|
5843
|
+
* @type {string}
|
|
5844
|
+
* @memberof V2CrawlerRun
|
|
5845
|
+
*/
|
|
5846
|
+
'updated_at'?: string;
|
|
5847
|
+
}
|
|
5623
5848
|
/**
|
|
5624
5849
|
*
|
|
5625
5850
|
* @export
|
|
@@ -11944,6 +12169,58 @@ export const ComposeApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11944
12169
|
options: localVarRequestOptions,
|
|
11945
12170
|
};
|
|
11946
12171
|
},
|
|
12172
|
+
/**
|
|
12173
|
+
* Partially updates top-level fields of the environment\'s compose definition, such as architecture, task-level CPU/Memory, or min/max scaling capacity. Only fields included in the request body are modified. The \'containers\' array, if provided, REPLACES the existing containers array; if omitted, the existing containers are NOT modified by this PATCH operation. (For modifying individual containers, use PATCH /containers/{containerName}). This triggers a validation, registers a new task definition, and updates the service.
|
|
12174
|
+
* @summary Partially Update Environment Compose Definition
|
|
12175
|
+
* @param {string} organisation The organisation ID
|
|
12176
|
+
* @param {string} application The application ID
|
|
12177
|
+
* @param {string} environment The environment ID
|
|
12178
|
+
* @param {PatchEnvironmentComposeRequest} patchEnvironmentComposeRequest Partial compose definition updates. All fields are optional.
|
|
12179
|
+
* @param {*} [options] Override http request option.
|
|
12180
|
+
* @throws {RequiredError}
|
|
12181
|
+
*/
|
|
12182
|
+
patchEnvironmentCompose: async (organisation: string, application: string, environment: string, patchEnvironmentComposeRequest: PatchEnvironmentComposeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12183
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12184
|
+
assertParamExists('patchEnvironmentCompose', 'organisation', organisation)
|
|
12185
|
+
// verify required parameter 'application' is not null or undefined
|
|
12186
|
+
assertParamExists('patchEnvironmentCompose', 'application', application)
|
|
12187
|
+
// verify required parameter 'environment' is not null or undefined
|
|
12188
|
+
assertParamExists('patchEnvironmentCompose', 'environment', environment)
|
|
12189
|
+
// verify required parameter 'patchEnvironmentComposeRequest' is not null or undefined
|
|
12190
|
+
assertParamExists('patchEnvironmentCompose', 'patchEnvironmentComposeRequest', patchEnvironmentComposeRequest)
|
|
12191
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose`
|
|
12192
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12193
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
12194
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
12195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12197
|
+
let baseOptions;
|
|
12198
|
+
if (configuration) {
|
|
12199
|
+
baseOptions = configuration.baseOptions;
|
|
12200
|
+
}
|
|
12201
|
+
|
|
12202
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
12203
|
+
const localVarHeaderParameter = {} as any;
|
|
12204
|
+
const localVarQueryParameter = {} as any;
|
|
12205
|
+
|
|
12206
|
+
// authentication BearerAuth required
|
|
12207
|
+
// http bearer authentication required
|
|
12208
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12209
|
+
|
|
12210
|
+
|
|
12211
|
+
|
|
12212
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12213
|
+
|
|
12214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12217
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchEnvironmentComposeRequest, localVarRequestOptions, configuration)
|
|
12218
|
+
|
|
12219
|
+
return {
|
|
12220
|
+
url: toPathString(localVarUrlObj),
|
|
12221
|
+
options: localVarRequestOptions,
|
|
12222
|
+
};
|
|
12223
|
+
},
|
|
11947
12224
|
/**
|
|
11948
12225
|
* Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
|
|
11949
12226
|
* @summary Validate a compose file
|
|
@@ -12018,6 +12295,22 @@ export const ComposeApiFp = function(configuration?: Configuration) {
|
|
|
12018
12295
|
const localVarOperationServerBasePath = operationServerMap['ComposeApi.getEnvironmentCompose']?.[localVarOperationServerIndex]?.url;
|
|
12019
12296
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12020
12297
|
},
|
|
12298
|
+
/**
|
|
12299
|
+
* Partially updates top-level fields of the environment\'s compose definition, such as architecture, task-level CPU/Memory, or min/max scaling capacity. Only fields included in the request body are modified. The \'containers\' array, if provided, REPLACES the existing containers array; if omitted, the existing containers are NOT modified by this PATCH operation. (For modifying individual containers, use PATCH /containers/{containerName}). This triggers a validation, registers a new task definition, and updates the service.
|
|
12300
|
+
* @summary Partially Update Environment Compose Definition
|
|
12301
|
+
* @param {string} organisation The organisation ID
|
|
12302
|
+
* @param {string} application The application ID
|
|
12303
|
+
* @param {string} environment The environment ID
|
|
12304
|
+
* @param {PatchEnvironmentComposeRequest} patchEnvironmentComposeRequest Partial compose definition updates. All fields are optional.
|
|
12305
|
+
* @param {*} [options] Override http request option.
|
|
12306
|
+
* @throws {RequiredError}
|
|
12307
|
+
*/
|
|
12308
|
+
async patchEnvironmentCompose(organisation: string, application: string, environment: string, patchEnvironmentComposeRequest: PatchEnvironmentComposeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchEnvironmentCompose202Response>> {
|
|
12309
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchEnvironmentCompose(organisation, application, environment, patchEnvironmentComposeRequest, options);
|
|
12310
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12311
|
+
const localVarOperationServerBasePath = operationServerMap['ComposeApi.patchEnvironmentCompose']?.[localVarOperationServerIndex]?.url;
|
|
12312
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12313
|
+
},
|
|
12021
12314
|
/**
|
|
12022
12315
|
* Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
|
|
12023
12316
|
* @summary Validate a compose file
|
|
@@ -12055,6 +12348,19 @@ export const ComposeApiFactory = function (configuration?: Configuration, basePa
|
|
|
12055
12348
|
getEnvironmentCompose(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<Compose> {
|
|
12056
12349
|
return localVarFp.getEnvironmentCompose(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
12057
12350
|
},
|
|
12351
|
+
/**
|
|
12352
|
+
* Partially updates top-level fields of the environment\'s compose definition, such as architecture, task-level CPU/Memory, or min/max scaling capacity. Only fields included in the request body are modified. The \'containers\' array, if provided, REPLACES the existing containers array; if omitted, the existing containers are NOT modified by this PATCH operation. (For modifying individual containers, use PATCH /containers/{containerName}). This triggers a validation, registers a new task definition, and updates the service.
|
|
12353
|
+
* @summary Partially Update Environment Compose Definition
|
|
12354
|
+
* @param {string} organisation The organisation ID
|
|
12355
|
+
* @param {string} application The application ID
|
|
12356
|
+
* @param {string} environment The environment ID
|
|
12357
|
+
* @param {PatchEnvironmentComposeRequest} patchEnvironmentComposeRequest Partial compose definition updates. All fields are optional.
|
|
12358
|
+
* @param {*} [options] Override http request option.
|
|
12359
|
+
* @throws {RequiredError}
|
|
12360
|
+
*/
|
|
12361
|
+
patchEnvironmentCompose(organisation: string, application: string, environment: string, patchEnvironmentComposeRequest: PatchEnvironmentComposeRequest, options?: RawAxiosRequestConfig): AxiosPromise<PatchEnvironmentCompose202Response> {
|
|
12362
|
+
return localVarFp.patchEnvironmentCompose(organisation, application, environment, patchEnvironmentComposeRequest, options).then((request) => request(axios, basePath));
|
|
12363
|
+
},
|
|
12058
12364
|
/**
|
|
12059
12365
|
* Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
|
|
12060
12366
|
* @summary Validate a compose file
|
|
@@ -12091,6 +12397,21 @@ export class ComposeApi extends BaseAPI {
|
|
|
12091
12397
|
return ComposeApiFp(this.configuration).getEnvironmentCompose(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
12092
12398
|
}
|
|
12093
12399
|
|
|
12400
|
+
/**
|
|
12401
|
+
* Partially updates top-level fields of the environment\'s compose definition, such as architecture, task-level CPU/Memory, or min/max scaling capacity. Only fields included in the request body are modified. The \'containers\' array, if provided, REPLACES the existing containers array; if omitted, the existing containers are NOT modified by this PATCH operation. (For modifying individual containers, use PATCH /containers/{containerName}). This triggers a validation, registers a new task definition, and updates the service.
|
|
12402
|
+
* @summary Partially Update Environment Compose Definition
|
|
12403
|
+
* @param {string} organisation The organisation ID
|
|
12404
|
+
* @param {string} application The application ID
|
|
12405
|
+
* @param {string} environment The environment ID
|
|
12406
|
+
* @param {PatchEnvironmentComposeRequest} patchEnvironmentComposeRequest Partial compose definition updates. All fields are optional.
|
|
12407
|
+
* @param {*} [options] Override http request option.
|
|
12408
|
+
* @throws {RequiredError}
|
|
12409
|
+
* @memberof ComposeApi
|
|
12410
|
+
*/
|
|
12411
|
+
public patchEnvironmentCompose(organisation: string, application: string, environment: string, patchEnvironmentComposeRequest: PatchEnvironmentComposeRequest, options?: RawAxiosRequestConfig) {
|
|
12412
|
+
return ComposeApiFp(this.configuration).patchEnvironmentCompose(organisation, application, environment, patchEnvironmentComposeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12094
12415
|
/**
|
|
12095
12416
|
* Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
|
|
12096
12417
|
* @summary Validate a compose file
|
|
@@ -12941,6 +13262,102 @@ export const CrawlersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12941
13262
|
|
|
12942
13263
|
|
|
12943
13264
|
|
|
13265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13267
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13268
|
+
|
|
13269
|
+
return {
|
|
13270
|
+
url: toPathString(localVarUrlObj),
|
|
13271
|
+
options: localVarRequestOptions,
|
|
13272
|
+
};
|
|
13273
|
+
},
|
|
13274
|
+
/**
|
|
13275
|
+
*
|
|
13276
|
+
* @summary Get a run by ID
|
|
13277
|
+
* @param {string} organization Organization identifier
|
|
13278
|
+
* @param {string} project Project identifier
|
|
13279
|
+
* @param {string} crawler Crawler identifier
|
|
13280
|
+
* @param {number} runId Run identifier
|
|
13281
|
+
* @param {*} [options] Override http request option.
|
|
13282
|
+
* @throws {RequiredError}
|
|
13283
|
+
*/
|
|
13284
|
+
crawlersGetRunById: async (organization: string, project: string, crawler: string, runId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13285
|
+
// verify required parameter 'organization' is not null or undefined
|
|
13286
|
+
assertParamExists('crawlersGetRunById', 'organization', organization)
|
|
13287
|
+
// verify required parameter 'project' is not null or undefined
|
|
13288
|
+
assertParamExists('crawlersGetRunById', 'project', project)
|
|
13289
|
+
// verify required parameter 'crawler' is not null or undefined
|
|
13290
|
+
assertParamExists('crawlersGetRunById', 'crawler', crawler)
|
|
13291
|
+
// verify required parameter 'runId' is not null or undefined
|
|
13292
|
+
assertParamExists('crawlersGetRunById', 'runId', runId)
|
|
13293
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/runs/{run_id}`
|
|
13294
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
13295
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
13296
|
+
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
|
|
13297
|
+
.replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
|
|
13298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13300
|
+
let baseOptions;
|
|
13301
|
+
if (configuration) {
|
|
13302
|
+
baseOptions = configuration.baseOptions;
|
|
13303
|
+
}
|
|
13304
|
+
|
|
13305
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13306
|
+
const localVarHeaderParameter = {} as any;
|
|
13307
|
+
const localVarQueryParameter = {} as any;
|
|
13308
|
+
|
|
13309
|
+
// authentication BearerAuth required
|
|
13310
|
+
// http bearer authentication required
|
|
13311
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13312
|
+
|
|
13313
|
+
|
|
13314
|
+
|
|
13315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13317
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13318
|
+
|
|
13319
|
+
return {
|
|
13320
|
+
url: toPathString(localVarUrlObj),
|
|
13321
|
+
options: localVarRequestOptions,
|
|
13322
|
+
};
|
|
13323
|
+
},
|
|
13324
|
+
/**
|
|
13325
|
+
*
|
|
13326
|
+
* @summary Get all runs for a crawler
|
|
13327
|
+
* @param {string} organization Organization identifier
|
|
13328
|
+
* @param {string} project Project identifier
|
|
13329
|
+
* @param {string} crawler Crawler identifier
|
|
13330
|
+
* @param {*} [options] Override http request option.
|
|
13331
|
+
* @throws {RequiredError}
|
|
13332
|
+
*/
|
|
13333
|
+
crawlersGetRuns: async (organization: string, project: string, crawler: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13334
|
+
// verify required parameter 'organization' is not null or undefined
|
|
13335
|
+
assertParamExists('crawlersGetRuns', 'organization', organization)
|
|
13336
|
+
// verify required parameter 'project' is not null or undefined
|
|
13337
|
+
assertParamExists('crawlersGetRuns', 'project', project)
|
|
13338
|
+
// verify required parameter 'crawler' is not null or undefined
|
|
13339
|
+
assertParamExists('crawlersGetRuns', 'crawler', crawler)
|
|
13340
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/runs`
|
|
13341
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
13342
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
13343
|
+
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
|
|
13344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13346
|
+
let baseOptions;
|
|
13347
|
+
if (configuration) {
|
|
13348
|
+
baseOptions = configuration.baseOptions;
|
|
13349
|
+
}
|
|
13350
|
+
|
|
13351
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13352
|
+
const localVarHeaderParameter = {} as any;
|
|
13353
|
+
const localVarQueryParameter = {} as any;
|
|
13354
|
+
|
|
13355
|
+
// authentication BearerAuth required
|
|
13356
|
+
// http bearer authentication required
|
|
13357
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13358
|
+
|
|
13359
|
+
|
|
13360
|
+
|
|
12944
13361
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12945
13362
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12946
13363
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13182,6 +13599,37 @@ export const CrawlersApiFp = function(configuration?: Configuration) {
|
|
|
13182
13599
|
const localVarOperationServerBasePath = operationServerMap['CrawlersApi.crawlersDelete']?.[localVarOperationServerIndex]?.url;
|
|
13183
13600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13184
13601
|
},
|
|
13602
|
+
/**
|
|
13603
|
+
*
|
|
13604
|
+
* @summary Get a run by ID
|
|
13605
|
+
* @param {string} organization Organization identifier
|
|
13606
|
+
* @param {string} project Project identifier
|
|
13607
|
+
* @param {string} crawler Crawler identifier
|
|
13608
|
+
* @param {number} runId Run identifier
|
|
13609
|
+
* @param {*} [options] Override http request option.
|
|
13610
|
+
* @throws {RequiredError}
|
|
13611
|
+
*/
|
|
13612
|
+
async crawlersGetRunById(organization: string, project: string, crawler: string, runId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2CrawlerRun>> {
|
|
13613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.crawlersGetRunById(organization, project, crawler, runId, options);
|
|
13614
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13615
|
+
const localVarOperationServerBasePath = operationServerMap['CrawlersApi.crawlersGetRunById']?.[localVarOperationServerIndex]?.url;
|
|
13616
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13617
|
+
},
|
|
13618
|
+
/**
|
|
13619
|
+
*
|
|
13620
|
+
* @summary Get all runs for a crawler
|
|
13621
|
+
* @param {string} organization Organization identifier
|
|
13622
|
+
* @param {string} project Project identifier
|
|
13623
|
+
* @param {string} crawler Crawler identifier
|
|
13624
|
+
* @param {*} [options] Override http request option.
|
|
13625
|
+
* @throws {RequiredError}
|
|
13626
|
+
*/
|
|
13627
|
+
async crawlersGetRuns(organization: string, project: string, crawler: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V2CrawlerRun>>> {
|
|
13628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.crawlersGetRuns(organization, project, crawler, options);
|
|
13629
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13630
|
+
const localVarOperationServerBasePath = operationServerMap['CrawlersApi.crawlersGetRuns']?.[localVarOperationServerIndex]?.url;
|
|
13631
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13632
|
+
},
|
|
13185
13633
|
/**
|
|
13186
13634
|
*
|
|
13187
13635
|
* @summary List crawlers for the project
|
|
@@ -13277,6 +13725,31 @@ export const CrawlersApiFactory = function (configuration?: Configuration, baseP
|
|
|
13277
13725
|
crawlersDelete(organization: string, project: string, crawler: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
13278
13726
|
return localVarFp.crawlersDelete(organization, project, crawler, options).then((request) => request(axios, basePath));
|
|
13279
13727
|
},
|
|
13728
|
+
/**
|
|
13729
|
+
*
|
|
13730
|
+
* @summary Get a run by ID
|
|
13731
|
+
* @param {string} organization Organization identifier
|
|
13732
|
+
* @param {string} project Project identifier
|
|
13733
|
+
* @param {string} crawler Crawler identifier
|
|
13734
|
+
* @param {number} runId Run identifier
|
|
13735
|
+
* @param {*} [options] Override http request option.
|
|
13736
|
+
* @throws {RequiredError}
|
|
13737
|
+
*/
|
|
13738
|
+
crawlersGetRunById(organization: string, project: string, crawler: string, runId: number, options?: RawAxiosRequestConfig): AxiosPromise<V2CrawlerRun> {
|
|
13739
|
+
return localVarFp.crawlersGetRunById(organization, project, crawler, runId, options).then((request) => request(axios, basePath));
|
|
13740
|
+
},
|
|
13741
|
+
/**
|
|
13742
|
+
*
|
|
13743
|
+
* @summary Get all runs for a crawler
|
|
13744
|
+
* @param {string} organization Organization identifier
|
|
13745
|
+
* @param {string} project Project identifier
|
|
13746
|
+
* @param {string} crawler Crawler identifier
|
|
13747
|
+
* @param {*} [options] Override http request option.
|
|
13748
|
+
* @throws {RequiredError}
|
|
13749
|
+
*/
|
|
13750
|
+
crawlersGetRuns(organization: string, project: string, crawler: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<V2CrawlerRun>> {
|
|
13751
|
+
return localVarFp.crawlersGetRuns(organization, project, crawler, options).then((request) => request(axios, basePath));
|
|
13752
|
+
},
|
|
13280
13753
|
/**
|
|
13281
13754
|
*
|
|
13282
13755
|
* @summary List crawlers for the project
|
|
@@ -13364,6 +13837,35 @@ export class CrawlersApi extends BaseAPI {
|
|
|
13364
13837
|
return CrawlersApiFp(this.configuration).crawlersDelete(organization, project, crawler, options).then((request) => request(this.axios, this.basePath));
|
|
13365
13838
|
}
|
|
13366
13839
|
|
|
13840
|
+
/**
|
|
13841
|
+
*
|
|
13842
|
+
* @summary Get a run by ID
|
|
13843
|
+
* @param {string} organization Organization identifier
|
|
13844
|
+
* @param {string} project Project identifier
|
|
13845
|
+
* @param {string} crawler Crawler identifier
|
|
13846
|
+
* @param {number} runId Run identifier
|
|
13847
|
+
* @param {*} [options] Override http request option.
|
|
13848
|
+
* @throws {RequiredError}
|
|
13849
|
+
* @memberof CrawlersApi
|
|
13850
|
+
*/
|
|
13851
|
+
public crawlersGetRunById(organization: string, project: string, crawler: string, runId: number, options?: RawAxiosRequestConfig) {
|
|
13852
|
+
return CrawlersApiFp(this.configuration).crawlersGetRunById(organization, project, crawler, runId, options).then((request) => request(this.axios, this.basePath));
|
|
13853
|
+
}
|
|
13854
|
+
|
|
13855
|
+
/**
|
|
13856
|
+
*
|
|
13857
|
+
* @summary Get all runs for a crawler
|
|
13858
|
+
* @param {string} organization Organization identifier
|
|
13859
|
+
* @param {string} project Project identifier
|
|
13860
|
+
* @param {string} crawler Crawler identifier
|
|
13861
|
+
* @param {*} [options] Override http request option.
|
|
13862
|
+
* @throws {RequiredError}
|
|
13863
|
+
* @memberof CrawlersApi
|
|
13864
|
+
*/
|
|
13865
|
+
public crawlersGetRuns(organization: string, project: string, crawler: string, options?: RawAxiosRequestConfig) {
|
|
13866
|
+
return CrawlersApiFp(this.configuration).crawlersGetRuns(organization, project, crawler, options).then((request) => request(this.axios, this.basePath));
|
|
13867
|
+
}
|
|
13868
|
+
|
|
13367
13869
|
/**
|
|
13368
13870
|
*
|
|
13369
13871
|
* @summary List crawlers for the project
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.4.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|