qovery-typescript-axios 1.1.285 → 1.1.287
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 +114 -2
- package/dist/api.d.ts +55 -0
- package/dist/api.js +107 -9
- package/dist/esm/api.d.ts +55 -0
- package/dist/esm/api.js +100 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -35,7 +35,8 @@ export const APIVariableScopeEnum = {
|
|
|
35
35
|
ENVIRONMENT: 'ENVIRONMENT',
|
|
36
36
|
PROJECT: 'PROJECT',
|
|
37
37
|
CONTAINER: 'CONTAINER',
|
|
38
|
-
JOB: 'JOB'
|
|
38
|
+
JOB: 'JOB',
|
|
39
|
+
HELM: 'HELM'
|
|
39
40
|
} as const;
|
|
40
41
|
|
|
41
42
|
export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
|
|
@@ -9254,7 +9255,8 @@ export const LinkedServiceTypeEnum = {
|
|
|
9254
9255
|
APPLICATION: 'APPLICATION',
|
|
9255
9256
|
CONTAINER: 'CONTAINER',
|
|
9256
9257
|
DATABASE: 'DATABASE',
|
|
9257
|
-
JOB: 'JOB'
|
|
9258
|
+
JOB: 'JOB',
|
|
9259
|
+
HELM: 'HELM'
|
|
9258
9260
|
} as const;
|
|
9259
9261
|
|
|
9260
9262
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
@@ -12670,6 +12672,22 @@ export const ServiceTypeEnum = {
|
|
|
12670
12672
|
export type ServiceTypeEnum = typeof ServiceTypeEnum[keyof typeof ServiceTypeEnum];
|
|
12671
12673
|
|
|
12672
12674
|
|
|
12675
|
+
/**
|
|
12676
|
+
* type of the service
|
|
12677
|
+
* @export
|
|
12678
|
+
* @enum {string}
|
|
12679
|
+
*/
|
|
12680
|
+
|
|
12681
|
+
export const ServiceTypeForVariableEnum = {
|
|
12682
|
+
APPLICATION: 'APPLICATION',
|
|
12683
|
+
CONTAINER: 'CONTAINER',
|
|
12684
|
+
JOB: 'JOB',
|
|
12685
|
+
HELM: 'HELM'
|
|
12686
|
+
} as const;
|
|
12687
|
+
|
|
12688
|
+
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
12689
|
+
|
|
12690
|
+
|
|
12673
12691
|
/**
|
|
12674
12692
|
*
|
|
12675
12693
|
* @export
|
|
@@ -48133,6 +48151,61 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
|
|
|
48133
48151
|
options: localVarRequestOptions,
|
|
48134
48152
|
};
|
|
48135
48153
|
},
|
|
48154
|
+
/**
|
|
48155
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
48156
|
+
* @summary Import variables
|
|
48157
|
+
* @param {string} serviceId service id
|
|
48158
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
48159
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
48160
|
+
* @param {*} [options] Override http request option.
|
|
48161
|
+
* @throws {RequiredError}
|
|
48162
|
+
*/
|
|
48163
|
+
importEnvironmentVariables: async (serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48164
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
48165
|
+
assertParamExists('importEnvironmentVariables', 'serviceId', serviceId)
|
|
48166
|
+
// verify required parameter 'serviceType' is not null or undefined
|
|
48167
|
+
assertParamExists('importEnvironmentVariables', 'serviceType', serviceType)
|
|
48168
|
+
const localVarPath = `/variable/import`;
|
|
48169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48171
|
+
let baseOptions;
|
|
48172
|
+
if (configuration) {
|
|
48173
|
+
baseOptions = configuration.baseOptions;
|
|
48174
|
+
}
|
|
48175
|
+
|
|
48176
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
48177
|
+
const localVarHeaderParameter = {} as any;
|
|
48178
|
+
const localVarQueryParameter = {} as any;
|
|
48179
|
+
|
|
48180
|
+
// authentication ApiKeyAuth required
|
|
48181
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
48182
|
+
|
|
48183
|
+
// authentication bearerAuth required
|
|
48184
|
+
// http bearer authentication required
|
|
48185
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48186
|
+
|
|
48187
|
+
if (serviceId !== undefined) {
|
|
48188
|
+
localVarQueryParameter['service_id'] = serviceId;
|
|
48189
|
+
}
|
|
48190
|
+
|
|
48191
|
+
if (serviceType !== undefined) {
|
|
48192
|
+
localVarQueryParameter['service_type'] = serviceType;
|
|
48193
|
+
}
|
|
48194
|
+
|
|
48195
|
+
|
|
48196
|
+
|
|
48197
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
48198
|
+
|
|
48199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48201
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48202
|
+
localVarRequestOptions.data = serializeDataIfNeeded(variableImportRequest, localVarRequestOptions, configuration)
|
|
48203
|
+
|
|
48204
|
+
return {
|
|
48205
|
+
url: toPathString(localVarUrlObj),
|
|
48206
|
+
options: localVarRequestOptions,
|
|
48207
|
+
};
|
|
48208
|
+
},
|
|
48136
48209
|
/**
|
|
48137
48210
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
48138
48211
|
* @summary List variables
|
|
@@ -48257,6 +48330,19 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
48257
48330
|
const localVarAxiosArgs = await localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
|
|
48258
48331
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
48259
48332
|
},
|
|
48333
|
+
/**
|
|
48334
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
48335
|
+
* @summary Import variables
|
|
48336
|
+
* @param {string} serviceId service id
|
|
48337
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
48338
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
48339
|
+
* @param {*} [options] Override http request option.
|
|
48340
|
+
* @throws {RequiredError}
|
|
48341
|
+
*/
|
|
48342
|
+
async importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>> {
|
|
48343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options);
|
|
48344
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
48345
|
+
},
|
|
48260
48346
|
/**
|
|
48261
48347
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
48262
48348
|
* @summary List variables
|
|
@@ -48333,6 +48419,18 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
|
|
|
48333
48419
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse> {
|
|
48334
48420
|
return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
|
|
48335
48421
|
},
|
|
48422
|
+
/**
|
|
48423
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
48424
|
+
* @summary Import variables
|
|
48425
|
+
* @param {string} serviceId service id
|
|
48426
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
48427
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
48428
|
+
* @param {*} [options] Override http request option.
|
|
48429
|
+
* @throws {RequiredError}
|
|
48430
|
+
*/
|
|
48431
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport> {
|
|
48432
|
+
return localVarFp.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(axios, basePath));
|
|
48433
|
+
},
|
|
48336
48434
|
/**
|
|
48337
48435
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
48338
48436
|
* @summary List variables
|
|
@@ -48418,6 +48516,20 @@ export class VariableMainCallsApi extends BaseAPI {
|
|
|
48418
48516
|
return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
48419
48517
|
}
|
|
48420
48518
|
|
|
48519
|
+
/**
|
|
48520
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
48521
|
+
* @summary Import variables
|
|
48522
|
+
* @param {string} serviceId service id
|
|
48523
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
48524
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
48525
|
+
* @param {*} [options] Override http request option.
|
|
48526
|
+
* @throws {RequiredError}
|
|
48527
|
+
* @memberof VariableMainCallsApi
|
|
48528
|
+
*/
|
|
48529
|
+
public importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) {
|
|
48530
|
+
return VariableMainCallsApiFp(this.configuration).importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
48531
|
+
}
|
|
48532
|
+
|
|
48421
48533
|
/**
|
|
48422
48534
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
48423
48535
|
* @summary List variables
|
package/dist/api.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const APIVariableScopeEnum: {
|
|
|
25
25
|
readonly PROJECT: "PROJECT";
|
|
26
26
|
readonly CONTAINER: "CONTAINER";
|
|
27
27
|
readonly JOB: "JOB";
|
|
28
|
+
readonly HELM: "HELM";
|
|
28
29
|
};
|
|
29
30
|
export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
|
|
30
31
|
/**
|
|
@@ -8985,6 +8986,7 @@ export declare const LinkedServiceTypeEnum: {
|
|
|
8985
8986
|
readonly CONTAINER: "CONTAINER";
|
|
8986
8987
|
readonly DATABASE: "DATABASE";
|
|
8987
8988
|
readonly JOB: "JOB";
|
|
8989
|
+
readonly HELM: "HELM";
|
|
8988
8990
|
};
|
|
8989
8991
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
8990
8992
|
/**
|
|
@@ -12284,6 +12286,18 @@ export declare const ServiceTypeEnum: {
|
|
|
12284
12286
|
readonly DATABASE: "DATABASE";
|
|
12285
12287
|
};
|
|
12286
12288
|
export type ServiceTypeEnum = typeof ServiceTypeEnum[keyof typeof ServiceTypeEnum];
|
|
12289
|
+
/**
|
|
12290
|
+
* type of the service
|
|
12291
|
+
* @export
|
|
12292
|
+
* @enum {string}
|
|
12293
|
+
*/
|
|
12294
|
+
export declare const ServiceTypeForVariableEnum: {
|
|
12295
|
+
readonly APPLICATION: "APPLICATION";
|
|
12296
|
+
readonly CONTAINER: "CONTAINER";
|
|
12297
|
+
readonly JOB: "JOB";
|
|
12298
|
+
readonly HELM: "HELM";
|
|
12299
|
+
};
|
|
12300
|
+
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
12287
12301
|
/**
|
|
12288
12302
|
*
|
|
12289
12303
|
* @export
|
|
@@ -29454,6 +29468,16 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
|
|
|
29454
29468
|
* @throws {RequiredError}
|
|
29455
29469
|
*/
|
|
29456
29470
|
editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29471
|
+
/**
|
|
29472
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29473
|
+
* @summary Import variables
|
|
29474
|
+
* @param {string} serviceId service id
|
|
29475
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29476
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29477
|
+
* @param {*} [options] Override http request option.
|
|
29478
|
+
* @throws {RequiredError}
|
|
29479
|
+
*/
|
|
29480
|
+
importEnvironmentVariables: (serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29457
29481
|
/**
|
|
29458
29482
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29459
29483
|
* @summary List variables
|
|
@@ -29513,6 +29537,16 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
|
|
|
29513
29537
|
* @throws {RequiredError}
|
|
29514
29538
|
*/
|
|
29515
29539
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
|
|
29540
|
+
/**
|
|
29541
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29542
|
+
* @summary Import variables
|
|
29543
|
+
* @param {string} serviceId service id
|
|
29544
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29545
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29546
|
+
* @param {*} [options] Override http request option.
|
|
29547
|
+
* @throws {RequiredError}
|
|
29548
|
+
*/
|
|
29549
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>>;
|
|
29516
29550
|
/**
|
|
29517
29551
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29518
29552
|
* @summary List variables
|
|
@@ -29572,6 +29606,16 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
|
|
|
29572
29606
|
* @throws {RequiredError}
|
|
29573
29607
|
*/
|
|
29574
29608
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
|
|
29609
|
+
/**
|
|
29610
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29611
|
+
* @summary Import variables
|
|
29612
|
+
* @param {string} serviceId service id
|
|
29613
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29614
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29615
|
+
* @param {*} [options] Override http request option.
|
|
29616
|
+
* @throws {RequiredError}
|
|
29617
|
+
*/
|
|
29618
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport>;
|
|
29575
29619
|
/**
|
|
29576
29620
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29577
29621
|
* @summary List variables
|
|
@@ -29638,6 +29682,17 @@ export declare class VariableMainCallsApi extends BaseAPI {
|
|
|
29638
29682
|
* @memberof VariableMainCallsApi
|
|
29639
29683
|
*/
|
|
29640
29684
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse, any>>;
|
|
29685
|
+
/**
|
|
29686
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29687
|
+
* @summary Import variables
|
|
29688
|
+
* @param {string} serviceId service id
|
|
29689
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29690
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29691
|
+
* @param {*} [options] Override http request option.
|
|
29692
|
+
* @throws {RequiredError}
|
|
29693
|
+
* @memberof VariableMainCallsApi
|
|
29694
|
+
*/
|
|
29695
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableImport, any>>;
|
|
29641
29696
|
/**
|
|
29642
29697
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29643
29698
|
* @summary List variables
|
package/dist/api.js
CHANGED
|
@@ -23,13 +23,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.RegistryMirroringModeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationEventType = exports.OrganizationEventTargetType = exports.OrganizationEventSubTargetType = exports.OrganizationEventOrigin = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.JobScheduleEvent = exports.JobForceEvent = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HelmRepositoryKindEnum = exports.HelmForceEvent = exports.GitTokenAssociatedServiceType = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ContainerAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.CompanySizeEnum = exports.ClusterStateEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.ClusterDeploymentStatusEnum = exports.ClusterDeleteMode = exports.ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ApplicationAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.APIVariableTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = void 0;
|
|
26
|
+
exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StepMetricStatusEnum = exports.StatusKindEnum = exports.StateEnum = exports.StageStepMetricNameEnum = exports.ServiceTypeForVariableEnum = exports.ServiceTypeEnum = exports.ServiceStepMetricNameEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = void 0;
|
|
27
|
+
exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = void 0;
|
|
28
|
+
exports.DeploymentStageMainCallsApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = void 0;
|
|
29
|
+
exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = void 0;
|
|
30
|
+
exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentRestrictionApi = exports.JobDeploymentRestrictionApiFactory = exports.JobDeploymentRestrictionApiFp = exports.JobDeploymentRestrictionApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.HelmsApi = exports.HelmsApiFactory = exports.HelmsApiFp = exports.HelmsApiAxiosParamCreator = exports.HelmRepositoriesApi = exports.HelmRepositoriesApiFactory = exports.HelmRepositoriesApiFp = exports.HelmRepositoriesApiAxiosParamCreator = exports.HelmMainCallsApi = exports.HelmMainCallsApiFactory = exports.HelmMainCallsApiFp = exports.HelmMainCallsApiAxiosParamCreator = exports.HelmDeploymentRestrictionApi = exports.HelmDeploymentRestrictionApiFactory = exports.HelmDeploymentRestrictionApiFp = exports.HelmDeploymentRestrictionApiAxiosParamCreator = exports.HelmDeploymentHistoryApi = exports.HelmDeploymentHistoryApiFactory = exports.HelmDeploymentHistoryApiFp = exports.HelmDeploymentHistoryApiAxiosParamCreator = exports.HelmConfigurationApi = exports.HelmConfigurationApiFactory = exports.HelmConfigurationApiFp = exports.HelmConfigurationApiAxiosParamCreator = exports.HelmActionsApi = exports.HelmActionsApiFactory = exports.HelmActionsApiFp = exports.HelmActionsApiAxiosParamCreator = exports.HelmApi = exports.HelmApiFactory = exports.HelmApiFp = exports.HelmApiAxiosParamCreator = exports.GithubAppApi = void 0;
|
|
31
|
+
exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = void 0;
|
|
32
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = void 0;
|
|
33
33
|
const axios_1 = require("axios");
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -47,7 +47,8 @@ exports.APIVariableScopeEnum = {
|
|
|
47
47
|
ENVIRONMENT: 'ENVIRONMENT',
|
|
48
48
|
PROJECT: 'PROJECT',
|
|
49
49
|
CONTAINER: 'CONTAINER',
|
|
50
|
-
JOB: 'JOB'
|
|
50
|
+
JOB: 'JOB',
|
|
51
|
+
HELM: 'HELM'
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
54
|
* type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE or BUIT_IN)
|
|
@@ -420,7 +421,8 @@ exports.LinkedServiceTypeEnum = {
|
|
|
420
421
|
APPLICATION: 'APPLICATION',
|
|
421
422
|
CONTAINER: 'CONTAINER',
|
|
422
423
|
DATABASE: 'DATABASE',
|
|
423
|
-
JOB: 'JOB'
|
|
424
|
+
JOB: 'JOB',
|
|
425
|
+
HELM: 'HELM'
|
|
424
426
|
};
|
|
425
427
|
/**
|
|
426
428
|
* deprecated
|
|
@@ -622,6 +624,17 @@ exports.ServiceTypeEnum = {
|
|
|
622
624
|
APPLICATION: 'APPLICATION',
|
|
623
625
|
DATABASE: 'DATABASE'
|
|
624
626
|
};
|
|
627
|
+
/**
|
|
628
|
+
* type of the service
|
|
629
|
+
* @export
|
|
630
|
+
* @enum {string}
|
|
631
|
+
*/
|
|
632
|
+
exports.ServiceTypeForVariableEnum = {
|
|
633
|
+
APPLICATION: 'APPLICATION',
|
|
634
|
+
CONTAINER: 'CONTAINER',
|
|
635
|
+
JOB: 'JOB',
|
|
636
|
+
HELM: 'HELM'
|
|
637
|
+
};
|
|
625
638
|
/**
|
|
626
639
|
* The name of the deployment step at the stage level: - QUEUEING: The step preceding the actual stage deployment step. - PROVISION_BUILDER: The step to provision builders before the actual build.
|
|
627
640
|
* @export
|
|
@@ -32460,6 +32473,51 @@ const VariableMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
32460
32473
|
options: localVarRequestOptions,
|
|
32461
32474
|
};
|
|
32462
32475
|
}),
|
|
32476
|
+
/**
|
|
32477
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32478
|
+
* @summary Import variables
|
|
32479
|
+
* @param {string} serviceId service id
|
|
32480
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32481
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32482
|
+
* @param {*} [options] Override http request option.
|
|
32483
|
+
* @throws {RequiredError}
|
|
32484
|
+
*/
|
|
32485
|
+
importEnvironmentVariables: (serviceId, serviceType, variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
32486
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
32487
|
+
(0, common_1.assertParamExists)('importEnvironmentVariables', 'serviceId', serviceId);
|
|
32488
|
+
// verify required parameter 'serviceType' is not null or undefined
|
|
32489
|
+
(0, common_1.assertParamExists)('importEnvironmentVariables', 'serviceType', serviceType);
|
|
32490
|
+
const localVarPath = `/variable/import`;
|
|
32491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32492
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
32493
|
+
let baseOptions;
|
|
32494
|
+
if (configuration) {
|
|
32495
|
+
baseOptions = configuration.baseOptions;
|
|
32496
|
+
}
|
|
32497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
32498
|
+
const localVarHeaderParameter = {};
|
|
32499
|
+
const localVarQueryParameter = {};
|
|
32500
|
+
// authentication ApiKeyAuth required
|
|
32501
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
32502
|
+
// authentication bearerAuth required
|
|
32503
|
+
// http bearer authentication required
|
|
32504
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
32505
|
+
if (serviceId !== undefined) {
|
|
32506
|
+
localVarQueryParameter['service_id'] = serviceId;
|
|
32507
|
+
}
|
|
32508
|
+
if (serviceType !== undefined) {
|
|
32509
|
+
localVarQueryParameter['service_type'] = serviceType;
|
|
32510
|
+
}
|
|
32511
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32512
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
32513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32514
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32515
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableImportRequest, localVarRequestOptions, configuration);
|
|
32516
|
+
return {
|
|
32517
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
32518
|
+
options: localVarRequestOptions,
|
|
32519
|
+
};
|
|
32520
|
+
}),
|
|
32463
32521
|
/**
|
|
32464
32522
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32465
32523
|
* @summary List variables
|
|
@@ -32584,6 +32642,21 @@ const VariableMainCallsApiFp = function (configuration) {
|
|
|
32584
32642
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
32585
32643
|
});
|
|
32586
32644
|
},
|
|
32645
|
+
/**
|
|
32646
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32647
|
+
* @summary Import variables
|
|
32648
|
+
* @param {string} serviceId service id
|
|
32649
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32650
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32651
|
+
* @param {*} [options] Override http request option.
|
|
32652
|
+
* @throws {RequiredError}
|
|
32653
|
+
*/
|
|
32654
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32656
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options);
|
|
32657
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
32658
|
+
});
|
|
32659
|
+
},
|
|
32587
32660
|
/**
|
|
32588
32661
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32589
32662
|
* @summary List variables
|
|
@@ -32662,6 +32735,18 @@ const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
32662
32735
|
editVariable(variableId, variableEditRequest, options) {
|
|
32663
32736
|
return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
|
|
32664
32737
|
},
|
|
32738
|
+
/**
|
|
32739
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32740
|
+
* @summary Import variables
|
|
32741
|
+
* @param {string} serviceId service id
|
|
32742
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32743
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32744
|
+
* @param {*} [options] Override http request option.
|
|
32745
|
+
* @throws {RequiredError}
|
|
32746
|
+
*/
|
|
32747
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32748
|
+
return localVarFp.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(axios, basePath));
|
|
32749
|
+
},
|
|
32665
32750
|
/**
|
|
32666
32751
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32667
32752
|
* @summary List variables
|
|
@@ -32742,6 +32827,19 @@ class VariableMainCallsApi extends base_1.BaseAPI {
|
|
|
32742
32827
|
editVariable(variableId, variableEditRequest, options) {
|
|
32743
32828
|
return (0, exports.VariableMainCallsApiFp)(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32744
32829
|
}
|
|
32830
|
+
/**
|
|
32831
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32832
|
+
* @summary Import variables
|
|
32833
|
+
* @param {string} serviceId service id
|
|
32834
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32835
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32836
|
+
* @param {*} [options] Override http request option.
|
|
32837
|
+
* @throws {RequiredError}
|
|
32838
|
+
* @memberof VariableMainCallsApi
|
|
32839
|
+
*/
|
|
32840
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32841
|
+
return (0, exports.VariableMainCallsApiFp)(this.configuration).importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32842
|
+
}
|
|
32745
32843
|
/**
|
|
32746
32844
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32747
32845
|
* @summary List variables
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const APIVariableScopeEnum: {
|
|
|
25
25
|
readonly PROJECT: "PROJECT";
|
|
26
26
|
readonly CONTAINER: "CONTAINER";
|
|
27
27
|
readonly JOB: "JOB";
|
|
28
|
+
readonly HELM: "HELM";
|
|
28
29
|
};
|
|
29
30
|
export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
|
|
30
31
|
/**
|
|
@@ -8985,6 +8986,7 @@ export declare const LinkedServiceTypeEnum: {
|
|
|
8985
8986
|
readonly CONTAINER: "CONTAINER";
|
|
8986
8987
|
readonly DATABASE: "DATABASE";
|
|
8987
8988
|
readonly JOB: "JOB";
|
|
8989
|
+
readonly HELM: "HELM";
|
|
8988
8990
|
};
|
|
8989
8991
|
export type LinkedServiceTypeEnum = typeof LinkedServiceTypeEnum[keyof typeof LinkedServiceTypeEnum];
|
|
8990
8992
|
/**
|
|
@@ -12284,6 +12286,18 @@ export declare const ServiceTypeEnum: {
|
|
|
12284
12286
|
readonly DATABASE: "DATABASE";
|
|
12285
12287
|
};
|
|
12286
12288
|
export type ServiceTypeEnum = typeof ServiceTypeEnum[keyof typeof ServiceTypeEnum];
|
|
12289
|
+
/**
|
|
12290
|
+
* type of the service
|
|
12291
|
+
* @export
|
|
12292
|
+
* @enum {string}
|
|
12293
|
+
*/
|
|
12294
|
+
export declare const ServiceTypeForVariableEnum: {
|
|
12295
|
+
readonly APPLICATION: "APPLICATION";
|
|
12296
|
+
readonly CONTAINER: "CONTAINER";
|
|
12297
|
+
readonly JOB: "JOB";
|
|
12298
|
+
readonly HELM: "HELM";
|
|
12299
|
+
};
|
|
12300
|
+
export type ServiceTypeForVariableEnum = typeof ServiceTypeForVariableEnum[keyof typeof ServiceTypeForVariableEnum];
|
|
12287
12301
|
/**
|
|
12288
12302
|
*
|
|
12289
12303
|
* @export
|
|
@@ -29454,6 +29468,16 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
|
|
|
29454
29468
|
* @throws {RequiredError}
|
|
29455
29469
|
*/
|
|
29456
29470
|
editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29471
|
+
/**
|
|
29472
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29473
|
+
* @summary Import variables
|
|
29474
|
+
* @param {string} serviceId service id
|
|
29475
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29476
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29477
|
+
* @param {*} [options] Override http request option.
|
|
29478
|
+
* @throws {RequiredError}
|
|
29479
|
+
*/
|
|
29480
|
+
importEnvironmentVariables: (serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29457
29481
|
/**
|
|
29458
29482
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29459
29483
|
* @summary List variables
|
|
@@ -29513,6 +29537,16 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
|
|
|
29513
29537
|
* @throws {RequiredError}
|
|
29514
29538
|
*/
|
|
29515
29539
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
|
|
29540
|
+
/**
|
|
29541
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29542
|
+
* @summary Import variables
|
|
29543
|
+
* @param {string} serviceId service id
|
|
29544
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29545
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29546
|
+
* @param {*} [options] Override http request option.
|
|
29547
|
+
* @throws {RequiredError}
|
|
29548
|
+
*/
|
|
29549
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>>;
|
|
29516
29550
|
/**
|
|
29517
29551
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29518
29552
|
* @summary List variables
|
|
@@ -29572,6 +29606,16 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
|
|
|
29572
29606
|
* @throws {RequiredError}
|
|
29573
29607
|
*/
|
|
29574
29608
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
|
|
29609
|
+
/**
|
|
29610
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29611
|
+
* @summary Import variables
|
|
29612
|
+
* @param {string} serviceId service id
|
|
29613
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29614
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29615
|
+
* @param {*} [options] Override http request option.
|
|
29616
|
+
* @throws {RequiredError}
|
|
29617
|
+
*/
|
|
29618
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport>;
|
|
29575
29619
|
/**
|
|
29576
29620
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29577
29621
|
* @summary List variables
|
|
@@ -29638,6 +29682,17 @@ export declare class VariableMainCallsApi extends BaseAPI {
|
|
|
29638
29682
|
* @memberof VariableMainCallsApi
|
|
29639
29683
|
*/
|
|
29640
29684
|
editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse, any>>;
|
|
29685
|
+
/**
|
|
29686
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
29687
|
+
* @summary Import variables
|
|
29688
|
+
* @param {string} serviceId service id
|
|
29689
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
29690
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
29691
|
+
* @param {*} [options] Override http request option.
|
|
29692
|
+
* @throws {RequiredError}
|
|
29693
|
+
* @memberof VariableMainCallsApi
|
|
29694
|
+
*/
|
|
29695
|
+
importEnvironmentVariables(serviceId: string, serviceType: ServiceTypeForVariableEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableImport, any>>;
|
|
29641
29696
|
/**
|
|
29642
29697
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
29643
29698
|
* @summary List variables
|
package/dist/esm/api.js
CHANGED
|
@@ -37,7 +37,8 @@ export const APIVariableScopeEnum = {
|
|
|
37
37
|
ENVIRONMENT: 'ENVIRONMENT',
|
|
38
38
|
PROJECT: 'PROJECT',
|
|
39
39
|
CONTAINER: 'CONTAINER',
|
|
40
|
-
JOB: 'JOB'
|
|
40
|
+
JOB: 'JOB',
|
|
41
|
+
HELM: 'HELM'
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
43
44
|
* type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE or BUIT_IN)
|
|
@@ -410,7 +411,8 @@ export const LinkedServiceTypeEnum = {
|
|
|
410
411
|
APPLICATION: 'APPLICATION',
|
|
411
412
|
CONTAINER: 'CONTAINER',
|
|
412
413
|
DATABASE: 'DATABASE',
|
|
413
|
-
JOB: 'JOB'
|
|
414
|
+
JOB: 'JOB',
|
|
415
|
+
HELM: 'HELM'
|
|
414
416
|
};
|
|
415
417
|
/**
|
|
416
418
|
* deprecated
|
|
@@ -612,6 +614,17 @@ export const ServiceTypeEnum = {
|
|
|
612
614
|
APPLICATION: 'APPLICATION',
|
|
613
615
|
DATABASE: 'DATABASE'
|
|
614
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* type of the service
|
|
619
|
+
* @export
|
|
620
|
+
* @enum {string}
|
|
621
|
+
*/
|
|
622
|
+
export const ServiceTypeForVariableEnum = {
|
|
623
|
+
APPLICATION: 'APPLICATION',
|
|
624
|
+
CONTAINER: 'CONTAINER',
|
|
625
|
+
JOB: 'JOB',
|
|
626
|
+
HELM: 'HELM'
|
|
627
|
+
};
|
|
615
628
|
/**
|
|
616
629
|
* The name of the deployment step at the stage level: - QUEUEING: The step preceding the actual stage deployment step. - PROVISION_BUILDER: The step to provision builders before the actual build.
|
|
617
630
|
* @export
|
|
@@ -32138,6 +32151,51 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
32138
32151
|
options: localVarRequestOptions,
|
|
32139
32152
|
};
|
|
32140
32153
|
}),
|
|
32154
|
+
/**
|
|
32155
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32156
|
+
* @summary Import variables
|
|
32157
|
+
* @param {string} serviceId service id
|
|
32158
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32159
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32160
|
+
* @param {*} [options] Override http request option.
|
|
32161
|
+
* @throws {RequiredError}
|
|
32162
|
+
*/
|
|
32163
|
+
importEnvironmentVariables: (serviceId, serviceType, variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
32164
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
32165
|
+
assertParamExists('importEnvironmentVariables', 'serviceId', serviceId);
|
|
32166
|
+
// verify required parameter 'serviceType' is not null or undefined
|
|
32167
|
+
assertParamExists('importEnvironmentVariables', 'serviceType', serviceType);
|
|
32168
|
+
const localVarPath = `/variable/import`;
|
|
32169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32171
|
+
let baseOptions;
|
|
32172
|
+
if (configuration) {
|
|
32173
|
+
baseOptions = configuration.baseOptions;
|
|
32174
|
+
}
|
|
32175
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
32176
|
+
const localVarHeaderParameter = {};
|
|
32177
|
+
const localVarQueryParameter = {};
|
|
32178
|
+
// authentication ApiKeyAuth required
|
|
32179
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
32180
|
+
// authentication bearerAuth required
|
|
32181
|
+
// http bearer authentication required
|
|
32182
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
32183
|
+
if (serviceId !== undefined) {
|
|
32184
|
+
localVarQueryParameter['service_id'] = serviceId;
|
|
32185
|
+
}
|
|
32186
|
+
if (serviceType !== undefined) {
|
|
32187
|
+
localVarQueryParameter['service_type'] = serviceType;
|
|
32188
|
+
}
|
|
32189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32192
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32193
|
+
localVarRequestOptions.data = serializeDataIfNeeded(variableImportRequest, localVarRequestOptions, configuration);
|
|
32194
|
+
return {
|
|
32195
|
+
url: toPathString(localVarUrlObj),
|
|
32196
|
+
options: localVarRequestOptions,
|
|
32197
|
+
};
|
|
32198
|
+
}),
|
|
32141
32199
|
/**
|
|
32142
32200
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32143
32201
|
* @summary List variables
|
|
@@ -32261,6 +32319,21 @@ export const VariableMainCallsApiFp = function (configuration) {
|
|
|
32261
32319
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32262
32320
|
});
|
|
32263
32321
|
},
|
|
32322
|
+
/**
|
|
32323
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32324
|
+
* @summary Import variables
|
|
32325
|
+
* @param {string} serviceId service id
|
|
32326
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32327
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32328
|
+
* @param {*} [options] Override http request option.
|
|
32329
|
+
* @throws {RequiredError}
|
|
32330
|
+
*/
|
|
32331
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32333
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options);
|
|
32334
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32335
|
+
});
|
|
32336
|
+
},
|
|
32264
32337
|
/**
|
|
32265
32338
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32266
32339
|
* @summary List variables
|
|
@@ -32338,6 +32411,18 @@ export const VariableMainCallsApiFactory = function (configuration, basePath, ax
|
|
|
32338
32411
|
editVariable(variableId, variableEditRequest, options) {
|
|
32339
32412
|
return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
|
|
32340
32413
|
},
|
|
32414
|
+
/**
|
|
32415
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32416
|
+
* @summary Import variables
|
|
32417
|
+
* @param {string} serviceId service id
|
|
32418
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32419
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32420
|
+
* @param {*} [options] Override http request option.
|
|
32421
|
+
* @throws {RequiredError}
|
|
32422
|
+
*/
|
|
32423
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32424
|
+
return localVarFp.importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(axios, basePath));
|
|
32425
|
+
},
|
|
32341
32426
|
/**
|
|
32342
32427
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32343
32428
|
* @summary List variables
|
|
@@ -32417,6 +32502,19 @@ export class VariableMainCallsApi extends BaseAPI {
|
|
|
32417
32502
|
editVariable(variableId, variableEditRequest, options) {
|
|
32418
32503
|
return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32419
32504
|
}
|
|
32505
|
+
/**
|
|
32506
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
32507
|
+
* @summary Import variables
|
|
32508
|
+
* @param {string} serviceId service id
|
|
32509
|
+
* @param {ServiceTypeForVariableEnum} serviceType service type
|
|
32510
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
32511
|
+
* @param {*} [options] Override http request option.
|
|
32512
|
+
* @throws {RequiredError}
|
|
32513
|
+
* @memberof VariableMainCallsApi
|
|
32514
|
+
*/
|
|
32515
|
+
importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options) {
|
|
32516
|
+
return VariableMainCallsApiFp(this.configuration).importEnvironmentVariables(serviceId, serviceType, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32517
|
+
}
|
|
32420
32518
|
/**
|
|
32421
32519
|
* Returns a list of variables. The result can be filtered by using the query parameters.
|
|
32422
32520
|
* @summary List variables
|