qovery-typescript-axios 1.1.906 → 1.1.908
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 +274 -14
- package/dist/api.d.ts +202 -8
- package/dist/api.js +143 -26
- package/dist/esm/api.d.ts +202 -8
- package/dist/esm/api.js +131 -14
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3584,6 +3584,134 @@ export interface BlueprintMajorVersion {
|
|
|
3584
3584
|
*/
|
|
3585
3585
|
'latestTag': string;
|
|
3586
3586
|
}
|
|
3587
|
+
/**
|
|
3588
|
+
* An auto-sourced, read-only value (from spec.contextVariables); not user-editable.
|
|
3589
|
+
* @export
|
|
3590
|
+
* @interface BlueprintManifestContextVariableField
|
|
3591
|
+
*/
|
|
3592
|
+
export interface BlueprintManifestContextVariableField {
|
|
3593
|
+
/**
|
|
3594
|
+
*
|
|
3595
|
+
* @type {string}
|
|
3596
|
+
* @memberof BlueprintManifestContextVariableField
|
|
3597
|
+
*/
|
|
3598
|
+
'kind': BlueprintManifestContextVariableFieldKindEnum;
|
|
3599
|
+
/**
|
|
3600
|
+
*
|
|
3601
|
+
* @type {string}
|
|
3602
|
+
* @memberof BlueprintManifestContextVariableField
|
|
3603
|
+
*/
|
|
3604
|
+
'name': string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Origin of the auto-sourced value (e.g. cluster.region)
|
|
3607
|
+
* @type {string}
|
|
3608
|
+
* @memberof BlueprintManifestContextVariableField
|
|
3609
|
+
*/
|
|
3610
|
+
'source'?: string | null;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
export const BlueprintManifestContextVariableFieldKindEnum = {
|
|
3614
|
+
CONTEXT_VARIABLE: 'contextVariable'
|
|
3615
|
+
} as const;
|
|
3616
|
+
|
|
3617
|
+
export type BlueprintManifestContextVariableFieldKindEnum = typeof BlueprintManifestContextVariableFieldKindEnum[keyof typeof BlueprintManifestContextVariableFieldKindEnum];
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* Field type with its type-specific validation conditions, discriminated by \"type\".
|
|
3621
|
+
* @export
|
|
3622
|
+
* @interface BlueprintManifestFieldType
|
|
3623
|
+
*/
|
|
3624
|
+
export interface BlueprintManifestFieldType {
|
|
3625
|
+
/**
|
|
3626
|
+
*
|
|
3627
|
+
* @type {string}
|
|
3628
|
+
* @memberof BlueprintManifestFieldType
|
|
3629
|
+
*/
|
|
3630
|
+
'type': BlueprintManifestFieldTypeTypeEnum;
|
|
3631
|
+
/**
|
|
3632
|
+
* Lower bound, only present for number fields
|
|
3633
|
+
* @type {number}
|
|
3634
|
+
* @memberof BlueprintManifestFieldType
|
|
3635
|
+
*/
|
|
3636
|
+
'min'?: number | null;
|
|
3637
|
+
/**
|
|
3638
|
+
* Upper bound, only present for number fields
|
|
3639
|
+
* @type {number}
|
|
3640
|
+
* @memberof BlueprintManifestFieldType
|
|
3641
|
+
*/
|
|
3642
|
+
'max'?: number | null;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
export const BlueprintManifestFieldTypeTypeEnum = {
|
|
3646
|
+
STRING: 'string',
|
|
3647
|
+
BOOL: 'bool',
|
|
3648
|
+
NUMBER: 'number'
|
|
3649
|
+
} as const;
|
|
3650
|
+
|
|
3651
|
+
export type BlueprintManifestFieldTypeTypeEnum = typeof BlueprintManifestFieldTypeTypeEnum[keyof typeof BlueprintManifestFieldTypeTypeEnum];
|
|
3652
|
+
|
|
3653
|
+
/**
|
|
3654
|
+
* An editable form input the user fills in (from spec.variables).
|
|
3655
|
+
* @export
|
|
3656
|
+
* @interface BlueprintManifestVariableField
|
|
3657
|
+
*/
|
|
3658
|
+
export interface BlueprintManifestVariableField {
|
|
3659
|
+
/**
|
|
3660
|
+
*
|
|
3661
|
+
* @type {string}
|
|
3662
|
+
* @memberof BlueprintManifestVariableField
|
|
3663
|
+
*/
|
|
3664
|
+
'kind': BlueprintManifestVariableFieldKindEnum;
|
|
3665
|
+
/**
|
|
3666
|
+
*
|
|
3667
|
+
* @type {string}
|
|
3668
|
+
* @memberof BlueprintManifestVariableField
|
|
3669
|
+
*/
|
|
3670
|
+
'name': string;
|
|
3671
|
+
/**
|
|
3672
|
+
*
|
|
3673
|
+
* @type {BlueprintManifestFieldType}
|
|
3674
|
+
* @memberof BlueprintManifestVariableField
|
|
3675
|
+
*/
|
|
3676
|
+
'type': BlueprintManifestFieldType;
|
|
3677
|
+
/**
|
|
3678
|
+
*
|
|
3679
|
+
* @type {boolean}
|
|
3680
|
+
* @memberof BlueprintManifestVariableField
|
|
3681
|
+
*/
|
|
3682
|
+
'required': boolean;
|
|
3683
|
+
/**
|
|
3684
|
+
*
|
|
3685
|
+
* @type {boolean}
|
|
3686
|
+
* @memberof BlueprintManifestVariableField
|
|
3687
|
+
*/
|
|
3688
|
+
'is_secret': boolean;
|
|
3689
|
+
/**
|
|
3690
|
+
*
|
|
3691
|
+
* @type {string}
|
|
3692
|
+
* @memberof BlueprintManifestVariableField
|
|
3693
|
+
*/
|
|
3694
|
+
'description'?: string | null;
|
|
3695
|
+
/**
|
|
3696
|
+
*
|
|
3697
|
+
* @type {Array<string>}
|
|
3698
|
+
* @memberof BlueprintManifestVariableField
|
|
3699
|
+
*/
|
|
3700
|
+
'allowed_values'?: Array<string> | null;
|
|
3701
|
+
/**
|
|
3702
|
+
*
|
|
3703
|
+
* @type {string}
|
|
3704
|
+
* @memberof BlueprintManifestVariableField
|
|
3705
|
+
*/
|
|
3706
|
+
'default_value'?: string | null;
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
export const BlueprintManifestVariableFieldKindEnum = {
|
|
3710
|
+
VARIABLE: 'variable'
|
|
3711
|
+
} as const;
|
|
3712
|
+
|
|
3713
|
+
export type BlueprintManifestVariableFieldKindEnum = typeof BlueprintManifestVariableFieldKindEnum[keyof typeof BlueprintManifestVariableFieldKindEnum];
|
|
3714
|
+
|
|
3587
3715
|
/**
|
|
3588
3716
|
*
|
|
3589
3717
|
* @export
|
|
@@ -12657,6 +12785,25 @@ export interface GenericObjectCurrentCost {
|
|
|
12657
12785
|
*/
|
|
12658
12786
|
'cost': Cost;
|
|
12659
12787
|
}
|
|
12788
|
+
/**
|
|
12789
|
+
*
|
|
12790
|
+
* @export
|
|
12791
|
+
* @interface GetBlueprintCatalogServiceManifest200Response
|
|
12792
|
+
*/
|
|
12793
|
+
export interface GetBlueprintCatalogServiceManifest200Response {
|
|
12794
|
+
/**
|
|
12795
|
+
*
|
|
12796
|
+
* @type {Array<GetBlueprintCatalogServiceManifest200ResponseResultsInner>}
|
|
12797
|
+
* @memberof GetBlueprintCatalogServiceManifest200Response
|
|
12798
|
+
*/
|
|
12799
|
+
'results'?: Array<GetBlueprintCatalogServiceManifest200ResponseResultsInner>;
|
|
12800
|
+
}
|
|
12801
|
+
/**
|
|
12802
|
+
* @type GetBlueprintCatalogServiceManifest200ResponseResultsInner
|
|
12803
|
+
* @export
|
|
12804
|
+
*/
|
|
12805
|
+
export type GetBlueprintCatalogServiceManifest200ResponseResultsInner = { kind: 'contextVariable' } & BlueprintManifestContextVariableField | { kind: 'variable' } & BlueprintManifestVariableField;
|
|
12806
|
+
|
|
12660
12807
|
/**
|
|
12661
12808
|
*
|
|
12662
12809
|
* @export
|
|
@@ -32227,6 +32374,59 @@ export class BillingApi extends BaseAPI {
|
|
|
32227
32374
|
*/
|
|
32228
32375
|
export const BlueprintCatalogApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32229
32376
|
return {
|
|
32377
|
+
/**
|
|
32378
|
+
* Returns the list of form fields the console must display to deploy the selected blueprint, derived from the blueprint\'s qbm.yml manifest. Includes editable variables (overridable=true) and auto-sourced context variables (overridable=false, with a source).
|
|
32379
|
+
* @summary Get the input fields to display for a blueprint catalog service
|
|
32380
|
+
* @param {string} organizationId Organization ID
|
|
32381
|
+
* @param {string} provider Cloud provider (e.g. aws, gcp, azure)
|
|
32382
|
+
* @param {string} serviceFamily Service family (e.g. mysql, postgresql)
|
|
32383
|
+
* @param {string} serviceVersion Service version (e.g. 8, 14)
|
|
32384
|
+
* @param {*} [options] Override http request option.
|
|
32385
|
+
* @throws {RequiredError}
|
|
32386
|
+
*/
|
|
32387
|
+
getBlueprintCatalogServiceManifest: async (organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32388
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
32389
|
+
assertParamExists('getBlueprintCatalogServiceManifest', 'organizationId', organizationId)
|
|
32390
|
+
// verify required parameter 'provider' is not null or undefined
|
|
32391
|
+
assertParamExists('getBlueprintCatalogServiceManifest', 'provider', provider)
|
|
32392
|
+
// verify required parameter 'serviceFamily' is not null or undefined
|
|
32393
|
+
assertParamExists('getBlueprintCatalogServiceManifest', 'serviceFamily', serviceFamily)
|
|
32394
|
+
// verify required parameter 'serviceVersion' is not null or undefined
|
|
32395
|
+
assertParamExists('getBlueprintCatalogServiceManifest', 'serviceVersion', serviceVersion)
|
|
32396
|
+
const localVarPath = `/organization/{organizationId}/blueprint/catalog/{provider}/{serviceFamily}/{serviceVersion}/manifest`
|
|
32397
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
32398
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)))
|
|
32399
|
+
.replace(`{${"serviceFamily"}}`, encodeURIComponent(String(serviceFamily)))
|
|
32400
|
+
.replace(`{${"serviceVersion"}}`, encodeURIComponent(String(serviceVersion)));
|
|
32401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32403
|
+
let baseOptions;
|
|
32404
|
+
if (configuration) {
|
|
32405
|
+
baseOptions = configuration.baseOptions;
|
|
32406
|
+
}
|
|
32407
|
+
|
|
32408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32409
|
+
const localVarHeaderParameter = {} as any;
|
|
32410
|
+
const localVarQueryParameter = {} as any;
|
|
32411
|
+
|
|
32412
|
+
// authentication ApiKeyAuth required
|
|
32413
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
32414
|
+
|
|
32415
|
+
// authentication bearerAuth required
|
|
32416
|
+
// http bearer authentication required
|
|
32417
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32418
|
+
|
|
32419
|
+
|
|
32420
|
+
|
|
32421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32423
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32424
|
+
|
|
32425
|
+
return {
|
|
32426
|
+
url: toPathString(localVarUrlObj),
|
|
32427
|
+
options: localVarRequestOptions,
|
|
32428
|
+
};
|
|
32429
|
+
},
|
|
32230
32430
|
/**
|
|
32231
32431
|
*
|
|
32232
32432
|
* @summary Get the README of a blueprint catalog service
|
|
@@ -32290,6 +32490,22 @@ export const BlueprintCatalogApiAxiosParamCreator = function (configuration?: Co
|
|
|
32290
32490
|
export const BlueprintCatalogApiFp = function(configuration?: Configuration) {
|
|
32291
32491
|
const localVarAxiosParamCreator = BlueprintCatalogApiAxiosParamCreator(configuration)
|
|
32292
32492
|
return {
|
|
32493
|
+
/**
|
|
32494
|
+
* Returns the list of form fields the console must display to deploy the selected blueprint, derived from the blueprint\'s qbm.yml manifest. Includes editable variables (overridable=true) and auto-sourced context variables (overridable=false, with a source).
|
|
32495
|
+
* @summary Get the input fields to display for a blueprint catalog service
|
|
32496
|
+
* @param {string} organizationId Organization ID
|
|
32497
|
+
* @param {string} provider Cloud provider (e.g. aws, gcp, azure)
|
|
32498
|
+
* @param {string} serviceFamily Service family (e.g. mysql, postgresql)
|
|
32499
|
+
* @param {string} serviceVersion Service version (e.g. 8, 14)
|
|
32500
|
+
* @param {*} [options] Override http request option.
|
|
32501
|
+
* @throws {RequiredError}
|
|
32502
|
+
*/
|
|
32503
|
+
async getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBlueprintCatalogServiceManifest200Response>> {
|
|
32504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options);
|
|
32505
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32506
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintCatalogApi.getBlueprintCatalogServiceManifest']?.[localVarOperationServerIndex]?.url;
|
|
32507
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32508
|
+
},
|
|
32293
32509
|
/**
|
|
32294
32510
|
*
|
|
32295
32511
|
* @summary Get the README of a blueprint catalog service
|
|
@@ -32316,6 +32532,19 @@ export const BlueprintCatalogApiFp = function(configuration?: Configuration) {
|
|
|
32316
32532
|
export const BlueprintCatalogApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32317
32533
|
const localVarFp = BlueprintCatalogApiFp(configuration)
|
|
32318
32534
|
return {
|
|
32535
|
+
/**
|
|
32536
|
+
* Returns the list of form fields the console must display to deploy the selected blueprint, derived from the blueprint\'s qbm.yml manifest. Includes editable variables (overridable=true) and auto-sourced context variables (overridable=false, with a source).
|
|
32537
|
+
* @summary Get the input fields to display for a blueprint catalog service
|
|
32538
|
+
* @param {string} organizationId Organization ID
|
|
32539
|
+
* @param {string} provider Cloud provider (e.g. aws, gcp, azure)
|
|
32540
|
+
* @param {string} serviceFamily Service family (e.g. mysql, postgresql)
|
|
32541
|
+
* @param {string} serviceVersion Service version (e.g. 8, 14)
|
|
32542
|
+
* @param {*} [options] Override http request option.
|
|
32543
|
+
* @throws {RequiredError}
|
|
32544
|
+
*/
|
|
32545
|
+
getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): AxiosPromise<GetBlueprintCatalogServiceManifest200Response> {
|
|
32546
|
+
return localVarFp.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options).then((request) => request(axios, basePath));
|
|
32547
|
+
},
|
|
32319
32548
|
/**
|
|
32320
32549
|
*
|
|
32321
32550
|
* @summary Get the README of a blueprint catalog service
|
|
@@ -32339,6 +32568,21 @@ export const BlueprintCatalogApiFactory = function (configuration?: Configuratio
|
|
|
32339
32568
|
* @extends {BaseAPI}
|
|
32340
32569
|
*/
|
|
32341
32570
|
export class BlueprintCatalogApi extends BaseAPI {
|
|
32571
|
+
/**
|
|
32572
|
+
* Returns the list of form fields the console must display to deploy the selected blueprint, derived from the blueprint\'s qbm.yml manifest. Includes editable variables (overridable=true) and auto-sourced context variables (overridable=false, with a source).
|
|
32573
|
+
* @summary Get the input fields to display for a blueprint catalog service
|
|
32574
|
+
* @param {string} organizationId Organization ID
|
|
32575
|
+
* @param {string} provider Cloud provider (e.g. aws, gcp, azure)
|
|
32576
|
+
* @param {string} serviceFamily Service family (e.g. mysql, postgresql)
|
|
32577
|
+
* @param {string} serviceVersion Service version (e.g. 8, 14)
|
|
32578
|
+
* @param {*} [options] Override http request option.
|
|
32579
|
+
* @throws {RequiredError}
|
|
32580
|
+
* @memberof BlueprintCatalogApi
|
|
32581
|
+
*/
|
|
32582
|
+
public getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig) {
|
|
32583
|
+
return BlueprintCatalogApiFp(this.configuration).getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options).then((request) => request(this.axios, this.basePath));
|
|
32584
|
+
}
|
|
32585
|
+
|
|
32342
32586
|
/**
|
|
32343
32587
|
*
|
|
32344
32588
|
* @summary Get the README of a blueprint catalog service
|
|
@@ -36554,10 +36798,11 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
36554
36798
|
* @param {string} organizationId Organization ID
|
|
36555
36799
|
* @param {string} clusterId Cluster ID
|
|
36556
36800
|
* @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
|
|
36801
|
+
* @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
|
|
36557
36802
|
* @param {*} [options] Override http request option.
|
|
36558
36803
|
* @throws {RequiredError}
|
|
36559
36804
|
*/
|
|
36560
|
-
getClusterKubeconfig: async (organizationId: string, clusterId: string, withTokenFromCli?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36805
|
+
getClusterKubeconfig: async (organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36561
36806
|
// verify required parameter 'organizationId' is not null or undefined
|
|
36562
36807
|
assertParamExists('getClusterKubeconfig', 'organizationId', organizationId)
|
|
36563
36808
|
// verify required parameter 'clusterId' is not null or undefined
|
|
@@ -36587,6 +36832,10 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
36587
36832
|
localVarQueryParameter['with_token_from_cli'] = withTokenFromCli;
|
|
36588
36833
|
}
|
|
36589
36834
|
|
|
36835
|
+
if (readOnly !== undefined) {
|
|
36836
|
+
localVarQueryParameter['read_only'] = readOnly;
|
|
36837
|
+
}
|
|
36838
|
+
|
|
36590
36839
|
|
|
36591
36840
|
|
|
36592
36841
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -37890,11 +38139,12 @@ export const ClustersApiFp = function(configuration?: Configuration) {
|
|
|
37890
38139
|
* @param {string} organizationId Organization ID
|
|
37891
38140
|
* @param {string} clusterId Cluster ID
|
|
37892
38141
|
* @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
|
|
38142
|
+
* @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
|
|
37893
38143
|
* @param {*} [options] Override http request option.
|
|
37894
38144
|
* @throws {RequiredError}
|
|
37895
38145
|
*/
|
|
37896
|
-
async getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
37897
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options);
|
|
38146
|
+
async getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
38147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options);
|
|
37898
38148
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
37899
38149
|
const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterKubeconfig']?.[localVarOperationServerIndex]?.url;
|
|
37900
38150
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -38362,11 +38612,12 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
|
|
|
38362
38612
|
* @param {string} organizationId Organization ID
|
|
38363
38613
|
* @param {string} clusterId Cluster ID
|
|
38364
38614
|
* @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
|
|
38615
|
+
* @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
|
|
38365
38616
|
* @param {*} [options] Override http request option.
|
|
38366
38617
|
* @throws {RequiredError}
|
|
38367
38618
|
*/
|
|
38368
|
-
getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
38369
|
-
return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(axios, basePath));
|
|
38619
|
+
getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
38620
|
+
return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(axios, basePath));
|
|
38370
38621
|
},
|
|
38371
38622
|
/**
|
|
38372
38623
|
* List Cluster Kubernetes Events
|
|
@@ -38785,12 +39036,13 @@ export class ClustersApi extends BaseAPI {
|
|
|
38785
39036
|
* @param {string} organizationId Organization ID
|
|
38786
39037
|
* @param {string} clusterId Cluster ID
|
|
38787
39038
|
* @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
|
|
39039
|
+
* @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
|
|
38788
39040
|
* @param {*} [options] Override http request option.
|
|
38789
39041
|
* @throws {RequiredError}
|
|
38790
39042
|
* @memberof ClustersApi
|
|
38791
39043
|
*/
|
|
38792
|
-
public getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig) {
|
|
38793
|
-
return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(this.axios, this.basePath));
|
|
39044
|
+
public getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig) {
|
|
39045
|
+
return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(this.axios, this.basePath));
|
|
38794
39046
|
}
|
|
38795
39047
|
|
|
38796
39048
|
/**
|
|
@@ -45527,10 +45779,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
45527
45779
|
*
|
|
45528
45780
|
* @summary Get cluster token by clusterId
|
|
45529
45781
|
* @param {string} clusterId
|
|
45782
|
+
* @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
|
|
45530
45783
|
* @param {*} [options] Override http request option.
|
|
45531
45784
|
* @throws {RequiredError}
|
|
45532
45785
|
*/
|
|
45533
|
-
getClusterTokenByClusterId: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45786
|
+
getClusterTokenByClusterId: async (clusterId: string, readOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45534
45787
|
// verify required parameter 'clusterId' is not null or undefined
|
|
45535
45788
|
assertParamExists('getClusterTokenByClusterId', 'clusterId', clusterId)
|
|
45536
45789
|
const localVarPath = `/cluster/{clusterId}/token`
|
|
@@ -45553,6 +45806,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
45553
45806
|
// http bearer authentication required
|
|
45554
45807
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
45555
45808
|
|
|
45809
|
+
if (readOnly !== undefined) {
|
|
45810
|
+
localVarQueryParameter['read_only'] = readOnly;
|
|
45811
|
+
}
|
|
45812
|
+
|
|
45556
45813
|
|
|
45557
45814
|
|
|
45558
45815
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -45622,11 +45879,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
45622
45879
|
*
|
|
45623
45880
|
* @summary Get cluster token by clusterId
|
|
45624
45881
|
* @param {string} clusterId
|
|
45882
|
+
* @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
|
|
45625
45883
|
* @param {*} [options] Override http request option.
|
|
45626
45884
|
* @throws {RequiredError}
|
|
45627
45885
|
*/
|
|
45628
|
-
async getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>> {
|
|
45629
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, options);
|
|
45886
|
+
async getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>> {
|
|
45887
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, readOnly, options);
|
|
45630
45888
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
45631
45889
|
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getClusterTokenByClusterId']?.[localVarOperationServerIndex]?.url;
|
|
45632
45890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -45658,11 +45916,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
45658
45916
|
*
|
|
45659
45917
|
* @summary Get cluster token by clusterId
|
|
45660
45918
|
* @param {string} clusterId
|
|
45919
|
+
* @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
|
|
45661
45920
|
* @param {*} [options] Override http request option.
|
|
45662
45921
|
* @throws {RequiredError}
|
|
45663
45922
|
*/
|
|
45664
|
-
getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response> {
|
|
45665
|
-
return localVarFp.getClusterTokenByClusterId(clusterId, options).then((request) => request(axios, basePath));
|
|
45923
|
+
getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response> {
|
|
45924
|
+
return localVarFp.getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(axios, basePath));
|
|
45666
45925
|
},
|
|
45667
45926
|
/**
|
|
45668
45927
|
*
|
|
@@ -45688,12 +45947,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
45688
45947
|
*
|
|
45689
45948
|
* @summary Get cluster token by clusterId
|
|
45690
45949
|
* @param {string} clusterId
|
|
45950
|
+
* @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
|
|
45691
45951
|
* @param {*} [options] Override http request option.
|
|
45692
45952
|
* @throws {RequiredError}
|
|
45693
45953
|
* @memberof DefaultApi
|
|
45694
45954
|
*/
|
|
45695
|
-
public getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig) {
|
|
45696
|
-
return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
|
|
45955
|
+
public getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig) {
|
|
45956
|
+
return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(this.axios, this.basePath));
|
|
45697
45957
|
}
|
|
45698
45958
|
|
|
45699
45959
|
/**
|